/* ================================================================
   NHC DESIGN SYSTEM — Alpine Sanctuary
   Shared stylesheet for all pages of National Health Clinic

   Import order in each HTML page:
   1. Google Fonts (Cormorant Garamond + Jost)
   2. This file  →  nhc-design.css  (adjust path for subdirs)
   3. Optional page-specific <style> block for unique sections

   Path adjustments:
     Root pages          →  href="nhc-design.css"
     One level deep      →  href="../nhc-design.css"
     Two levels deep     →  href="../../nhc-design.css"
================================================================ */

/* ================================================================
   1. DESIGN TOKENS
================================================================ */
:root {
    /* Colour palette */
    --forest:    #0D1F30;
    --surface:   #F5F0E8;
    --forest-2:  #163248;
    --forest-3:  #1F4A6B;
    --gold:      #C9A84C;
    --gold-lt:   #DBBE7A;
    --ivory:     #F5EFE4;
    --ivory-2:   #EDE6D8;
    --sage:      #5B80A3;
    --sage-lt:   #8AAEC5;
    --mist:      #C5D8E8;
    --white:     #FDFAF6;
    --text:      #0D1F30;
    --text-mid:  #2A4A6B;
    --text-lt:   #6A8FAD;

    /* Typography */
    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-body:    'Jost', system-ui, sans-serif;

    /* Easing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--ff-body);
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* Subtle grain texture over the whole page */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* ================================================================
   3. LAYOUT HELPERS
================================================================ */
.wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================================
   4. TYPOGRAPHY HELPERS
================================================================ */

/* Small gold label with left line — used above section titles */
/* Označenie programu, ktorý je v štádiu prípravy (menu, pätička, karty) */
.soon-tag {
    display: inline-block;
    margin-left: .45em;
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .8;
    white-space: nowrap;
}

.section-eyebrow {
    font-family: var(--ff-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* Centred variant — lines on both sides */
.section-eyebrow.center {
    justify-content: center;
}
.section-eyebrow.center::before { display: none; }
.section-eyebrow.center::after {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* ================================================================
   5. BUTTONS
================================================================ */

/* Filled gold — primary action */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--ff-body);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--forest); background: var(--gold);
    padding: 0.9rem 2rem; border-radius: 4px;
    border: none; cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(191, 155, 111, 0.3);
}

/* Ghost — for dark backgrounds */
.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--ff-body);
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(245, 239, 228, 0.85);
    padding: 0.9rem 2rem; border-radius: 4px;
    border: 1px solid rgba(245, 239, 228, 0.3);
    transition: border-color 0.25s, color 0.25s, transform 0.2s;
    background: transparent; cursor: pointer;
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-lt);
    transform: translateY(-2px);
}

/* Outline — for light backgrounds */
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--ff-body);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--forest); padding: 0.9rem 2.5rem;
    border: 1px solid var(--forest); border-radius: 4px;
    background: transparent; cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover {
    background: var(--forest); color: var(--ivory);
    transform: translateY(-2px);
}

/* Outline light — for dark backgrounds */
.btn-outline-light {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--ff-body);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ivory); padding: 0.9rem 2.5rem;
    border: 1px solid rgba(245, 239, 228, 0.4); border-radius: 4px;
    background: transparent; cursor: pointer;
    transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline-light:hover {
    border-color: var(--gold);
    color: var(--gold-lt);
    transform: translateY(-2px);
}

/* ================================================================
   6. NAVIGATION
================================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.4rem 0;
    transition:
        background  0.4s var(--ease-smooth),
        box-shadow  0.4s var(--ease-smooth),
        padding     0.4s var(--ease-smooth);
}
.nav.scrolled {
    background: rgba(13, 31, 48, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(191, 155, 111, 0.15);
    padding: 1rem 0;
}

.nav-inner {
    max-width: 1380px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 1.5rem;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img {
    height: 56px; width: auto;
    border-radius: 10px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}
.nav.scrolled .nav-logo img { filter: none; }

.nav-links {
    display: flex; align-items: center; gap: 0.1rem;
}

.nav-item { position: relative; flex-shrink: 0; }

.nav-link {
    font-family: var(--ff-body);
    font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: rgba(245, 239, 228, 0.82);
    padding: 0.5rem 0.6rem; border-radius: 4px;
    white-space: nowrap;
    display: flex; align-items: center; gap: 0.3rem;
    transition: color 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--gold-lt); }

.dropdown-arrow {
    font-size: 0.65rem; opacity: 0.6;
    transition: transform 0.25s;
}
.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: rgba(13, 31, 48, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(191, 155, 111, 0.2);
    border-radius: 8px; padding: 0.75rem 0.5rem 0.5rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav-item:hover .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
    display: block; padding: 0.55rem 1rem;
    font-size: 0.8rem; letter-spacing: 0.03em;
    color: rgba(245, 239, 228, 0.75);
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
}
.dropdown-menu li a:hover {
    color: var(--gold-lt);
    background: rgba(191, 155, 111, 0.1);
}
.dropdown-divider {
    height: 1px;
    background: rgba(191, 155, 111, 0.15);
    margin: 0.3rem 0.5rem;
}

/* Reservation CTA button in nav */
.nav-cta {
    font-family: var(--ff-body);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--forest); background: var(--gold);
    padding: 0.6rem 1.2rem; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0;
    transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* Hamburger for mobile */
.nav-toggle {
    display: none; background: none; border: none;
    cursor: pointer; padding: 0.5rem;
    flex-direction: column; gap: 5px;
}
.nav-toggle span {
    display: block; width: 24px; height: 1.5px;
    background: var(--ivory);
    transition: transform 0.3s, opacity 0.3s;
}

/* ================================================================
   7. PAGE HERO  (subpage — not the homepage full-screen hero)
================================================================ */
.page-hero {
    position: relative;
    min-height: 82vh;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute; inset: 0;
}
.page-hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.04);
    animation: nhcHeroZoom 12s var(--ease-smooth) forwards;
}
@keyframes nhcHeroZoom { to { transform: scale(1); } }
.page-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(
        170deg,
        rgba(13, 31, 48, 0.55) 0%,
        rgba(13, 31, 48, 0.25) 45%,
        rgba(13, 31, 48, 0.90) 100%
    );
}

.page-hero-content {
    position: relative; z-index: 1;
    width: 100%; max-width: 1380px;
    margin: 0 auto; padding: 9rem 2rem 6rem;
}

.page-hero-label {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold);
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.25rem;
    opacity: 0; transform: translateY(16px);
    animation: nhcFadeUp 0.8s 0.3s var(--ease-out) forwards;
}
.page-hero-label::before {
    content: ''; width: 40px; height: 1px; background: var(--gold);
}

.page-hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 300; color: var(--ivory); line-height: 1.08;
    max-width: 720px; margin-bottom: 1.5rem;
    opacity: 0; transform: translateY(24px);
    animation: nhcFadeUp 0.9s 0.5s var(--ease-out) forwards;
}
.page-hero-title em { font-style: italic; color: var(--gold-lt); }

.page-hero-sub {
    font-size: 1rem; font-weight: 300;
    color: rgba(245, 239, 228, 0.68);
    max-width: 500px; line-height: 1.75; margin-bottom: 2.5rem;
    opacity: 0; transform: translateY(20px);
    animation: nhcFadeUp 0.9s 0.7s var(--ease-out) forwards;
}

.page-hero-actions {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    opacity: 0; transform: translateY(18px);
    animation: nhcFadeUp 0.9s 0.9s var(--ease-out) forwards;
}

.page-hero-note {
    margin-top: 1rem; font-size: 0.8rem; font-weight: 300;
    color: rgba(245, 239, 228, 0.45);
    opacity: 0; animation: nhcFadeIn 0.8s 1.1s forwards;
}
.page-hero-note a {
    color: var(--gold);
    border-bottom: 1px solid rgba(191, 155, 111, 0.4);
    transition: color 0.2s;
}
.page-hero-note a:hover { color: var(--gold-lt); }

/* Breadcrumb / page label strip */
.page-hero-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(245, 239, 228, 0.45);
    margin-bottom: 1.5rem;
    opacity: 0; animation: nhcFadeIn 0.8s 0.2s forwards;
}
.page-hero-breadcrumb a { transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--gold-lt); }
.page-hero-breadcrumb span { color: var(--gold); }

/* ================================================================
   8. STATS RIBBON  (dark bar with numbers)
================================================================ */
.stats {
    background: var(--forest);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(191, 155, 111, 0.15);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    max-width: 1380px; margin: 0 auto; padding: 0 2rem;
}
.stat-item {
    text-align: center; padding: 1.5rem 2rem; position: relative;
}
.stat-item + .stat-item::before {
    content: ''; position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px; background: rgba(191, 155, 111, 0.2);
}
.stat-num {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300; color: var(--gold-lt); line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.72rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--sage-lt);
}

/* ================================================================
   9. SHARED CLOSING CTA SECTION  (dark forest background)
================================================================ */
.cta-section {
    background: var(--forest);
    padding: 8rem 0;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute;
    bottom: -200px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 155, 111, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner {
    max-width: 760px; margin: 0 auto;
    padding: 0 2rem; text-align: center;
    position: relative;
}
.cta-title {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 300; color: var(--ivory); line-height: 1.15;
    margin-bottom: 1.5rem;
}
.cta-title em { font-style: italic; color: var(--gold-lt); }
.cta-text {
    font-size: 0.92rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.75); line-height: 1.8;
    margin-bottom: 0.75rem;
}
.cta-actions {
    display: flex; justify-content: center; gap: 1rem;
    margin-top: 2.5rem; flex-wrap: wrap;
}
.cta-note {
    font-size: 0.75rem; color: rgba(122, 158, 126, 0.55);
    margin-top: 1.25rem; font-style: italic;
}

/* ================================================================
   10. FOOTER
================================================================ */
.footer {
    background: var(--forest-2);
    padding: 5rem 0 2.5rem;
    border-top: 1px solid rgba(191, 155, 111, 0.12);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    max-width: 1380px; margin: 0 auto; padding: 0 2rem;
    margin-bottom: 3.5rem;
}
.footer-logo img,
img.footer-logo {
    height: 115.2px; width: auto;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}
.footer-slogan {
    font-family: var(--ff-display);
    font-size: 0.95rem; font-style: italic;
    color: var(--sage-lt); line-height: 1.6; margin-bottom: 1.5rem;
}
.footer-contact p {
    font-size: 0.82rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.65); line-height: 1.6;
}
.footer-contact strong { color: var(--gold-lt); font-weight: 500; }

.footer-col h4 {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
    font-size: 0.82rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.65); transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-lt); }

.footer-bottom {
    max-width: 1380px; margin: 0 auto;
    padding: 1.75rem 2rem 0;
    border-top: 1px solid rgba(191, 155, 111, 0.1);
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.footer-bottom p {
    font-size: 0.75rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.40); letter-spacing: 0.05em;
}

/* ================================================================
   11. SCROLL REVEAL ANIMATIONS
================================================================ */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes nhcFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes nhcFadeIn {
    to { opacity: 1; }
}

/* ================================================================
   11b. LUCIDE SVG ICONS
================================================================ */
/* Lucide SVG icons */
[data-lucide],
[data-lucide] svg,
.benefit-icon svg,
.proc-hero-icon svg,
.related-icon svg,
.include-icon svg,
.condition-icon svg,
.perfect-icon svg,
.benefit-col-icon svg,
.doc-icon svg,
.prog-btn-icon svg,
.info-head-icon svg,
.acc-feature-icon svg,
.common-icon svg,
.science-icon-large svg,
.faq-group-icon svg,
.ind-card-icon svg,
.explain-organ-icon svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
}
.proc-hero-icon svg { width: 1em; height: 1em; opacity: 0.07; }

/* ================================================================
   12. SHARED RESPONSIVE BREAKPOINTS
================================================================ */

/* Tablets */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(3) { grid-column: span 2; }
    .stat-item:nth-child(3)::before { display: none; }
}

/* Nav collapses to hamburger earlier (tablets / small laptops / scaled displays)
   so links never get squeezed onto two lines */
@media (max-width: 1180px) {
    .nav-links { display: none; }
    .nav-cta   { display: none; }
    .nav-toggle { display: flex; }

    /* Mobile nav open state (set via JS) */
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; top: 88px; left: 0; right: 0;
        max-height: calc(100vh - 88px); overflow-y: auto;
        background: rgba(13, 31, 48, 0.98);
        padding: 1rem; z-index: 999;
        border-top: 1px solid rgba(191, 155, 111, 0.15);
    }
    .nav-links.open .nav-link {
        padding: 0.85rem 1rem; font-size: 0.85rem;
        justify-content: space-between;
    }
    .nav-links.open .dropdown-menu {
        position: static; transform: none;
        opacity: 1; visibility: visible; pointer-events: auto;
        background: rgba(255,255,255,0.04);
        border: none; border-radius: 0;
        padding: 0 0 0.5rem 1rem;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .stats-grid  { grid-template-columns: 1fr; }
    .stat-item::before { display: none !important; }
    .stat-item:nth-child(3) { grid-column: span 1; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .page-hero { min-height: 80vh; }
    .page-hero-content { padding: 0 1.5rem 5rem; }
    .page-hero-title { font-size: clamp(2rem, 10vw, 3rem); }

    .cta-section { padding: 5rem 0; }
    .cta-actions { flex-direction: column; align-items: center; }
}

/* ================================================================
   13. SECTION LAYOUT HELPERS
================================================================ */
.section {
    padding: 5rem 0;
}
.section--alt {
    background: var(--surface);
}
.section-header {
    margin-bottom: 3rem;
}
.section-header h2,
.section h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--forest);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.section-header h2 em,
.section h2 em {
    font-style: italic;
    color: var(--gold);
}

/* ================================================================
   14. NAV — NEW STRUCTURE ALIASES
   (procedury pages use .dropdown, .nav-arrow, .dropdown-link)
================================================================ */
.nav-arrow {
    font-size: 0.65rem; opacity: 0.6;
    transition: transform 0.25s;
}
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* .dropdown is the new name for .dropdown-menu — scoped to .has-dropdown only */
.has-dropdown > .dropdown {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(13, 31, 48, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(191, 155, 111, 0.2);
    border-radius: 8px; padding: 0.75rem 0.5rem 0.5rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
    list-style: none;
}
.has-dropdown:hover > .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-link,
.has-dropdown > .dropdown li a {
    display: block; padding: 0.55rem 1rem;
    font-size: 0.8rem; letter-spacing: 0.03em;
    color: rgba(245, 239, 228, 0.75);
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
}
.dropdown-link:hover,
.has-dropdown > .dropdown li a:hover {
    color: var(--gold-lt);
    background: rgba(191, 155, 111, 0.1);
}

/* Mobile: open state for .dropdown */
@media (max-width: 680px) {
    .has-dropdown > .dropdown {
        position: static; transform: none;
        opacity: 1; visibility: visible; pointer-events: auto;
        background: rgba(255,255,255,0.04);
        border: none; border-radius: 0;
        padding: 0 0 0.5rem 1rem;
        display: none;
    }
    .has-dropdown.open > .dropdown { display: block; }
}

/* ================================================================
   14b. NAV LOGO IMAGE
================================================================ */
.nav-logo-img {
    height: 48px;
    width: auto;
    border-radius: 10px;
}

/* ================================================================
   15. BUTTONS FOR DARK BACKGROUNDS (used in .cta-section)
================================================================ */
.btn--light {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--ff-body);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--forest); background: var(--gold);
    padding: 0.9rem 2rem; border-radius: 4px;
    border: none; cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn--light:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(191, 155, 111, 0.3);
}

.btn--ghost-light {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--ff-body);
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(245, 239, 228, 0.85);
    padding: 0.9rem 2rem; border-radius: 4px;
    border: 1px solid rgba(245, 239, 228, 0.3);
    background: transparent; cursor: pointer;
    transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn--ghost-light:hover {
    border-color: var(--gold);
    color: var(--gold-lt);
    transform: translateY(-2px);
}

/* ================================================================
   16. CTA SECTION EXTRAS
================================================================ */
.cta-subtitle {
    font-size: 0.92rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.75); line-height: 1.8;
}
.cta-body { margin-bottom: 0; }

/* ================================================================
   17. STATS BAR — 4-COLUMN + stat-number alias
================================================================ */
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-number {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300; color: var(--gold-lt); line-height: 1;
    margin-bottom: 0.5rem;
}

/* ================================================================
   18. FOOTER EXTRAS (classes used in procedury pages)
================================================================ */
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-col--brand {
    max-width: 300px;
}
.footer-col-title {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.25rem;
}
.footer-links {
    display: flex; flex-direction: column; gap: 0.6rem;
    list-style: none; padding: 0; margin: 0;
}
.footer-links li a {
    font-size: 0.82rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.65);
    transition: color 0.2s;
}
.footer-links li a:hover { color: var(--gold-lt); }

.footer-tagline {
    font-family: var(--ff-display);
    font-size: 0.95rem; font-style: italic;
    color: var(--sage-lt); line-height: 1.6; margin-bottom: 1.5rem;
}
.footer-contact-list {
    display: flex; flex-direction: column; gap: 0.4rem;
    list-style: none; padding: 0; margin: 0;
}
.footer-contact-list li,
.footer-contact-list span {
    font-size: 0.82rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.65); line-height: 1.6;
    display: block;
}
.footer-bottom-inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
    font-size: 0.75rem; font-weight: 300;
    color: rgba(197, 216, 232, 0.40); letter-spacing: 0.05em;
}

@media (max-width: 680px) {
    .footer-col--brand { max-width: 100%; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   20. MOBILE FIXES
   Targeted overrides for 375–768px viewports.
   All rules are additive — no shared rules are removed.
================================================================ */

/* ── Prevent any horizontal overflow ── */
html, body {
    overflow-x: hidden;
}

/* ── Tighter .wrap padding on very narrow screens ── */
@media (max-width: 480px) {
    .wrap {
        padding: 0 1rem;
    }
    .section {
        padding: 3.5rem 0;
    }
}

/* ── page-hero: stack CTA buttons + reduce hero min-height ── */
@media (max-width: 640px) {
    .page-hero { min-height: 70vh; }
    .page-hero-title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
    .page-hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .page-hero-actions .btn-primary,
    .page-hero-actions .btn-ghost,
    .page-hero-actions .btn-outline-light,
    .page-hero-actions .btn--light,
    .page-hero-actions .btn--ghost-light {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

/* ── hero-cta (used by post/detox pages) ── */
@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta .btn,
    .hero-cta a {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* ── proc-hero CTA ── */
@media (max-width: 640px) {
    .proc-hero-cta {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .proc-hero-cta a {
        width: 100%;
        text-align: center;
        min-height: 48px;
    }
}

/* ── cta-section actions ── */
@media (max-width: 640px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .cta-actions a {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        min-height: 48px;
    }
}

/* ── Stats ribbon: 1 column on mobile ── */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .stat-item::before { display: none !important; }
    .stat-item:nth-child(n) { grid-column: span 1; }
}

/* ── Section grids: collapse to 1 column at 640px ── */
@media (max-width: 640px) {
    /* Generic 2–4 col grids that don't have specific mobile rules */
    .section-header + .grid-2,
    .benefits-grid,
    .who-grid,
    .science-grid,
    .include-grid,
    .conditions-grid,
    .perfect-grid,
    .benefit-cols,
    .common-grid,
    .acc-info-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    /* Procedury proc-body-grid */
    .proc-body-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── Tables: always scrollable ── */
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Large decorative numbers / hero days ── */
@media (max-width: 480px) {
    .program-hero-days,
    .hero-days,
    .stat-num {
        font-size: clamp(2rem, 12vw, 4rem) !important;
    }
}

/* ── Footer grid: ensure 1 col on mobile ── */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col--brand { max-width: 100%; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* ── Nav: ensure no horizontal bleed ── */
@media (max-width: 680px) {
    .nav-inner { padding: 0 1rem; }
    .nav-links.open { left: 0; right: 0; padding: 0.75rem 1rem; }
}

/* ── Buttons: tap-friendly minimum size ── */
@media (max-width: 640px) {
    .btn-primary,
    .btn-ghost,
    .btn-outline,
    .btn-outline-light,
    .btn--light,
    .btn--ghost-light {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
}

/* ================================================================
   19. SHARED JS SNIPPET  (copy into every page's <script> tag)

   // Nav scroll
   const nav = document.getElementById('nav');
   window.addEventListener('scroll', () =>
       nav.classList.toggle('scrolled', window.scrollY > 60),
       { passive: true }
   );

   // Mobile hamburger
   document.getElementById('navToggle')?.addEventListener('click', () =>
       document.querySelector('.nav-links').classList.toggle('open')
   );

   // Scroll reveal
   const obs = new IntersectionObserver((entries) => {
       entries.forEach(e => {
           if (e.isIntersecting) { e.target.classList.add('visible'); obs.unobserve(e.target); }
       });
   }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });
   document.querySelectorAll('.reveal').forEach(el => obs.observe(el));

================================================================ */

/* ── Honeypot proti spam botom ─────────────────────────────────────────
   Pole musí zostať pre prehliadač "normálne" a vyplniteľné (boty
   preskakujú display:none aj type="hidden"), ale pre človeka neviditeľné.
   Odsun mimo plátno funguje aj na mobile a pri zväčšení stránky.
   Ide o návnadu, nie o obsah — aria-hidden a tabindex="-1" v HTML ho
   držia mimo dosahu čítačiek obrazovky aj klávesnice. */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
