/* ============================================
   INDEX.CSS — Index page specific layouts
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    background-color: rgb(214, 221, 215);
    overflow: hidden;
    isolation: isolate;
}

.hero-section-stage {
    position: relative;
    width: 100%;
    min-height: 500px;
    transition: height 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.hero-section-slide {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(214, 221, 215);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    min-height: 500px;
    width: 100%;
    width: -webkit-fill-available;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.9s;
    pointer-events: none;
    will-change: opacity;
}

.hero-section-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 2;
}

.hero-section-image {
    flex: 1 1 50%;
    min-width: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.hero-section-content {
    flex: 0 0 40%;
    min-width: 320px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    background: var(--hero-panel-bg, #f5f0e8);
    color: var(--hero-text-color, #2a2a26);
    position: relative;
    z-index: 1;
}

.hero-section-filler {
    flex: 0 0 56px;
    background: var(--hero-filler-bg, #c1634b);
    position: relative;
    overflow: hidden;
}

/* ---- Hero themes ---- */
.hero-section-slide[data-theme="cream"] {
    --hero-panel-bg: white;
    --hero-filler-bg: #15243c;
    --hero-text-color: #040404;
    --hero-accent: #4ba9c1;
}
.hero-section-slide[data-theme="forest"] {
    --hero-panel-bg: white;
    --hero-filler-bg: #0071fb;
    --hero-text-color: #171207;
    --hero-accent: #100f0f;
}
.hero-section-slide[data-theme="sand"] {
    --hero-panel-bg: white;
    --hero-filler-bg: #c9c200;
    --hero-text-color: #050505;
    --hero-accent: #b8c104;
}

/* ---- Hero typography ---- */
.hero-section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hero-accent, #c1634b);
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

.hero-section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.hero-section-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    font-variation-settings: "opsz" 80;
}

.hero-section-subheading {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.65;
    margin: 0 0 22px;
    font-family: 'Poppins', sans-serif;
}

.hero-section-text {
    font-size: 18px;
    line-height: 1.65;
    margin: 0 0 32px;
    opacity: 0.78;
    max-width: 38ch;
    font-family: 'Poppins', sans-serif;
}

.hero-section-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--hero-text-color, #2a2a26);
    background: transparent;
    border: 1px solid currentColor;
    border-radius: var(--radius-full, 999px);
    transition: background .35s ease, color .35s ease;
}

.hero-section-link svg {
    width: 14px; height: 14px;
    transition: transform .35s ease;
}

.hero-section-link:hover {
    background: var(--hero-text-color, #2a2a26);
    color: var(--hero-panel-bg, #f5f0e8);
}

.hero-section-link:hover svg { transform: translateX(4px); }

.hero-section-link:focus-visible {
    outline: 2px solid var(--hero-accent);
    outline-offset: 3px;
}

/* ---- Hero indicators ---- */
.hero-section-indicators {
    position: absolute;
    bottom: 22px;
    left: 10%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.226);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    z-index: 10;
}

.hero-section-indicator {
    position: relative;
    width: 35px; height: 15px;
    padding: 0; margin: 0; border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hero-section-indicator::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(42,42,38,0.18);
    border-radius: 999px;
    transition: background .3s ease;
}

.hero-section-indicator:hover::before { background: rgba(42,42,38,0.34); }

.hero-section-indicator:focus-visible {
    outline: 2px solid #2a2a26;
    outline-offset: 3px;
    border-radius: 999px;
}

.hero-section-indicator::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 4px;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    background: #2a2a26;
    border-radius: 999px;
}

.hero-section-indicator.is-active::after {
    animation: hero-progress 10s linear forwards;
}

@keyframes hero-progress { to { transform: translateY(-50%) scaleX(1); } }

.hero-section.is-paused .hero-section-indicator.is-active::after {
    animation-play-state: paused;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-us-section { border-top: 1px solid var(--border-light); }

.about-us-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: stretch;
}

/* Image side — position the badge */
.about-us-image-wrapper { min-height: 0; }

.about-us-image-wrapper .image-badge {
    bottom: -25px;
    right: -25px;
}

/* Content side */
.about-us-content {
    text-align: left;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-us-content .section-heading {
    margin-bottom: 24px;
}

/* Feature cards flex grid */
.about-us-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}

.about-us-features-grid .card {
    flex: 1 200px;
}

.about-us-content .btn {
    align-self: flex-start;
    margin-top: 10px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section { border-top: none; }

/* Tabs */
.services-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    background: var(--gray-light);
    padding: 8px;
    border-radius: var(--radius-md);
    max-width: fit-content;
    margin: 0 0 40px;
    border: 1px solid var(--border-light);
    flex-direction: row;
    align-items: center;
}

.services-tab-btn {
    text-align: left;
    padding: 12px 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-base);
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
}

.services-tab-btn i { font-size: 1.1rem; }
.services-tab-btn:hover { color: var(--navy); }

.services-tab-btn.active {
    background: var(--navy);
    color: var(--white);
}

.services-tab-btn.active i { color: var(--gold); }

/* Panels */
.services-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.services-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.panel-header {
    margin-bottom: 35px;
    max-width: 800px;
}

.panel-header h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.panel-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Mini cards grid */
.mini-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

/* Panel footer */
.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 24px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-choose-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 4px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out);
    z-index: 2;
}

.why-choose-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(10, 25, 47, 0.12);
}

.why-choose-card:hover::before { width: 100%; }

.why-choose-card-index {
    position: absolute;
    top: 14px; right: 22px;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--navy);
    opacity: 0.05;
    line-height: 1;
    z-index: 0;
    transition: opacity 0.35s ease, color 0.35s ease;
}

.why-choose-card:hover .why-choose-card-index {
    opacity: 0.12;
    color: var(--gold);
}

.why-choose-card-body {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.why-choose-card-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: var(--navy);
    color: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.35s var(--ease-out);
}

.why-choose-card:hover .why-choose-card-icon {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(-6deg) scale(1.05);
}

.why-choose-card-text {
    flex: 1;
    min-width: 0;
}

.why-choose-card-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    transition: color 0.35s ease;
}

.why-choose-card:hover .why-choose-card-text h3 { color: var(--navy-light); }

.why-choose-card-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   CTA BANNER SECTION
   ============================================ */
.cta-banner-section {
    padding: 100px 20px;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.08) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-banner-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.cta-banner-heading {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}

.cta-banner-text {
    font-size: 1.15rem;
    color: var(--gray-text);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.cta-banner-btn {
    box-shadow: 0 4px 20px rgba(255, 208, 0, 0.25);
}

.cta-banner-btn:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-banner-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.cta-banner-btn:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: stretch;
}

/* ---- Accordion ---- */
.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--gray-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
}

.faq-item:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 20px -8px rgba(10, 25, 47, 0.08);
}

.faq-item.is-open {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 10px 30px -12px rgba(10, 25, 47, 0.12);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.3s ease;
}

.faq-question:hover { color: var(--gold-hover); }

.faq-question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.4s var(--ease-out);
}

.faq-item.is-open .faq-icon {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer-inner {
    padding: 0 24px 22px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer-inner p { margin: 0; }

/* ---- Help CTA ---- */
.faq-help-cta {
    margin-top: 16px;
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.faq-help-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--gold);
}

.faq-help-icon {
    width: 44px; height: 44px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-help-text { flex: 1; min-width: 160px; }

.faq-help-text strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.faq-help-text span {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* ---- FAQ Image side ---- */
.faq-image-wrapper .image-badge {
    bottom: -22px;
    left: -22px;
}

.faq-image-wrapper .floating-card {
    top: 24px;
    right: -18px;
}

/* ============================================
   RESPONSIVE — Index specific
   ============================================ */

/* ---- Hero responsive ---- */
@media (max-width: 820px) {
    .hero-section-indicators {
        left: 100px;
        transform: translateX(-50%);
    }
    .hero-section-stage { min-height: 520px; }
    .hero-section-slide {
        min-height: 520px;
        flex-direction: column;
    }
    .hero-section-image {
        flex: 0 0 42%;
        min-width: 0;
        min-height: 220px;
    }
    .hero-section-content {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        padding: 36px 28px 90px;
    }
    .hero-section-filler {
        flex: 0 0 14px;
        width: 100%;
        display: none;
    }
    .hero-section-filler::before { display: none; }
    .hero-section-indicators { bottom: 25px; }

    .services-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .hero-section-content { padding: 28px 22px 80px; }
    .hero-section-heading { font-size: 26px; }
    .hero-section-text { font-size: 14px; }
    .hero-section-indicator { width: 36px; }
    .site-nav { display: none; }
}

/* ---- About Us responsive ---- */
@media (max-width: 1000px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-us-image-wrapper {
        max-width: 100%;
        height: 400px;
    }
    .about-us-features-grid .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .about-us-section { padding: 60px 15px; }
    .about-us-image-wrapper .image-badge {
        right: 0;
        bottom: -20px;
        padding: 12px 18px;
    }
}

/* ---- Services responsive ---- */
@media (max-width: 900px) {
    .services-section { padding: 60px 15px; }
    .services-panel { padding: 30px 20px; }

    .mini-cards-grid { grid-template-columns: 1fr; }

    .panel-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .benefits-grid { grid-template-columns: 1fr; }

    .panel-footer .btn {
        text-align: center;
        width: 100%;
    }

    .panel-header h2 { font-size: 1.6rem; }
}

/* ---- Why Choose responsive ---- */
@media (max-width: 900px) {
    .why-choose-section { padding: 60px 15px; }
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .why-choose-card { padding: 24px; }
    .why-choose-card-icon {
        width: 48px; height: 48px;
        font-size: 1.1rem;
    }
    .why-choose-card-index { font-size: 2.6rem; }
}

@media (max-width: 480px) {
    .why-choose-card-body { gap: 16px; }
    .why-choose-card-text h3 { font-size: 1.05rem; }
}

/* ---- CTA Banner responsive ---- */
@media (max-width: 768px) {
    .cta-banner-section { padding: 70px 20px; }
    .cta-banner-text { font-size: 1rem; }
    .cta-banner-btn {
        width: 100%;
        max-width: 350px;
    }
}

/* ---- FAQ responsive ---- */
@media (max-width: 1000px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .faq-image-wrapper { height: 420px; }
}

@media (max-width: 768px) {
    .faq-section { padding: 60px 15px; }
    .faq-help-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .faq-help-cta .btn { justify-content: center; }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 18px 18px;
        font-size: 0.92rem;
    }
    .faq-answer-inner {
        padding: 0 18px 18px 18px;
        font-size: 0.88rem;
    }
    .faq-image-wrapper .image-badge {
        left: 0;
        bottom: -18px;
        padding: 12px 16px;
    }
    .faq-image-wrapper .floating-card {
        right: 0;
        top: 16px;
        padding: 10px 14px;
    }
    .floating-card strong { font-size: 0.78rem; }
    .floating-card span  { font-size: 0.68rem; }
}

/* ============================================
   REDUCED MOTION — Index specific
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-section-stage,
    .hero-section-slide,
    .hero-section-slide.is-active { transition-duration: 0.001s; }

    .hero-section-indicator.is-active::after {
        animation: none;
        transform: translateY(-50%) scaleX(1);
    }

    .why-choose-card,
    .why-choose-card::before,
    .why-choose-card-icon,
    .why-choose-card-index {
        transition-duration: 0.001s;
    }
    .why-choose-card:hover { transform: none; }
    .why-choose-card:hover .why-choose-card-icon { transform: none; }

    .cta-banner-btn,
    .cta-banner-btn i { transition-duration: 0.001s; }
    .cta-banner-btn:hover { transform: none; }

    .faq-item,
    .faq-icon,
    .faq-answer {
        transition-duration: 0.001s;
    }
}