/* --- 1. GLOBAL RESETS & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ebf0f6;
    /* Global soft blue/grey tint */
    color: #333333;
    padding: 24px;
    min-height: 100vh;
}

/* --- 2. REUSABLE UI COMPONENTS --- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #611535;
    border-radius: 50%;
}

.consultation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #611535;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.consultation-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consultation-btn:hover .arrow-circle {
    transform: translate(2px, -2px);
}

/* --- 3. HERO & NAVIGATION --- */
.page-hero {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 24px;
    background: url('images/testimonial-bg.avif') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 80px;
}

.main-header {
    width: 100%;
    max-width: 1400px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.logo-img {
    height: 100px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3b71ca;
    text-decoration: underline;
}

.header-contact-btn {
    text-decoration: none;
    background-color: #3b71ca;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.header-contact-btn:hover {
    background-color: #2b579a;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 1;
}

.page-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    margin: auto 0;
}

/* --- 4. TESTIMONIALS CAROUSEL --- */
.testimonials-slider-section {
    width: 100%;
    margin-bottom: 100px;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 48px;
}

.section-header-centered .section-badge {
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #1e3a8a;
    /* Deep navy blue matching screenshot */
    font-weight: 400;
}

.section-title .italic-text {
    font-style: italic;
    font-weight: 300;
}

/* Container restricts overflow and allows infinite panning */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
    /* Space for box shadow */
}

/* The track holds both identical groups and moves them */
.carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    /* 35 seconds for a smooth, slow pan. Adjust as needed. */
    animation: scrollCarousel 35s linear infinite;
}

/* Pause animation when user hovers */
.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-group {
    display: flex;
    gap: 24px;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    /* Shifts exact width of ONE group (50% of track) plus ONE gap space */
    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

/* Individual Card Styling */
.testimonial-card {
    width: 320px;
    height: 480px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevents cards from squishing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Protects heads from being chopped! */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Dark Frosted Glass Text Overlay */
.client-quote-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(45, 55, 72, 0.7);
    /* Deep dark blue-grey translucent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-quote-box p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
}

/* --- 5. FINAL CTA SECTION --- */
.final-cta-section {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 60px auto;
    min-height: 550px;
    border-radius: 24px;
    overflow: hidden;
    background: url('images/testimonials-footer-bg.avif') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.3);
    z-index: 1;
}

.cta-glass-card {
    position: relative;
    z-index: 2;
    max-width: 480px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.cta-glass-card h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: #ffffff;
    line-height: 1.1;
    font-weight: 500;
}

.cta-glass-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* --- 6. FOOTER SECTION --- */
.site-footer {
    background-color: #ffffff;
    padding: 80px 40px 40px 40px;
    color: #475569;
    margin: 0 -24px -24px -24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.5fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 24px;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-size: 1.8rem;
    color: #6384f5;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.contact-email,
.location-block a {
    text-decoration: none;
    color: #475569;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.contact-email:hover,
.location-block a:hover {
    color: #6384f5;
}

.location-block {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0 auto;
    text-align: right;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- 7. MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .final-cta-section {
        padding: 40px 20px;
    }

    .cta-glass-card {
        max-width: 100%;
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .site-footer {
        margin: 0 -12px -12px -12px;
        padding: 60px 20px 20px 20px;
    }

    .page-hero {
        height: 550px;
        padding: 16px;
        margin-bottom: 40px;
    }

    .main-header {
        padding: 16px 20px;
    }

    /* Slightly shrinks carousel cards for mobile so you can see more than 1 at a time */
    .testimonial-card {
        width: 280px;
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        text-align: left;
    }
}

.contact-btn {
    text-decoration: none;
    background-color: #3b71ca; /* Matches the clean corporate blue layout */
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.contact-btn:hover {
    background-color: #2b579a;
    transform: translateY(-1px);
}


/* --- Desktop Defaults (Hide Mobile Elements) --- */
.mobile-menu-toggle {
    display: none;
}
.mobile-only-btn {
    display: none;
}

/* --- Mobile & Tablet Breakpoint (992px and below) --- */
@media (max-width: 992px) {
    /* 1. Hide Desktop Elements */
    .desktop-only-btn {
        display: none;
    }

    /* 2. Style the Header for Mobile Layout */
    .main-header {
        position: relative; /* Crucial so the absolute menu positions relative to this header */
        padding: 16px 24px;
    }

    /* 3. The 2-Line Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 14px; /* Controls the gap between the two lines */
        width: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 50; /* Keeps the button above the dropdown menu */
    }

    .hamburger-line {
        width: 100%;
        height: 2px;
        background-color: #1e293b;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 2px;
    }

    /* 4. The Hidden Dropdown Menu Container */
    .nav-menu {
        position: absolute;
        top: 100%; /* Drops it immediately below the white header box */
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 32px 24px;
        border-radius: 0 0 20px 20px; /* Rounds the bottom corners */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        
        /* Animation properties (Hidden by default) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 40;
    }

    /* Show the mobile contact button inside the menu */
    .mobile-only-btn {
        display: inline-block;
        margin-top: 16px;
        width: 100%;
        text-align: center;
    }

    /* --- ACTIVE STATES (Triggered via JavaScript) --- */
    
    /* Reveal the menu */
    .nav-menu.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Animate the 2-line icon into an 'X' */
    .mobile-menu-toggle.is-active .top-line {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-menu-toggle.is-active .bottom-line {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-header.is-active {
        border-radius: 20px 20px 0 0;
    }
}

.client-quote-box p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
    font-style: italic; 
    margin-bottom: 12px; /* Pushes the name down cleanly */
}

/* Styles for the Client's Name */
.client-name {
    color: #6384f5; /* Premium blue accent */
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}