/* ==========================================================================
   PIMOTION — home physical therapy, Phuket
   Single stylesheet. Mobile-first. Media queries live with the component they
   modify rather than in a block at the bottom.

   Order: fonts → tokens → reset → primitives → components → utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Self-hosted from public/fonts (see scripts/fetch-fonts.sh). Split by
   unicode-range so an English page never downloads the Thai glyphs.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/prompt-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/prompt-600-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/prompt-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/prompt-700-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plex-thai-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plex-thai-400-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plex-thai-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plex-thai-600-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand palette (brand doc section 14). Three tints of one hue, each with a job:
       --pink       #D95786  the identity colour. 3.71:1 on white, so it is used only for
                             large display type, accents, borders, rules and icon fills,
                             where the 3:1 threshold applies.
       --pink-ink   #C24471  4.81:1 on white. Solid button fills carrying white text.
       --pink-deep  #A83459  6.36:1 on white, 5.86:1 on the pink tint. All pink *text*,
                             because that text also has to pass on tinted section bands —
                             --pink-ink only reaches 4.43:1 there.
     The audience skews older adults, so this is not a technicality. */
  --pink: #d95786;
  --pink-ink: #c24471;
  --pink-deep: #a83459;
  --pink-tint: #fbe5ed;
  --pink-tint-soft: #fdf3f7;
  --navy: #16324f;
  --navy-soft: #234a70;

  /* Neutrals derived from the navy so greys stay warm rather than blue-cold. */
  --ink: #16324f;
  --muted: #4f6b84; /* 5.56:1 on white */
  --line: #e3e9ef;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;

  --focus: #0b63c5;

  /* Type. Swap these two to re-pair the whole site. */
  --font-display: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale, clamped so it never runs away on ultrawide displays. */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
  --fs-lg: clamp(1.3125rem, 0.8vw + 1.1rem, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.4vw + 1.2rem, 1.9rem);
  --fs-2xl: clamp(1.75rem, 2.2vw + 1.2rem, 2.5rem);
  --fs-3xl: clamp(2.125rem, 3.4vw + 1.2rem, 3.25rem);

  /* Spacing: a 4px-based scale. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;

  --section-y: clamp(3rem, 6vw, 5.5rem);
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: clamp(1.125rem, 4vw, 2rem);

  /* Warm and rounded, not clinical. */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22, 50, 79, 0.06), 0 2px 8px rgba(22, 50, 79, 0.05);
  --shadow-md: 0 4px 12px rgba(22, 50, 79, 0.07), 0 12px 32px rgba(22, 50, 79, 0.07);
  --shadow-lg: 0 8px 24px rgba(22, 50, 79, 0.09), 0 24px 60px rgba(22, 50, 79, 0.1);

  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Thai writes without inter-word spaces. Browsers segment it with an ICU dictionary and
   break at real word boundaries on their own — so leave `word-break` alone. Forcing
   `break-word` here makes them break anywhere instead, which splits syllables and strands
   vowels (ราค|า, บริกา|ร). `overflow-wrap: break-word` on body still covers the emergency
   case where a single unbreakable run would otherwise overflow. */
:lang(th) {
  line-break: loose;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(th) h1,
:lang(th) h2,
:lang(th) h3,
:lang(th) h4 {
  /* Thai glyphs carry tone marks above and below; tight leading collides them. */
  line-height: 1.42;
  letter-spacing: 0;
}

h1 {
  font-size: var(--fs-3xl);
}
h2 {
  font-size: var(--fs-2xl);
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-md);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--pink-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

/* Hover thickens the underline rather than shifting the colour: every pink that reads as
   "darker" than --pink-deep starts to look brown, and every lighter one fails contrast. */
a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

img {
  height: auto;
}

ul,
ol {
  padding-inline-start: 1.25em;
}

li + li {
  margin-top: var(--sp-2);
}

strong,
b {
  font-weight: 600;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

@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;
  }
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--pink-tint-soft);
}

.section--alt {
  background: var(--bg-alt);
}

.section--navy {
  background: var(--navy);
  color: #fff;
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

.section__head {
  max-width: 62ch;
  margin-bottom: var(--sp-7);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: var(--sp-3);
}

:lang(th) .eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
}

.section__head--center .eyebrow::before {
  display: none;
}

.section--navy .eyebrow {
  color: #f6b9cd;
}

.lead {
  font-size: var(--fs-md);
  color: var(--muted);
  margin-top: var(--sp-4);
}

.section--navy .lead {
  color: #cddae6;
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

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

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

@media (min-width: 620px) and (max-width: 899px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stack > * + * {
  margin-top: var(--sp-4);
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px; /* comfortable touch target */
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* White on --pink-ink is 4.81:1. White on --pink would be 3.71:1 and would fail. */
.btn--primary {
  background: var(--pink-ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  color: var(--navy);
  border-color: var(--pink);
  background: var(--pink-tint-soft);
}

/* Outlined button for dark grounds only — it is the secondary call button inside the navy
   CTA band. It must not inherit --navy for its text, or it renders navy-on-navy. */
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn--on-navy {
  background: #fff;
  color: var(--navy);
}

.btn--on-navy:hover {
  background: var(--pink-tint);
  color: var(--navy);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* --- Inline text link with arrow ----------------------------------------- */

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--pink-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--pink-tint);
  padding-bottom: 2px;
}

.link-more:hover {
  border-bottom-color: var(--pink);
  color: var(--pink-deep);
}

.link-more::after {
  content: '→';
  transition: transform 0.18s ease;
}

.link-more:hover::after {
  transform: translateX(3px);
}

:lang(th) .link-more,
:lang(th) .btn {
  font-size: var(--fs-base);
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* --- Logo lockup: mark + wordmark as live text --------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.logo__name b {
  color: var(--pink-deep);
  font-weight: 700;
}

.logo__tagline {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}

@media (max-width: 380px) {
  .logo__tagline {
    display: none;
  }
}

/* --- Navigation ---------------------------------------------------------- */

.nav-toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}
.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.site-nav.is-open {
  display: block;
}

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

.site-nav__list li + li {
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
}

.site-nav__link {
  display: block;
  padding: var(--sp-3) 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link[aria-current='page'] {
  color: var(--pink-deep);
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover {
  color: var(--navy);
  border-color: var(--pink);
  background: var(--pink-tint-soft);
}

.lang-switch svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* The horizontal nav needs more room than a Latin one: six Thai labels plus a language
   switch and a call button. Below this the nav collapses to the toggle. Kept in sync with
   the .call-bar breakpoint further down. */
@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: var(--sp-5);
    margin-inline-start: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
  }

  .site-nav__list li + li {
    border-top: 0;
  }

  .site-nav__link {
    padding: var(--sp-2) 0;
    font-size: var(--fs-sm);
    border-bottom: 2px solid transparent;
  }

  .site-nav__link[aria-current='page'] {
    border-bottom-color: var(--pink);
  }

  .site-nav__actions {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: var(--sp-8) var(--sp-9);
  background: linear-gradient(180deg, var(--pink-tint-soft) 0%, #fff 72%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

.hero__title {
  margin-bottom: var(--sp-4);
}

.hero__sub {
  font-size: var(--fs-md);
  color: var(--muted);
  max-width: 46ch;
}

.hero__media {
  position: relative;
}

.hero__img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Soft brand-coloured shape behind the photo — warmth without a clinical frame. */
.hero__media::before {
  content: '';
  position: absolute;
  inset: auto -6% -7% -6%;
  height: 62%;
  border-radius: var(--r-xl);
  background: var(--pink-tint);
  z-index: -1;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
  padding: 0;
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.trust-line li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: 0;
}

.trust-line li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

@media (min-width: 900px) {
  .hero {
    padding-block: var(--sp-9) var(--sp-10);
  }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-9);
  }
}

/* --- Cards --------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--pink-tint);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--pink-tint-soft);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1;
}

.card__title {
  font-size: var(--fs-md);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Two services have no photograph. Rather than leaving a photo-shaped hole where the
   image would sit, these cards centre their content and take a soft tinted ground, so the
   grid reads as a deliberate mix instead of a set of failed image loads. */
.card--icon {
  background: linear-gradient(160deg, var(--pink-tint) 0%, var(--pink-tint-soft) 55%);
  border-color: transparent;
}

.card--icon .card__body {
  justify-content: center;
  padding-block: var(--sp-7);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--pink-deep);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-2);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

/* Plain card variant with no photo and no border — used for value/why grids. */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.tile__title {
  font-size: var(--fs-md);
}

.tile__text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.section--navy .tile {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.section--navy .tile__text {
  color: #cddae6;
}

/* --- Steps --------------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
}

.steps li {
  counter-increment: step;
  position: relative;
  margin-top: 0;
  padding-inline-start: calc(var(--sp-8) + var(--sp-2));
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink-tint);
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
}

.steps__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
}

.steps__text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6) var(--sp-7);
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-5);
  }
  .steps li {
    padding-inline-start: 0;
    padding-top: calc(46px + var(--sp-4));
  }
}

/* --- Checklist ----------------------------------------------------------- */

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}

.checklist li {
  position: relative;
  margin-top: 0;
  padding-inline-start: calc(var(--sp-6) + var(--sp-2));
}

.checklist li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.28em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a83459' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}

@media (min-width: 760px) {
  .checklist--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4) var(--sp-6);
  }
}

/* --- Definition list (credentials, booking terms) ------------------------ */

.deflist {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}

.deflist__row {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
}

.deflist__row + .deflist__row {
  border-top: 1px solid var(--line-soft);
}

.deflist dt {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.deflist dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 620px) {
  .deflist__row {
    grid-template-columns: 15rem 1fr;
    gap: var(--sp-4);
    align-items: baseline;
  }
}

/* --- Pricing ------------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: var(--sp-4);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}

.price-card--featured {
  border-color: var(--pink);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.price-card__badge {
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--pink-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.price-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--pink-deep);
}

.price-card__unit {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}

.price-card__per {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.price-card__for {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-top: var(--sp-3);
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 620px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }
}

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

/* Semantic table on the pricing page. Scrolls in its own box rather than
   forcing the page body to scroll sideways. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  min-width: 34rem;
  font-size: var(--fs-sm);
}

.data-table caption {
  text-align: start;
  padding: var(--sp-4) var(--sp-5) 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.data-table th,
.data-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: start;
  vertical-align: top;
}

.data-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  background: var(--pink-tint-soft);
  white-space: nowrap;
}

.data-table tbody tr + tr th,
.data-table tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.data-table tbody th {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.data-table .is-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink-deep);
  white-space: nowrap;
}

/* --- FAQ (native details/summary, no JS) --------------------------------- */

.faq {
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--pink-tint);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--navy);
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

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

.faq__q::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-inline-end: 2.5px solid currentColor;
  border-block-end: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--muted);
}

/* --- Notice / disclaimer ------------------------------------------------- */

.notice {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--pink-tint-soft);
  border: 1px solid var(--pink-tint);
}

/* Icon beside the text rather than above it, for notices whose heading lives on the
   surrounding section. */
.notice--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.notice--inline > svg {
  width: 22px;
  height: 22px;
  color: var(--pink-deep);
}

.notice__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-md);
}

.notice__title svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--pink-deep);
}

.notice__text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.notice__emergency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--pink-tint);
  font-size: var(--fs-sm);
}

.notice__emergency strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--pink-deep);
}

/* --- Contact ------------------------------------------------------------- */

.contact-card {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.contact-list li {
  margin-top: 0;
}

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

.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink-tint);
  color: var(--pink-deep);
}

.contact-list__icon svg {
  width: 19px;
  height: 19px;
}

.contact-list__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.contact-list__value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: var(--fs-md);
}

a.contact-list__value:hover {
  color: var(--pink-deep);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
}

.area-tags li {
  margin-top: 0;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--pink-tint);
  color: var(--pink-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
}

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

.form {
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.form__fields {
  display: grid;
  gap: var(--sp-5);
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0; /* fieldset defaults to min-content, which breaks grid on narrow screens */
}

/* No labels are drawn. Each placeholder names its field and shows an example, so a row is
   just the control. The <label> is still in the DOM, visually hidden — see enquiryForm(). */
.field {
  display: grid;
}

.field__control {
  width: 100%;
  min-height: 52px; /* comfortable touch target */
  padding: var(--sp-3) var(--sp-4);
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.field__control {
  resize: vertical;
  line-height: 1.6;
}

/* The placeholder is the only thing naming the field, so it needs to read as text rather
   than as a faint hint — #6b7f90 is 4.6:1 on white, above the AA threshold. */
.field__control::placeholder {
  color: #6b7f90;
  opacity: 1; /* Firefox dims placeholders by default */
}

/* On narrow phones the placeholder carries a field name and an example, which is longer
   than a typed value ever is. Dropping a step buys about 12% more room so the example is
   not cut off. Only the placeholder shrinks — what the visitor types stays full size,
   which matters for an older-adult audience. */
@media (max-width: 480px) {
  .field__control::placeholder {
    font-size: var(--fs-sm);
  }
}

/* Native chevron on selects; the arrow is drawn rather than imported so the control
   still matches the inputs across platforms. */
select.field__control {
  appearance: none;
  padding-inline-end: var(--sp-8);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6b84' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px 18px;
}

[dir='rtl'] select.field__control,
select.field__control:dir(rtl) {
  background-position: left var(--sp-4) center;
}

/* While the empty option is selected the select is showing its prompt, so grey it to match
   the inputs' placeholders. Browsers without :has() simply render it in normal ink. */
select.field__control:has(option[value='']:checked) {
  color: #6b7f90;
}

.field__control:hover {
  border-color: #c9d5df;
}

.field__control:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 87, 134, 0.18);
}

/* :user-invalid only fires after the visitor has interacted, so a pristine form is never
   shown as broken. */
.field__control:user-invalid {
  border-color: #c0392b;
}

.field__control:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.form__status:not(:empty) {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--pink-tint);
  color: var(--pink-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
}

@media (min-width: 620px) {
  .form {
    padding: var(--sp-7);
  }

  /* The two selects pair up; everything else stays full width for scanning. Marked with an
     explicit class rather than :nth-child, which would also count the <legend>. */
  .form__fields {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .field--half {
    grid-column: span 1;
  }
}

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #cddae6;
  margin-top: var(--sp-3);
  margin-inline: auto;
  max-width: 52ch;
}

.cta-band .btn-row {
  justify-content: center;
}

@media (min-width: 760px) {
  .cta-band {
    padding: var(--sp-9) var(--sp-8);
  }
}

/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb {
  padding-block: var(--sp-4) 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.breadcrumb li {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--line);
}

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

.breadcrumb a:hover {
  color: var(--pink-deep);
  text-decoration: underline;
}

/* --- Page header (sub-pages) --------------------------------------------- */

.page-head {
  padding-block: var(--sp-6) var(--sp-8);
  background: linear-gradient(180deg, var(--pink-tint-soft) 0%, #fff 100%);
}

.page-head__inner {
  max-width: 64ch;
}

/* --- Media figure -------------------------------------------------------- */

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.figure figcaption,
.media-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #cddae6;
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-sm);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-4);
}

.site-footer a {
  color: #cddae6;
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  gap: var(--sp-7);
}

.site-footer__logo .logo__name {
  color: #fff;
}

.site-footer__logo .logo__name b {
  color: #f6b9cd;
}

.site-footer__logo .logo__tagline {
  color: #a9bccd;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.site-footer__list li {
  margin-top: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-xs);
  color: #a9bccd;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--sp-8);
  }
}

/* --- Sticky mobile call bar ---------------------------------------------- */

/* Phone is the stated primary channel, and most "near me" searches are mobile. */
.call-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(22, 50, 79, 0.09);
}

.call-bar .btn {
  flex: 1;
  min-height: 46px;
  padding-inline: var(--sp-3);
  /* Override the larger Thai button size — a wrapped phone number reads as two numbers. */
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* Matches the nav breakpoint above: the bar is for the collapsed-nav layout. */
@media (min-width: 1080px) {
  .call-bar {
    display: none;
  }
}

/* Keep the fixed bar from covering the end of the footer. */
@media (max-width: 1079px) {
  body {
    padding-bottom: 78px;
  }
}

/* --------------------------------------------------------------------------
   6. Utilities
   -------------------------------------------------------------------------- */

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

.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

.no-scroll {
  overflow: hidden;
}

@media print {
  .site-header,
  .call-bar,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}
