/* ==========================================================================
   DERMXPERT — Design System
   Dr. Petruța Moș · Dermatologie & Venerologie · Cluj-Napoca
   Author: static build, no dependencies.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Neutrals — warm ivory / sand */
  --bg:          #FBF9F5;
  --bg-alt:      #F5F1E9;
  --sand:        #EFE9DD;
  --surface:     #FFFFFF;
  --line:        #E5DED0;
  --line-soft:   #EFEAE0;

  /* Ink */
  --ink:         #17211D;
  --ink-2:       #33413B;
  --muted:       #5E6B65;
  --muted-2:     #77837D;

  /* Brand */
  --accent:      #12483C;   /* deep clinical green */
  --accent-2:    #1C6353;
  --accent-3:    #2E8570;
  --accent-tint: #E7F0EC;
  --gold:        #B29358;   /* carried over from the existing logo */
  --gold-tint:   #F4EEE2;

  /* Feedback */
  --danger:      #A23A2E;

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.0625rem, 0.99rem + 0.32vw, 1.1875rem);
  --fs-lg:   clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.29rem + 0.94vw, 2.125rem);
  --fs-2xl:  clamp(1.875rem, 1.5rem + 1.7vw, 3rem);
  --fs-3xl:  clamp(2.375rem, 1.7rem + 3vw, 4.25rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --section-y: clamp(4rem, 3rem + 5vw, 8rem);

  /* Shape */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 28px;  --r-full: 999px;

  /* Elevation — soft, warm-tinted */
  --sh-1: 0 1px 2px rgba(23,33,29,.05), 0 2px 8px rgba(23,33,29,.04);
  --sh-2: 0 2px 4px rgba(23,33,29,.04), 0 12px 28px -8px rgba(23,33,29,.10);
  --sh-3: 0 4px 8px rgba(23,33,29,.05), 0 28px 60px -16px rgba(23,33,29,.16);

  --maxw: 1200px;
  --maxw-narrow: 760px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: 1.25; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- 3. Layout helpers -------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--bg-alt); }
.section--ink { background: var(--accent); color: #DDE8E3; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.grid { display: grid; gap: var(--sp-5); }
.stack > * + * { margin-top: var(--sp-4); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Typography components ------------------------------------- */
.eyebrow {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before { background: rgba(255,255,255,.35); }

.lede { font-size: var(--fs-md); color: var(--muted); max-width: 62ch; }
.section--ink .lede { color: rgba(255,255,255,.72); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head h2 + p { margin-top: var(--sp-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  box-shadow: var(--sh-1);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--accent); --btn-bd: #fff; }
.btn--light:hover { background: var(--gold-tint); color: var(--accent); border-color: var(--gold-tint); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; --btn-bd: var(--gold); }
.btn--gold:hover { background: #9C7F49; border-color: #9C7F49; }
.btn--sm { padding: .6rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 600; font-size: var(--fs-sm); color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: gap .2s var(--ease), border-color .2s;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 6. Header ---------------------------------------------------- */
.topbar {
  background: var(--accent); color: rgba(255,255,255,.82);
  font-size: var(--fs-xs); letter-spacing: .02em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 40px; flex-wrap: wrap; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__group { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,245,.88); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.header.is-stuck { box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -18px rgba(23,33,29,.35); border-bottom-color: var(--line-soft); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.brand__sub { font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.65rem); }
.nav a {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  padding: .45rem 0; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

.langswitch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-full); overflow: hidden; background: var(--surface); }
.langswitch a {
  padding: .35rem .7rem; font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-decoration: none; color: var(--muted); transition: background .2s, color .2s;
}
.langswitch a[aria-current="true"] { background: var(--accent); color: #fff; }
.langswitch a:not([aria-current="true"]):hover { background: var(--sand); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-full); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--surface); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 6.5rem var(--sp-6) var(--sp-6); gap: 0;
    opacity: 0; visibility: hidden; transform: translateX(-14px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    box-shadow: -20px 0 60px -30px rgba(23,33,29,.5); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-md); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: var(--sp-5); }
  .header__actions .btn--nav { display: none; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(23,33,29,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 99; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1001px) { .nav .btn { display: none; } }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding-block: clamp(3.5rem, 3rem + 5vw, 7rem);
}
.hero__content { max-width: 620px; }
.hero h1 { margin-block: var(--sp-5) var(--sp-5); }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero__media { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); background: var(--sand); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: clamp(-1rem, -2vw, -2rem); bottom: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface); border-radius: var(--r-lg); padding: 1.1rem 1.35rem;
  box-shadow: var(--sh-3); display: flex; align-items: center; gap: .9rem; max-width: 280px;
}
.hero__badge svg { width: 34px; height: 34px; flex: none; color: var(--gold); }
.hero__badge b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.hero__badge span { font-size: var(--fs-xs); color: var(--muted); }

.hero__glow {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero__glow--a { width: 460px; height: 460px; background: #DCE9E3; top: -140px; right: -60px; }
.hero__glow--b { width: 380px; height: 380px; background: var(--gold-tint); bottom: -160px; left: -120px; opacity: .9; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4/3; max-height: 460px; }
  .hero__badge { left: 1rem; }
}

/* Trust strip */
.trustbar { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trustbar ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar li { padding: clamp(1.25rem, 2.5vw, 2rem) var(--sp-4); text-align: center; border-right: 1px solid var(--line); }
.trustbar li:last-child { border-right: 0; }
.trustbar b { display: block; font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: var(--accent); line-height: 1; }
.trustbar span { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .55rem; }
@media (max-width: 720px) {
  .trustbar ul { grid-template-columns: repeat(2, 1fr); }
  .trustbar li:nth-child(2n) { border-right: 0; }
  .trustbar li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- 8. Cards ----------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-3));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--accent-tint);
  display: grid; place-items: center; color: var(--accent); margin-bottom: var(--sp-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card p { font-size: var(--fs-sm); color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: var(--sp-3); align-self: flex-start; }

/* Condition card with number */
.card--num .card__num {
  font-family: var(--serif); font-size: 2.5rem; color: var(--gold); line-height: 1; opacity: .55;
}

/* Feature list */
.featurelist { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature__icon { width: 42px; height: 42px; flex: none; border-radius: var(--r-full); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); background: var(--surface); }
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: var(--fs-base); font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.feature p { font-size: var(--fs-sm); color: var(--muted); margin-top: .3rem; }
.section--ink .feature__icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--gold); }
.section--ink .feature p { color: rgba(255,255,255,.65); }

/* ---------- 9. Split (about) --------------------------------------------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev { grid-template-columns: 1.1fr .9fr; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3/4; background: var(--sand); box-shadow: var(--sh-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border: 1px solid rgba(255,255,255,.4); border-radius: inherit;
}
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } .split__media { aspect-ratio: 4/3; } }

.creds { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.creds li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.creds li::before {
  content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312483C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.quote {
  border-left: 2px solid var(--gold); padding-left: var(--sp-5);
  font-family: var(--serif); font-size: var(--fs-lg); font-style: italic; color: var(--ink); line-height: 1.45;
}

/* ---------- 10. Price table ---------------------------------------------- */
.pricebar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-6); }
.searchfield { position: relative; flex: 1 1 260px; }
.searchfield input {
  width: 100%; padding: .85rem 1rem .85rem 2.75rem; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); font-size: var(--fs-sm); transition: border-color .2s, box-shadow .2s;
}
.searchfield input:focus { outline: none; border-color: var(--accent-3); box-shadow: 0 0 0 3px var(--accent-tint); }
.searchfield svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-full);
  padding: .55rem 1rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  cursor: pointer; color: var(--muted); transition: all .2s;
}
.chip:hover { border-color: var(--accent-3); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.pricegroup { margin-bottom: var(--sp-7); }
.pricegroup > h2, .pricegroup > h3 {
  font-size: var(--fs-lg); padding-bottom: var(--sp-3); margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: .75rem;
}
.pricegroup > h2 small, .pricegroup > h3 small { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; }
.pricerow {
  display: flex; align-items: baseline; gap: var(--sp-4); justify-content: space-between;
  padding: .95rem .25rem; border-bottom: 1px solid var(--line-soft);
}
.pricerow:hover { background: var(--bg-alt); }
.pricerow__name { font-size: var(--fs-sm); color: var(--ink-2); }
.pricerow__dots { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.pricerow__val { font-family: var(--serif); font-size: var(--fs-md); color: var(--accent); font-weight: 600; white-space: nowrap; }
.priceempty { padding: var(--sp-6); text-align: center; color: var(--muted); font-size: var(--fs-sm); }
[hidden] { display: none !important; }

.note {
  background: var(--gold-tint); border: 1px solid #E8DCC4; border-radius: var(--r-md);
  padding: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: var(--sp-4);
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }

/* ---------- 11. Accordion (FAQ) ------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font-family: var(--serif); font-size: var(--fs-md); color: var(--ink); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312483C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding-bottom: 1.5rem; font-size: var(--fs-sm); color: var(--muted); max-width: 68ch; }

/* ---------- 12. Video blog ----------------------------------------------- */
.videocard { display: block; text-decoration: none; group: none; }
.videocard__thumb {
  position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #E7EFEB, #F2EDE4); display: grid; place-items: center;
  border: 1px solid var(--line-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.videocard:hover .videocard__thumb { transform: translateY(-4px); box-shadow: var(--sh-2); }
.videocard__play { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: var(--sh-2); color: var(--accent); }
.videocard__play svg { width: 20px; height: 20px; margin-left: 3px; }
.videocard h3 { font-size: var(--fs-base); margin-top: var(--sp-4); font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.videocard span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 13. Hours + contact ------------------------------------------ */
.hours { display: grid; gap: 0; }
.hours li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: var(--fs-sm); }
.hours li:last-child { border-bottom: 0; }
.hours dt, .hours .day { color: rgba(255,255,255,.9); font-weight: 500; }
.hours .time { color: rgba(255,255,255,.6); }
.hours li.is-today { color: #fff; }
.hours li.is-today .day::after { content: "azi"; margin-left: .6rem; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: #fff; padding: .15rem .45rem; border-radius: var(--r-full); vertical-align: middle; }
.hours li.is-today[data-en] .day::after { content: "today"; }

.contactgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-5); }
.contactcard {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: .5rem;
}
.contactcard__icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--sp-2); }
.contactcard__icon svg { width: 22px; height: 22px; }
.contactcard h2, .contactcard h3 { font-size: var(--fs-base); font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.contactcard a, .contactcard p { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.contactcard a:hover { color: var(--accent); }

.mapframe { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); background: var(--sand); }
.mapframe iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- 14. CTA band -------------------------------------------------- */
.ctaband { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 2rem + 4vw, 4.5rem); text-align: center; }
.ctaband::before, .ctaband::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.ctaband::before { width: 320px; height: 320px; background: var(--accent-3); top: -120px; left: -80px; }
.ctaband::after { width: 300px; height: 300px; background: var(--gold); bottom: -140px; right: -60px; opacity: .25; }
.ctaband > * { position: relative; }
.ctaband h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.ctaband p { color: rgba(255,255,255,.75); max-width: 52ch; margin: var(--sp-4) auto 0; }
.ctaband .hero__cta { justify-content: center; }

/* ---------- 15. Footer ---------------------------------------------------- */
.footer { background: #101915; color: rgba(255,255,255,.6); font-size: var(--fs-sm); padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer h4 { color: #fff; font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--sp-4); }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer li { padding: .35rem 0; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255,255,255,.4); }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: var(--fs-xs);
}
.footer__legal { color: rgba(255,255,255,.4); max-width: 60ch; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Floating call button (mobile) */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  place-items: center; box-shadow: var(--sh-3); text-decoration: none;
}
.fab svg { width: 24px; height: 24px; }
@media (max-width: 720px) { .fab { display: grid; } }

/* ---------- 16. Page hero (inner pages) ---------------------------------- */
.pagehero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem); position: relative; overflow: hidden; }
.pagehero h1 { font-size: var(--fs-2xl); max-width: 18ch; }
.pagehero .lede { margin-top: var(--sp-4); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-xs); color: var(--muted-2); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb ol { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- 17. Reveal animation ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 18. Print ----------------------------------------------------- */
@media print {
  .header, .topbar, .footer, .fab, .ctaband, .pricebar { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .7em; color: #555; }
}

/* ==========================================================================
   19. Refinements
   ========================================================================== */

/* Clip stray horizontal overflow at the root only. Never on <body>:
   a clipping body becomes a scroll container and breaks the sticky header. */
html { overflow-x: clip; }
@media (max-width: 1000px) {
  .nav { visibility: hidden; }
  .nav.is-open { visibility: visible; }
}

/* Eyebrow: wrap cleanly on narrow screens */
.eyebrow { flex-wrap: wrap; line-height: 1.5; row-gap: .25rem; }
.eyebrow::before { align-self: center; }
@media (max-width: 520px) { .eyebrow::before { display: none; } .eyebrow { letter-spacing: .1em; } /* eyebrow-sm */ }

/* Header on small phones */
@media (max-width: 460px) {
  .brand__mark { width: 32px; height: 32px; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .5rem; letter-spacing: .16em; }
  .header__inner { min-height: 66px; gap: var(--sp-3); }
  .topbar__inner { justify-content: flex-start; row-gap: .25rem; padding-block: .4rem; }
}

/* Page hero: two columns with a quick-facts aside */
.pagehero__inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (max-width: 900px) { .pagehero__inner { grid-template-columns: 1fr; align-items: start; } }

.quickfacts {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1); display: grid; gap: var(--sp-4);
}
.quickfacts li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); }
.quickfacts svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.quickfacts b { display: block; color: var(--ink); font-weight: 600; }
.quickfacts span { color: var(--muted); font-size: var(--fs-xs); }
.quickfacts a { text-decoration: none; }
.quickfacts a:hover b { color: var(--accent); }

/* Price rows on narrow screens */
@media (max-width: 560px) {
  .pricerow { flex-wrap: wrap; row-gap: .2rem; }
  .pricerow__dots { display: none; }
  .pricerow__name { flex: 1 1 100%; }
  .pricerow__val { font-size: var(--fs-base); }
  .pricegroup > h2, .pricegroup > h3 { flex-wrap: wrap; row-gap: .25rem; }
}

/* Service / condition headings sit better one notch down */
.split h2 { font-size: var(--fs-xl); }
.pagehero h1, .hero h1, .ctaband h2, .section-head h2 { font-size: unset; }
.section-head h2 { font-size: var(--fs-2xl); }
.ctaband h2 { font-size: var(--fs-2xl); }
.pagehero h1 { font-size: var(--fs-2xl); }
.hero h1 { font-size: var(--fs-3xl); }

/* Nicer focus ring inside dark sections */
.section--ink :focus-visible, .ctaband :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

/* Utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Explicit column counts where auto-fit leaves an orphan card */
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .cards--2, .cards--4 { grid-template-columns: 1fr; } }

/* Contrast + heading-order fixes (verified against WCAG AA) */
.breadcrumb { color: var(--muted); }
.ctaband .eyebrow { color: var(--gold); }
.ctaband .eyebrow::before { background: rgba(255,255,255,.4); }
.footer h2 {
  color: #fff; font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; margin-bottom: var(--sp-4); line-height: 1.4;
}

/* ---- Contrast pass 2 (all verified >= WCAG AA for their size) ---- */
:root { --gold-on-dark: #DAC08C; }

.brand__sub { color: var(--muted); }
.footer .brand__sub { color: rgba(255,255,255,.55); }
.pricegroup > h2 small, .pricegroup > h2 small, .pricegroup > h3 small { color: var(--muted); }
[data-placeholder] > div { color: var(--muted) !important; }

/* Gold reads too light against dark grounds — use the lighter tone there,
   and dark ink on gold fills. */
.section--ink .eyebrow, .ctaband .eyebrow { color: var(--gold-on-dark); }
.hours li.is-today .day::after { background: var(--gold-on-dark); color: #12281F; }
.btn--gold { --btn-fg: #211A08; }
.btn--gold:hover { color: #211A08; }
.footer a:hover { color: var(--gold-on-dark); }
.section--ink :focus-visible, .ctaband :focus-visible, .footer :focus-visible { outline-color: var(--gold-on-dark); }

.pricegroup > h2 { font-size: var(--fs-lg); }
.contactcard h2 { font-size: var(--fs-base); font-family: var(--sans); font-weight: 700; letter-spacing: 0; }

/* The header's backdrop-filter creates a containing block for its fixed
   descendants, which collapsed the mobile drawer. Drop the filter where the
   drawer lives and paint the header solid instead. */
@media (max-width: 1000px) {
  .header { backdrop-filter: none; background: var(--bg); }
  .nav { height: 100dvh; max-height: 100dvh; }
}

/* `.nav a` outranks `.btn` inside the drawer — restore the button's own colours. */
.nav a.btn { color: var(--btn-fg); }
.nav a.btn:hover { color: var(--btn-fg); }

/* ==========================================================================
   20. Portrait photography + service panel
   ========================================================================== */
.hero__media picture, .split__media picture { display: block; width: 100%; height: 100%; }
.hero__media img, .split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Warm the clinical grey backdrop just enough to sit in the ivory palette. */
.hero__media::after, .split__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(165deg, rgba(242,234,217,.16), rgba(18,72,60,.05) 72%);
  mix-blend-mode: multiply;
}

.servicepanel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.servicepanel::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent-3));
}
.servicepanel .eyebrow { margin-bottom: var(--sp-5); }
.servicepanel .creds { gap: var(--sp-4); }
.servicepanel__foot {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm); color: var(--muted);
}
.servicepanel__foot .link-arrow { margin-left: .35rem; }
.section--sand .servicepanel { background: var(--surface); }

/* Let the hero badge overhang the portrait rather than sit on top of it. */
.hero__badge { left: clamp(-2.5rem, -3vw, -1rem); bottom: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 900px) { .hero__badge { left: 1rem; bottom: 1rem; } }

/* The badge overhangs the portrait, so the clipping has to move inward
   from .hero__media onto the picture itself. */
.hero__media { overflow: visible; }
.hero__media picture { border-radius: inherit; overflow: hidden; }
.hero__media::after { z-index: 1; }
.hero__badge { z-index: 2; }

.feature__icon--step {
  font-family: var(--serif); font-size: .8125rem; font-weight: 700;
  color: var(--gold); letter-spacing: .04em;
}
