/* ============================================================
   NIVES — Antwerp breakfast, lunch & bakery
   Design tokens
   ============================================================ */
:root {
  --terracotta: #d1652f;
  --terracotta-dark: #ad4f22;
  --terracotta-tint: #f4e2d3;
  --cream: #faf6ed;
  --cream-deep: #f2ead9;
  --card: #fffdf8;
  --ink: #2b2620;
  --ink-soft: #5a5145;
  --forest: #47543a;
  --forest-dark: #333d29;
  --line: rgba(43, 38, 32, 0.12);

  --font-display: "Fraunces", "Liberation Serif", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 22px;
  --shadow-soft: 0 20px 45px -25px rgba(43, 38, 32, 0.35);
}

/* ============================================================
   Reset & base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 108px 0; position: relative; }
@media (max-width: 760px) { section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--terracotta);
  display: inline-block;
}

h2.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
h2.section-title em { font-style: italic; color: var(--terracotta); }

.section-lede {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { border-color: rgba(250,246,237,0.55); color: var(--cream); }
.btn-ghost:hover { background: rgba(250,246,237,0.14); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* ============================================================
   Language toggle system (data-lc attribute, NOT the lang attr)
   ============================================================ */
[data-lc] { display: none; }
html[data-lang="nl"] [data-lc="nl"],
html[data-lang="en"] [data-lc="en"] { display: inline; }

/* Components below set their own non-inline display (block, inline-block…)
   on elements that also carry data-lc. Those component rules have higher
   specificity than the generic toggle above, so they must be re-asserted
   here, scoped to the active language, or both languages end up showing
   at once. Any future .class + [data-lc] pairing needs the same treatment. */
html[data-lang="nl"] .num[data-lc="nl"],
html[data-lang="en"] .num[data-lc="en"] { display: block; }
html[data-lang="nl"] .num[data-lc="en"],
html[data-lang="en"] .num[data-lc="nl"] { display: none; }

html[data-lang="nl"] .tag[data-lc="nl"],
html[data-lang="en"] .tag[data-lc="en"] { display: inline-block; }
html[data-lang="nl"] .tag[data-lc="en"],
html[data-lang="en"] .tag[data-lc="nl"] { display: none; }

/* ============================================================
   Organic blob frames — Nives's own signature shape,
   echoing the hand-drawn outline around their wordmark
   ============================================================ */
.blob-a { clip-path: url(#blobA); border-radius: 0 !important; }
.blob-b { clip-path: url(#blobB); border-radius: 0 !important; }
.blob-c { clip-path: url(#blobC); border-radius: 0 !important; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  background: rgba(250,246,237,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  transition: color .3s ease;
}
.site-header:not(.is-scrolled) .brand-name { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
}
.site-header:not(.is-scrolled) .main-nav a:not(.btn) { color: #fff; }
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--terracotta);
  transition: right .25s ease;
}
.main-nav a:not(.btn):hover::after { right: 0; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
}
.lang-switch button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  color: inherit; opacity: 0.5; padding: 4px 2px;
}
.site-header:not(.is-scrolled) .lang-switch { color: #fff; }
.lang-switch button.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px;
  background: currentColor; position: relative; transition: .25s ease;
}
.site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
.nav-toggle span::before { position: absolute; top: -8px; width: 24px; background: currentColor; }
.nav-toggle span::after { position: absolute; top: 8px; width: 24px; background: currentColor; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0;
    background: var(--cream);
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 22px;
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a:not(.btn) { color: var(--ink) !important; font-size: 20px; }
  .lang-switch { color: var(--ink) !important; }
  .nav-toggle { display: block; z-index: 101; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 78%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,24,16,0.55) 0%, rgba(30,24,16,0.12) 32%, rgba(30,24,16,0.2) 55%, rgba(24,19,13,0.86) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-bottom: 88px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(250,246,237,0.16);
  border: 1px solid rgba(250,246,237,0.4);
  backdrop-filter: blur(6px);
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #8ba36f; display: inline-block; }

.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 15ch;
  font-weight: 500;
}
.hero h1 em { font-style: italic; color: #f0c39b; font-weight: 500; }

.hero-sub {
  margin-top: 26px;
  font-size: 19px;
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 34px; right: 28px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 34px; background: rgba(255,255,255,0.5); animation: scrolldown 2s infinite; }
@keyframes scrolldown { 0% { opacity: 0; transform: scaleY(0); transform-origin: top;} 40% {opacity:1; transform: scaleY(1); transform-origin: top;} 60% {transform-origin: bottom; transform: scaleY(1); opacity: 1;} 100% {transform-origin: bottom; transform: scaleY(0); opacity: 0;} }
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ============================================================
   Marquee strip
   ============================================================ */
.strip {
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.strip-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
}
.strip-track span { display: inline-flex; align-items: center; gap: 40px; }
.strip-track span::after { content: "·"; color: var(--terracotta); font-style: normal; margin-left: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .hero-scroll .line { animation: none; }
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-copy p { color: var(--ink-soft); font-size: 17px; margin-bottom: 1.15em; }
.about-copy .lead { font-family: var(--font-display); font-size: 24px; color: var(--ink); font-style: italic; line-height: 1.4; margin-bottom: 0.9em; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
@media (max-width: 520px) { .about-facts { grid-template-columns: 1fr 1fr; } }
.about-facts .num { font-family: var(--font-display); font-style: italic; font-size: 30px; color: var(--terracotta); display: block; }
.about-facts .label { font-size: 13px; color: var(--ink-soft); }

.about-media { position: relative; height: 560px; }
.about-media .ph-1 {
  position: absolute; width: 72%; top: 0; left: 0;
  height: 88%;
  box-shadow: var(--shadow-soft);
}
.about-media .ph-1 img { width: 100%; height: 100%; object-fit: cover; }
.about-media .ph-2 {
  position: absolute; width: 46%; bottom: 0; right: 0;
  height: 52%;
  border: 8px solid var(--cream);
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  overflow: hidden;
}
.about-media .ph-2 img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about-media { height: 420px; }
}
@media (max-width: 520px) {
  .about-media { height: 340px; }
}

/* ============================================================
   Menu
   ============================================================ */
.menu { background: var(--forest-dark); color: var(--cream); }
.menu .eyebrow { color: #cdd7bd; }
.menu .eyebrow::before { background: var(--terracotta); }
.menu h2.section-title { color: var(--cream); }
.menu h2.section-title em { color: #e79a5c; }
.menu .section-lede { color: rgba(250,246,237,0.72); }

.menu-note {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px;
  padding: 14px 20px;
  background: rgba(250,246,237,0.07);
  border: 1px solid rgba(250,246,237,0.15);
  border-radius: 14px;
  font-size: 14.5px;
  color: rgba(250,246,237,0.85);
  max-width: fit-content;
}

.menu-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(250,246,237,0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) { .menu-grid { grid-template-columns: 1fr; } }

.menu-cat { background: var(--forest-dark); padding: 44px; }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.menu-cat-head h3 { font-family: var(--font-display); font-style: italic; font-size: 26px; color: #f0c39b; }
.menu-cat-head span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,246,237,0.5); }

.menu-item { padding: 16px 0; border-top: 1px solid rgba(250,246,237,0.12); }
.menu-item:first-of-type { border-top: none; }
.menu-item-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.menu-item-row .name { font-weight: 600; font-size: 16.5px; }
.menu-item-row .price { font-family: var(--font-display); font-style: italic; color: var(--terracotta-dark); background: #f0c39b; padding: 1px 10px; border-radius: 999px; font-size: 14px; white-space: nowrap; color: var(--forest-dark); font-weight: 700; font-style: normal;}
.menu-item .desc { margin-top: 5px; font-size: 14.5px; color: rgba(250,246,237,0.62); line-height: 1.5; }
.menu-item .tag { display: inline-block; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(139,163,111,0.22); color: #b9d69f; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { background: var(--cream); }
.gallery-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 18px;
}
.g-item { overflow: hidden; position: relative; border-radius: 16px; background: var(--cream-deep); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.06); }
.g1 { grid-column: span 3; grid-row: span 3; }
.g2 { grid-column: span 3; grid-row: span 2; }
.g3 { grid-column: span 2; grid-row: span 2; }
.g4 { grid-column: span 2; grid-row: span 3; border-radius: 0; }
.g5 { grid-column: span 2; grid-row: span 2; }
.g6 { grid-column: span 3; grid-row: span 2; }
.g7 { grid-column: span 3; grid-row: span 2; }
.g8 { grid-column: span 2; grid-row: span 2; border-radius: 0; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .g1, .g2, .g6, .g7 { grid-column: span 4; }
  .g3, .g4, .g5, .g8 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g1, .g2, .g6, .g7, .g4 { grid-column: span 2; }
  .g3, .g5, .g8 { grid-column: span 1; }
}

/* ============================================================
   Visit
   ============================================================ */
.visit { background: var(--cream-deep); }
.visit-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; gap: 40px; } }

.visit-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.visit-block { margin-bottom: 30px; }
.visit-block:last-child { margin-bottom: 0; }
.visit-block h4 {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 12px; font-family: var(--font-body); font-weight: 700;
}
.visit-block a.contact-link {
  text-decoration: none; font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid transparent;
}
.visit-block a.contact-link:hover { border-color: var(--terracotta); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours-table td { padding: 7px 0; border-top: 1px solid var(--line); }
.hours-table tr:first-child td { border-top: none; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.closed td:last-child { color: var(--terracotta-dark); }
.hours-table tr.today td { color: var(--terracotta-dark); font-weight: 700; }

.walkin-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracotta-tint); color: var(--terracotta-dark);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
}

.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream-deep); display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--terracotta); color: #fff; transform: translateY(-2px); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(0.85) contrast(1.02); }
.map-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.map-placeholder-bg { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4) brightness(0.55); position: absolute; inset: 0; }
.map-placeholder-card {
  position: relative; z-index: 1;
  margin: 24px; padding: 22px 24px;
  background: var(--card);
  border-radius: 16px;
  max-width: 340px;
  box-shadow: var(--shadow-soft);
}
.map-placeholder-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.map-placeholder-card .btn { width: 100%; justify-content: center; }
.map-pill {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--card);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--forest-dark); color: rgba(250,246,237,0.82); padding: 70px 0 30px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 44px; border-bottom: 1px solid rgba(250,246,237,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand .brand-name { color: var(--cream); }
.footer-tagline { max-width: 30ch; color: rgba(250,246,237,0.6); font-size: 14.5px; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,246,237,0.5); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; text-decoration: none; color: rgba(250,246,237,0.85); font-size: 15px; margin-bottom: 10px; }
.footer-bottom {
  padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(250,246,237,0.45);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--terracotta); color: #fff;
  padding: 12px 20px; z-index: 999; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; }

/* ============================================================
   Cookie consent banner
   ============================================================ */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px -12px rgba(43,38,32,0.25);
  animation: consent-in .4s ease;
}
@keyframes consent-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.consent-banner[hidden] { display: none; }

.consent-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.consent-text { flex: 1 1 380px; }
.consent-text p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.consent-text strong { color: var(--ink); }
.consent-text a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
.consent-actions .btn, .consent-panel-actions .btn { padding: 12px 20px; font-size: 14px; }

/* Equal visual prominence for Accept / Reject, per Belgian DPA guidance:
   same size, same weight, same row — only fill color differs. */
.consent-actions .btn-outline, .consent-actions .btn-primary,
.consent-panel-actions .btn-outline, .consent-panel-actions .btn-primary {
  min-width: 130px;
  justify-content: center;
}

.consent-panel {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
}
.consent-panel[hidden] { display: none; }
.consent-panel-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 28px 30px;
}
.consent-panel-inner h3 { font-size: 20px; font-style: italic; margin-bottom: 6px; }
.consent-panel-intro { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; max-width: 62ch; }

.consent-category {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.consent-category:first-of-type { border-top: none; }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-category-name { font-weight: 700; font-size: 15px; }
.consent-category-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; max-width: 62ch; }
.toggle-locked { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--forest); }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-track {
  position: absolute; inset: 0;
  background: rgba(43,38,32,0.18);
  border-radius: 999px;
  transition: background .2s ease;
}
.switch-track::before {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform .2s ease;
}
.switch input:checked ~ .switch-track { background: var(--terracotta); }
.switch input:checked ~ .switch-track::before { transform: translateX(18px); }
.switch input:focus-visible ~ .switch-track { outline: 2.5px solid var(--terracotta); outline-offset: 3px; }

.consent-panel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 640px) {
  .consent-inner { padding: 18px 20px; flex-direction: column; align-items: stretch; }
  .consent-actions { flex-direction: column; }
  .consent-actions .btn { width: 100%; }
  .consent-panel-inner { padding: 22px 20px 26px; }
  .consent-panel-actions { flex-direction: column; }
  .consent-panel-actions .btn { width: 100%; }
}
