/* =========================================================================
   Sauna v pohybu — design system
   Palette tones were verified against WCAG luminance math before use:
   text pairs land between 6.3:1 and 17.6:1, interactive borders above 3:1.
   ========================================================================= */

:root {
  /* surfaces — warm near-black, so wood and fire read as the only colour */
  --ink-950: #0B0907;
  --ink-900: #12100C;
  --ink-850: #191510;
  --ink-800: #221D16;
  --ink-700: #2E2719;

  /* lines: --line is decorative, --line-strong clears WCAG 1.4.11 (3:1) */
  --line: #2E2719;
  --line-strong: #847356;

  /* foreground */
  --text-primary: #FAF6EF;   /* 17.64:1 on --ink-900 */
  --text-secondary: #C0B29A; /*  9.12:1 */
  --text-muted: #A2937B;     /*  6.33:1 */

  /* ember — the only saturated hue on the page */
  --ember-700: #A8480F;
  --ember-600: #C85B14;
  --ember-500: #E4761F;
  --ember-400: #F19140;      /*  8.02:1 as text on --ink-900 */
  --ember-300: #F7AE72;

  --pine-300: #8FBFA0;       /*  8.76:1 — success */
  --danger: #FF8A7A;         /*  7.93:1 — errors */

  --on-ember: #0B0907;       /*  6.54:1 on --ember-500 */

  --bg-dots: radial-gradient(circle at center, rgb(250 246 239 / 0.05) 1px, transparent 1px);
  --glow: 0 0 60px -12px rgb(228 118 31 / 0.45);
}

html[data-theme="light"] {
  /*
   * Warm linen and birch. Every tone below was solved for its WCAG target rather than
   * picked by eye: the ember ramp runs DARK in this theme because here it carries text,
   * icons and the focus ring against a near-white ground — the mirror image of its role
   * on the dark theme. Ratios in the comments are against --ink-850, the tinted card,
   * which is the tightest background any of these sit on.
   */
  --ink-950: #FAF6EF;
  --ink-900: #FCFAF7;
  --ink-850: #F5EFE6;
  --ink-800: #EBE4D5;
  --ink-700: #DDD4C1;

  --line: #E6DEC9;
  --line-strong: #8F7F62;    /*  3.41:1 — interactive borders, WCAG 1.4.11 */

  --text-primary: #221D16;   /* 14.63:1 */
  --text-secondary: #5A4E3B; /*  7.10:1 */
  --text-muted: #73644E;     /*  5.02:1 */

  --ember-700: #7E360C;
  --ember-600: #97400F;
  --ember-500: #B04A15;      /*  4.79:1 — fills, and the large step numerals */
  --ember-400: #A04F13;      /*  5.07:1 — accent text, icons, focus ring */
  --ember-300: #8A4512;      /*  6.25:1 — hover, one step darker still */

  --pine-300: #2F6E45;       /*  5.35:1 — success */
  --danger: #B8353A;         /*  5.09:1 — errors */

  --on-ember: #FAF6EF;       /*  5.08:1 on --ember-500 */

  --bg-dots: radial-gradient(circle at center, rgb(34 29 22 / 0.04) 1px, transparent 1px);
  --glow: 0 0 60px -12px rgb(176 74 21 / 0.18);
}


:root {
  /* type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.32vw, 1.3125rem);
  --step-2:  clamp(1.35rem, 1.22rem + 0.62vw, 1.75rem);
  --step-3:  clamp(1.65rem, 1.4rem + 1.15vw, 2.4rem);
  --step-4:  clamp(2rem, 1.55rem + 2.1vw, 3.25rem);
  --step-5:  clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* 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;
  --section-y: clamp(4rem, 2.5rem + 7vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.7rem + 2.5vw, 3rem);
  --measure: 68ch;
  --container: 1180px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 12px 28px -12px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 32px 64px -24px rgb(0 0 0 / 0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* keep anchored headings clear of the sticky header */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* an author `display` declaration outranks the user-agent rule for [hidden] */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--ember-400);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- utilities */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ember-500);
  color: var(--on-ember);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.section { padding-block: var(--section-y); position: relative; }
.section--tinted { background: var(--ink-850); }

.section-head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-400);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-head--center .eyebrow::before { display: none; }

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; }

.section-lead {
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  color: var(--text-secondary);
  max-width: 58ch;
  text-wrap: pretty;
}
.section-head--center .section-lead { margin-inline: auto; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  background: var(--ember-500);
  color: var(--on-ember);
  box-shadow: var(--shadow-md), var(--glow);
}
.btn--primary:hover { background: var(--ember-400); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ember-400); color: var(--ember-300); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink-950) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--ink-950); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--ember-500), var(--ember-700));
  color: var(--on-ember);
  box-shadow: var(--shadow-sm);
}
.brand__name em { font-family: var(--font-display); font-style: italic; color: var(--ember-300); }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(0.5rem, 0.1rem + 1.4vw, 1.75rem); }
.nav__link {
  display: inline-block;
  white-space: nowrap;
  padding: var(--sp-2) var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text-primary); border-bottom-color: var(--ember-500); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__phone { display: none; white-space: nowrap; font-weight: 600; color: var(--text-secondary); }
.header__phone:hover { color: var(--ember-300); }
.header__cta { display: none; white-space: nowrap; padding-inline: var(--sp-5); min-height: 46px; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover {
  color: var(--ember-400);
  border-color: var(--line-strong);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  padding: var(--sp-4) 0 var(--sp-6);
}
.mobile-nav__list { display: grid; gap: var(--sp-1); }
.mobile-nav__link {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  min-height: 48px;
  font-size: var(--step-1);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__cta { margin-top: var(--sp-5); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .header__cta { display: inline-flex; }
}
@media (min-width: 1280px) {
  .header__phone { display: inline-block; }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 1rem + 11vw, 8rem) clamp(4rem, 2rem + 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(58% 44% at 78% 8%, rgb(228 118 31 / 0.30), transparent 68%),
    radial-gradient(46% 40% at 12% 88%, rgb(168 72 15 / 0.22), transparent 70%);
}
.hero::after {
  /* faint ember grain, drawn in CSS so the page ships no image for it */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bg-dots);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
}

.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 6vw, 4.5rem); align-items: center; }

.hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.042em;
  margin-bottom: var(--sp-5);
}
.hero h1 em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ember-400);
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--text-secondary);
  max-width: 56ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: clamp(2rem, 1.4rem + 2vw, 2.75rem);
}

.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 2rem + 4vw, 4.5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.highlight { background: var(--ink-850); padding: var(--sp-5); }
.highlight__value {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ember-300);
  display: block;
}
.highlight__label { font-size: var(--step--1); color: var(--text-muted); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgb(228 118 31 / 0.16), transparent 55%),
    var(--ink-850);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- process */

.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); } }

.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-6);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.step__index {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-style: italic;
  color: var(--ember-500);
  line-height: 1;
}
.step__icon { margin: var(--sp-4) 0 var(--sp-4); color: var(--ember-400); }
.step h3 { margin-bottom: var(--sp-3); font-size: var(--step-1); }
.step p { color: var(--text-secondary); font-size: 0.9688rem; text-wrap: pretty; }

/* ---------------------------------------------------------------- features */

.feature-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feature {
  padding: var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature:hover { background: var(--ink-850); border-color: var(--line); }
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgb(228 118 31 / 0.12);
  color: var(--ember-400);
  margin-bottom: var(--sp-4);
}
.feature h3 { font-size: var(--step-0); font-weight: 650; margin-bottom: var(--sp-2); letter-spacing: -0.012em; }
.feature p { font-size: 0.9375rem; color: var(--text-secondary); text-wrap: pretty; }

/* --------------------------------------------------------------- use cases */

.usecase-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 680px) { .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .usecase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.usecase {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.usecase:hover { border-color: var(--ember-700); background: var(--ink-850); }
.usecase__icon { flex: none; color: var(--ember-400); }
.usecase h3 { font-size: var(--step-0); font-weight: 650; margin-bottom: var(--sp-2); }
.usecase p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ----------------------------------------------------------------- pricing */

.pricing-grid { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-6);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan--featured {
  border-color: var(--ember-600);
  background: linear-gradient(180deg, rgb(228 118 31 / 0.09), transparent 42%), var(--ink-850);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .plan--featured { transform: scale(1.035); } }

.plan__badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--ember-500);
  color: var(--on-ember);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan h3 { font-size: var(--step-2); margin-bottom: var(--sp-1); }
.plan__duration { color: var(--text-muted); font-size: var(--step--1); }
.plan__price {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.plan__tagline { color: var(--text-secondary); font-size: 0.9375rem; }
.plan__list { margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.plan__list li { display: flex; gap: var(--sp-3); font-size: 0.9375rem; color: var(--text-secondary); }
.plan__list svg { flex: none; color: var(--ember-400); margin-top: 3px; }
.plan .btn { margin-top: auto; }

.pricing-note {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.pricing-note svg { flex: none; color: var(--ember-400); }

/* ----------------------------------------------------------------- gallery */

.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 900px) { .gallery { gap: var(--sp-4); } }

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-850);
}

.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-7) var(--sp-4) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 550;
  /* The caption sits on a photograph in both themes, so it keeps a fixed light colour
     over a fixed dark scrim instead of following the theme's text colour. */
  color: #FFFFFF;
  background: linear-gradient(transparent, rgb(11 9 7 / 0.55) 45%, rgb(11 9 7 / 0.92));
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--text-muted);
}

/* ------------------------------------------------------------ testimonials */

.quote-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 820px) { .quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.quote {
  padding: var(--sp-6);
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.quote__icon { color: var(--ember-600); }
.quote blockquote { font-size: var(--step-1); line-height: 1.5; letter-spacing: -0.015em; text-wrap: pretty; }
.quote figcaption { margin-top: auto; font-size: 0.875rem; color: var(--text-muted); }
.quote figcaption strong { display: block; color: var(--text-primary); font-weight: 600; }

/* --------------------------------------------------------------------- faq */

.faq { display: grid; gap: var(--sp-3); max-width: 860px; }
.faq__item {
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  min-height: 60px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.012em;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--ember-300); }
.faq__chevron { flex: none; color: var(--ember-400); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-secondary); max-width: 62ch; text-wrap: pretty; }

/* ------------------------------------------------------------------- form */

.inquiry { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 980px) { .inquiry { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.inquiry__aside { display: grid; gap: var(--sp-5); align-content: start; }
.inquiry__contact { display: grid; gap: var(--sp-4); }
.contact-row { display: flex; align-items: center; gap: var(--sp-4); }
.contact-row__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgb(228 118 31 / 0.12);
  color: var(--ember-400);
}
.contact-row__label { font-size: var(--step--1); color: var(--text-muted); display: block; }
.contact-row__value { font-weight: 600; letter-spacing: -0.01em; }
a.contact-row__value:hover { color: var(--ember-300); }

.form {
  padding: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field--wide { grid-column: 1 / -1; }

.field { display: grid; gap: var(--sp-2); }
.field label { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.field label .optional { font-weight: 400; color: var(--text-muted); }
.field .req { color: var(--ember-400); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ember-700); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember-400);
  box-shadow: 0 0 0 3px rgb(241 145 64 / 0.25);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ember-400) 50%),
                    linear-gradient(135deg, var(--ember-400) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--sp-8);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--danger);
  font-weight: 550;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4);
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.consent input[type="checkbox"] {
  flex: none;
  width: 24px; height: 24px;
  min-height: 24px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--ember-500);
  cursor: pointer;
}
.consent label { font-size: 0.875rem; font-weight: 400; color: var(--text-secondary); line-height: 1.55; }

.form__footer { grid-column: 1 / -1; display: grid; gap: var(--sp-4); }
.form__note { font-size: 0.8125rem; color: var(--text-muted); }

.form-status {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  border: 1px solid;
}
.form-status--ok { color: var(--pine-300); border-color: var(--pine-300); background: rgb(143 191 160 / 0.08); }
.form-status--error { color: var(--danger); border-color: var(--danger); background: rgb(255 138 122 / 0.08); }
.form-status svg { flex: none; margin-top: 2px; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer h2 { font-size: var(--step-0); font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer__tagline { color: var(--text-secondary); max-width: 40ch; margin-top: var(--sp-4); font-size: 0.9375rem; }
.footer__list { display: grid; gap: var(--sp-3); font-size: 0.9375rem; color: var(--text-secondary); }
.footer__list a:hover { color: var(--ember-300); }

.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { color: var(--ember-300); border-color: var(--ember-400); }

.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------- loading shimmer */

.app-loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
