/* =========================================================
   Red River AI — warm, restrained, physical
   Palette: warm off-white, charcoal, logo red used sparingly.
   Type: size-specific tracking (tight display, neutral body,
   open small caps). Motion: transform/opacity only; springs in JS.
   ========================================================= */

:root {
    --bg: #fdfaf8;
    --bg-deep: #f6efea;
    --text: #1d1a18;
    --text-soft: #5d5651;
    --accent: #a90000;
    --accent-bright: #cc0c0c;
    --accent-tint: rgba(169, 0, 0, 0.07);
    --card-bg: #ffffff;
    --border: rgba(60, 30, 15, 0.09);
    --hairline: rgba(255, 255, 255, 0.7);

    --shadow-sm: 0 1px 2px rgba(40, 15, 5, 0.05), 0 2px 8px rgba(40, 15, 5, 0.04);
    --shadow-md: 0 2px 4px rgba(40, 15, 5, 0.04), 0 12px 32px rgba(40, 15, 5, 0.08);
    --shadow-lg: 0 4px 8px rgba(40, 15, 5, 0.05), 0 28px 64px rgba(40, 15, 5, 0.14);

    --radius: 20px;
    --radius-sm: 12px;
    --nav-h: 64px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --material: rgba(253, 250, 248, 0.72);
    --material-blur: blur(22px) saturate(180%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

html, body { overflow-x: clip; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1.0625rem;
    letter-spacing: -0.011em;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 max(24px, env(safe-area-inset-left));
}

/* ---------- Type scale: size, weight, leading, tracking as a set ---------- */
h1, h2, h3 { font-weight: 700; text-wrap: balance; }

h1 {
    font-size: clamp(2.6rem, 6.4vw + 0.4rem, 5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 750;
}

h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h2.section-title {
    font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 750;
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }

p { text-wrap: pretty; }

section { padding: clamp(64px, 9vw, 120px) 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 300;
    padding: 10px 16px;
    background: var(--text);
    color: #fff;
    border-radius: 10px;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons: respond on press, not release ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: -0.005em;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 120ms ease-out, background-color 160ms ease, color 160ms ease,
                border-color 160ms ease, box-shadow 160ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn:active { transform: scale(0.96); transition-duration: 60ms; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(120, 0, 0, 0.3),
                0 6px 16px -6px rgba(169, 0, 0, 0.5);
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-primary:active { background: #8f0000; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #fff; color: var(--accent); }
.btn-secondary:active { background: var(--accent-tint); }

/* ---------- Nav: translucent material, content scrolls beneath ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--material);
    -webkit-backdrop-filter: var(--material-blur);
    backdrop-filter: var(--material-blur);
    box-shadow: 0 1px 0 transparent;
    transition: box-shadow 250ms ease;
}
/* scroll-edge: hairline only appears once content is under the bar */
.navbar.scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px -12px rgba(40, 15, 5, 0.12); }

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    position: relative;
}

.nav-logo-img { height: 40px; width: auto; display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-menu a {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.005em;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: background-color 120ms ease, color 120ms ease, transform 100ms ease-out;
}
.nav-menu a:hover { background: rgba(60, 30, 15, 0.06); text-decoration: none; }
.nav-menu a:active { transform: scale(0.96); background: rgba(60, 30, 15, 0.1); }

.nav-menu .nav-cta {
    background: var(--accent);
    color: #fff;
    margin-left: 0.5rem;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
}
.nav-menu .nav-cta:hover { background: var(--accent-bright); }

.hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}
.hamburger:active { background: rgba(60, 30, 15, 0.08); }
.hamburger span {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 260ms var(--ease-out);
}
.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger.active span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.hamburger.active span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: clamp(56px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
    isolation: isolate;
}
/* static depth: a soft warm glow, no moving backgrounds */
.hero::before {
    content: "";
    position: absolute;
    inset: -20% 0 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 50% 0%, rgba(169, 0, 0, 0.09), transparent 70%),
        radial-gradient(40% 40% at 85% 30%, rgba(255, 170, 120, 0.12), transparent 70%);
}

.hero-logo {
    width: clamp(150px, 20vw, 210px);
    height: auto;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    padding: 10px 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
}

.hero h1 { max-width: 14ch; margin: 0 auto 1.25rem; }
.hero h1 { max-width: 15ch; }

.hero-subtitle {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
    line-height: 1.5;
    letter-spacing: -0.016em;
    color: var(--text-soft);
    max-width: 38em;
    margin: 0 auto 2.25rem;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .btn { padding: 0.95rem 1.8rem; font-size: 1rem; }

/* ---------- Offers ---------- */
.offers { padding-top: 0; }

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.card-offer {
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3vw, 2.25rem);
}
.card-offer h2 { font-size: 1.45rem; margin-bottom: 0.75rem; }
.card-offer p { margin-bottom: 0.75rem; }
.card-offer .card-action { margin-top: auto; padding-top: 1.25rem; }

.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent) !important;
    margin: 0.5rem 0 0.25rem;
}

/* ---------- Tabs: segmented control, thumb driven by spring ---------- */
.tabs {
    position: relative;
    display: flex;
    width: fit-content;
    margin: 0 auto 2.5rem;
    padding: 4px;
    border-radius: 999px;
    background: rgba(60, 30, 15, 0.07);
    box-shadow: inset 0 1px 2px rgba(40, 15, 5, 0.06);
}

.tab-thumb {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    width: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(40, 15, 5, 0.06), 0 3px 10px rgba(40, 15, 5, 0.12);
    will-change: transform, width;
}

.tab {
    position: relative;
    z-index: 1;
    padding: 0.6rem 1.75rem;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 160ms ease, transform 100ms ease-out;
    -webkit-tap-highlight-color: transparent;
}
.tab:active { transform: scale(0.96); }
.tab.active { color: var(--text); }
/* fallback if JS positioning hasn't run */
.tabs:not(.ready) .tab.active { background: #fff; box-shadow: var(--shadow-sm); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panel-in 320ms var(--ease-out); }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

.cards-grid-single {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
}

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
    transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

@media (hover: hover) {
    .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 0 1px var(--border); }
}
/* instant press feedback on the card itself */
.card:active { transform: scale(0.992); transition-duration: 80ms; }

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-soft); font-size: 0.975rem; line-height: 1.55; letter-spacing: -0.006em; }
.card p + p { margin-top: 0.65rem; }
.card-meta { font-size: 0.85rem !important; letter-spacing: 0.01em !important; }

.card-result {
    color: var(--accent) !important;
    font-weight: 600;
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
    border-radius: 14px;
    background: linear-gradient(160deg, #fff, var(--bg-deep));
    box-shadow: inset 0 1px 0 var(--hairline), 0 0 0 1px var(--border), 0 4px 10px -4px rgba(40, 15, 5, 0.18);
}

.card-training { text-align: center; }
.card-training .card-icon { margin-inline: auto; }
.card-training .card-price { margin-bottom: 1.25rem; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(var(--bg), var(--bg-deep) 18%, var(--bg-deep) 82%, var(--bg)); }

.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.75rem 2rem;
}
.pricing-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.pricing-card .price {
    font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -0.045em;
    color: var(--text);
    margin: 0.6rem 0 0.9rem;
    font-variant-numeric: tabular-nums;
}
.pricing-card .price-desc { font-size: 1rem; color: var(--text); min-height: 3em; }
.pricing-card .price-measure {
    margin: 0.75rem 0 1.75rem !important;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.pricing-card .btn { margin-top: auto; }

/* featured: a deeper, heavier surface */
.pricing-card.featured {
    background: linear-gradient(170deg, #c40c0c, #8d0000);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
}
.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .price-desc { color: #fff; }
.pricing-card.featured h3 { opacity: 0.8; }
.pricing-card.featured .price-measure { color: rgba(255, 255, 255, 0.85); }
.pricing-card.featured .btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4);
}
.pricing-card.featured .btn-primary:hover { background: #fff5f2; }
@media (hover: hover) {
    .pricing-card.featured:hover { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}
@media (min-width: 821px) {
    .pricing-card.featured { transform: translateY(-10px); }
    .pricing-card.featured:hover { transform: translateY(-13px); }
    .pricing-card.featured:active { transform: translateY(-10px) scale(0.992); }
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.about-text h2.section-title { text-align: left; }
.about-text p { color: var(--text-soft); margin-bottom: 1.1rem; max-width: 36em; }
.about-location { font-weight: 600; color: var(--text) !important; }

.about-visual {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: calc(var(--radius) + 8px);
    background: #fff;
    box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
}
.about-logo { max-width: 100%; width: 320px; height: auto; }

/* ---------- Métis Nation flag ---------- */
.metis-flag {
    display: block;
    width: 132px;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}
.metis-flag-figure { margin-top: 2rem; }
.metis-flag-caption {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ---------- Case Studies ---------- */
.case-studies { padding-top: 0; }

/* ---------- Footer ---------- */
.footer {
    background: #1b1715;
    color: #efe7e2;
    padding: clamp(48px, 7vw, 80px) 0 32px;
    border-radius: 32px 32px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 64px;
    width: auto;
    display: block;
    background: var(--bg);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
}

.footer-flag { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.25rem; }
.footer-flag img { width: 54px; height: auto; border-radius: 4px; display: block; }
.footer-flag span { font-size: 0.8rem; letter-spacing: 0.04em; color: #b4aaa4; }

.footer-heading { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.footer-newsletter p { color: #b4aaa4; font-size: 0.95rem; margin-bottom: 1rem; }

.newsletter-form { display: flex; gap: 0.6rem; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-family: inherit;
    font-size: 1rem; /* 16px: avoids iOS zoom */
}
.newsletter-form input::placeholder { color: #a0968f; }
.newsletter-form input:focus-visible { outline-color: #fff; outline-offset: 2px; border-radius: 999px; }
.newsletter-form .btn { flex-shrink: 0; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.005em;
    color: #b4aaa4;
}
.footer-links { display: flex; gap: 1.5rem; flex-shrink: 0; }
.footer-links a { color: #efe7e2; }
.footer-links a:hover { color: #fff; }
.footer a:focus-visible { outline-color: #fff; }

/* ---------- Cookie consent: floating material, materializes in ---------- */
#cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(720px, calc(100% - 32px));
    translate: -50% 0;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border-radius: 22px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border), inset 0 1px 0 var(--hairline);
    padding: 1rem 1.25rem;
    z-index: 200;
    animation: materialize 520ms var(--ease-out) 600ms backwards;
}
@keyframes materialize {
    from { opacity: 0; transform: translateY(16px) scale(0.96); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
}

.consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}
.consent-content p { font-size: 0.875rem; line-height: 1.45; flex: 1 1 260px; color: var(--text); }
.consent-buttons { display: flex; gap: 0.5rem; }
.consent-buttons .btn { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

/* ---------- Scroll reveal (enabled by JS only) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), box-shadow 400ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms;
}
.js .reveal.in { opacity: 1; transform: none; transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms; }
.js .reveal.in.settled { transition-delay: 0ms; }
@media (min-width: 821px) {
    .js .pricing-card.featured.reveal.in { transform: translateY(-10px); }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 960px) {
    .offers-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 820px) {
    .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; max-width: 520px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-text h2.section-title { text-align: center; }
    .about-text { text-align: center; }
    .about-text p { margin-inline: auto; }
    .metis-flag { margin-inline: auto; }
    .about-visual { order: -1; }

    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-logo { margin-inline: auto; }
    .footer-flag { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .hamburger { display: block; }

    /* menu sheet: translucent, hangs below the bar; position driven by spring/drag in JS */
    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem;
        background: rgba(253, 250, 248, 0.92);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        backdrop-filter: blur(30px) saturate(180%);
        border-radius: 24px;
        box-shadow: var(--shadow-lg), 0 0 0 1px var(--border), inset 0 1px 0 var(--hairline);
        transform-origin: 85% 0; /* grows out of the hamburger */
        visibility: hidden;
        opacity: 0;
        touch-action: pan-x;
    }
    .nav-menu.open { visibility: visible; }
    .nav-menu a { font-size: 1.1rem; padding: 0.9rem 1rem; text-align: center; border-radius: 14px; }
    .nav-menu .nav-cta { margin: 0.25rem 0 0; padding: 0.9rem 1rem; }
    /* without JS, the menu is a plain open list */
    html:not(.js) .nav-menu { visibility: visible; opacity: 1; position: static; box-shadow: none; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .consent-buttons { width: 100%; }
    .consent-buttons .btn { flex: 1; }
    .hero-buttons .btn { flex: 1 1 100%; max-width: 320px; }
    .tab { padding-inline: 1.4rem; }
    .pricing-card .price-desc { min-height: 0; }
}

/* ---------- Accessibility: reduced motion / transparency / contrast ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .card:hover, .card:active { transition: box-shadow 200ms ease; transform: none; }
    .js .reveal { transform: none; transition: opacity 250ms ease; }
    .js .pricing-card.featured.reveal.in { transform: none; }
    .tab-panel.active { animation: fade-in 200ms ease; }
    #cookie-consent-banner { animation: fade-in 250ms ease 300ms backwards; }
    .hamburger span { transition: none; }
    .btn:active, .tab:active, .nav-menu a:active { transform: none; }
    .pricing-card.featured, .pricing-card.featured:hover, .pricing-card.featured:active { transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-transparency: reduce) {
    .navbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-menu { background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    #cookie-consent-banner { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
    :root { --border: rgba(0, 0, 0, 0.55); --text-soft: #2e2926; }
    .navbar, #cookie-consent-banner, .nav-menu { background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .card { box-shadow: 0 0 0 1.5px var(--border); }
    .btn-secondary { border-color: var(--text); }
}
