/* =========================================================
   Nok's Thai Massage — styles.css
   Palette: warm cream / deep sage / bronze
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cream:        #FAF7F2;
  --cream-2:      #F2EDE4;
  --card:         #FFFFFF;
  --sage:         #3E4E42;
  --sage-deep:    #2B3830;
  --sage-soft:    #6B7C70;
  --bronze:       #B08D57;
  --bronze-dark:  #93743F;
  --line:         #E4DDD1;
  --white:        #FFFFFF;

  --text:         var(--sage);
  --text-muted:   var(--sage-soft);

  --font-display: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --font-body:    "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:       18px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(43, 56, 48, .04), 0 12px 32px rgba(43, 56, 48, .07);
  --shadow-lg:    0 2px 6px rgba(43, 56, 48, .06), 0 24px 60px rgba(43, 56, 48, .12);

  --header-h:     72px;
  --wrap:         1180px;
  --gutter:       clamp(1.15rem, 4vw, 2.5rem);
  --section-y:    clamp(4rem, 9vw, 7.5rem);

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* Thai headlines need a Thai-capable serif first */
html[lang="th"] {
  --font-display: "Noto Serif Thai", "Cormorant Garamond", Georgia, serif;
}

/* …but the brand name itself is Latin and always keeps its own typeface */
.brand-name,
.hero h1,
.footer-brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="th"] body { line-height: 1.85; }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3 { line-height: 1.35; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--cream-2); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin-bottom: 1rem;
}
html[lang="th"] .eyebrow { letter-spacing: .1em; }

.section-title { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .4em; }
.section-lead  { color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.1rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--sage);
  color: var(--white);
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  /* em-based so the frame always keeps its proportion to the label */
  padding: .78em 1.7em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--bronze);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(176, 141, 87, .32);
}
.btn--primary:hover { background: var(--bronze-dark); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--sage);
}
.btn--outline:hover { border-color: var(--bronze); color: var(--bronze-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 28, 23, .55), rgba(20, 28, 23, 0));
  transition: opacity .35s var(--ease);
}
/* NOTE: no backdrop-filter here. Below 1024px the mobile menu lives inside this
   header as a `position: fixed` overlay, and backdrop-filter would turn the
   header into its containing block — the overlay would then be clipped to the
   72px header box instead of covering the viewport. The blur is re-added for
   desktop only, further down. */
.site-header.is-stuck { background: rgba(250, 247, 242, .96); box-shadow: 0 1px 0 var(--line); }
.site-header.is-stuck::before { opacity: 0; }

.header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
/* the mark is a transparent PNG — no plate, no circle behind it */
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.site-header.is-stuck .brand-name { color: var(--sage); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  position: relative;
  color: rgba(255, 255, 255, .92);
  font-size: .93rem;
  font-weight: 500;
  padding: .35rem 0;
  transition: color .3s var(--ease);
}
.site-header.is-stuck .nav a { color: var(--sage); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--bronze); }
.site-header.is-stuck .nav a.is-active { color: var(--bronze-dark); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .35s var(--ease);
}
.site-header.is-stuck .lang { border-color: var(--line); }
.lang button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 .55rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.site-header.is-stuck .lang button { color: var(--sage-soft); }
.lang button[aria-pressed="true"] { background: var(--bronze); color: var(--white); }
.site-header.is-stuck .lang button[aria-pressed="true"] { color: var(--white); }

.header-cta { display: none; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: background-color .2s var(--ease), transform .3s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: inherit;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.site-header.is-stuck .burger span,
.site-header.is-stuck .burger span::before,
.site-header.is-stuck .burger span::after { background: var(--sage); }
.nav-open .burger span { background: transparent !important; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); background: var(--sage); }
.nav-open .burger span::after  { top: 0; transform: rotate(-45deg); background: var(--sage); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(24, 33, 27, .58), rgba(24, 33, 27, .34) 42%, rgba(24, 33, 27, .82));
}

.hero-inner { max-width: 46rem; padding: calc(var(--header-h) + 2rem) var(--gutter) 4.5rem; }
.hero-eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 1.4rem;
}
html[lang="th"] .hero-eyebrow { letter-spacing: .12em; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.hero-tagline {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.1rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  letter-spacing: .04em;
  margin-bottom: 1.2rem;
}
.hero-tagline span { position: relative; }
.hero-tagline span + span::before {
  content: "";
  position: absolute;
  left: -.62rem; top: 50%;
  width: 1px; height: 1em;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .4);
}
.hero-quote {
  max-width: 34rem;
  margin: 0 auto 2.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-style: italic;
  color: rgba(255, 255, 255, .92);
}
.hero-quote cite {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
}
.scroll-hint svg { width: 22px; height: 22px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-media::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 55%; height: 55%;
  border: 1px solid var(--bronze);
  border-radius: var(--radius);
  z-index: -1;
}
.about-body p { color: var(--text-muted); font-size: 1.03rem; }
.signature {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.signature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.signature span { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-dark); }
html[lang="th"] .signature span { letter-spacing: .04em; text-transform: none; }

/* ---------- Prices ---------- */
.price-grid {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 141, 87, .5);
  box-shadow: var(--shadow-lg);
}
.price-card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--bronze-dark);
  margin-bottom: 1.1rem;
}
.price-card-icon svg { width: 22px; height: 22px; }
.price-card h3 { font-size: 1.5rem; margin-bottom: .35em; }
.price-card-desc { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.4rem; }

.price-rows { margin-top: auto; border-top: 1px solid var(--line); }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row .dur { color: var(--text-muted); font-size: .92rem; }
.price-row .amt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--sage-deep); }

.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .88rem;
  color: var(--text-muted);
}
.badge svg { width: 16px; height: 16px; color: var(--bronze-dark); }

/* ---------- Benefits ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.benefit {
  text-align: center;
  padding: clamp(1.4rem, 3vw, 2rem) 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.benefit:hover { transform: translateY(-4px); border-color: rgba(176, 141, 87, .5); }
.benefit-icon {
  width: 52px; height: 52px;
  margin: 0 auto .9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--bronze-dark);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.15rem; margin: 0; font-family: var(--font-body); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.7rem, 1.6vw, 1.1rem);
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ico {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--bronze-dark);
}
.contact-ico svg { width: 19px; height: 19px; }
.contact-list li > span:last-child { display: block; }
.contact-list dt,
.contact-label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .15rem;
}
html[lang="th"] .contact-label { letter-spacing: .04em; text-transform: none; font-size: .85rem; }
.contact-value { display: block; font-size: 1.08rem; font-weight: 500; }
a.contact-value:hover { color: var(--bronze-dark); }

.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.contact-media { display: grid; gap: clamp(.7rem, 1.6vw, 1rem); grid-template-columns: 1fr 1fr; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.contact-media figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.contact-media figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.contact-media figure:not(:first-child) { aspect-ratio: 3 / 4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-deep);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1rem;
}
html[lang="th"] .site-footer h4 { letter-spacing: .05em; text-transform: none; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: calc(var(--header-h) + 3rem) 4rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal a { color: var(--bronze-dark); text-decoration: underline; }
.legal .todo {
  background: #FFF6E5;
  border: 1px solid #E8D5A8;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: #6B5320;
  font-size: .93rem;
}
.legal-header { background: var(--cream); }
.legal-header .brand-name { color: var(--sage); }
.legal-header .nav a { color: var(--sage); }
.legal-header::before { opacity: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .price-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery     { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .about-grid   { grid-template-columns: 1fr 1.1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  /* safe here: the nav is a normal flex row on desktop, not a fixed overlay */
  .site-header.is-stuck {
    background: rgba(250, 247, 242, .93);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .header-cta   { display: inline-flex; }
  /* the in-menu booking button is only needed in the mobile overlay */
  .nav > .btn   { display: none; }
}

@media (min-width: 1100px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile navigation */
@media (max-width: 1023px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  .nav a { color: var(--sage) !important; font-size: 1.5rem; font-family: var(--font-display); }

  /* menu entries drop in from above, one after the other.
     Must be `.nav > a` — a plain `.nav > *` loses to `.nav a` and the
     opacity/transform transitions would be dropped. */
  .nav > a {
    opacity: 0;
    transform: translateY(-24px);
    transition: opacity .42s var(--ease), transform .42s var(--ease), color .3s var(--ease);
  }
  .nav-open .nav > a { opacity: 1; transform: none; }
  .nav-open .nav > a:nth-child(1) { transition-delay: .10s; }
  .nav-open .nav > a:nth-child(2) { transition-delay: .16s; }
  .nav-open .nav > a:nth-child(3) { transition-delay: .22s; }
  .nav-open .nav > a:nth-child(4) { transition-delay: .28s; }
  .nav-open .nav > a:nth-child(5) { transition-delay: .34s; }
  .nav-open .nav > a:nth-child(6) { transition-delay: .42s; }

  /* `.nav a` is more specific than `.btn`, so the button restates its own frame */
  .nav > .btn {
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: .85em 2em;
    margin-top: .6rem;
    color: var(--white) !important;
  }
  .nav > .btn::after { content: none; }

  .nav a::after { left: 50%; width: 0; }
  .nav a:hover::after, .nav a.is-active::after { left: 0; width: 100%; transform: scaleX(1); }
  .nav-open .site-header { background: var(--cream); }
  .nav-open .brand-name { color: var(--sage); }
  .nav-open .lang { border-color: var(--line); }
  .nav-open .lang button { color: var(--sage-soft); }
  .nav-open .lang button[aria-pressed="true"] { color: var(--white); }
  body.nav-open { overflow: hidden; }
}

/* Keep the brand, the language switch and the burger on one line */
@media (max-width: 560px) {
  .brand { gap: .5rem; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .header-inner { gap: .4rem; }
  .header-actions { gap: .25rem; }
  .lang button { min-width: 38px; padding: 0 .35rem; font-size: .72rem; }
  .burger { width: 40px; }
  .legal-header .btn { min-height: 38px; padding: .45rem .8rem; font-size: .8rem; }
}

@media (max-width: 420px) {
  /* the legal pages have no burger, so the back button needs the room */
  .legal-header .brand-name { display: none; }
}

@media (max-width: 380px) {
  .brand-name { font-size: .95rem; }
}

@media (max-width: 640px) {
  /* leave room so the back-to-top button never covers footer text */
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 479px) {
  .contact-media { grid-template-columns: 1fr; }
  .contact-media figure:not(:first-child) { aspect-ratio: 4 / 3; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .hero-actions, .scroll-hint { display: none !important; }
  body { background: #fff; }
  .price-card { break-inside: avoid; box-shadow: none; }
}
