/* ============================================================
   JKZM — Unified modern theme v2
   Jemný, elegantný, moderný dizajn.
   Inšpirácia: Linear / Vercel / Stripe / Apple minimalism.
   Načítava sa cez <link> pred </head> — prebíja inline <style> cez !important.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
    /* Brand — ušľachtilá tmavo-zelená (equestrian) + teplý zlatý akcent */
    --brand: #0d7c4f;            /* deep emerald */
    --brand-strong: #0a6440;
    --brand-soft: #e8f5ee;
    --brand-tint: #f3faf6;
    --accent: #c89b3c;           /* warm gold */
    --accent-soft: #fdf6e7;

    /* Povrchy (svetlé) */
    --bg: #fbfbfc;
    --bg-elevated: #ffffff;
    --bg-tinted: #f6f7f9;
    --panel: #ffffff;

    /* Čiary & border */
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);

    /* Typo */
    --ink: #0f172a;              /* primary text */
    --ink-2: #334155;            /* secondary */
    --ink-muted: #64748b;        /* tertiary */
    --ink-dim: #94a3b8;          /* quaternary */

    /* Radius */
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --r-xl: 28px;

    /* Shadows — soft, layered */
    --sh-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --sh-2: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --sh-3: 0 16px 32px -12px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
    --sh-4: 0 30px 60px -20px rgba(15, 23, 42, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.15s var(--ease);
    --t: 0.25s var(--ease);
    --t-slow: 0.5s var(--ease);

    /* Pretlač starých premenných v inline <style> */
    --primary: var(--brand);
    --primary-light: #10a869;
    --primary-dark: var(--brand-strong);
    --secondary: var(--accent);
    --dark: var(--ink);
    --light: var(--bg);
    --gray: var(--ink-muted);
    --white: #ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01', 'cv11';
}

/* Decentný gradient na pozadí — takmer neviditeľný ale dáva hĺbku */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(13, 124, 79, 0.05) 0%, transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(200, 155, 60, 0.04) 0%, transparent 60%);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 3.5vw, 3rem) !important; font-weight: 700 !important; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.25rem) !important; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important; }
h4 { font-size: 1.05rem !important; }

p { color: var(--ink-2); }
strong, b { color: var(--ink); font-weight: 600; }

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-strong); }

/* ---------- Container ---------- */
.container { max-width: 1200px !important; margin: 0 auto !important; padding: 0 1.5rem !important; }

/* ---------- Header (subtle glass) ---------- */
header {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: saturate(180%) blur(16px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { padding: 1rem 0 !important; }

.logo {
    color: var(--ink) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.015em;
    gap: 0.75rem !important;
    transition: transform 0.25s var(--ease);
}
.logo:hover { transform: translateX(2px); }
.logo span {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 60%, var(--accent) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo img {
    height: 64px !important;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(13, 124, 79, 0.18));
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
    filter: drop-shadow(0 4px 14px rgba(13, 124, 79, 0.28));
}
@media (max-width: 640px) {
    .logo img { height: 52px !important; }
    .logo { font-size: 1.1rem !important; gap: 0.5rem !important; }
    .header-inner { padding: 0.75rem 0 !important; }
}

nav { gap: 2rem !important; }
nav a {
    color: var(--ink-2) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.94rem !important;
    padding: 0.4rem 0 !important;
    border: none !important;
    position: relative;
    transition: color var(--t-fast);
}
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--t);
}
nav a:hover { color: var(--ink) !important; }
nav a.active { color: var(--brand) !important; }
nav a.active::after { transform: scaleX(1); }

.mobile-menu { color: var(--ink) !important; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%) !important;
    color: var(--ink) !important;
    padding: 7rem 0 6rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
/* Animované gradient orb-y — decentný "wow" efekt */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(13, 124, 79, 0.28), transparent 65%);
    top: -150px; left: -100px;
    animation: heroOrb1 18s ease-in-out infinite;
}
.hero::after {
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.22), transparent 65%);
    bottom: -120px; right: -80px;
    animation: heroOrb2 22s ease-in-out infinite;
}
@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(80px, 40px) scale(1.1); }
}
@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, -30px) scale(1.15); }
}
/* Subtle grid pattern overlay for texture */
.hero {
    background-image:
        linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%),
        radial-gradient(rgba(13, 124, 79, 0.04) 1px, transparent 1px) !important;
    background-size: auto, 32px 32px !important;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
    color: var(--ink) !important;
    font-size: clamp(2.6rem, 5vw, 4.2rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 1.25rem !important;
    max-width: 860px;
    margin-left: auto !important;
    margin-right: auto !important;
    /* Šťavnatý gradient text pre väčšiu vizuálnu hierarchiu */
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-strong) 70%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--ink-2) !important;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2.5rem !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.98rem !important;
    letter-spacing: -0.005em;
    border-radius: var(--r-sm) !important;
    padding: 0.85rem 1.55rem !important;
    border: 1px solid transparent !important;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* Subtle shine on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
    z-index: 0;
}
.btn:hover::before { transform: translateX(100%); }
.btn > * { position: relative; z-index: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px -2px rgba(13, 124, 79, 0.35), var(--sh-1);
}
.btn-primary:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(13, 124, 79, 0.45), var(--sh-2);
    text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--panel) !important;
    color: var(--ink) !important;
    border: 1px solid var(--border-strong) !important;
    margin-left: 0.5rem !important;
}
.btn-secondary:hover {
    background: var(--bg-tinted) !important;
    color: var(--ink) !important;
    border-color: var(--brand) !important;
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
    text-decoration: none;
}

/* ---------- Sections ---------- */
section { padding: 5rem 0 !important; position: relative; }
/* Striedavé svetlé pozadia pre vizuálny rytmus */
section + section + section:nth-of-type(even),
section.section-alt { background: var(--bg-tinted) !important; }

.section-title { margin-bottom: 3rem !important; text-align: center; }
.section-title h2 {
    color: var(--ink) !important;
    font-size: clamp(1.75rem, 2.8vw, 2.5rem) !important;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem !important;
    /* subtle gradient accent */
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-strong) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 0.85rem auto 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 2px;
}
.section-title p {
    color: var(--ink-muted) !important;
    font-size: 1.05rem !important;
    margin-top: 0.6rem;
}

/* ---------- Cards (services, news, generic) ---------- */
.service-card,
.news-card {
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r) !important;
    box-shadow: var(--sh-1) !important;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t) !important;
    padding: 1.75rem !important;
    position: relative;
    overflow: hidden;
}
/* Subtle top accent on hover */
.service-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service-card:hover,
.news-card:hover {
    border-color: rgba(13, 124, 79, 0.25) !important;
    box-shadow: 0 20px 40px -16px rgba(13, 124, 79, 0.2), var(--sh-3) !important;
    transform: translateY(-6px) !important;
}
.service-card:hover::before,
.news-card:hover::before { transform: scaleX(1); }
.service-card h3,
.news-card h3 { color: var(--ink) !important; margin-bottom: 0.5rem; transition: color var(--t-fast); }
.service-card:hover h3 { color: var(--brand-strong) !important; }
.service-icon {
    font-size: 2.75rem !important;
    margin-bottom: 1rem !important;
    filter: saturate(1.1) drop-shadow(0 4px 8px rgba(13, 124, 79, 0.15));
    transition: transform 0.4s var(--ease);
    display: inline-block;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }
.news-excerpt { color: var(--ink-muted) !important; }
.news-date { color: var(--ink-dim) !important; font-size: 0.85rem !important; }
.news-card-body { padding: 1.5rem !important; }
.news-card { padding: 0 !important; overflow: hidden; }

/* ---------- Badges ---------- */
.service-badge {
    background: var(--bg-tinted) !important;
    color: var(--ink-2) !important;
    border: 1px solid var(--border);
    padding: 0.25rem 0.7rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    border-radius: 999px !important;
}
.badge-full { background: #fef2f2 !important; color: #b91c1c !important; border-color: #fecaca !important; }
.badge-soon { background: #fef7e6 !important; color: #a16207 !important; border-color: #fde68a !important; }
.badge-new  { background: var(--brand-soft) !important; color: var(--brand-strong) !important; border-color: #bae9cf !important; }
.badge-sale { background: #eff6ff !important; color: #1d4ed8 !important; border-color: #bfdbfe !important; }

/* ---------- Sekcie so zvláštnym pozadím ---------- */
.news-section { background: var(--bg-tinted) !important; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-section { background: transparent !important; }
.partners-group-title { color: var(--ink-dim) !important; font-size: 0.78rem !important; font-weight: 600 !important; letter-spacing: 0.1em; }
.partner-logo { opacity: 0.72; transition: opacity var(--t), transform var(--t); filter: none !important; }
.partner-logo:hover { opacity: 1; transform: translateY(-2px); }
.partner-name { color: var(--ink-muted) !important; }

/* ---------- Gallery ---------- */
.gallery-item {
    border-radius: var(--r) !important;
    border: 1px solid var(--border);
    box-shadow: var(--sh-1);
    transition: transform var(--t), box-shadow var(--t);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.gallery-overlay { background: linear-gradient(transparent, rgba(15, 23, 42, 0.75)) !important; }

/* ---------- Contact ---------- */
.contact-info h3 { color: var(--brand) !important; }
.contact-icon { color: var(--brand) !important; }
.contact-item.address-box {
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-left: 3px solid var(--brand) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: var(--sh-1);
    color: var(--ink) !important;
}
.contact-item.address-box.prevádzka { border-left-color: var(--accent) !important; }
.contact-map {
    border-radius: var(--r) !important;
    border: 1px solid var(--border);
    box-shadow: var(--sh-1);
    overflow: hidden;
}

/* ---------- Footer ---------- */
footer {
    background: var(--bg-elevated) !important;
    border-top: 1px solid var(--border);
    color: var(--ink-2) !important;
    padding: 3.5rem 0 2rem !important;
}
footer p, footer a, footer span { color: var(--ink-2) !important; }
.footer-col h4 {
    color: var(--ink) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    margin-bottom: 1rem !important;
}
.footer-col a { color: var(--ink-muted) !important; padding: 0.3rem 0 !important; font-size: 0.92rem; }
.footer-col a:hover { color: var(--brand) !important; }
.footer-bottom {
    border-top: 1px solid var(--border) !important;
    color: var(--ink-dim) !important;
    font-size: 0.85rem !important;
    padding-top: 1.5rem !important;
}
.footer-bottom a { color: var(--ink-muted) !important; }
.footer-bottom a:hover { color: var(--brand) !important; }
.social-links a {
    background: var(--bg-tinted) !important;
    color: var(--ink-2) !important;
    border: 1px solid var(--border);
    transition: all var(--t);
}
.social-links a:hover {
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand);
    transform: translateY(-2px);
}

/* ---------- Forms ---------- */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    background: var(--panel) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--ink) !important;
    border-radius: var(--r-sm) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    transition: border-color var(--t-fast), box-shadow var(--t-fast) !important;
}
input::placeholder, textarea::placeholder { color: var(--ink-dim) !important; }
input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(13, 124, 79, 0.15) !important;
}

/* ---------- Modal ---------- */
.modal { background: rgba(15, 23, 42, 0.55) !important; backdrop-filter: blur(4px); }
.modal-content {
    background: var(--panel) !important;
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--border);
    box-shadow: var(--sh-4) !important;
}
.modal-close {
    background: var(--panel) !important;
    color: var(--ink) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: var(--sh-1);
}
.modal-close:hover { background: var(--bg-tinted) !important; }

/* ---------- CTA banner (2% dane) — elegantný zlatý ---------- */
.cta-2percent {
    background: linear-gradient(135deg, #fdf4df 0%, #f9eabf 100%) !important;
    border-top: 1px solid #f1d98f;
    border-bottom: 1px solid #f1d98f;
    box-shadow: none !important;
    padding: 1.5rem 0 !important;
}
.cta-text { color: var(--ink) !important; }
.cta-text h3 { color: var(--ink) !important; font-size: 1.15rem !important; margin-bottom: 0.25rem !important; }
.cta-text p { color: var(--ink-2) !important; font-size: 0.93rem !important; }
.cta-text strong { color: var(--brand-strong) !important; }
.cta-badge {
    background: rgba(15, 23, 42, 0.08) !important;
    color: var(--ink) !important;
    font-weight: 600 !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.btn-cta {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-radius: var(--r-sm) !important;
    padding: 0.7rem 1.3rem !important;
    box-shadow: var(--sh-1);
    font-weight: 500 !important;
}
.btn-cta:hover {
    background: var(--brand-strong) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--sh-2);
}

/* ---------- Page-wide inline-override normalisation ---------- */
/* Booking sekcia v index.html má množstvo inline štýlov — zjednotíme */
#booking { background: var(--bg-tinted) !important; border-top: 1px solid var(--border); }
#booking h3, #booking label, #booking strong, #booking p { color: var(--ink) !important; }
#booking > .container > div[style*="background:white"],
#booking > .container > div[style*="background: white"] {
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r) !important;
    box-shadow: var(--sh-1);
}
#booking div[style*="background:#fff3cd"],
#booking div[style*="background: #fff3cd"] {
    background: #fef7e6 !important;
    border: 1px solid #fde68a !important;
    border-radius: var(--r-sm) !important;
}
#booking div[style*="background:#fff3cd"] strong,
#booking div[style*="background: #fff3cd"] strong,
#booking div[style*="background:#fff3cd"] p,
#booking div[style*="background: #fff3cd"] p { color: #a16207 !important; }
#booking div[style*="background:#e8f5e9"],
#booking div[style*="background: #e8f5e9"] {
    background: var(--brand-soft) !important;
    border: 1px solid #bae9cf !important;
    color: var(--ink) !important;
    border-radius: var(--r-sm) !important;
}
#booking div[style*="background:#f8f9fa"],
#booking div[style*="background: #f8f9fa"] {
    background: var(--bg-tinted) !important;
    border-radius: var(--r-sm) !important;
}
#booking button[style*="background:white"],
#booking button[style*="background: white"] {
    background: var(--panel) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--ink) !important;
    border-radius: var(--r-sm) !important;
}
#booking button:hover { background: var(--bg-tinted) !important; }
#booking input, #booking select, #booking textarea { font-size: 0.95rem !important; }

/* Univerzálne zjednotenie bielych/sivých plôch cez stránky */
section div[style*="background:white"],
section div[style*="background: white"],
main div[style*="background:white"],
main div[style*="background: white"] {
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r) !important;
    box-shadow: var(--sh-1);
    color: var(--ink);
}
section div[style*="background:#f8f9fa"],
section div[style*="background: #f8f9fa"],
main div[style*="background:#f8f9fa"],
main div[style*="background: #f8f9fa"] {
    background: var(--bg-tinted) !important;
    border-radius: var(--r-sm) !important;
}

/* o-klube a iné pages — sekcia 2% */
.dane-section, .about-section, section[id="2percenta"] {
    background: var(--panel) !important;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.5rem !important;
    margin: 2rem 0;
    box-shadow: var(--sh-1);
}

/* Privacy / Cookies pages — obsahové bloky */
article, .legal-content, .content-block {
    color: var(--ink) !important;
}

/* ---------- Utility animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero > .container > * { animation: fadeUp 0.6s var(--ease) both; }
.hero > .container > *:nth-child(2) { animation-delay: 0.06s; }
.hero > .container > *:nth-child(3) { animation-delay: 0.12s; }
.hero > .container > *:nth-child(4) { animation-delay: 0.18s; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-dim); }

/* ---------- Selection ---------- */
::selection { background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- Focus ring ---------- */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip to content — accessible keyboard nav */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brand);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 0 0 10px 0;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.15s ease-out;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent);
    color: #fff;
    text-decoration: none;
}

/* Screen-reader-only text helper (pre aria labely, assistive tech) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    nav {
        background: var(--panel) !important;
        border-top: 1px solid var(--border);
        box-shadow: var(--sh-2);
    }
    nav a {
        color: var(--ink) !important;
        padding: 0.9rem 1.25rem !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .hero { padding: 4.5rem 0 3.5rem !important; }
    section { padding: 3.5rem 0 !important; }
    .btn-secondary { margin-left: 0 !important; margin-top: 0.5rem !important; }
}

/* ---------- Print ---------- */
@media print {
    body::before { display: none; }
    body { background: #fff !important; color: #000 !important; }
    header, footer, nav { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
