/* =====================================================================
   DAVID MAREŠ – PORTFOLIO (hi-fi)
   Apple-like bento · warm off-white · Inter Tight · orange accent
   Aesthetic distilled from moodboard: Alex Carter, Showcasy,
   Sebastian Petravic, Mobin.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  /* surfaces */
  --bg: #F3F2EE;
  --surface: #FFFFFF;
  --surface-2: #EAE8E2;
  --surface-3: #E3E0D8;

  /* ink */
  --ink: #1A1916;
  --ink-2: #6F6C64;
  --ink-3: #A9A59B;
  --ink-faint: #CFCBC1;

  --line: rgba(26,25,22,.09);
  --line-2: rgba(26,25,22,.06);

  /* accent (tweakable via [data-accent]) */
  --accent: #FB5A0F;
  --accent-2: #FF7A3C;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE8DC;

  --good: #1F9D55;

  /* radius (tweakable via [data-radius]) */
  --r: 26px;
  --r-lg: 34px;
  --r-md: 20px;
  --r-sm: 13px;
  --pill: 999px;

  /* fonts (tweakable via [data-display]) */
  --display: "Inter Tight", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(26,25,22,.04), 0 2px 8px rgba(26,25,22,.04);
  --shadow: 0 2px 6px rgba(26,25,22,.05), 0 12px 34px rgba(26,25,22,.07);
  --shadow-lg: 0 4px 10px rgba(26,25,22,.06), 0 30px 70px rgba(26,25,22,.10);

  --maxw: 1320px;
  --gap: 24px;
}

/* accent themes */
[data-accent="blue"]  { --accent:#2D6BFF; --accent-2:#5C8CFF; --accent-soft:#DEE8FF; }
[data-accent="green"] { --accent:#16915A; --accent-2:#34B077; --accent-soft:#D6F0E2; }
[data-accent="violet"]{ --accent:#6A48E0; --accent-2:#8E72F0; --accent-soft:#E7E0FF; }

/* radius themes */
[data-radius="sharp"] { --r:12px; --r-lg:16px; --r-md:10px; --r-sm:8px; }

/* display font themes */
[data-display="grotesk"] { --display: "Inter Tight", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- layout (Figma grid: 12 col · margin 60 · gutter 24 @ 1440) ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 60px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
section[id] { scroll-margin-top: 90px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
}
.d-hero { font-size: clamp(44px, 7vw, 92px); }
.d-1 { font-size: clamp(34px, 4.6vw, 60px); }
.d-2 { font-size: clamp(27px, 3vw, 40px); letter-spacing: -.025em; line-height: 1.02; }
.d-3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.08; font-weight: 600; }
.faint { color: var(--ink-faint); }
.muted { color: var(--ink-2); }
.accent-txt { color: var(--accent); }

.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-2);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .idx { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.eyebrow.plain::before { display: none; }

.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 56ch; }
p { text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.btn .ico { display: inline-flex; transition: transform .25s ease; }
.btn .ico svg { width: 1.05em; height: 1.05em; display: block; }
.btn:hover .ico { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,25,22,.22); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in oklab, var(--accent) 45%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 600; color: var(--ink);
  transition: gap .2s, color .2s;
}
.textlink:hover { gap: 11px; color: var(--accent); }
.textlink svg { width: 1em; height: 1em; display: block; }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); position: relative; }
.pill .dot::after { content:""; position:absolute; inset:-4px; border-radius:50%; background: var(--good); opacity:.28; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{transform:scale(.8);opacity:.5;} 100%{transform:scale(2.2);opacity:0;} }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: var(--pill);
}
.chip.solid { background: var(--surface-2); border-color: transparent; }

/* card label pill (floating, bento) */
.cardlabel {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 7px 13px; border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}
.cardlabel .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 12px 18px 12px 22px;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand .logo { height: 30px; width: 30px; display: block; border-radius: 8px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color:#fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
[data-radius="sharp"] .brand .mark { border-radius: 5px; }
.brand .dot { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 40px; }
.hero-head { max-width: 1000px; }
.hero h1 { margin: 22px 0 0; }
.hero .d-hero .w-mut { color: #aba89f; }
.hero .d-hero .w-acc { color: var(--accent); }
.inline-face {
  display: inline-block; vertical-align: -0.16em;
  width: 0.92em; height: 0.92em; border-radius: 0.26em;
  object-fit: cover; margin: 0 0.12em; box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.hero-sub { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }

/* ---------- bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card.soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.card.ink { background: var(--ink); color: #fff; border-color: transparent; }
.card.ink .muted { color: rgba(255,255,255,.6); }
.card.pad-lg { padding: 34px; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* image placeholder slot styling */
.shot {
  border-radius: var(--r-md); background: var(--surface-3); position: relative; overflow: hidden;
  border: 1px solid var(--line-2);
}
.shot .ph { position:absolute; inset:0; display:grid; place-items:center; font-family:var(--body); font-size:12px; color:var(--ink-3); letter-spacing:.04em; }
.ratio-16-9 { aspect-ratio: 16/9; } .ratio-4-3 { aspect-ratio:4/3; } .ratio-1-1 { aspect-ratio:1/1; } .ratio-3-2 { aspect-ratio:3/2; }

/* ---------- scroll-highlight statement ---------- */
.statement { padding: 110px 0; }
.statement.dark { background: var(--ink); }
.reveal-text {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.18; letter-spacing: -.025em;
  max-width: 19ch;
}
.reveal-text .word { color: var(--ink-faint); transition: color .25s ease; }
.statement.dark .reveal-text .word { color: rgba(255,255,255,.18); }
.reveal-text .word.on { color: var(--ink); }
.statement.dark .reveal-text .word.on { color: #fff; }
.reveal-text .word.acc.on { color: var(--accent); }
.statement .tagline { margin-top: 28px; }

/* ---------- service rows ---------- */
.srv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
.srv .card { gap: 14px; min-height: 270px; justify-content: space-between; }
.srv .ico {
  width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
[data-radius="sharp"] .srv .ico { border-radius: 7px; }
.srv .ico svg { width: 24px; height: 24px; }
.srv h3 { margin: 0; }
.srv .card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.srv .num { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-3); }

/* ---------- before/after audit ---------- */
.audit {
  position: relative; width: 100%; aspect-ratio: 16/10;
  border-radius: var(--r); overflow: hidden; user-select: none;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.audit .pane { position: absolute; inset: 0; }
.audit .pane .inner { position: absolute; inset: 0; padding: 30px clamp(24px,4vw,52px); display: flex; }
.audit .after { z-index: 1; background: var(--surface); }
.audit .before { z-index: 2; clip-path: inset(0 50% 0 0); background: #F0EEE8; }
.audit-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; }
.audit .plabel {
  position: absolute; top: 18px; z-index: 4;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .06em;
  padding: 7px 13px; border-radius: var(--pill);
}
.audit .before .plabel { left: 18px; background: rgba(26,25,22,.08); color: var(--ink-2); }
.audit .after .plabel { right: 18px; background: var(--good); color: #fff; }
.audit .handle { position: absolute; top: 0; bottom: 0; z-index: 5; width: 2px; background: #fff; box-shadow: 0 0 0 1px var(--line); transform: translateX(-1px); cursor: ew-resize; }
.audit .handle .grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--ink);
}
.audit .handle .grip svg { width: 20px; height: 20px; }

/* mini wireframe inside audit */
.mini { display:flex; flex-direction:column; gap:11px; width:100%; }
.mini .bar { height: 10px; border-radius: 5px; background: var(--surface-3); }
.mini .box { background: var(--surface-3); border-radius: 9px; }
.before .mini .bar, .before .mini .box { background: #DAD7CE; }
.mini .row { display: flex; gap: 9px; align-items: center; }
.mini .btnk { height: 26px; border-radius: 7px; }
.after .mini .btnk { background: var(--accent); }
.before .mini .btnk { background: #CFC; background: #D2CFC6; }
.after .mini .h { height: 22px; width: 62%; border-radius: 7px; background: var(--ink); opacity:.86; }
.before .mini .clutter { display:flex; flex-wrap:wrap; gap:6px; }
.before .mini .clutter span { height: 9px; border-radius: 4px; background:#D8D5CC; }

/* ---------- booking ---------- */
.booking { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.booking .side { background: var(--surface-2); padding: 38px; display:flex; flex-direction:column; gap: 20px; }
.booking .main { background: var(--surface); padding: 38px; }
.book-get { display:flex; flex-direction:column; gap: 16px; }
.book-get .item { display:flex; gap:12px; align-items:flex-start; }
.book-get .tick { width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none;margin-top:1px; }
.book-get .tick svg { width:13px;height:13px; }
.book-get .item p { margin:0; font-size:15px; color:var(--ink); }
input.input, textarea.input { -webkit-appearance:none; appearance:none; outline:none; color:var(--ink); display:block; }
input.input::placeholder, textarea.input::placeholder { color:var(--ink-3); }
input.input:focus, textarea.input:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.input { width:100%; height:50px; border-radius:var(--r-sm); border:1px solid var(--line); background:var(--surface); padding:0 16px; font-family:var(--body); font-size:15px; color:var(--ink-2); display:flex; align-items:center; }
textarea.input { height:auto; padding-top:13px; padding-bottom:13px; line-height:1.5; resize:vertical; }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.cal-nav { display:flex; gap:8px; }
.cal-nav button { width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);cursor:pointer;display:grid;place-items:center; }
.cal-nav button svg { width:16px; height:16px; }
.cal-nav button:hover:not(:disabled) { border-color:var(--ink-3); color:var(--ink); }
.cal-nav button:disabled { opacity:.35; cursor:not-allowed; }
.days { display:grid; grid-template-columns:repeat(5,1fr); gap:9px; margin-bottom:24px; }
.day { display:flex; flex-direction:column; align-items:center; gap:6px; padding:13px 4px; border:1px solid var(--line); border-radius:var(--r-sm); cursor:pointer; background:var(--surface); transition:all .15s; font-family:var(--body); width:100%; }
.day .dw { font-size:11px; font-weight:600; letter-spacing:.08em; color:var(--ink-3); text-transform:uppercase; line-height:1; }
.day .dn { font-family:var(--display); font-weight:700; font-size:19px; line-height:1; color:var(--ink); }
.day:hover { border-color:var(--ink-3); }
.day.on { background:var(--ink); border-color:var(--ink); }
.day.on .dw { color:rgba(255,255,255,.65); } .day.on .dn { color:#fff; }
.slots { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.slot { text-align:center; padding:13px 0; border:1px solid var(--line); border-radius:var(--r-sm); cursor:pointer; font-family:var(--display); font-weight:600; font-size:15px; color:var(--ink-2); background:var(--surface); transition:all .15s; }
.slot:hover { border-color:var(--ink-3); color:var(--ink); }
.slot.on { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }

/* ---------- work bento ---------- */
.work-card { padding: 0; overflow: hidden; }
.work-card .thumb { aspect-ratio: 16/11; background: var(--surface-2); position: relative; overflow: hidden; }
.work-card .thumb .ph { position:absolute; inset:0; display:grid; place-items:center; color:var(--ink-3); font-size:13px; }
.work-card .meta { padding: 22px 24px 24px; display:flex; flex-direction:column; gap: 12px; }
.work-card .meta .top { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.work-card .tags { display:flex; gap:7px; flex-wrap:wrap; }
.work-card .tags .t { font-size:12px; font-weight:500; color:var(--ink-2); background:var(--surface-2); padding:5px 11px; border-radius:var(--pill); }
.metric-inline { font-family:var(--display); font-weight:700; color:var(--accent); }

/* ---------- process ---------- */
.proc { display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gap); }
.proc .step { display:flex; flex-direction:column; gap:14px; }
.proc .badge { width:42px;height:42px;border-radius:13px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:16px;color:var(--ink); box-shadow:var(--shadow-sm); }
[data-radius="sharp"] .proc .badge { border-radius:7px; }
.proc .step h3 { margin:0; font-size:18px; }
.proc .step p { margin:0; font-size:14.5px; color:var(--ink-2); }

/* ---------- reference ---------- */
.quote-big { font-family:var(--display); font-weight:600; font-size:clamp(24px,3.2vw,40px); line-height:1.28; letter-spacing:-.02em; max-width:24ch; margin:0 auto; text-align:center; }
.quote-big .accent-txt { color: var(--accent); }
.quote-author { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:34px; }
.quote-author img { width:52px;height:52px;border-radius:50%;object-fit:cover; }
.quote-author .nm { font-family:var(--display); font-weight:600; }
.quote-author .rl { font-size:13px; color:var(--ink-2); }

/* mini review widgets (Mobin) */
.reviews { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-top:54px; }
.review .stars { color:var(--accent); letter-spacing:2px; font-size:14px; }
.review p { font-size:15px; color:var(--ink); margin:14px 0 18px; }
.review .who { display:flex; align-items:center; gap:11px; }
.review .who .av { width:38px;height:38px;border-radius:50%;background:var(--surface-2); }
.review .who .nm { font-family:var(--display); font-weight:600; font-size:14px; }
.review .who .rl { font-size:12px; color:var(--ink-2); }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-top:1px solid var(--line); }
.faq-item:last-child { border-bottom:1px solid var(--line); }
.faq-q { width:100%; text-align:left; background:none; border:0; cursor:pointer; padding:24px 0; display:flex; align-items:center; justify-content:space-between; gap:20px; font-family:var(--display); font-weight:600; font-size:clamp(17px,1.8vw,21px); color:var(--ink); letter-spacing:-.01em; }
.faq-q .pm { flex:none; width:30px;height:30px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink-2); transition:transform .25s, background .2s, color .2s; }
.faq-item.open .faq-q .pm { transform:rotate(45deg); background:var(--ink); color:#fff; border-color:var(--ink); }
.faq-a { overflow:hidden; max-height:0; transition:max-height .3s ease; }
.faq-a p { margin:0 0 24px; color:var(--ink-2); font-size:16px; max-width:64ch; }

/* ---------- contact ---------- */
.contact-card { background:var(--ink); color:#fff; border-radius:var(--r-lg); padding:clamp(36px,5vw,64px); position:relative; overflow:hidden; }
.contact-card .glow { position:absolute; right:-10%; top:-30%; width:460px;height:460px;border-radius:50%; background:radial-gradient(circle, color-mix(in oklab,var(--accent) 60%, transparent), transparent 70%); filter:blur(20px); opacity:.5; pointer-events:none; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; position:relative; }
.contact-card input.input, .contact-card textarea.input { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); color:#fff; }
.contact-card input.input::placeholder, .contact-card textarea.input::placeholder { color:rgba(255,255,255,.5); }
.contact-card .input { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); color:#fff; }
.contact-card .field-area { height:104px; align-items:flex-start; padding-top:14px; }
.contact-card .muted { color:rgba(255,255,255,.6); }

/* ---------- footer ---------- */
.footer { padding:48px 0 56px; border-top:1px solid var(--line); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer .links { display:flex; gap:22px; }
.footer .links a { font-size:14px; color:var(--ink-2); }
.footer .links a:hover { color:var(--ink); }

/* ---------- reveal on scroll (visible by default; hidden only when JS active) ---------- */
.r-up { transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
html.anim .r-up { opacity:0; transform: translateY(22px); }
html.anim .r-up.in { opacity:1; transform:none; }
.r-up.d1 { transition-delay:.06s; } .r-up.d2 { transition-delay:.12s; } .r-up.d3 { transition-delay:.18s; } .r-up.d4 { transition-delay:.24s; }

/* ---------- segment switch (audit) ---------- */
[data-seg-view][hidden] { display: none !important; }
.seg-switch { display:flex; width:max-content; max-width:100%; gap:6px; margin:0 auto 38px; padding:6px; background:var(--surface-2); border-radius:var(--pill); }
.seg-btn { display:flex; flex-direction:column; align-items:flex-start; gap:1px; border:0; cursor:pointer; background:transparent; padding:11px 22px; border-radius:var(--pill); font-family:var(--display); color:var(--ink-2); transition:background .18s, color .18s, box-shadow .18s; text-align:left; }
.seg-btn .t { font-weight:600; font-size:15px; letter-spacing:-.01em; }
.seg-btn .s { font-size:12px; font-weight:500; color:var(--ink-3); }
.seg-btn:hover { color:var(--ink); }
.seg-btn.on { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.seg-btn.on .s { color:var(--accent); }
[data-radius="sharp"] .seg-switch, [data-radius="sharp"] .seg-btn { border-radius:10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
}
@media (max-width: 980px) {
  .srv, .proc, .reviews { grid-template-columns: 1fr 1fr; }
  .booking, .contact-grid { grid-template-columns: 1fr; }
  .col-3,.col-4,.col-5,.col-6,.col-7,.col-8 { grid-column: span 6; }
  .nav-links { display:none; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .srv, .proc, .reviews, .bento { grid-template-columns: 1fr; }
  .col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-12 { grid-column: span 1; }
  .container { padding: 0 20px; }
  .hero-sub { gap:18px; }
  .seg-btn { padding:10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html.anim .r-up { transition: none; opacity:1; transform:none; }
  .pill .dot::after { animation: none; }
}

/* =====================================================================
   PRODUCTION ADDITIONS (David Mareš web app)
   ===================================================================== */

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .seg-btn:focus-visible { outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- mobile nav ---------- */
.nav-cta-mobile { display: none; } /* only shown inside the mobile menu */
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; flex: none; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
body.nav-open .nav-toggle .ic-open { display: none; }
body.nav-open .nav-toggle .ic-close { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 78px 14px auto 14px; z-index: 90;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(.99);
    pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; border-radius: 11px; font-size: 16px; }
  .nav-links a:hover { background: var(--surface-2); }
  .nav-links .nav-cta-mobile {
    display: flex; justify-content: center; margin-top: 6px;
    background: var(--ink); color: #fff;
  }
  .nav-links .nav-cta-mobile:hover { background: var(--ink); }
}

/* ---------- forms: feedback + states ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-error { font-size: 12.5px; color: #D6452B; font-weight: 500; display: none; }
.input.invalid { border-color: #D6452B; box-shadow: 0 0 0 3px rgba(214,69,43,.14); }
.input.invalid + .field-error { display: block; }
.contact-card .input.invalid { border-color: #ff9b87; box-shadow: 0 0 0 3px rgba(255,155,135,.2); }

.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { margin-top: 12px; font-size: 13.5px; border-radius: var(--r-sm); padding: 12px 15px; display: none; line-height: 1.45; }
.form-note.show { display: block; }
.form-note.ok { background: color-mix(in oklab, var(--good) 14%, transparent); color: var(--good); border: 1px solid color-mix(in oklab, var(--good) 30%, transparent); }
.form-note.err { background: rgba(214,69,43,.1); color: #c23a22; border: 1px solid rgba(214,69,43,.3); }
.contact-card .form-note.ok { background: var(--good); color: #fff; border-color: transparent; font-weight: 500; }
.contact-card .form-note.err { background: rgba(255,120,90,.16); color: #ffd9cf; border-color: rgba(255,120,90,.4); }

.consent-required { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent-required input { margin: 1px 0 0; accent-color: var(--accent); width: 17px; height: 17px; flex: none; cursor: pointer; }
.consent-required span { flex: 1; min-width: 0; }
.consent-required a { color: var(--accent); text-decoration: underline; white-space: nowrap; }
.contact-card .consent-required { color: rgba(255,255,255,.62); }
.contact-card .consent-required a { color: #fff; }

/* ---------- cookie consent banner ---------- */
.cc-banner {
  position: fixed; right: 18px; left: auto; bottom: 18px; z-index: 1000;
  width: min(400px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 22px 24px; transform: translateY(160%); transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
@media (max-width: 480px) { .cc-banner { right: 12px; left: 12px; bottom: 12px; width: auto; } }
.cc-banner.show { transform: none; }
.cc-banner h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0 0 6px; letter-spacing: -.02em; }
.cc-banner p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cc-banner p a { color: var(--accent); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-actions .btn { flex: 1 1 auto; justify-content: center; font-size: 14.5px; padding: 12px 18px; }
.cc-actions .btn-link { background: none; border: 0; color: var(--ink-2); font-family: var(--display); font-weight: 600; cursor: pointer; font-size: 13.5px; padding: 12px 8px; flex: 1 1 100%; order: 3; }
.cc-actions .btn-link:hover { color: var(--ink); }

/* settings modal */
.cc-modal { position: fixed; inset: 0; z-index: 1001; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(26,25,22,.5); backdrop-filter: blur(4px); }
.cc-modal.show { display: flex; }
.cc-modal-inner { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-lg); max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 28px; }
.cc-modal h2 { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.cc-modal > .cc-modal-inner > p { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.cc-row { border-top: 1px solid var(--line); padding: 18px 0; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.cc-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.cc-row .cc-text h4 { font-family: var(--display); font-size: 15.5px; font-weight: 600; margin: 0 0 4px; }
.cc-row .cc-text p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.45; }
.cc-switch { position: relative; flex: none; width: 46px; height: 26px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch .track { position: absolute; inset: 0; background: var(--surface-3); border-radius: 999px; transition: background .2s; }
.cc-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s; }
.cc-switch input:checked + .track { background: var(--accent); }
.cc-switch input:checked + .track::after { transform: translateX(20px); }
.cc-switch input:disabled + .track { background: var(--ink-3); opacity: .6; cursor: not-allowed; }
.cc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-modal-actions .btn { flex: 1 1 auto; justify-content: center; }

.cc-open-link { background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink-2); padding: 0; }
.cc-open-link:hover { color: var(--ink); }

/* ---------- legal / prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose .lead { font-size: clamp(17px,1.5vw,19px); color: var(--ink-2); margin: 0 0 8px; }
.prose h1.display { margin-bottom: 10px; }
.prose .updated { font-size: 13px; color: var(--ink-3); margin: 0 0 40px; }
.prose h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 23px; margin: 40px 0 14px; line-height: 1.15; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 26px 0 10px; }
.prose p { font-size: 16px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.65; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; line-height: 1.6; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-family: var(--display); font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }
.legal-toc { background: var(--surface-2); border-radius: var(--r-md); padding: 22px 26px; margin: 0 0 36px; }
.legal-toc h2 { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.legal-toc li { margin-bottom: 7px; font-size: 14px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--display); font-weight: 800; font-size: clamp(80px,18vw,180px); line-height: 1; color: var(--accent); letter-spacing: -.04em; }

/* ---------- footer (single unified bar) ---------- */
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.footer-meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-meta a, .footer-meta .cc-open-link { font-size: 14px; color: var(--ink-2); font-family: var(--body); }
.footer-meta a:hover, .footer-meta .cc-open-link:hover { color: var(--ink); }
.footer-copy { font-size: 13px; }
@media (max-width: 720px) {
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- booking confirmation modal ---------- */
.bk-modal { position: fixed; inset: 0; z-index: 1001; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(26,25,22,.5); backdrop-filter: blur(4px); }
.bk-modal.show { display: flex; }
.bk-modal-inner { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 34px; animation: bk-pop .25s cubic-bezier(.22,.61,.36,1); }
.bk-modal .form { gap: 14px; }
.bk-modal .input { height: 54px; border-radius: var(--r-md); background: var(--surface-2); border-color: transparent; padding: 0 18px; font-size: 15.5px; color: var(--ink); }
.bk-modal .input::placeholder { color: var(--ink-3); }
.bk-modal .input:focus { background: var(--surface); border-color: var(--accent); }
.bk-modal .consent-required { background: var(--surface-2); border-radius: var(--r-md); padding: 13px 15px; }
@keyframes bk-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.bk-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); transition: color .15s, border-color .15s; }
.bk-close:hover { color: var(--ink); border-color: var(--ink-3); }
.bk-close svg { width: 18px; height: 18px; }
.bk-modal h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.bk-modal .field { margin-bottom: 11px; }
.bk-summary { font-size: 15px; color: var(--ink-2); margin: 12px 0 22px; line-height: 1.5; }
.bk-summary strong { color: var(--ink); }
.bk-success { text-align: center; padding: 8px 0; }
.bk-success .ok-ico { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in oklab, var(--good) 16%, transparent); color: var(--good); display: grid; place-items: center; margin: 0 auto 16px; }
.bk-success .ok-ico svg { width: 28px; height: 28px; }

/* image lazy fade */
img.lazy-fade { opacity: 0; transition: opacity .5s ease; }
img.lazy-fade.loaded, img.lazy-fade[loading="eager"] { opacity: 1; }
