/* ========================================
   PERGONIA DIGITAL — HOME PAGE STYLES
   Loaded exclusively on index.html.
   Aesthetic: dark · cinematic · linear · premium
   ======================================== */

/* ---- Home-scoped colour tokens ---- */
:root {
    --h-bg:           #0F0F0F;     /* off-black page base              */
    --h-surface:      #161616;     /* slightly lifted surfaces          */
    --h-border:       rgba(255, 255, 255, 0.07);
    --h-border-hover: rgba(230, 58, 115, 0.45);
    --h-text-primary: #F5F5F5;
    --h-text-muted:   rgba(245, 245, 245, 0.52);
    --h-text-dim:     rgba(245, 245, 245, 0.28);
    --h-pink:         #E63A73;
    --h-pink-hover:   #f24a83;

    --h-ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --h-ease-fast:    cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-page {
    background-color: var(--h-bg);
    margin: 0;
}

/* ========================================
   NAVIGATION
   ======================================== */

.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition:
        background 300ms ease,
        backdrop-filter 300ms ease,
        border-color 300ms ease;
    border-bottom: 1px solid transparent;
}

.home-nav.scrolled {
    background: rgba(15, 15, 15, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--h-border);
}

.home-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-nav-wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--h-text-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Nav links */
.home-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.home-nav-link {
    color: var(--h-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 180ms ease;
    position: relative;
}

.home-nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--h-pink);
    transition: width 220ms var(--h-ease);
}

.home-nav-link:hover {
    color: var(--h-text-primary);
}

.home-nav-link:hover::after {
    width: 100%;
}

/* CTA — hidden until past hero */
.home-nav-cta {
    background-color: var(--h-pink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition:
        background-color 180ms ease,
        transform 150ms ease,
        opacity 250ms ease,
        visibility 250ms ease;
    border: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
}

#home-nav.hero-past .home-nav-cta {
    opacity: 1;
    visibility: visible;
}

.home-nav-cta:hover {
    background-color: var(--h-pink-hover);
    transform: translateY(-1px);
}

/* Hamburger button — hidden on desktop */
.home-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    z-index: 10001;
}

.home-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #f5f5f5;
    border-radius: 1px;
    transition: transform 220ms ease, opacity 180ms ease;
    transform-origin: center;
}

.home-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.home-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.home-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* CTA inside the mobile drawer */
.home-nav-drawer-cta {
    display: none;
    background-color: var(--h-pink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: -0.01em;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .home-hamburger {
        display: flex;
        position: relative;
    }

    /* Hide desktop nav links and CTA by default */
    .home-nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        z-index: 10000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .home-nav-links.is-open {
        display: flex;
    }

    .home-nav-link {
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.025em;
        color: #f5f5f5;
    }

    .home-nav-drawer-cta {
        display: inline-flex;
    }

    .home-nav-cta {
        display: none;
    }

    /* Keep hamburger on top of the open drawer */
    .home-hamburger {
        position: fixed;
        top: 14px;
        right: 16px;
    }

    body.home-menu-open {
        overflow: hidden;
    }
}

/* ========================================
   HERO  (full-viewport, video-backed)
   ======================================== */

.home-hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Multi-layer overlay: solid base + left-anchor + top-left corner darkening */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.68) 45%, rgba(10, 10, 10, 0.28) 75%, rgba(10, 10, 10, 0.14) 100%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.10) 50%, rgba(10, 10, 10, 0.20) 100%),
        rgba(10, 10, 10, 0.28);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 88px;
}

.home-hero-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--h-pink);
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1;
}

.home-hero-headline {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--h-text-primary);
    line-height: 1.08;
    max-width: 660px;
    margin: 0 0 20px;
}

.home-hero-sub {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.68;
    color: rgba(245, 245, 245, 0.80);
    max-width: 480px;
    margin: 0 0 32px;
    letter-spacing: -0.005em;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--h-pink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background-color 180ms ease, transform 150ms ease;
    margin-bottom: 18px;
}

.home-hero-cta:hover {
    background-color: var(--h-pink-hover);
    transform: translateY(-2px);
}

.home-hero-trust {
    font-size: 12px;
    color: var(--h-text-dim);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Scroll indicator */
.home-hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    opacity: 0;
    animation: hero-scroll-in 0.5s ease 1.6s forwards;
}

@keyframes hero-scroll-in {
    to { opacity: 1; }
}

.home-hero-scroll-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(245, 245, 245, 0.32);
    text-transform: uppercase;
}

.home-hero-scroll-chevron {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.26);
    animation: chevron-drift 2.2s ease-in-out infinite;
}

@keyframes chevron-drift {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* ========================================
   SHARED SECTION LABELS
   ======================================== */

.home-section-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--h-pink);
    text-transform: uppercase;
    margin: 0 0 18px;
    line-height: 1;
}

.home-section-headline {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--h-text-primary);
    line-height: 1.12;
    margin: 0 0 48px;
}

/* ========================================
   THE PROBLEM  (2-col: text + image)
   ======================================== */

.home-problem {
    background-color: var(--h-bg);
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: 580px;
    overflow: hidden;
}

.home-problem-text {
    padding: 104px 64px 104px max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.home-problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-problem-list li {
    font-size: 15px;
    color: rgba(245, 245, 245, 0.80);
    line-height: 1.65;
    padding: 20px 0 20px 22px;
    border-left: 1.5px solid var(--h-pink);
    border-bottom: 1px solid var(--h-border);
    letter-spacing: -0.005em;
}

.home-problem-list li:last-child {
    border-bottom: none;
}

.home-problem-image {
    position: relative;
    overflow: hidden;
}

.home-problem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-problem-image-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.65) 0%, transparent 45%);
    pointer-events: none;
}

/* ========================================
   WHY PERGONIA — PILLARS  (5-col grid)
   ======================================== */

.home-pillars {
    background-color: var(--h-surface);
    padding: 104px 0;
    border-top: 1px solid var(--h-border);
    border-bottom: 1px solid var(--h-border);
}

.home-pillars-header {
    text-align: center;
    margin-bottom: 60px;
}

.home-pillars-header .home-section-label {
    justify-content: center;
}

.home-pillars-header .home-section-headline {
    margin: 0 auto;
    max-width: 540px;
}

.home-pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    border: 1px solid var(--h-border);
    border-radius: 4px;
    overflow: hidden;
}

.home-pillar-card {
    background: var(--h-bg);
    padding: 32px 24px;
    transition: background 220ms ease;
    position: relative;
}

.home-pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--h-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms var(--h-ease);
}

.home-pillar-card:hover {
    background: rgba(230, 58, 115, 0.04);
}

.home-pillar-card:hover::after {
    transform: scaleX(1);
}

.home-pillar-icon {
    color: var(--h-pink);
    opacity: 0.75;
    margin-bottom: 18px;
    display: block;
    line-height: 1;
}

.home-pillar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--h-text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.home-pillar-copy {
    font-size: 13px;
    color: var(--h-text-muted);
    line-height: 1.65;
    margin: 0;
    letter-spacing: -0.005em;
}

/* ========================================
   WHO THIS IS FOR
   ======================================== */

.home-audience {
    background-color: var(--h-bg);
    padding: 104px 0;
    border-bottom: 1px solid var(--h-border);
}

.home-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--h-border);
    border-radius: 4px;
    overflow: hidden;
}

.home-audience-card {
    background: var(--h-bg);
    padding: 36px 30px;
    transition: background 220ms ease;
    position: relative;
}

.home-audience-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: var(--h-border);
    display: none;
}

.home-audience-card:hover {
    background: rgba(230, 58, 115, 0.03);
}

.home-audience-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--h-text-primary);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.home-audience-copy {
    font-size: 14px;
    color: var(--h-text-muted);
    line-height: 1.72;
    margin: 0;
    letter-spacing: -0.005em;
}

/* ========================================
   SERVICES  (2x2 image cards + management)
   ======================================== */

.home-services {
    background-color: var(--h-surface);
    padding: 104px 0;
    border-top: 1px solid var(--h-border);
}

.home-services .home-section-headline {
    margin-bottom: 44px;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 1px;
    border: 1px solid var(--h-border);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

/* Image card base */
.home-service-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    min-height: 260px;
    transition: none;
}

.home-service-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 550ms var(--h-ease);
}

.home-service-card:hover .home-service-card-bg {
    transform: scale(1.04);
}

.home-service-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10, 10, 10, 0.90) 0%, rgba(10, 10, 10, 0.50) 50%, rgba(10, 10, 10, 0.18) 100%);
    transition: background 300ms ease;
}

.home-service-card:hover .home-service-card-overlay {
    background:
        linear-gradient(to top, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.22) 100%);
}

.home-service-card-body {
    position: relative;
    z-index: 1;
    flex: 1;
}

.home-service-card-body--over {
    padding: 28px 28px 0;
}

.home-service-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.home-service-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--h-text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.home-service-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--h-pink);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.home-service-desc {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.65);
    line-height: 1.65;
    margin: 0;
    letter-spacing: -0.005em;
}

.home-service-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--h-pink);
    text-decoration: none;
    letter-spacing: 0.015em;
    padding: 14px 28px 22px;
    transition: opacity 200ms ease;
}

.home-service-link:hover {
    opacity: 0.7;
}

/* Management plan card — full-width beneath the grid */
.home-management-card {
    border: 1px solid var(--h-border-hover);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 48px;
    background: rgba(230, 58, 115, 0.025);
}

.home-management-main {
    flex: 1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.home-management-desc {
    flex: 1;
    min-width: 200px;
    margin-top: 2px;
}

.home-management-tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.home-management-tier {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    border: 1px solid var(--h-border);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.home-management-tier-name {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.65);
    font-weight: 400;
    letter-spacing: -0.005em;
}

.home-management-tier-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--h-pink);
    letter-spacing: -0.01em;
}

/* ========================================
   FOR YOUR CLINIC  (text + image split)
   ======================================== */

.home-clinic {
    background-color: var(--h-bg);
    padding: 104px 0;
    border-top: 1px solid var(--h-border);
}

.home-clinic-inner {
    display: grid;
    grid-template-columns: 56% 44%;
    gap: 72px;
    align-items: center;
}

.home-clinic-intro {
    font-size: 16px;
    color: rgba(245, 245, 245, 0.72);
    line-height: 1.72;
    margin: 0 0 30px;
    letter-spacing: -0.008em;
}

.home-clinic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-clinic-list li {
    font-size: 14px;
    color: rgba(245, 245, 245, 0.75);
    line-height: 1.6;
    padding: 13px 0;
    border-bottom: 1px solid var(--h-border);
    display: flex;
    gap: 12px;
    align-items: baseline;
    letter-spacing: -0.005em;
}

.home-clinic-list li:last-child {
    border-bottom: none;
}

.home-clinic-dash {
    color: var(--h-pink);
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}

.home-clinic-image {
    border: 1px solid var(--h-border);
    border-radius: 3px;
    overflow: hidden;
}

.home-clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: 540px;
    transition: transform 600ms var(--h-ease);
}

.home-clinic-image:hover img {
    transform: scale(1.03);
}

/* ========================================
   THE PROCESS  (4-step horizontal)
   ======================================== */

.home-process {
    background-color: var(--h-surface);
    padding: 104px 0;
    border-top: 1px solid var(--h-border);
    border-bottom: 1px solid var(--h-border);
}

.home-process-steps {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
    align-items: start;
    margin-bottom: 40px;
}

.home-process-step {
    padding: 0;
}

.home-process-num {
    display: block;
    font-size: 68px;
    font-weight: 700;
    color: rgba(230, 58, 115, 0.12);
    line-height: 1;
    margin-bottom: -16px;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 0;
}

.home-process-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--h-text-primary);
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.home-process-copy {
    font-size: 13px;
    color: var(--h-text-muted);
    line-height: 1.68;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.005em;
}

.home-process-connector {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 42px;
}

.home-process-connector::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(230, 58, 115, 0.55), rgba(230, 58, 115, 0.12));
}

.home-process-timeline {
    font-size: 13px;
    color: var(--h-text-dim);
    margin: 0;
    text-align: center;
    letter-spacing: -0.005em;
}

/* ========================================
   THE WORK  (case study placeholder)
   ======================================== */

.home-work {
    background-color: var(--h-bg);
    padding: 104px 0;
}

.home-work-sub {
    font-size: 16px;
    color: rgba(245, 245, 245, 0.55);
    line-height: 1.65;
    margin: -28px 0 52px;
    max-width: 520px;
    letter-spacing: -0.008em;
}

.home-work-placeholder {
    border: 1px dashed rgba(245, 245, 245, 0.12);
    border-radius: 4px;
    padding: 36px;
    max-width: 740px;
}

.home-work-placeholder-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.home-work-placeholder-image {
    width: 160px;
    height: 110px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--h-border);
    border-radius: 3px;
    flex-shrink: 0;
}

.home-work-placeholder-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.home-work-placeholder-tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--h-text-dim);
    text-transform: uppercase;
}

.home-work-placeholder-bar {
    height: 7px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
}

.home-work-placeholder-bar--wide   { width: 78%; }
.home-work-placeholder-bar--medium { width: 58%; }
.home-work-placeholder-bar--short  { width: 38%; }

.home-work-placeholder-cta {
    font-size: 12px;
    color: rgba(230, 58, 115, 0.28);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: -0.005em;
}

.home-work-placeholder-note {
    font-size: 12px;
    color: var(--h-text-dim);
    margin: 0;
    font-style: italic;
    letter-spacing: -0.005em;
}

/* ========================================
   FINAL CTA + BRIEF FORM  (Section 9)
   ======================================== */

.home-final {
    background-color: var(--h-surface);
    padding: 104px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--h-border);
}

/* Subtle grain texture */
.home-final-grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

.home-final-inner {
    position: relative;
    z-index: 1;
}

.home-final-heading-block {
    text-align: center;
    margin-bottom: 60px;
}

.home-final-headline {
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 700;
    color: var(--h-text-primary);
    letter-spacing: -0.035em;
    line-height: 1.08;
    max-width: 700px;
    margin: 0 auto 18px;
}

.home-final-sub {
    font-size: 16px;
    color: rgba(245, 245, 245, 0.55);
    margin: 0 0 10px;
    letter-spacing: -0.008em;
}

.home-final-note {
    font-size: 13px;
    color: var(--h-text-dim);
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}

.home-final-status {
    font-size: 13px;
    color: var(--h-pink);
    margin: 0;
    letter-spacing: -0.005em;
}

/* HubSpot form wrapper */
.home-brief-form-wrap {
    max-width: 720px;
    margin: 0 auto 72px;
}

/* ========================================
   FOOTER  (within section 9)
   ======================================== */

.home-footer {
    border-top: 1px solid var(--h-border);
    padding: 32px 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.home-footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.home-footer-wordmark {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(245, 245, 245, 0.42);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.015em;
    transition: color 200ms ease;
}

.home-footer-wordmark:hover {
    color: var(--h-text-primary);
}

.home-footer-copy {
    font-size: 13px;
    color: var(--h-text-dim);
    margin: 0;
    letter-spacing: -0.005em;
}

.home-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-footer-links a,
.home-footer-links button {
    font-size: 12px;
    color: var(--h-text-dim);
    text-decoration: none;
    transition: color 200ms ease;
    letter-spacing: -0.005em;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.home-footer-links a:hover,
.home-footer-links button:hover {
    color: var(--h-pink);
}

.home-footer-links span {
    color: rgba(245, 245, 245, 0.12);
    font-size: 12px;
}

.home-footer-fsb {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.30;
}

.home-footer-fsb svg {
    flex-shrink: 0;
}

.home-footer-fsb-text {
    font-size: 10px;
    color: rgba(245, 245, 245, 0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */

.home-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(22, 22, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: rgba(245, 245, 245, 0.62);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    z-index: 9000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
    pointer-events: none;
}

.home-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-scroll-top:hover {
    background: rgba(230, 58, 115, 0.12);
    border-color: rgba(230, 58, 115, 0.35);
    color: var(--h-pink);
}

/* ========================================
   RESPONSIVE — TABLET (769–1024px)
   ======================================== */

@media (max-width: 1024px) {
    .home-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-audience-grid {
        grid-template-columns: 1fr;
    }

    .home-management-card {
        flex-direction: column;
        gap: 24px;
    }

    .home-clinic-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .home-clinic-image {
        max-width: 480px;
    }

    .home-process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .home-process-connector {
        display: none;
    }
}

@media (max-width: 860px) {
    .home-management-main {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   RESPONSIVE — MOBILE (below 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Nav */
    .home-nav-inner {
        padding: 16px 20px;
    }

    /* Hero */
    .home-hero {
        min-height: 100dvh;
        height: 100dvh;
    }

    .home-hero-overlay {
        background:
            linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.20) 50%, rgba(10, 10, 10, 0.40) 100%),
            rgba(10, 10, 10, 0.42);
    }

    .home-hero-video {
        object-position: center 30%;
    }

    .home-hero-content {
        padding: 88px 20px 0;
    }

    .home-hero-headline {
        font-size: 34px;
        letter-spacing: -0.03em;
    }

    .home-hero-sub {
        font-size: 15px;
        line-height: 1.68;
    }

    /* Section padding */
    .home-pillars,
    .home-audience,
    .home-services,
    .home-clinic,
    .home-process,
    .home-work,
    .home-final {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    /* Problem */
    .home-problem {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .home-problem-text {
        padding: 72px 20px 52px;
    }

    .home-problem-image {
        height: 280px;
        order: 2;
    }

    .home-problem-image-vignette {
        background: linear-gradient(to bottom, rgba(15, 15, 15, 0.45) 0%, transparent 40%);
    }

    /* Pillars */
    .home-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services */
    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        min-height: 220px;
    }

    .home-management-card {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .home-management-tiers {
        width: 100%;
    }

    .home-management-tier {
        justify-content: space-between;
    }

    /* Clinic */
    .home-clinic-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-clinic-image {
        max-width: 100%;
    }

    /* Process */
    .home-process-steps {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    /* Work */
    .home-work-placeholder-inner {
        flex-direction: column;
    }

    .home-work-placeholder-image {
        width: 100%;
        height: 72px;
    }

    /* Footer */
    .home-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .home-scroll-top {
        bottom: 20px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .home-pillars-grid {
        grid-template-columns: 1fr;
    }

    .home-final-headline {
        font-size: 27px;
    }

    .home-section-headline {
        font-size: 26px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-hero-scroll,
    .home-hero-scroll-chevron {
        animation: none;
    }

    .home-hero-scroll {
        opacity: 1;
    }

    .home-service-card-bg,
    .home-clinic-image img {
        transition: none;
    }
}
