/* =========================================================================
   CARELLI — design tokens (mobile first)
   Concept: the workshop from the logo photo. Petrol-green wall, gold emblem.
   Headings in classic capitals with flared terminals, like the logo lettering;
   monospace for real measurements (µm, lei, hours).

   Base styles target phones. Larger screens are layered on with
   @media (min-width: …): --bp-md = 640px, --bp-lg = 960px.

   Change colors ONLY here. The rest of the file uses the variables.
   ========================================================================= */
:root {
  /* Base colors */
  --c-ink:        #0B2B28;  /* page background, near-black petrol */
  --c-lacquer:    #103A35;  /* surfaces: sections, cards */
  --c-emerald:    #0A6F63;  /* emerald leaning petrol, the brand color */
  --c-emerald-hi: #17AD9A;  /* bright emerald: hover, focus, small accents */
  --c-gold:       #C9A45C;  /* gold: labels, primary button */
  --c-gold-hi:    #E2C27F;  /* light gold: primary button hover */
  --c-sand-soft:  #EFE8DA;  /* cream: body text */
  --c-muted:      #A2B9B5;  /* secondary text, petrol grey */
  --c-line:       #22524B;  /* hairlines, borders */
  --c-danger:     #D98B6C;  /* form errors */

  /* Roles: components use the roles, never the base colors directly */
  --bg:           var(--c-ink);
  --surface:      var(--c-lacquer);
  --surface-2:    #144640;
  --fg:           var(--c-sand-soft);
  --fg-muted:     var(--c-muted);
  --accent:       var(--c-gold);
  --accent-hi:    var(--c-gold-hi);
  --brand:        var(--c-emerald);
  --brand-hi:     var(--c-emerald-hi);
  --line:         var(--c-line);
  --on-accent:    var(--c-ink);

  /* Typography */
  --f-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;  /* capitals with flared terminals, like the logo */
  --f-body:    "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-md: 1.125rem;
  --t-lg: 1.375rem; --t-xl: 1.75rem;
  --t-2xl: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  --t-hero: clamp(2.35rem, 1.4rem + 4.6vw, 4.75rem);

  /* Spacing and shapes */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --section-y: var(--s-8);   /* space between sections; grows on large screens */
  --radius: 4px;             /* near-square corners, like body panels */
  --wrap: 1120px;
  --tap: 48px;               /* minimum height of tappable elements */

  color-scheme: dark;
}
@media (min-width: 960px) { :root { --section-y: var(--s-9); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: var(--t-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: .02em; }
h1 { font-size: var(--t-hero); font-weight: 500; }
h2 { font-size: var(--t-2xl); font-weight: 500; }
h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: .01em; }
p { margin: 0; max-width: 60ch; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.stack { display: grid; gap: var(--s-4); }
.muted { color: var(--fg-muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-head p { color: var(--fg-muted); }
@media (min-width: 960px) { .section-head { margin-bottom: var(--s-7); } }
.example-note {
  display: inline-block; font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--fg-muted); border: 1px dashed var(--line); padding: 2px 8px; border-radius: var(--radius);
}
.link-arrow { color: var(--fg); font-weight: 600; font-size: var(--t-sm); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.link-arrow::after { content: "→"; margin-left: .5em; color: var(--accent); transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); font: 600 var(--t-sm)/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
  padding: 0 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--brand-hi); }
.btn--brand { background: var(--brand); color: var(--fg); }
.btn--brand:hover { background: var(--brand-hi); }
.btn--block { width: 100%; }
@media (min-width: 640px) { .btn--block { width: auto; } }

/* ---------- Header + menu ---------- */
/* Header logo: 1027×701 source scaled to 176×120 (2× for a 60px display height) */
.site-header .logo { display: flex; align-items: center; padding-block: 4px; }
.site-header .logo img { display: block; height: 52px; width: auto; }
@media (min-width: 960px) { .site-header .logo img { height: 60px; } }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.logo {
  font-family: var(--f-display); font-weight: 600; font-size: 1.3rem;
  letter-spacing: .14em; text-decoration: none; color: var(--accent); margin-right: auto;
}
.menu-btn {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 .25rem;
  background: none; border: 0; color: var(--fg); font: 600 var(--t-sm)/1 var(--f-body); cursor: pointer;
}
.menu-btn .bars { width: 20px; height: 10px; border-block: 2px solid currentColor; transition: height .15s; }
.menu-btn[aria-expanded="true"] .bars { height: 2px; border-bottom: 0; }
.nav { display: none; }
.nav.is-open {
  display: grid; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--s-3) max(20px, env(safe-area-inset-right, 0px)) var(--s-5) max(20px, env(safe-area-inset-left, 0px));
}
.nav a { text-decoration: none; color: var(--fg-muted); display: flex; align-items: center; min-height: var(--tap); border-bottom: 1px solid var(--line); font-size: var(--t-md); }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
/* Services sub-menu: indented list on phones, dropdown on desktop */
.nav-group { display: grid; }
.subnav { display: grid; padding-left: var(--s-4); }
.subnav a { font-size: var(--t-base); }
.header-cta { display: none; }
@media (min-width: 960px) {
  .site-header .wrap { min-height: 72px; gap: var(--s-6); }
  .menu-btn { display: none; }
  .nav, .nav.is-open { display: flex; position: static; gap: var(--s-5); padding: 0; border: 0; background: none; }
  .nav a { min-height: 0; border: 0; font-size: var(--t-sm); }
  .nav > a[aria-current], .nav-group > a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
  .nav { align-items: center; }
  .nav-group { position: relative; display: flex; align-items: center; }
  .subnav {
    display: none; position: absolute; top: 100%; left: calc(-1 * var(--s-4)); min-width: 230px;
    padding: var(--s-3) 0 0; z-index: 60;
  }
  .subnav::before { content: ""; position: absolute; inset: var(--s-3) 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.35); z-index: -1; }
  .nav-group:hover .subnav, .nav-group:focus-within .subnav { display: grid; }
  .subnav a { padding: .6rem var(--s-4); font-size: var(--t-sm); white-space: nowrap; }
  .subnav a:first-child { margin-top: var(--s-2); }
  .subnav a:last-child { margin-bottom: var(--s-2); }
  .subnav a[aria-current="page"] { color: var(--accent); }
  .header-cta { display: inline-flex; min-height: 42px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-8) var(--s-8); position: relative; overflow: hidden; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -55% -20%; height: 80%;
  background: radial-gradient(55% 60% at 50% 100%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-copy { display: grid; gap: var(--s-5); max-width: 46rem; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: var(--t-md); color: var(--fg-muted); }
.hero-actions { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); } }
@media (min-width: 960px) {
  .hero { padding-block: calc(var(--s-9) * 1.15) var(--s-9); }
  .hero-copy { gap: var(--s-6); }
  .hero .lead { font-size: var(--t-lg); line-height: 1.5; }
}
.hero--page { padding-block: var(--s-7) var(--s-6); }
.hero--page .hero-copy { gap: var(--s-4); }


/* ---------- Services (list) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-1) var(--s-4);
  padding-block: var(--s-5); border-bottom: 1px solid var(--line); text-decoration: none;
}
.service-list h3 { font-size: var(--t-lg); font-weight: 500; }
.service-list p { grid-column: 1; font-size: var(--t-sm); color: var(--fg-muted); }
.service-list .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: var(--t-lg); transition: transform .15s; }
.service-list a:hover .arrow { transform: translateX(4px); }
.service-list a:hover h3 { color: var(--accent-hi); }
.service-list .is-custom h3 { color: var(--accent); }
@media (min-width: 960px) {
  .service-list a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding-block: var(--s-6); }
  .service-list h3 { font-size: var(--t-xl); }
  .service-list p { grid-column: 2; grid-row: 1; font-size: var(--t-base); }
  .service-list .arrow { grid-column: 3; grid-row: 1; }
}

/* ---------- Work: before / after ---------- */
.case { display: grid; gap: var(--s-5); }
.case-caption { display: grid; gap: var(--s-2); }
@media (min-width: 960px) { .case-caption { grid-template-columns: 1fr auto; align-items: end; gap: var(--s-6); } }
.ba { position: relative; aspect-ratio: 4/3; max-width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); user-select: none; }
@media (min-width: 640px) { .ba { aspect-ratio: 16/9; } }
.ba-img { position: absolute; inset: 0; display: grid; place-items: end start; padding: var(--s-4); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; }
.ba-before { background:
  repeating-linear-gradient(115deg, transparent 0 14px, rgba(255,255,255,.035) 14px 15px),
  radial-gradient(circle at 30% 40%, #4b4a41 0 2px, transparent 3px) 0 0/38px 31px,
  linear-gradient(160deg, #2a2b26, #191a16); color: #c9c3b4; }
.ba-after { background:
  linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 48%, transparent 56%),
  linear-gradient(160deg, var(--brand), var(--bg)); color: var(--fg); clip-path: inset(0 0 0 var(--pos, 50%)); place-items: end end; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 16px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .example-note { position: absolute; top: 12px; left: 12px; background: var(--bg); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: step; }
.steps li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); counter-increment: step; min-width: 0; }
.steps li::before { content: "0" counter(step); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent); }
.steps p { font-size: var(--t-sm); color: var(--fg-muted); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: var(--s-6); }
.review { display: grid; gap: var(--s-3); margin: 0; }
.review blockquote { margin: 0; font-size: var(--t-md); line-height: 1.5; }
.review .stars { color: var(--accent); letter-spacing: 3px; font-size: var(--t-sm); }
.review figcaption { font-size: var(--t-xs); color: var(--fg-muted); font-family: var(--f-mono); }
@media (min-width: 960px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--surface); }
td.num, th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--fg-muted); }
.group-row td { font: 600 var(--t-xs)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); background: var(--bg); padding-top: 1.2rem; }
/* On phones the "includes" column moves under the service name */
.col-desc { display: none; }
td .desc-inline { display: block; color: var(--fg-muted); font-size: var(--t-xs); margin-top: 2px; }
@media (min-width: 640px) {
  .col-desc { display: table-cell; }
  td .desc-inline { display: none; }
  tbody tr:hover td { background: var(--surface); }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { font: 500 var(--t-sm)/1 var(--f-body); min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-muted); cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--fg-muted); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Estimator ---------- */
.estimator { display: grid; gap: var(--s-6); }
.est-panel { display: grid; gap: var(--s-6); min-width: 0; }
.est-zones { display: grid; gap: var(--s-2); }
.zone-toggle { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; min-height: var(--tap); padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: var(--t-sm); background: transparent; color: var(--fg); text-align: left; font-family: var(--f-body); }
.zone-toggle .p { font-family: var(--f-mono); color: var(--fg-muted); font-size: var(--t-xs); }
.zone-toggle[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.zone-toggle[aria-pressed="true"] .p { color: var(--accent); }
.est-result { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.est-total { font-family: var(--f-display); font-weight: 600; font-size: var(--t-2xl); line-height: 1; }
.est-total small { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--fg-muted); }
.est-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-sm); color: var(--fg-muted); }
.est-list li { display: flex; justify-content: space-between; gap: var(--s-3); }
.est-list li span:last-child { font-family: var(--f-mono); color: var(--fg); }
/* On phones the total stays visible at the bottom while zones are picked */
.est-sticky {
  position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius);
  font-size: var(--t-sm);
}
.est-sticky strong { font-family: var(--f-mono); color: var(--accent); }
@media (min-width: 640px) { .est-zones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .estimator { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: var(--s-7); }
  .est-result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
  .est-sticky { display: none; }
}

/* ---------- Generic two columns ---------- */
.split { display: grid; gap: var(--s-6); }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.check-list, .x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.check-list li, .x-list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-2); font-size: var(--t-sm); }
.check-list li::before { content: "✓"; color: var(--brand-hi); font-weight: 700; }
.x-list li::before { content: "—"; color: var(--fg-muted); }
.panel { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: var(--s-4); align-content: start; }

/* ---------- Packages ---------- */
.packages { display: grid; gap: var(--s-4); }
.package { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); }
.package--featured { border-color: var(--accent); background: var(--surface); }
.package .price { font-family: var(--f-mono); font-size: var(--t-lg); }
.package .price small { font-size: var(--t-xs); color: var(--fg-muted); }
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: var(--tap); padding: var(--s-4) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--s-4); color: var(--fg-muted); font-size: var(--t-sm); }

/* ---------- Materials ---------- */
.brands { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.brand-tag { font-family: var(--f-display); letter-spacing: .12em; text-transform: uppercase; font-size: var(--t-sm); padding: .6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg-muted); }

/* ---------- Booking ---------- */
.booking { display: grid; gap: var(--s-5); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.booking > * { min-width: 0; }
.booking-types { display: grid; gap: var(--s-2); align-content: start; }
.btype { text-align: left; display: grid; gap: 2px; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg); cursor: pointer; font: inherit; font-size: var(--t-sm); }
.btype span { color: var(--fg-muted); font-family: var(--f-mono); font-size: var(--t-xs); }
.btype[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); margin-bottom: var(--s-4); }
.day { display: grid; gap: 2px; min-height: 56px; place-content: center; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg); cursor: pointer; font: inherit; }
.day span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--fg-muted); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.day[aria-pressed="true"] span { color: var(--on-accent); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.slot { min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg); font-family: var(--f-mono); font-size: var(--t-sm); cursor: pointer; }
.slot:hover { border-color: var(--brand-hi); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand-hi); }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.booking-confirm { margin-top: var(--s-4); display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-sm); }
@media (min-width: 640px) {
  .booking { padding: var(--s-5); }
  .slots { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .booking-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (min-width: 960px) { .booking { grid-template-columns: 260px minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: var(--t-sm); font-weight: 600; }
.field .hint { font-size: var(--t-xs); color: var(--fg-muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: var(--tap); font: inherit; font-size: var(--t-base); /* 16px: no auto-zoom on iOS */
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-hi) 30%, transparent); }
textarea { min-height: 140px; resize: vertical; }
.checkline { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); min-height: 32px; }
.checkline input { margin-top: 3px; accent-color: var(--brand-hi); width: 20px; height: 20px; flex: none; }
.form-ok { padding: var(--s-4); border: 1px solid var(--brand-hi); border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 35%, transparent); font-size: var(--t-sm); }
.field-error { color: var(--c-danger); font-size: var(--t-xs); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-7) calc(var(--s-7) + 64px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-sm); color: var(--fg-muted); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-grid h3 { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--fg); }
.footer-legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); font-size: var(--t-xs); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; } }
@media (min-width: 960px) { .site-footer { padding-bottom: var(--s-7); } }

/* ---------- Fixed bar on mobile ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.mobile-bar a { display: grid; place-items: center; min-height: 56px; background: var(--bg); color: var(--fg); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.mobile-bar a.is-main { background: var(--accent); color: var(--on-accent); }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--fg-muted); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* =========================================================================
   LIGHT THEME for content
   Add the .theme-light class to any container: inside it, the roles
   (--bg, --fg, --accent…) take the values below. The base colors
   still come from :root, so that is where you change them.
   ========================================================================= */
:root {
  --c-cream:      #F7F5F0;  /* content background, warm off-white */
  --c-cream-2:    #EFEBE2;  /* surfaces on cream: cards, bands */
  --c-bronze:     #8C6A2C;  /* dark gold: accent text on light backgrounds */
  --c-petrol-ink: #10302C;  /* body text on cream */
}
.theme-light {
  --bg:        var(--c-cream);
  --surface:   var(--c-cream-2);
  --surface-2: #E7E2D6;
  --fg:        var(--c-petrol-ink);
  --fg-muted:  #5A6D69;
  --accent:    var(--c-bronze);
  --accent-hi: #6F5422;
  --line:      #DDD6C8;
  --brand-hi:  var(--c-emerald);
  background: var(--bg); color: var(--fg); color-scheme: light;
}
/* The primary button stays gold with dark text on cream too */
.theme-light .btn--primary { background: var(--c-gold); color: var(--c-ink); }
.theme-light .btn--primary:hover { background: var(--c-gold-hi); }
.theme-light .btn--brand { color: var(--c-sand-soft); }
.theme-light .form-ok { background: color-mix(in srgb, var(--c-emerald) 10%, transparent); border-color: var(--c-emerald); }
/* On cream there are no alternating bands: sections are separated by space and a hairline */
.theme-light .section--surface { background: var(--bg); border-block: 0; }
.theme-light .section + .section { border-top: 1px solid var(--line); }

/* =========================================================================
   COMPONENTS FOR SECONDARY PAGES
   ========================================================================= */
/* Placeholder image until real photos arrive */
.ph {
  position: relative; aspect-ratio: 4/3; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.10) 48%, transparent 56%),
    linear-gradient(160deg, var(--c-emerald), var(--c-ink));
  display: grid; place-items: end start; padding: var(--s-3);
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; color: var(--c-sand-soft);
}
.ph--wide { aspect-ratio: 16/9; }
.ph--tall { aspect-ratio: 3/4; }
.ph--warm { background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 48%, transparent 56%), linear-gradient(160deg, #7A6136, #2A2418); }

/* Service page: key facts block */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin: 0; }
.facts div { display: grid; gap: 2px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.facts dt { font-size: var(--t-xs); color: var(--fg-muted); }
.facts dd { margin: 0; font-family: var(--f-mono); font-size: var(--t-md); }
@media (min-width: 960px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Before / after measurement (soundproofing) */
.meter { display: grid; gap: var(--s-4); }
.meter-row { display: grid; gap: var(--s-2); }
.meter-row header { display: flex; justify-content: space-between; font-size: var(--t-sm); }
.meter-row header span:last-child { font-family: var(--f-mono); }
.meter-bar { height: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--fg-muted); border-radius: inherit; }
.meter-row.is-after .meter-bar i { background: var(--c-emerald); }

/* Works grid */
.work-grid { display: grid; gap: var(--s-6); }
.work-card { display: grid; gap: var(--s-3); text-decoration: none; }
.work-card h3 { font-size: var(--t-lg); font-weight: 500; }
.work-card .meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--fg-muted); letter-spacing: .04em; }
.work-card:hover h3 { color: var(--accent); }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); } }
.filters { margin-bottom: var(--s-6); }

/* Gallery inside a work page */
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Long-form text: blog posts, legal pages */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }
.prose a { color: var(--accent); }
.prose table { margin-top: var(--s-5); }
.prose .lead { font-size: var(--t-md); color: var(--fg-muted); }
.callout { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--accent); background: var(--surface); font-size: var(--t-sm); }

/* Blog post list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; }
.post-list a { display: grid; gap: var(--s-2); padding-block: var(--s-6); border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list li:first-child a { border-top: 1px solid var(--line); }
.post-list h2 { font-size: var(--t-xl); }
.post-list a:hover h2 { color: var(--accent); }
.post-list .meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--fg-muted); }
.post-list p { color: var(--fg-muted); font-size: var(--t-sm); }
.post-head { display: grid; gap: var(--s-4); }
.post-head .meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--fg-muted); }

/* Team */
.team { display: grid; gap: var(--s-6); }
.person { display: grid; gap: var(--s-3); }
.person .role { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--fg-muted); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Care steps (timeline) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.timeline .when { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--accent); }
.timeline h3 { margin-bottom: var(--s-1); }
.timeline p { font-size: var(--t-sm); color: var(--fg-muted); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 140px minmax(0, 1fr); } }

/* Warranty lookup result */
.cert { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.cert .status { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--c-emerald); }
.cert .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.code-input { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .code-input { grid-template-columns: minmax(0, 1fr) auto; } }
.code-input input { font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }

/* Contact */
.contact-list { display: grid; gap: var(--s-5); margin: 0; }
.contact-list div { display: grid; gap: 4px; }
.contact-list dt { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact-list dd { margin: 0; font-size: var(--t-md); }
.copy-btn { margin-left: var(--s-2); font: 600 var(--t-xs)/1 var(--f-body); padding: .4rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg-muted); cursor: pointer; }
/* Map placeholder shown until cookies are accepted (or "Afișează harta" is clicked) */
.map.map-ph { display: grid; place-content: center; justify-items: center; gap: var(--s-3); padding: var(--s-5); text-align: center; font-size: var(--t-sm); color: var(--fg-muted); }
.map-ph p { max-width: 32ch; margin: 0; }
.map { display: block; width: 100%; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Multi-column footer */
@media (min-width: 960px) { .footer-grid--wide { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* 404 */
.big-num { font-family: var(--f-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; color: var(--accent); }

/* Links between services */
.related { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 64px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.related a::after { content: "→"; color: var(--accent); }
.related a:hover { border-color: var(--accent); }

/* "Lite" YouTube video: thumbnail first, iframe only on click */
.video-lite { position: relative; aspect-ratio: 16/9; width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--c-emerald), var(--c-ink)); display: grid; place-items: center; cursor: pointer; color: var(--c-sand-soft); font: inherit; padding: 0; }
.video-lite .play { width: 64px; height: 64px; border-radius: 50%; background: var(--c-gold); color: var(--c-ink); display: grid; place-items: center; font-size: 22px; transition: transform .15s; }
.video-lite:hover .play { transform: scale(1.06); }
.gallery .ph:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (min-width: 960px) { .gallery .ph:last-child:nth-child(even) { grid-column: auto; } }

/* ---------- Cookie banner (only when GA4 is configured) ---------- */
.consent { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: var(--s-3) max(12px, env(safe-area-inset-right, 0px)) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.consent-in { max-width: 720px; margin-inline: auto; display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--c-ink); color: var(--c-sand-soft); border: 1px solid var(--c-gold); border-radius: var(--radius); font-size: var(--t-sm); }
.consent-in a { color: var(--c-gold); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (min-width: 640px) { .consent-in { grid-template-columns: 1fr auto; align-items: center; } .consent-actions { display: flex; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.hide-examples .example-note { display: none !important; }

/* ---------- Images switch (site.features.images) ----------
   While there are no real photos, body.hide-images hides every placeholder
   image (.ph) and image-only blocks ([data-media]). Two-column rows that held
   an image collapse to one readable column. Set features.images to true to restore. */
.hide-images .ph,
.hide-images [data-media] { display: none !important; }
.hide-images .split:has(> .ph) { grid-template-columns: minmax(0, 46rem); }

/* Units like µm must keep their case inside uppercase labels (µ would become M) */
.unit { text-transform: none; }

/* Cookie settings panel on /cookies/: the selected choice gets an outline */
.cookie-settings { display: grid; gap: var(--s-3); margin-block: var(--s-6); }
.cookie-settings p { margin: 0; }
.cookie-settings .consent-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cookie-settings [aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

