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

body {
    background-color: #BA5D38;
    font-family: 'Inter', sans-serif;
    color: #FDF4E7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAV STYLES --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    width: 100%;
    position: relative;
    z-index: 20;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-bar {
    background: #fff;
    border-radius: 2px;
    height: 3px;
}

.logo-bar.lg {
    width: 16px;
}

.logo-bar.md {
    width: 10px;
    margin-left: 3px;
}

.logo-bar.sm {
    width: 5px;
    margin-left: 5.5px;
}


.nav-menu {
    background-color: #F6E6D4;
    padding: 6px 6px 6px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #38281E;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-link::after {
    content: '▼';
    font-size: 8px;
    opacity: 0.7;
}

.nav-btn {
    text-decoration: none;
    color: #38281E;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #38281E;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #38281E;
    color: #F6E6D4;
}

.nav-btn.nav-cta {
    background-color: transparent;
    color: #38281E;
    border: 1px solid #38281E;
    padding: 5px 5px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.93rem;
    letter-spacing: 0.008em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    min-width: 140px;
    font-weight: 700;
    line-height: 1.0;
    white-space: nowrap;
}

.nav-btn.nav-cta:hover {
    transform: translateY(-1px);
    background-color: #38281E;
    color: #FDF4E7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #FDF4E7;
    background: rgba(253, 244, 231, 0.08);
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FDF4E7;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- HERO STYLES --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    min-height: 130vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    padding: 0 20px;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.subtext {
    font-size: 1.125rem;
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-position-wrapper {
    transform: translateY(225px);
}

.cta-button {
    background-color: #38281E;
    color: #FDF4E7;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-4px);
}

.image-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    max-width: 1200px;
    width: 95%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3));
    opacity: 0.9;
}

.hero-image.mobile {
    display: none;
}

/* --- LOGO MARQUEE STYLES --- */
.logo-section {
    background-color: #FDF4E7;
    color: #38281E;
    padding: 60px 0;
    position: relative;
    z-index: 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-header {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 40px;
    opacity: 0.6;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.track {
    display: inline-flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    font-size: 1.75rem;
    font-family: 'DM Serif Display', serif;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-item.modern {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-section::before,
.logo-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logo-section::before {
    left: 0;
    background: linear-gradient(to right, #FDF4E7, transparent);
}

.logo-section::after {
    right: 0;
    background: linear-gradient(to left, #FDF4E7, transparent);
}

/* --- STRATEGIC SOLUTIONS SECTION (Original Features) --- */
.features-section {
    width: 100%;
    padding: 100px 24px;
    margin: 0 auto;
    background-color: #FDF4E7;
    /* Continuing the Cream theme */
    color: #38281E;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Fade in effect hooks */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.features-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-section .header-container {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
}

.features-section .sub-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #BA5D38;
    /* Rust accent */
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.features-section .main-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #38281E;
    text-shadow: none;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-wrapper {
    margin-bottom: 25px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: rgba(186, 93, 56, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #BA5D38;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #38281E;
    font-weight: 400;
}

.feature-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(56, 40, 30, 0.8);
    max-width: 320px;
}

/* --- INTELLIGENT AUTOMATION SECTION --- */
.automation-section {
    background-color: #bfc2a3;
    /* Sage Green */
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.automation-wrapper {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 8px;
}

/* Top Row (Title + Button) */
.automation-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.automation-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.75rem, 4vw, 4.75rem);
    color: #2A2F23;
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: 60rem;
    text-align: left;
    margin: 0;
    text-shadow: none;
}

.btn-partner {
    white-space: nowrap;
    padding: 12px 32px;
    border-radius: 9999px;
    border: 1px solid #2A2F23;
    color: #2A2F23;
    background: transparent;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-partner:hover {
    background-color: #2A2F23;
    color: #F2EBD9;
}

/* Main Card */
.automation-card {
    background-color: #F2EBD9;
    /* Cream */
    border-radius: 32px;
    /* rounded corners */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Left Column: Image */
.automation-image-col {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.automation-img-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 32px;
    overflow: hidden;
    background-color: #7c2d12;
    /* orange-900 */
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.auto-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.auto-img-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    mix-blend-mode: normal;
}

/* Right Column: Content */
.automation-content-col {
    width: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.automation-content-header {
    margin-top: -8px;
    margin-bottom: 40px;
}

.automation-content-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: #2A2F23;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Accordion */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 16px;
    margin-top: 100px;
}

.accordion-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Dim items when hovering container but not specific item */
.accordion-container:hover .accordion-item:not(:hover):not(.active) {
    opacity: 0.6;
}

.accordion-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.accordion-icon {
    margin-top: 4px;
    color: #2A2F23;
    opacity: 0.5;
    /* Default inactive opacity */
    transition: opacity 0.3s;
}

.accordion-icon i {
    width: 24px;
    height: 24px;
}

.accordion-text-wrapper {
    flex: 1;
    border-bottom: 1px solid rgba(42, 47, 35, 0.1);
    padding-bottom: 24px;
}

.accordion-text-wrapper h3 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2A2F23;
    margin-bottom: 0;
    opacity: 0.6;
    /* Default inactive opacity */
    transition: opacity 0.3s;
    font-family: 'Inter', sans-serif;
    /* Override default Serif h3 from other sections */
}

/* Content Area (Hidden by default) */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
    color: #656555;
    /* Muted */
    font-size: 1.125rem;
    line-height: 1.625;
    margin-top: 12px;
    padding-right: 16px;
}

.accordion-link {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: #C05F30;
    /* Accent */
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.accordion-link:hover {
    text-decoration: underline;
}

.accordion-link i {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

/* Active State Styles */
.accordion-item.active .accordion-content {
    max-height: 300px;
    opacity: 1;
    margin-top: 0.75rem;
}

.accordion-item.active .accordion-icon,
.accordion-item.active h3 {
    opacity: 1;
}

@media (min-width: 768px) {
    .automation-wrapper {
        gap: 40px;
        padding: 0 20px;
    }

    .automation-image-col {
        padding: 32px;
    }

    .automation-content-col {
        padding: 48px;
        gap: 56px;
    }

    .automation-content-header {
        margin-top: -12px;
        margin-bottom: 56px;
    }

    .btn-partner {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .automation-card {
        flex-direction: row;
        min-height: 900px;
    }

    .automation-image-col {
        width: 45%;
        padding: 32px 36px;
    }

    .automation-content-col {
        width: 55%;
        padding: 48px 64px 64px;
    }

    .automation-img-container {
        height: 100%;
    }
}

@media (min-width: 1280px) {
    .automation-card {
        border-radius: 40px;
    }

    .automation-content-col {
        padding: 64px 80px;
        gap: 64px;
    }

    .automation-content-header {
        margin-top: -16px;
        margin-bottom: 64px;
    }

    .accordion-container {
        margin-top: 40px;
    }
}


/* --- SOLUTIONS CAROUSEL SECTION (NEW - Replaces old sectors) --- */
.solutions-wrapper {
    width: 100%;
    background-color: #FDF4E7;
    /* Matches site cream */
    padding: 100px 0 80px;
    font-family: 'Inter', sans-serif;
    color: #38281E;
    overflow: hidden;
}

.solutions-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Carousel Header */
.solutions-wrapper .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding: 0 10px;
}

.solutions-wrapper .section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0;
    color: #38281E;
    line-height: 1.1;
}

.solutions-wrapper .nav-controls {
    display: flex;
    gap: 12px;
}

.solutions-wrapper .nav-controls button {
    background: transparent;
    border: 1px solid rgba(56, 40, 30, 0.2);
    color: #38281E;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solutions-wrapper .nav-controls button:hover {
    color: #FDF4E7;
    background-color: #38281E;
    border-color: #38281E;
}

/* Carousel Track */
.carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
    align-items: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Carousel Card */
.sol-card {
    flex: 0 0 340px;
    /* Mobile width */
    height: 550px;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background-color: #38281E;
    /* Card fallback */
    color: #fff;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .sol-card {
        flex: 0 0 400px;
        /* Desktop width */
        height: 600px;
    }
}

.sol-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(56, 40, 30, 0.15);
}

.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.sol-card:hover .card-image-bg {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Card Content */
.card-tag {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 0.85rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.card-content {
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
    z-index: 2;
}

.card-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 12px 0;
    color: #fff;
}

.card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin: 0;
}


/* --- IMPLEMENTATION METHODOLOGY SECTION --- */
.methodology-section {
    background-color: #e6dabe;
    /* Fallback/Base */
    color: #3e2b1e;
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.methodology-container {
    max-width: 90rem;
    /* ~1440px */
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 160px;
    /* lg:gap-40 */
    align-items: start;
}

.method-left {
    position: relative;
}

.method-sticky-wrapper {
    position: sticky;
    top: 96px;
    /* lg:top-24 */
}

.method-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    /* lg:text-7xl */
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #3e2b1e;
    font-weight: 500;
}

.method-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* gap-8 */
}

.method-card {
    background-color: #f2e5c9;
    /* card-bg */
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(62, 43, 30, 0.1);
}

.method-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(193, 109, 72, 0.15);
    /* icon-bg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.method-icon-box i {
    width: 24px;
    height: 24px;
    color: #c16d48;
    /* icon-orange */
}

.method-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #3e2b1e;
    font-weight: 500;
}

.method-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.625;
    opacity: 0.8;
    color: #3e2b1e;
}


/* --- TESTIMONIAL SECTION --- */
.testimonial-section {
    width: 100%;
    /* Ensure it doesn't collapse on mobile, but takes full viewport on desk */
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    position: relative;
    background-color: #aa5228;
    /* Rust */
    color: #fcf3e6;
    /* Cream Text */
}

.section-label {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fcf3e6;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Quote */
.quote-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.quote-container.active {
    opacity: 1;
    transform: translateY(0);
}

.quote-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fcf3e6;
    text-shadow: none;
    /* Reset H1 shadow */
}

/* Testimonial Footer */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    border-top: 1px solid rgba(252, 243, 230, 0.2);
    padding-top: 30px;
    margin-top: 40px;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo-box {
    width: 60px;
    height: 60px;
    background-color: #fcf3e6;
    color: #aa5228;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fcf3e6;
}

.author-role {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #fcf3e6;
    opacity: 0.7;
}

/* Nav Controls */
.nav-controls {
    display: flex;
    gap: 12px;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 38, 19, 0.15);
    border: 1px solid rgba(252, 243, 230, 0.2);
    color: #fcf3e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-btn:hover {
    background-color: #fcf3e6;
    color: #aa5228;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: #fcf3e6;
    width: 0%;
    transition: width 5s linear;
}

.progress-bar.animate {
    width: 100%;
}

.progress-bar.reset {
    transition: none;
    width: 0%;
}


/* --- FINAL CTA SECTION (DEFAULT DESKTOP STYLES) --- */
.mad-libs-section {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #dcc37e;
    overflow: hidden;
    padding: 40px 32px;
}

.mad-libs-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 780px;
    padding: 0 24px;
    text-align: center;
    margin-top: -10px;
}

.mad-header {
    font-family: 'DM Serif Display', serif;
    color: #38281E;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

/* Desktop Form: Inline Sentence Style */
.mad-form {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    line-height: 1.5;
    color: #38281E;
    display: block;
}

.mad-line {
    display: inline-block;
    margin: 6px 8px;
}

.mad-text {
    display: inline;
    color: #38281E;
}

/* Desktop Inputs: Transparent Pills */
.mad-input {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(56, 40, 30, 0.1);
    border-radius: 50px;
    color: #38281E;
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    padding: 8px 22px;
    min-width: 220px;
    display: inline-block;
    margin: 6px;
    vertical-align: middle;
    transition: all 0.2s;
}

.mad-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(56, 40, 30, 0.1);
}

.mad-input::placeholder {
    color: rgba(56, 40, 30, 0.5);
}

/* Email Icon */
input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300A99D'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 24px;
    padding-right: 50px;
}

.mad-select-wrapper {
    position: relative;
    display: inline-block;
    margin: 6px;
}

/* Desktop Select: Transparent Pill */
.mad-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(56, 40, 30, 0.1);
    border-radius: 50px;
    color: #38281E;
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    padding: 8px 44px 8px 22px;
    cursor: pointer;
    min-width: 210px;
}

.mad-select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: #38281E;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.mad-submit-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.mad-submit-btn {
    background-color: #38281E;
    color: #dcc37e;
    /* Gold Text */
    border: none;
    padding: 18px 64px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 10px 25px rgba(56, 40, 30, 0.15);
}

.mad-submit-btn:hover {
    transform: translateY(-3px);
    background-color: #2a1e16;
}

/* --- IMAGES (Robot & Woman) --- */
.cta-image-left,
.cta-image-right {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.cta-image-left {
    left: 0;
    transform: translateX(-5%);
}

.cta-image-right {
    right: 0;
    transform: translateX(5%);
}


/* --- FOOTER SECTION --- */
.footer {
    background-color: #121212;
    color: #E0E0E0;
    padding: 80px 48px 40px;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 5;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 250px;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.footer-col h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.footer-col h3::after {
    content: '→';
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-col h3:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background-color: #333;
    width: 100%;
    margin-bottom: 24px;
}

.footer-subgroup {
    margin-bottom: 32px;
}

.footer-sub-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

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

.footer-link-item a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-item a:hover {
    color: #fff;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.btn-footer-primary {
    background-color: #BA5D38;
    color: #fff;
    border: none;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-footer-primary:hover {
    background-color: #a04d2c;
}

.btn-footer-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-footer-secondary:hover {
    background-color: #fff;
    color: #121212;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid #333;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.striped-triangle {
    width: 80px;
    height: 60px;
    background: repeating-linear-gradient(to bottom, #FDF4E7 0%, #FDF4E7 20%, transparent 20%, transparent 40%);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.footer-big-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 6rem;
    letter-spacing: -4px;
    color: #FDF4E7;
    text-transform: lowercase;
    line-height: 1;
}

.copyright-row {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 20px;
}


/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */

@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    .subtext {
        font-size: 1rem;
        padding: 0 24px;
    }

    .hero {
        padding-top: 40px;
        min-height: 100vh;
    }

    .button-position-wrapper {
        transform: translateY(160px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-actions {
        grid-column: span 2;
        align-items: center;
        margin-top: 20px;
    }

    .btn-footer-primary,
    .btn-footer-secondary {
        max-width: 400px;
    }

    /* Tablet CTA */
    .cta-image-left,
    .cta-image-right {
        height: 60%;
    }

    .mad-form {
        font-size: 1.8rem;
    }

    /* METHODOLOGY - TABLET & SMALL DESKTOP */
    .methodology-container {
        gap: 60px;
        grid-template-columns: 1fr;
    }

    .method-sticky-wrapper {
        position: static;
        margin-bottom: 40px;
    }

    .method-left h2 {
        font-size: 3.5rem;
        text-align: center;
    }

    /* AUTOMATION SECTION RESPONSIVE */
    .automation-card {
        flex-direction: column;
    }

    .automation-image-col {
        height: auto;
    }

    .automation-img-container {
        height: 350px;
    }

    .automation-content-header h2 {
        font-size: 2.5rem;
    }

    .automation-title {
        font-size: 2.5rem;
    }
}

/* === MOBILE STYLES (Max Width 900px) === */
@media (max-width: 900px) {
    nav {
        padding: 16px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        margin: 0 20px;
        flex-direction: column;
        align-items: stretch;
        background: #F6E6D4;
        z-index: 100;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-btn {
        text-align: center;
    }

    .nav-btn.nav-cta {
        width: 100%;
    }

    .hero {
        padding: 24px 16px 0;
        min-height: 0;
    }

    .hero-content {
        margin-top: 12px;
    }

    h1 {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .subtext {
        font-size: 1rem;
        max-width: 95%;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .button-position-wrapper {
        transform: none;
        margin-bottom: 20px;
    }

    .image-container {
        position: relative;
        height: auto;
        margin-top: -60px;
    }

    .hero-image.desktop {
        display: none;
    }

    .hero-image.mobile {
        display: block;
        max-width: 520px;
        width: 100%;
    }

    /* --- MOBILE STRATEGIC SOLUTIONS --- */
    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .features-section .main-heading {
        font-size: 2.5rem;
    }

    /* --- MOBILE METHODOLOGY --- */
    .methodology-section {
        padding: 40px 20px;
    }

    .methodology-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .method-left h2 {
        font-size: 2.5rem;
        text-align: left;
    }

    .method-card {
        padding: 24px;
    }

    /* --- MOBILE AUTOMATION --- */
    .automation-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .automation-card {
        border-radius: 32px;
    }

    .automation-image-col {
        padding: 20px;
    }

    .automation-content-col {
        padding: 24px;
        gap: 28px;
    }

    .automation-content-header {
        margin-top: 0;
        margin-bottom: 24px;
    }

    .automation-img-container {
        height: 320px;
    }

    .accordion-container {
        margin-top: 12px;
        gap: 24px;
    }

    /* --- MOBILE TESTIMONIAL --- */
    .testimonial-section {
        padding: 30px 20px;
        min-height: 0;
        height: auto;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .nav-controls {
        width: 100%;
        justify-content: flex-end;
    }


    /* --- MOBILE CTA FIX --- */
    .mad-libs-section {
        height: auto;
        min-height: 900px;
        padding: 40px 20px 0 20px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .mad-libs-content {
        padding-bottom: 450px;
        margin-top: 0;
        width: 100%;
        text-align: left;
    }

    .mad-header {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-align: left;
    }

    .mad-form {
        font-size: 1.5rem;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 16px;
        line-height: 1.2;
    }

    .mad-line {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin: 0;
    }

    .mad-text {
        font-family: 'DM Serif Display', serif;
        font-size: 1.6rem;
        margin-bottom: 4px;
        display: block;
    }

    .mad-input,
    .mad-select {
        width: 100%;
        margin: 0;
        display: block;
        font-size: 1.1rem;
        padding: 14px 20px;
        background: #E8DFCA;
        border-radius: 12px;
        border: none;
    }

    .mad-select-wrapper {
        margin: 0;
        width: 100%;
    }

    .mad-submit-container {
        margin-top: 30px;
        justify-content: flex-start;
        width: 100%;
    }

    .mad-submit-btn {
        width: 100%;
    }

    .cta-image-left,
    .cta-image-right {
        height: 35%;
        width: auto;
        bottom: 0;
    }

    .cta-image-left {
        left: -10%;
    }

    .cta-image-right {
        right: -10%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 24px;
    }

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

    .footer-actions {
        grid-column: span 1;
        width: 100%;
    }

    .btn-footer-primary,
    .btn-footer-secondary {
        max-width: 100%;
    }

    .footer-big-text {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .copyright-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}