/* --- 1. CORE THEME VARIABLES & DEFAULTS --- */
:root {
    --brand-green-dark: #1e4620;
    --brand-green-accent: #2a9d8f;
    --brand-green-mid: #81c784;
    --brand-green-light: #e8f5e9;
    --glow-color: rgba(129, 199, 132, 0.5);
    --text-on-dark: #fbfdfb;
    --text-primary: #1a3b1a;
    --text-secondary: #36533c;
    --bg-light: #fbfdfb;
    --border-color: #e0e6e2;
    --animation-duration: 0.6s;
    /* JS-driven variables for interactivity */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* --- ACCESSIBILITY: Skip to Content Link --- */
.skip-to-content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background-color: var(--brand-green-dark);
    color: white;
    padding: 1rem;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
}
.skip-to-content:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
}

/* --- 2. THEME-CONSISTENT COMPONENTS --- */
.btn-primary, .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border-radius: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-size: 1rem;
    color: #fff;
    background-image: linear-gradient(110deg, var(--brand-green-accent) 0%, var(--brand-green-mid) 100%);
    box-shadow: 0 10px 30px -5px rgba(42, 157, 143, 0.4), 0 0 15px var(--glow-color) inset;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background-size: 250% auto;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus,
.cta-btn:hover, .cta-btn:focus {
    background-position: right center;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 45px -8px rgba(42, 157, 143, 0.5), 0 0 20px var(--glow-color) inset;
    outline: 2px solid var(--brand-green-accent);
    outline-offset: 2px;
}

.btn-primary::before, .cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover::before, .btn-primary:focus::before,
.cta-btn:hover::before, .cta-btn:focus::before {
    left: 100%;
}

.btn-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* --- Section Divider --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-green-accent) 0%, var(--brand-green-mid) 50%, var(--brand-green-accent) 100%);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--glow-color);
    border: none;
}

/* --- 3. HERO SECTION --- */
#process-hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    text-align: center;
    perspective: 1200px;
    padding-top: 80px;
    box-sizing: border-box;
    background-color: var(--brand-green-dark);
}

.process-hero-layer {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

#hero-layer-base {
    /* FINAL FIX: Using !important to force the browser to apply these styles */
    background-image: url("/assets/images/process-hero-background.png") !important;
    filter: brightness(0.8) contrast(1.1) !important;
    transform: translateZ(-200px) scale(1.5) translateX(calc(var(--mouse-x, 0.5) * -10px)) translateY(calc(var(--mouse-y, 0.5) * -10px));
}

#hero-layer-grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3Cpattern id='p' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M100 0H0v100' fill='none' stroke='%2381c784' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.1;
    mix-blend-mode: screen;
    transform: translateZ(-50px) scale(1.2) translateX(calc(var(--mouse-x, 0.5) * 20px)) translateY(calc(var(--mouse-y, 0.5) * 20px));
}

#hero-layer-overlay {
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(30, 70, 32, 0.6) 80%);
    z-index: 2;
}

#hero-layer-glow {
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(129, 199, 132, 0.2) 0%, transparent 40%);
    mix-blend-mode: screen;
    z-index: 3;
}

.process-hero-content {
    position: relative;
    z-index: 10;
    max-width: 950px;
    padding: 2rem;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.hero-heading-line {
    display: block;
    overflow: hidden;
}
.hero-heading-line span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s cubic-bezier(0.5, 1, 0.89, 1);
}

.process-hero-heading {
    /* This is the H1 banner headline, size remains unchanged */
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.process-hero-subheading {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: var(--brand-green-light);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out 0.8s, transform 1s ease-out 0.8s;
}

.process-hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0;
    animation: fadeInScroll 2s ease-out 2s forwards;
}
.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}
.scroll-indicator .scroller {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}
@keyframes scroll-anim {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}
@keyframes fadeInScroll {
    to { opacity: 1; }
}

.content-loaded .hero-heading-line:nth-child(1) span { transition-delay: 0.2s; }
.content-loaded .hero-heading-line:nth-child(2) span { transition-delay: 0.4s; }
.content-loaded .hero-heading-line span,
.content-loaded .process-hero-subheading,
.content-loaded .process-hero-cta {
    transform: translateY(0);
    opacity: 1;
}

/* --- 4. INTRODUCTION SECTION --- */
#process-intro-section {
    padding: 6rem 2rem;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.process-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
}

.process-image-panel {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 70, 32, 0.2);
    aspect-ratio: 4 / 5;
}

.process-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-image-panel:hover .process-image {
    transform: scale(1.05);
}

.process-content-panel {
    text-align: left;
}

.process-eyebrow {
    color: var(--brand-green-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.process-heading {
    /* MODIFIED: Standardized font size */
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

.process-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-green-mid) 0%, var(--brand-green-accent) 100%);
    margin: 1rem 0 2rem 0;
    border-radius: 6px;
    box-shadow: 0 0 15px var(--glow-color);
}

.process-hook {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 2.5rem 0;
}

/* --- 5. PROCESS TIMELINE/ACCORDION SECTION --- */
#process-timeline-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.timeline-container-sticky {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.timeline-header-sticky {
    width: 100%;
    order: 1;
}

.timeline-header {
    text-align: left;
    position: relative;
    z-index: 5;
}

.timeline-eyebrow {
    color: var(--brand-green-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.timeline-heading {
    font-family: 'Playfair Display', serif;
    /* MODIFIED: Standardized font size */
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.timeline-accent {
    width: 60px;
    height: 4px;
    margin: 1.5rem 0;
    border-radius: 0;
    background: linear-gradient(90deg, var(--brand-green-mid) 0%, var(--brand-green-accent) 100%);
    box-shadow: 0 0 15px var(--glow-color);
}

.timeline-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.accordion-wrapper {
    max-width: 900px;
    width: 100%;
    order: 2;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-header:hover .accordion-phase-title {
     color: var(--brand-green-accent);
}

.accordion-title-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-phase-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-green-mid);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-phase-number,
.accordion-header:hover .accordion-phase-number {
    color: var(--brand-green-accent);
}

.accordion-phase-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.accordion-indicator {
    width: 24px;
    height: 24px;
    color: var(--brand-green-accent);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-item.active .accordion-indicator {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.accordion-body {
    padding: 0 0.5rem 2rem 0.5rem;
}

.accordion-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 3rem;
}

/* --- 6. ADVANTAGE GRID SECTION --- */
#process-benefits-section {
    padding: 4rem 1rem 6rem 1rem;
    background-color: var(--bg-light);
}

.benefits-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#benefits-heading {
    /* MODIFIED: Standardized font size via Tailwind classes */
    font-size: 2.75rem; /* Base size */
}

.benefit-card {
    background-color: white;
    border-radius: 0;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-header {
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.benefit-card:hover .benefit-header {
    background-color: var(--brand-green-light);
}

.benefit-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background-color: var(--brand-green-light);
    color: var(--brand-green-accent);
    transition: all 0.3s ease;
}

.benefit-card.active .benefit-icon {
    background-color: var(--brand-green-accent);
    color: white;
    transform: scale(1.1);
}

.benefit-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progressive Enhancement: JS Disabled Fallback */
.no-js .benefit-details {
    max-height: 500px; /* Show content if JS is off */
}
.no-js .accordion-content {
    max-height: 500px; /* Show content if JS is off */
}
.no-js .accordion-indicator {
    display: none; /* Hide toggle indicator if JS is off */
}

.benefit-card.active {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: var(--brand-green-mid);
}

.benefit-card.active .benefit-details {
    max-height: 500px;
}

.benefit-arrow {
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card.active .benefit-arrow {
    transform: rotate(90deg);
}

/* --- 7. FINAL CTA SECTION --- */
#process-cta-section {
    padding: 5rem 2rem;
    background:
        linear-gradient(135deg, var(--brand-green-accent) 0%, var(--brand-green-mid) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1' stroke-opacity='0.1'%3E%3Cpath d='M-500 750c0 0 125-30 250-30S0 780 125 780s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 700c0 0 125-30 250-30S0 730 125 730s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 650c0 0 125-30 250-30S0 680 125 680s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 600c0 0 125-30 250-30S0 630 125 630s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 550c0 0 125-30 250-30S0 580 125 580s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 500c0 0 125-30 250-30S0 530 125 530s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 450c0 0 125-30 250-30S0 480 125 480s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 400c0 0 125-30 250-30S0 430 125 430s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 350c0 0 125-30 250-30S0 380 125 380s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 300c0 0 125-30 250-30S0 330 125 330s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 250c0 0 125-30 250-30S0 280 125 280s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 200c0 0 125-30 250-30S0 230 125 230s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 150c0 0 125-30 250-30S0 180 125 180s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 100c0 0 125-30 250-30S0 130 125 130s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 50c0 0 125-30 250-30S0 80 125 80s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3Cpath d='M-500 0c0 0 125-30 250-30S0 30 125 30s250-30 250-30 125-30 250-30 250 30 250 30 125 30 250 30 250-30 250-30 125-30 250-30 250 30 250 30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
}
#process-cta-section::before, #process-cta-section::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.25; z-index: 0;
}
#process-cta-section::before {
    background: radial-gradient(circle, var(--brand-green-mid) 0%, transparent 70%); width: 450px; height: 450px; top: -120px; left: -180px;
}
#process-cta-section::after {
    background: radial-gradient(circle, #ffffff 0%, transparent 70%); width: 350px; height: 350px; bottom: -150px; right: -120px; opacity: 0.15;
}
.cta-container {
    max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.cta-heading {
    /* MODIFIED: Standardized font size */
    font-size: 2.75rem;
    font-weight: 700; color: #fff; margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.cta-hook {
    font-size: 1rem; line-height: 1.7; color: var(--brand-green-light); margin: 0 auto 2.5rem auto; max-width: 600px;
}

/* --- 8. GENERAL ANIMATIONS & RESPONSIVE DESIGN --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .process-hero-subheading { font-size: 1.1rem; }
    .process-content-panel, #process-benefits-section .text-center, .timeline-header { text-align: center; }
    .process-accent, .timeline-accent { margin-left: auto; margin-right: auto; }
    #process-cta-section, #process-timeline-section { padding: 4rem 1.5rem; }
    .cta-heading, .timeline-heading, .process-heading, #benefits-heading { font-size: 2.25rem !important; } /* Simplified responsive headlines */
    .timeline-intro { font-size: 1rem; }
    .accordion-phase-title { font-size: 1.25rem; }
    .accordion-description { padding-left: 0; }
    .accordion-title-block { gap: 1rem; }
    .accordion-header { padding: 1.25rem 0.5rem; }
}

@media (max-width: 767px) {
    #process-hero-section { perspective: none; }
    .process-hero-layer { transform: none !important; }
    #hero-layer-base, #hero-layer-grid { top: 0; left: 0; width: 100%; height: 100%; }
    .process-hero-subheading { font-size: 1rem; }
    .process-hero-cta, .btn-primary, .cta-btn { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    .scroll-indicator { display: none; }

    #process-intro-section { padding: 4rem 1.5rem; }
    .process-hook { font-size: 1rem; }

    #process-benefits-section { padding: 3rem 1rem; }
}

@media (min-width: 992px) {
    .process-intro-container {
        grid-template-columns: 5fr 7fr;
        gap: 5rem;
    }
    .timeline-container-sticky {
        grid-template-columns: 2fr 3fr;
        gap: 5rem;
    }
    .timeline-header-sticky {
        position: sticky;
        top: 8rem;
        height: fit-content;
        align-self: start;
    }
}

/* --- 9. ACCESSIBILITY: REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    #hero-layer-base, #hero-layer-grid, #hero-layer-glow,
    .hero-heading-line span,
    .process-hero-subheading,
    .process-hero-cta,
    .process-hero-cta::before,
    .scroll-indicator .scroller,
    .process-image, .fade-in-up, .btn-primary, .cta-btn,
    .benefit-card, .benefit-header, .benefit-icon, .benefit-details, .benefit-arrow,
    .accordion-indicator, .accordion-content {
        transition: none !important;
        animation: none !important;
    }
}
