/* ═══════════════════════════════════════════════════
   IMPERFECT MEDICAL — style.css
   Fonts loaded via <link> in index.html (not @import)
════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
    --sand:        #F5F2ED;
    --sage:        #2C4C3B;
    --clay:        #9A5B3D;
    --dark:        #1c1917;
    --stone:       #78716c;
    --stone-mid:   #57534e;
    --stone-light: #a8a29e;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Sage-tinted elevation shadows */
    --shadow-sm:  0 4px 12px rgba(44, 76, 59, 0.04);
    --shadow-md:  0 12px 32px rgba(44, 76, 59, 0.08);
    --shadow-lg:  0 24px 48px rgba(44, 76, 59, 0.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    background-color: var(--sand);
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img    { max-width: 100%; display: block; }
a      { color: inherit; }
button { font-family: inherit; }

/* ── LAYOUT ── */
.inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}
@media (max-width: 640px) {
    .inner { padding: 0 1.25rem; }
}

.full-section { width: 100%; display: block; }

/* ── GRIDS ── */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 767px) {
    .grid-2col { grid-template-columns: 1fr; }
}

/* ── SECTION BACKGROUNDS ── */
.section-sand { background-color: var(--sand); padding: 6rem 0; }
.section-dark  { background-color: var(--sage); padding: 6rem 0; }

/* ── TYPOGRAPHY ── */
.font-heading {
    font-family: var(--font-display);
    font-variation-settings: normal;
    letter-spacing: -0.03em;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 1rem;
}
.section-label-light {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.section-h2 {
    font-family: var(--font-display);
    font-variation-settings: normal;
    font-weight: 700;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 2rem;
}
.section-h2-dark  { color: #ffffff; }
.section-h2-light { color: var(--dark); }

.body-text-dark {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}
.body-text-light {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: var(--stone-mid);
}

/* ── SKIP LINK ── */
.skip-link {
    position: absolute;
    top: -100px; left: 1rem;
    background: #fff;
    color: var(--sage);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid var(--sage);
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }
.reveal-d5 { transition-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── LIFT HOVER ── */
.lift {
    border-radius: 24px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ── PROGRESS BAR ── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--clay);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── BACK TO TOP ── */
#back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--sage);
    color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 999;
    box-shadow: var(--shadow-md);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover   { background: var(--clay); }

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
#site-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--sand);
    border-bottom: 1px solid rgba(44, 76, 59, 0.15);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

/* ── NAV SCROLL STATE ── */
#site-nav.scrolled {
    background-color: rgba(245, 242, 237, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 640px) {
    .nav-inner { padding: 0 1.25rem; }
}

.nav-logo {
    font-family: var(--font-display);
    font-variation-settings: normal;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
}

/* Desktop links */
#desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
#desktop-nav a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
    transition: opacity 0.2s;
}
#desktop-nav a:hover { opacity: 0.6; }

#desktop-nav .nav-contact {
    background-color: var(--clay);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
}
#desktop-nav .nav-contact:hover { opacity: 0.85 !important; }

/* Services dropdown */
#services-menu { position: relative; }

#services-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    padding: 0;
    transition: opacity 0.2s;
}
#services-toggle:hover { opacity: 0.6; }

#services-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 240px;
    background: var(--sage);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}
#services-dropdown a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--sand) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: opacity 0.2s;
}
#services-dropdown a:last-child { border-bottom: none; }
#services-dropdown a:hover { opacity: 0.7; }

/* Hamburger */
#menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--sage);
}

/* Mobile menu */
#mobile-menu {
    display: none;
    background: var(--sand);
    border-top: 1px solid rgba(44, 76, 59, 0.12);
    padding: 1.25rem 2.5rem 1.5rem;
}
@media (max-width: 640px) {
    #mobile-menu { padding: 1.25rem 1.25rem 1.5rem; }
}

#mobile-menu a,
#mobile-menu .mob-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(44, 76, 59, 0.08);
}
#mobile-menu .mob-label {
    font-size: 0.65rem;
    color: rgba(44, 76, 59, 0.45);
    border-bottom: none;
    padding-top: 1rem;
}
#mobile-menu .mob-sub a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.4rem 0 0.4rem 1rem;
    border-left: 2px solid rgba(44, 76, 59, 0.12);
    border-bottom: none;
}
#mobile-menu .mob-contact {
    display: block;
    text-align: center;
    background: var(--clay);
    color: #fff !important;
    padding: 0.85rem;
    border-radius: 999px;
    margin-top: 0.75rem;
    border-bottom: none !important;
    font-weight: 600;
}

/* Nav breakpoints */
@media (max-width: 1023px) {
    #desktop-nav { display: none !important; }
    #menu-btn    { display: block !important; }
}
@media (min-width: 1024px) {
    #mobile-menu { display: none !important; }
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero-wrap {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 30% center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(20,18,16,0.82) 0%,
        rgba(20,18,16,0.52) 52%,
        rgba(20,18,16,0.12) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 7rem 5rem 5rem;
    max-width: 660px;
}

/* ── HERO TAGLINE (two-line split style) ── */
#hero-h1 {
    font-family: var(--font-display);
    font-variation-settings: normal;
    margin: 0 0 1.75rem;
}
.hero-tagline-top {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.hero-tagline-bottom {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    color: #ffffff;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
}

#hero-sub {
    border-left: 3px solid var(--clay);
    padding-left: 1.2rem;
    margin-bottom: 2.5rem;
}
#hero-sub p {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.6vw, 1.15rem);
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-btn-primary {
    display: inline-block;
    background-color: var(--clay);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.hero-btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: opacity 0.2s;
}
.hero-btn-primary:hover,
.hero-btn-secondary:hover { opacity: 0.85; }

@media (max-width: 1199px) {
    .hero-content { padding: 7rem 3.5rem 4rem; max-width: 560px; }
}
@media (max-width: 899px) {
    .hero-content { padding: 6.5rem 2.5rem 3.5rem; }
    .hero-tagline-bottom { font-size: clamp(2.4rem, 6vw, 3.8rem); }
}
@media (max-width: 767px) {
    .hero-wrap    { min-height: 85svh; }
    .hero-content { padding: 5.5rem 1.5rem 3rem; max-width: 100%; }
    .hero-tagline-bottom { font-size: clamp(2.2rem, 7vw, 3.2rem); }
    #hero-sub p   { font-size: 1rem; }
    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(20,18,16,0.88) 0%,
            rgba(20,18,16,0.65) 60%,
            rgba(20,18,16,0.35) 100%
        );
    }
}
@media (max-width: 480px) {
    .hero-wrap    { min-height: 90svh; }
    .hero-content { padding: 5rem 1.25rem 2.5rem; }
    .hero-tagline-bottom { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-btn-primary,
    .hero-btn-secondary { width: 100%; text-align: center; }
}

/* ══════════════════════════════════
   COMPONENTS
══════════════════════════════════ */

/* Pillar list */
.pillar-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pillar-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pillar-list li::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--clay);
    border-radius: 999px;
    flex-shrink: 0;
}

/* Accountability list */
.accountability-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.accountability-list li {
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: var(--stone-mid);
    padding-left: 1.5rem;
    position: relative;
}
.accountability-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--clay);
    font-weight: 700;
}

/* Pull quote */
.pull-quote {
    font-family: var(--font-display);
    font-variation-settings: normal;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    border-left: 3px solid var(--clay);
    padding-left: 1.5rem;
    margin: 2rem 0 0;
    color: var(--dark);
}

/* Timeline */
.timeline-h {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    margin-top: 3rem;
}
.timeline-h::before {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(10% + 8px);
    right: calc(10% + 8px);
    height: 2px;
    background: linear-gradient(to right, var(--clay), var(--sage));
}
.tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0 0.75rem;
    position: relative;
}
.tl-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--sand);
    border: 3px solid var(--clay);
    flex-shrink: 0;
    z-index: 1;
}
.tl-step:last-child .tl-dot {
    background: var(--sage);
    border-color: var(--sage);
}
.tl-body { text-align: center; }
.tl-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--dark);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}
.tl-duration { font-weight: 400; color: var(--clay); }
.tl-desc {
    font-size: 0.78rem;
    color: var(--stone);
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 767px) {
    .timeline-h {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .timeline-h::before {
        top: 0; bottom: 0;
        left: 9px; right: auto;
        width: 2px; height: auto;
        background: linear-gradient(to bottom, var(--clay), var(--sage));
    }
    .tl-step {
        flex-direction: row;
        align-items: flex-start;
        padding: 0;
        gap: 1.25rem;
    }
    .tl-body { text-align: left; }
}

/* Social links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.social-link:hover {
    background: var(--clay);
    color: #fff;
    transform: translateY(-3px);
}

/* CTA buttons */
.btn-sage {
    display: inline-block;
    background: var(--sage);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-clay {
    display: inline-block;
    background: var(--clay);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-ghost {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 1.1rem 2.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-sage:hover,
.btn-clay:hover,
.btn-ghost:hover { opacity: 0.85; }

/* ── FOOTER WORDMARK ── */
.footer-wordmark {
    font-family: var(--font-display);
    font-variation-settings: normal;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

/* ── CAROUSEL (mobile chart cards) ── */
@media (max-width: 767px) {
    .grid-3col.card-carousel {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1.5rem;
        scrollbar-width: none;
    }
    .grid-3col.card-carousel::-webkit-scrollbar {
        display: none;
    }
    .grid-3col.card-carousel > * {
        flex: 0 0 82vw;
        max-width: 340px;
        scroll-snap-align: start;
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 0.5rem;
    }
    .carousel-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--stone-light);
        transition: background 0.3s, transform 0.3s;
    }
    .carousel-dots span.active {
        background: var(--clay);
        transform: scale(1.4);
    }
}
@media (min-width: 768px) {
    .carousel-dots { display: none; }
}

/* ── HIMS-STYLE FLOATING PANELS ── */
.hims-panel {
    border-radius: 40px; /* The signature soft contour */
    margin: 1rem 1.5rem 3rem 1.5rem; /* Creates the floating effect */
    padding: 6rem 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hims-panel {
        border-radius: 24px;
        margin: 1rem 1rem 2rem 1rem;
        padding: 4rem 0;
    }
}

/* ── PREVENTION SECTION REFINEMENTS ── */
.prevention-sub {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--clay);
    font-style: italic;
    margin: 0;
}

.prevention-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .prevention-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ── NEW PILLAR CARDS (Replacing the dashed list) ── */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.04); /* Subtle glass/frosted effect */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; /* Matches the parent panel contour */
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.pillar-card p {
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }
    .pillar-card {
        padding: 2rem 1.5rem;
    }
}

/* ══════════════════════════════════
   FLOATING PANEL SYSTEM (Hims-style)
══════════════════════════════════ */

/* The core floating panel — applied to sections 3–9 */
.hims-panel {
    border-radius: 40px;
    margin: 0 1.5rem 2.5rem 1.5rem;
    overflow: hidden;
    position: relative;
}

/* Dark panels keep their sage bg; sand panels keep sand */
.hims-panel.section-dark { background-color: var(--sage); }
.hims-panel.section-sand { background-color: var(--sand); }

@media (max-width: 991px) {
    .hims-panel {
        border-radius: 30px;
        margin: 0 1rem 2rem 1rem;
    }
}
@media (max-width: 767px) {
    .hims-panel {
        border-radius: 24px;
        margin: 0 0.75rem 1.5rem 0.75rem;
    }
}

/* ── PREVENTION SECTION SPECIFICS ── */
.p-header {
    text-align: center;
    margin-bottom: 4rem;
}

.prevention-sub {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--clay);
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin: 0.75rem auto 0;
}

.prevention-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    .prevention-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 2.5rem;
    }
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .pillar-grid { grid-template-columns: 1fr; }
}

.pillar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    transition: background 0.3s ease, border-color 0.3s ease,
                transform 0.22s ease, box-shadow 0.22s ease;
}
.pillar-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pillar-card p {
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.01em;
}
@media (max-width: 900px) {
    .pillar-card { min-height: auto; padding: 2rem 1.75rem; }
}

