/* SI HOUSE SPA
   Visual system: white canvas, brand navy for identity, action blue for
   interaction, sky/ice only to separate zones. Hairlines instead of borders,
   no card shadows, editorial grid with a staggered three-column band.
   Layout follows the approved homepage mockup (desktop 1440 / mobile 390). */

/* @font-face rules live in public/fonts/fonts.css */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #12386b;
  --action: #176fc2;
  --sky: #eaf4fb;
  --ice: #f5f9fc;
  --ink: #162238;
  --muted: #687487;
  --line: #dce7f0;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', 'Noto Serif Thai', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-body: 'Noto Sans', 'Noto Sans Thai', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: system-ui, -apple-system, 'Segoe UI', 'Noto Sans Thai', 'Noto Sans SC', sans-serif;

  --measure: 40em;
  --shell: 1760px;
  --gutter: clamp(1.1875rem, 3vw, 3rem);
  --band: clamp(4.5rem, 9vw, 9rem);
  --header-h: 78px;

  /* distance from the viewport edge to the start of shell content */
  --edge: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--action);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--navy);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

h3 {
  font-size: clamp(1.1875rem, 1.5vw, 1.5rem);
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

::selection {
  background: var(--sky);
  color: var(--navy);
}

/* ── layout primitives ──────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--band);
}

.band--ice {
  background: var(--ice);
}

.band--sky {
  background: var(--sky);
}

.band--tight {
  padding-block: calc(var(--band) * 0.6);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.62;
  max-width: 34em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44em;
}

.stack > * + * {
  margin-top: 1.15em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── heading group ──────────────────────────────────────────────────────── */
/* eyebrow → English display line → subhead in the page's own language, all
   inside one heading element so local-language wording stays in the H1/H2 */
.eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--action);
  max-width: 30em;
}

.hg {
  display: block;
  margin: 0;
}

.hg__display {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.hg__line {
  display: block;
}

.hg__sub {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  color: var(--action);
}

h1.hg .hg__display {
  font-size: clamp(2.375rem, 4.6vw, 4.25rem);
}

h1.hg .hg__sub {
  font-size: clamp(1.1875rem, 1.7vw, 1.6875rem);
  text-wrap: balance;
}

h2.hg .hg__display {
  font-size: clamp(1.875rem, 3.1vw, 3rem);
}

h2.hg .hg__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.4375rem);
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--action);
  border-color: var(--action);
}

.btn--line {
  background: var(--action);
  border-color: var(--action);
}

.btn--line:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn--onnavy {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--onnavy:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.btn--sm {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.textlink {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.6rem;
  color: var(--action);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.textlink:hover {
  border-bottom-color: var(--action);
}

/* ── header ─────────────────────────────────────────────────────────────── */
.announce {
  background: var(--navy);
  color: #dce8f6;
  font-size: 0.75rem;
  line-height: 1.5;
  padding-block: 0.6rem;
  text-align: center;
}

.announce p {
  margin: 0;
  max-width: none;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-inline-start: auto;
}

.nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex: 0 0 auto;
}

.langs__list {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.langs__list a:hover {
  color: var(--action);
}

.langs__list a[aria-current='true'] {
  color: var(--navy);
  font-weight: 500;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--navy);
  position: relative;
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--navy);
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

@media (max-width: 1080px) {
  .nav,
  .masthead__tools .langs,
  .masthead__tools .btn {
    display: none;
  }

  .brand {
    margin-inline-end: auto;
  }

  .burger {
    display: inline-flex;
  }

  .brand img {
    height: 34px;
  }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  padding: var(--gutter);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.drawer[hidden] {
  display: none;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer__langs {
  margin: 0;
}

.drawer__langlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 1.25rem;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.drawer__langlist a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.drawer__langlist a[aria-current='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__nav a {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.drawer .btn {
  width: 100%;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero__text {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 3.5vw, 3.5rem) clamp(3rem, 6vw, 5.5rem) var(--edge);
}

.hero__text .lede {
  margin-top: 1.75rem;
  color: var(--muted);
}

.hero__figure {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.hero__figure img {
  width: 100%;
}

.hero__badge {
  position: absolute;
  top: clamp(1rem, 2vw, 1.75rem);
  inset-inline-end: clamp(1rem, 2vw, 1.75rem);
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--navy);
}

@media (min-width: 961px) {
  /* Height is derived from the viewport rather than fixed, so the fact strip
     that follows always lands inside the first screen instead of being cut in
     half: viewport minus the header (~7.2rem) and the fact strip (~11.3rem). */
  .hero {
    min-height: clamp(400px, calc(100svh - 18.5rem), 700px);
  }

  .hero__figure picture,
  .hero__figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* the source is a 4:5 portrait with the products low in the frame:
       bias the crop downwards so the range stays in shot */
    object-position: center 70%;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    order: -1;
  }

  .hero__figure img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .hero__badge {
    font-size: 0.6875rem;
    padding: 0.45rem 0.85rem;
  }

  .hero__text {
    padding: clamp(2.5rem, 8vw, 3.75rem) var(--gutter);
  }
}

/* ── fact strip ─────────────────────────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(1.75rem, 2.6vw, 2.5rem);
}

.facts > div {
  padding-inline: clamp(1rem, 2vw, 2.25rem) 1rem;
  border-inline-start: 1px solid var(--line);
}

.facts > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.facts b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.875rem);
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.facts b i {
  font-style: normal;
  color: var(--action);
}

.facts span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 16em;
}

@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .facts > div:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

/* ── editorial splits ───────────────────────────────────────────────────── */
.split-hg {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.split--media {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .split-hg,
  .split-media,
  .split,
  .split--media {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.twocol p {
  max-width: none;
}

@media (min-width: 1000px) {
  .twocol {
    column-count: 2;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .twocol p:first-child {
    margin-top: 0;
  }
}

.note-right {
  align-self: start;
  max-width: 24em;
  margin: 0;
  font-size: 0.9375rem;
}

@media (min-width: 901px) {
  .note-right {
    justify-self: end;
  }
}

/* ── full-bleed range band ──────────────────────────────────────────────── */
.range {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
}

.range img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.range::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(18, 56, 107, 0.93) 0%,
    rgba(18, 56, 107, 0.93) 40%,
    rgba(18, 56, 107, 0.55) 47%,
    rgba(18, 56, 107, 0) 56%
  );
}

.range .hg__display {
  color: #fff;
}

.range .hg__sub,
.range .eyebrow {
  color: #a9c8e8;
}

.range p {
  color: #dbe8f6;
  margin-top: 1.5rem;
}

.range__inner {
  max-width: 32rem;
  padding-block: clamp(4.5rem, 9vw, 9rem);
}

@media (max-width: 900px) {
  .range::after {
    background: linear-gradient(180deg, rgba(18, 56, 107, 0.5) 0%, rgba(18, 56, 107, 0.95) 44%);
  }

  .range__inner {
    padding-block: clamp(13rem, 44vw, 19rem) clamp(3rem, 9vw, 4.5rem);
    max-width: none;
  }
}

/* ── tiles ──────────────────────────────────────────────────────────────── */
.tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.tile img {
  width: 100%;
  border-radius: 2px;
}

.tile__body {
  padding-top: 1.15rem;
}

.tile h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 160ms ease;
}

.tile__arrow {
  flex: 0 0 auto;
  color: var(--action);
}

.tile__arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 200ms ease;
}

.tile:hover h3 {
  color: var(--action);
}

.tile:hover .tile__arrow svg {
  transform: translateX(3px);
}

.tile p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.price-chip {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.25rem 0.6rem;
  background: var(--sky);
  border-radius: 2px;
  color: var(--navy);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.tiles-stagger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 1100px) {
  .tiles-stagger {
    max-width: 82%;
  }

  .tiles-stagger > :nth-child(2) {
    margin-top: 3rem;
  }

  .tiles-stagger > :nth-child(3) {
    margin-top: 6rem;
  }
}

@media (max-width: 860px) {
  .tiles-stagger {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .grid-3--offset > :nth-child(3n + 2) {
    margin-top: 3.25rem;
  }

  .grid-3--offset > :nth-child(3n + 3) {
    margin-top: 6.5rem;
  }
}

/* ── framed photo with a credit line ────────────────────────────────────── */
.framed {
  position: relative;
}

.framed img {
  border-radius: 2px;
}

.framed figcaption {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-end: 0.9rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ── pull quote ─────────────────────────────────────────────────────────── */
.pull {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-inline-start: 3px solid var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  max-width: 26em;
}

/* ── small two-by-two grid ──────────────────────────────────────────────── */
.minigrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.minigrid h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.minigrid p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 560px) {
  .minigrid {
    grid-template-columns: 1fr;
  }
}

/* ── numbered next-step row ─────────────────────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--line);
}

.steps-row > a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1rem, 1.6vw, 1.5rem) clamp(1.5rem, 2.6vw, 2.25rem)
    clamp(1rem, 1.6vw, 1.25rem);
  border-inline-start: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.steps-row > a:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.steps-row b {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--action);
  line-height: 1;
}

.steps-row h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.steps-row p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: none;
}

.steps-row > a:hover h3 {
  color: var(--action);
}

@media (max-width: 1080px) {
  .steps-row {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .steps-row > a {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.25rem;
    padding: 1.25rem 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps-row b {
    grid-row: 1 / span 2;
    padding-top: 0.15rem;
  }
}

/* ── partner band ───────────────────────────────────────────────────────── */
.partner {
  display: grid;
  grid-template-columns: 42fr 58fr;
  align-items: stretch;
}

.partner__media {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.partner__media picture,
.partner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner__panel {
  background: var(--navy);
  color: #dbe8f6;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) var(--edge) clamp(3rem, 6vw, 6rem) clamp(2rem, 4.5vw, 5rem);
}

.partner__inner {
  max-width: 30rem;
}

.partner .hg__display {
  color: #fff;
}

.partner .hg__sub,
.partner .eyebrow {
  color: #a9c8e8;
}

.partner p {
  margin-top: 1.5rem;
  color: #dbe8f6;
}

@media (max-width: 900px) {
  .partner {
    grid-template-columns: 1fr;
  }

  .partner__media {
    position: static;
    min-height: 0;
  }

  .partner__media picture,
  .partner__media img {
    position: static;
    height: auto;
  }

  .partner__media img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  .partner__panel {
    padding: clamp(2.5rem, 8vw, 4rem) var(--gutter);
  }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 56px;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
}

.faq__q:hover {
  color: var(--action);
}

.faq__sign {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.35em;
  position: relative;
  color: var(--action);
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  background: currentColor;
}

.faq__sign::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 1px;
}

.faq__sign::after {
  top: 0;
  left: 7px;
  width: 1px;
  height: 16px;
  transition: opacity 180ms ease;
}

.faq__q[aria-expanded='true'] .faq__sign::after {
  opacity: 0;
}

.faq__a {
  padding: 0 0 1.4rem;
  max-width: 46em;
}

.faq__a p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq__a[hidden] {
  display: none;
}

/* ── contact band ───────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.addr {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.addr h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.addr address {
  font-style: normal;
  line-height: 1.7;
  color: var(--ink);
}

.addr p {
  margin: 0.35rem 0 0;
}

.mapcard {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ice);
}

.mapcard iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* inert: the anchor below owns the click */
  pointer-events: none;
}

.mapcard__hit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.9rem;
  text-decoration: none;
}

.mapcard__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2px;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(18, 56, 107, 0.14);
  transition: color 160ms ease;
}

.mapcard__chip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.mapcard__hit:hover .mapcard__chip {
  color: var(--action);
}

.mapcard__hit:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: -2px;
}

@media (max-width: 900px) {
  .mapcard {
    aspect-ratio: 3 / 2;
  }
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
}

.channels a:hover {
  border-color: var(--action);
  color: var(--action);
}

.channels svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.channels b {
  font-weight: 500;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ── breadcrumb ─────────────────────────────────────────────────────────── */
.crumbs {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li::after {
  content: '/';
  margin-inline-start: 0.45rem;
  color: var(--line);
}

.crumbs li:last-child::after {
  content: '';
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--action);
}

/* ── inner page head ────────────────────────────────────────────────────── */
.pagehead {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
}

.pagehead h1 {
  font-size: clamp(2.125rem, 4vw, 3.75rem);
  line-height: 1.08;
}

.pagehead .lede {
  margin-top: 1.35rem;
  color: var(--muted);
}

/* ── direct-answer block ────────────────────────────────────────────────── */
.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-block: 1px solid var(--line);
}

.answers h2 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.answers p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .answers {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ── generic label / description rows ───────────────────────────────────── */
.rows {
  border-top: 1px solid var(--line);
}

.rows > div {
  display: grid;
  grid-template-columns: minmax(11rem, 18rem) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.rows h2,
.rows h3 {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.35;
}

.rows p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .rows > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ── product detail ─────────────────────────────────────────────────────── */
.pdp {
  display: grid;
  grid-template-columns: 47fr 53fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.pdp__media img {
  width: 100%;
  border-radius: 2px;
}

.pdp__cat {
  font-size: 0.875rem;
  color: var(--action);
  text-decoration: none;
}

.pdp h1 {
  font-size: clamp(1.875rem, 3.2vw, 3rem);
  line-height: 1.12;
  margin-top: 0.75rem;
}

.pdp__tagline {
  margin-top: 0.7rem;
  color: var(--action);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 600;
}

@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
  }
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sizes li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background: var(--sky);
  border-radius: 2px;
}

.sizes small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.sizes b {
  color: var(--navy);
  font-weight: 600;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-inline-start: 1.15rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--action);
}

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 46em;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--action);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 34rem;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.spec-table th {
  width: 40%;
  font-weight: 500;
  color: var(--muted);
}

.variants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.variants li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.variants b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.variants span {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .variants {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── form ───────────────────────────────────────────────────────────────── */
.form {
  max-width: 44rem;
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-ui);
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--action);
  outline: 2px solid rgba(23, 111, 194, 0.25);
  outline-offset: 0;
}

.field--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

@media (max-width: 640px) {
  .field--pair {
    grid-template-columns: 1fr;
  }
}

.field__error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #a3271f;
}

.field__error[hidden] {
  display: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.consent label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

.formnote {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.9375rem;
}

.formnote[hidden] {
  display: none;
}

.formnote--ok {
  background: var(--sky);
  color: var(--navy);
}

.formnote--bad {
  background: #fdf1ef;
  color: #a3271f;
}

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot {
  background: var(--navy);
  color: #b9cee6;
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  font-size: 0.875rem;
}

.foot a {
  color: #cfdcec;
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.foot__brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.foot__brand p {
  margin-top: 1.1rem;
  color: #9db6d4;
  max-width: 28em;
}

.foot__langs {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.foot__langs a {
  font-size: 0.8125rem;
}

.foot__langs a[aria-current='true'] {
  color: #fff;
  text-decoration: underline;
}

.foot h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7f9dc2;
  margin-bottom: 1rem;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li {
  margin-bottom: 0.6rem;
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  color: #7f9dc2;
}

@media (max-width: 900px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

/* ── floating LINE button ───────────────────────────────────────────────── */
.floatline {
  position: fixed;
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  inset-block-end: clamp(1rem, 3vw, 2rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.05rem;
  background: var(--navy);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8125rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 56, 107, 0.22);
}

.floatline:hover {
  background: var(--action);
  color: #fff;
}

.floatline svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .floatline span {
    display: none;
  }

  .floatline {
    padding: 0.7rem;
  }
}

/* ── entrance animation ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
