/*
 * Aonzenrich Template Styles
 * Inspired by modern corporate designs
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans Thai', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

.header.scrolled .header-container {
    padding: 10px 8%;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.main-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin-left: 30px;
}

.main-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-menu a:hover, .main-menu a:active {
    color: var(--primary-color);
}

/* Make menu text white when header is transparent over hero images */
.front-page .header:not(.scrolled) .main-menu a,
.has-hero-module .header:not(.scrolled) .main-menu a {
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.front-page .header:not(.scrolled) .main-menu a:hover,
.has-hero-module .header:not(.scrolled) .main-menu a:hover {
    color: var(--primary-color);
}

.front-page .header:not(.scrolled) .menu-toggle,
.has-hero-module .header:not(.scrolled) .menu-toggle {
    color: #ffffff;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-banner-body {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-text {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

/* About Overview */
.about-overview {
    padding: 100px 5%;
    background-color: #fff;
    text-align: center;
}

.about-header {
    margin-bottom: 40px;
}

.about-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #555;
    text-align: justify;
}

/* Services Animate (Parallax mimicking) */
.services-animate {
    display: flex;
    flex-direction: column;
}

.service-slide {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.service-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
    transition: transform 0.5s ease;
}

.service-slide:hover .service-video {
    transform: scale(1.05);
}

.service-body {
    z-index: 1;
    padding-left: 10%;
    color: #fff;
}

.service-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a6b82;
    color: #fff;
    transform: translateY(-3px);
}

/* Main Content Area */
.main-content {
    padding: 60px 5%;
    background-color: #f8f9fa;
}

.inner-page .main-content {
    padding-top: 120px;
    min-height: 50vh;
}

.inner-page.has-hero-module .main-content {
    padding-top: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Pre-Footer Gallery */
.pre-footer-gallery {
    width: 100%;
    overflow: hidden;
    background-color: var(--secondary-color);
}
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
}
.gallery-item {
    flex: 1;
    min-width: 250px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
}

/* Footer Section */
.footer {
    background-color: var(--footer-color);
    color: #fff;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 60px 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 280px;
    margin-bottom: 30px;
    padding-right: 20px;
}

/* Footer Logo */
.footer-logo img {
    max-width: 250px;
    height: auto;
}
.footer-logo h2 {
    color: #fff;
}

/* Footer Contact */
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.8;
}
.contact-highlight {
    color: #a8d5e5;
}
.footer-contact a {
    color: #a8d5e5;
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}

/* Social Icons */
.footer-social-wrapper {
    margin-top: 25px;
}
.social-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.social-label {
    width: 120px;
    font-weight: 500;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: #a8d5e5;
    color: #003554;
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #a8d5e5;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    position: relative;
}
.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    flex-wrap: wrap;
}
.copyright {
    color: #ccc;
    font-size: 13px;
}
.legal-links {
    margin-left: auto;
    padding-right: 50px; /* Space for scroll button */
}
.legal-links a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.legal-links a:hover {
    text-decoration: underline;
}
.separator {
    margin: 0 10px;
    color: #666;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.scroll-to-top:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        padding: 20px 0;
    }
    .main-menu.active {
        display: block;
    }
    .main-menu a {
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    }
    .main-menu ul {
        flex-direction: column;
        align-items: center;
    }
    .main-menu li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 5%;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-text {
        font-size: 1.1rem;
    }
    .service-title {
        font-size: 2rem;
    }
    .service-body {
        padding-left: 5%;
    }
    .bottom-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .legal-links {
        margin-left: 0;
        margin-top: 15px;
        padding-right: 0;
    }
    .scroll-to-top {
        top: 20px;
        transform: none;
    }
}

/* =========================================
   AIS-style About Us Layout Classes
   ========================================= */
.aon-about-page {
    font-family: 'Prompt', sans-serif;
}

/* Break out of Joomla container to full viewport width */
.aon-full-width {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-bottom: 5px;
    overflow: hidden;
}

.aon-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333;
}

/* Dark overlay to make text readable */
.aon-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1;
}

.aon-banner-content {
    position: relative;
    z-index: 2;
    padding: 60px 10%;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.aon-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #ffffff;
}

.aon-title span {
    color: #4CAF50; /* Aonzenrich Green */
}

.aon-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: #ffffff;
}

.aon-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.aon-list li {
    margin-bottom: 15px;
    color: #ffffff;
}

.aon-list li strong {
    color: #4CAF50;
}

/* Alignments */
.aon-text-center { text-align: center; }
.aon-text-left { text-align: left; }
.aon-text-right { text-align: right; }

@media (max-width: 768px) {
    .aon-title { font-size: 2rem; }
    .aon-subtitle, .aon-list { font-size: 1.1rem; }
    .aon-banner { min-height: 400px; }
}

/* =========================================
   Aonzenrich Contact Us Layout
   ========================================= */
.aon-contact-wrap {
    font-family: 'Prompt', sans-serif;
    color: #333;
    padding: 20px 0;
}

.aon-contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.aon-contact-hr {
    width: 60px;
    height: 4px !important;
    background-color: #4CAF50 !important; /* Aonzenrich Green */
    border: none !important;
    margin-left: 0;
    margin-bottom: 40px;
    opacity: 1;
}

.aon-contact-address {
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.aon-contact-address p {
    margin-bottom: 15px;
}

.aon-contact-address strong, .aon-contact-card strong {
    display: inline-block;
    min-width: 60px;
    margin-right: 15px;
    color: #555;
    font-weight: 600;
}

.aon-contact-wrap a {
    color: #0066cc; /* Gulf-style Blue link */
    text-decoration: none;
    font-weight: 500;
}

.aon-contact-wrap a:hover {
    text-decoration: underline;
}

.aon-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .aon-contact-grid {
        grid-template-columns: 1fr;
    }
}

.aon-contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066cc; /* Blue heading */
    margin-bottom: 20px;
}

.aon-contact-card p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.aon-contact-map {
    width: 100% !important;
    height: 450px !important;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   Aonzenrich Business Overview Layout
   ========================================= */
.aon-business-wrap {
    font-family: 'Prompt', sans-serif;
    color: #333;
    padding: 20px 0;
}
.aon-business-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}
.aon-business-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #0066cc;
    line-height: 1.3;
    margin: 0;
}
.aon-business-title span {
    color: #4CAF50;
    font-weight: 700;
}
.aon-business-desc p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}
.aon-business-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
}
.aon-stat-item {
    text-align: left;
}
.aon-stat-item.border-center {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 0 30px;
}
.aon-stat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.aon-stat-title i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 1.4rem;
}
.aon-stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 5px;
}
.aon-stat-unit {
    color: #888;
    font-size: 1rem;
}
.aon-business-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.aon-service-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.aon-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.aon-service-img-wrapper {
    overflow: hidden;
    height: 250px;
}
.aon-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.aon-service-card:hover .aon-service-img {
    transform: scale(1.05);
}
.aon-service-body {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.aon-service-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.aon-card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}
.aon-service-card:hover .aon-card-icon {
    background-color: #0066cc;
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .aon-business-header, .aon-business-stats, .aon-business-cards {
        grid-template-columns: 1fr;
    }
    .aon-stat-item.border-center {
        border: none;
        padding: 0;
        margin: 30px 0;
    }
}

/* =========================================
   Aonzenrich Customers Layout
   ========================================= */
.aon-customers-wrap {
    font-family: 'Prompt', sans-serif;
    padding: 20px 0 60px;
}
.aon-customer-section {
    margin-bottom: 60px;
}
.aon-customer-category {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.aon-customer-category::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #4CAF50;
    margin: 15px auto 0;
    border-radius: 2px;
}
.aon-customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
}
.aon-customer-item {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.aon-customer-item:hover {
    transform: translateY(-8px) scale(1.02);
}
.aon-customer-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}
.aon-customer-item:hover .aon-customer-circle {
    border-color: #4CAF50;
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.15);
}
.aon-customer-circle img {
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.aon-customer-item:hover .aon-customer-circle img {
    filter: grayscale(0%);
    opacity: 1;
}

