/* --- CSS Reset & Custom Properties --- */
/* --- Hero Layout Container --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--color-dark);
}

.hero-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 80px 120px 80px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

/* --- Top Tags Row --- */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--color-white);
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease;
}

.pill-tag:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
}

/* --- Middle Content Split Block --- */
.middle-content-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 40px;
}

/* Headline Layout Rules */
.headline-container {
    flex-grow: 1;
}

.main-headline {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.serif-italic {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 400;
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.sans-bold {
    font-family: var(--font-family);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
    font-size: clamp(4rem, 8vw, 7.5rem);
    letter-spacing: -0.03em;
}

/* CTA Layout & Button Styling */
.cta-container {
    padding-bottom: 20px;
    flex-shrink: 0;
}

.cta-button {
    background-color: var(--color-primary);
    color: var(--color-dark);
    padding: 16px 36px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-4px);
    background-color: #dfbf87;
    box-shadow: 0 8px 30px rgba(205, 174, 119, 0.25);
}

.arrow-icon {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* --- Bottom Trust Bar --- */
.trust-bar {
    width: 100%;
    background-color: var(--color-light-gray);
    color: var(--color-dark);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.trust-text-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-family);
}

.trust-sub {
    font-size: 14px;
    color: rgba(23, 28, 62, 0.7);
}

.trust-main {
    font-size: 16px;
    font-weight: 700;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 28px;
}

/* --- Logo Item & Caption Architecture --- */
.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 160px; /* Keeps text wrapped beautifully underneath the logo on desktop */
}

.logo-caption {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    color: rgba(23, 28, 62, 0.6); /* Subtle deep navy text color */
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-transform: uppercase;
}

.partner-logo {
    height: 64px;
    width: auto;
    max-width: 130px;
    fill: var(--color-dark);
    color: var(--color-dark);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* --- Entry Micro-Animations --- */
.entry-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.entry-animate.reveal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--delay) * 0.15s);
}

/* --- Responsive Adaptations (Breakpoints) --- */
@media (max-width: 1120px) {
    .hero-container { padding: 40px 40px 100px 40px; }
    .trust-bar { padding: 24px 40px; }
    .logo-row { gap: 32px; }
}

@media (max-width: 992px) {
    .middle-content-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .cta-container {
        padding-bottom: 0;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .logo-row {
        justify-content: flex-start;
        width: 100%;
        gap: 24px;
    }
    
    .partner-logo {
        height: auto;
    }
}

@media (max-width: 576px) {
    .hero-container { 
        padding: 30px 20px 80px 20px; 
        gap: 40px; 
    }
    
    .trust-bar { 
        padding: 40px 20px; 
        align-items: center;    
        text-align: center;     
    }
    
    .logo-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 1 logo block per line */
        gap: 16px;                 /* Extra breathing room between grouped items */
        justify-items: center;      
        width: 100%;
    }

    .logo-item {
        max-width: 100%;           /* Allows the text to utilize mobile screen width naturally */
        width: 100%;
        gap: 18px;
    }
    
    .partner-logo {
        width: 40%;               /* Forces the logo image to span 100% width of container */
        max-width: 40%;     
        height: auto;              /* Protects aspect ratio */
    }

    .logo-caption {
        font-size: 16px;           /* Slightly optimized readability on mobile dynamic screens */
        padding: 0 10px;
    }
}

/* --- Section Layout --- */
.core-values-section {
    background-color: var(--color-light-gray);
    padding: 100px 0;
    width: 100%;
}

.values-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* --- Header Typography --- */
.values-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.eyebrow {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.main-heading {
    color: var(--color-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* --- Grid Architecture --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* --- NEW: Media-Rich Card Component --- */
.value-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures the image respects the border radius */
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal), 
                border-color var(--transition-fast),
                opacity var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(17, 24, 39, 0.25);
    border-color: var(--color-primary);
}

/* Image Container */
.card-media {
    position: relative;
    width: 100%;
    height: 200px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlapping Icon Badge */
.icon-badge {
    position: absolute;
    bottom: -24px; /* Pulls the badge down halfway out of the image */
    left: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white); /* White icon on gold background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.icon-badge svg {
    width: 24px;
    height: 24px;
}

/* Text Content Container */
.card-content {
    padding: 40px 24px 24px 24px; /* Extra top padding to clear the floating badge */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the "Learn More" link to the bottom if content heights vary */
}

/* Typography Inside Card */
.card-title {
    color: var(--color-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-description {
    color: var(--color-gray);
    font-size: 14px;
    line-height: var(--line-height-base);
    font-weight: 400;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Learn More Link */
.card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: var(--color-primary-dark);
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* --- JS Staggered Scroll Animation Hooks --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .core-values-section {
        padding: 60px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-media {
        height: 180px;
    }
}

/* --- Why Choose Us --- */
:root {
    --card-muted: #f0f2f5;
}

.why-choose-us-section {
    padding: 100px 0;
    width: 100%;
}

.why-choose-us-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* --- Top Header --- */
.why-choose-us-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.why-choose-us-section .section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.why-choose-us-section .section-header p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.why-choose-us-section .section-header p strong {
    color: var(--color-primary);
}

/* --- The 4x2 Checkerboard Grid --- */
.why-choose-us-section .feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.why-choose-us-section .grid-cell {
    border-radius: 24px;
    overflow: hidden;
    height: 380px; /* Uniform height for grid cells */
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.1);
}

/* Image Cell Modifiers */
.why-choose-us-section .image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-choose-us-section .image-cell:hover img {
    transform: scale(1.05);
}

/* Text Cell Modifiers */
.why-choose-us-section .text-cell {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-choose-us-section .text-cell h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.why-choose-us-section .text-cell p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

.why-choose-us-section .card-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    width: fit-content;
}

.why-choose-us-section .card-link .arrow {
    transition: transform 0.3s ease;
}

/* Text Cell Theme Variants */
.why-choose-us-section .theme-light {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.why-choose-us-section .theme-muted {
    background-color: var(--card-muted);
    color: var(--color-dark);
}

.why-choose-us-section .theme-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    border: 1px solid rgba(205, 174, 119, 0.3);
}

/* NEW: Muted Slate Blue Variant */
.why-choose-us-section .theme-slate {
    background-color: var(--color-slate);
    color: var(--color-white);
}

.why-choose-us-section .theme-dark h3, .why-choose-us-section .theme-slate h3 {
    color: var(--color-white);
}

/* --- Bottom Split Mission Layout --- */
.why-choose-us-section .mission-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    padding-top: 40px;
    border-top: 1px solid rgba(229, 231, 235, 0.15);
}

.why-choose-us-section .badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.why-choose-us-section .mission-left h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

.why-choose-us-section .mission-right p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 24px;
}

/* --- Initial Animation States --- */
.why-choose-us-section .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-choose-us-section .reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .why-choose-us-section .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-us-section .mission-section {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .why-choose-us-section .mission-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .why-choose-us-section {
        padding: 60px 0;
    }
    
    .why-choose-us-section .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-us-section .grid-cell {
        height: auto;
        min-height: 300px;
    }
}