/* ===== Charly.O Beauty — styles =====
   Brand: logo purple #9541A8, deep plum #600A5F, charcoal #464A4E, blush #FFEDF6.
   Light + dark themes are colour tokens below; everything else reads from them.
   Mobile notes are marked  ⟶ iOS / ⟶ Android / ⟶ touch.                                       */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Theme tokens ---------- */
:root {
  /* light (default) — blush paper, purple ink */
  --bg: #fdf0f6;
  --bg-2: #f8e2ed;
  --surface: #ffffff;
  --ink: #2b2230;
  --ink-2: #4c4052;
  --muted: #6e6174;
  --accent: #8e3ca3;          /* logo purple, nudged darker for text contrast */
  --accent-strong: #600a5f;   /* logo deep plum */
  --accent-ink: #ffffff;
  --accent-soft: #f0d9f4;
  --line: rgba(142, 60, 163, 0.16);
  --line-strong: rgba(142, 60, 163, 0.32);
  --error: #b3261e;
  --shadow: 0 18px 40px -18px rgba(96, 10, 95, 0.28);
  --nav-glass: rgba(253, 240, 246, 0.78);
  --hero-tint: rgba(253, 240, 246, 0);
  color-scheme: light;
}
/* dark — deep plum night, orchid ink */
:root[data-theme="dark"] {
  --bg: #140e17;
  --bg-2: #1c1420;
  --surface: #231929;
  --ink: #f6eef8;
  --ink-2: #ddd0e2;
  --muted: #b1a3b7;
  --accent: #c788da;
  --accent-strong: #e2b8ee;
  --accent-ink: #1a0f1f;
  --accent-soft: #3a2444;
  --line: rgba(199, 136, 218, 0.16);
  --line-strong: rgba(199, 136, 218, 0.34);
  --error: #ff9f9a;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --nav-glass: rgba(20, 14, 23, 0.78);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140e17;
    --bg-2: #1c1420;
    --surface: #231929;
    --ink: #f6eef8;
    --ink-2: #ddd0e2;
    --muted: #b1a3b7;
    --accent: #c788da;
    --accent-strong: #e2b8ee;
    --accent-ink: #1a0f1f;
    --accent-soft: #3a2444;
    --line: rgba(199, 136, 218, 0.16);
    --line-strong: rgba(199, 136, 218, 0.34);
    --error: #ff9f9a;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --nav-glass: rgba(20, 14, 23, 0.78);
    color-scheme: dark;
  }
}

:root {
  --serif: "Cormorant Garamond", "Didot", "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 78px;
  /* ⟶ iOS: keep content clear of the notch, Dynamic Island and home indicator */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: clamp(20px, 5vw, 72px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Logo swap: show the version made for the active theme */
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;   /* ⟶ iOS: no font inflation in landscape */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-t));
  background: var(--bg);
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 15.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;                  /* ⟶ touch: no grey flash on tap */
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
/* ⟶ iOS: body overflow:hidden alone doesn't stop background scrolling, so we pin the body */
html.is-locked, html.is-locked body { overflow: hidden; }
html.is-locked body { position: fixed; inset-inline: 0; width: 100%; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
a, button, label, select, input, summary { touch-action: manipulation; }  /* ⟶ touch: removes double-tap-zoom delay */
button { font: inherit; color: inherit; }
em { font-style: italic; color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(42px, 6vw, 80px); }
h2 em, h1 em { font-weight: 400; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-size: 13px; }
.skip:focus { top: calc(12px + var(--safe-t)); }

/* tagline style lifted from the logo: wide-tracked caps with dot separators */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow i { font-style: normal; font-size: 8px; opacity: .8; }

/* ---------- Buttons (min 48px = comfortable thumb target) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 30px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; -webkit-appearance: none; appearance: none; user-select: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .15s, box-shadow .35s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-sm { min-height: 44px; padding: 10px 22px; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.link-arrow span { display: inline-block; transition: transform .4s var(--ease); }

/* ⟶ touch: hover effects only on devices that really hover (prevents "sticky" hover on phones) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
  .link-arrow:hover { border-color: var(--accent); color: var(--accent); }
  .link-arrow:hover span { transform: translateX(6px); }
  .nav-links a:not(.btn):hover { color: var(--accent); }
  .filter:hover { color: var(--accent); }
  .tile:hover img { transform: scale(1.04); }
  .tile:hover figcaption { opacity: 1; transform: none; }
  .service:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
  .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .footer-cols a:hover, .book-notes a:hover { color: var(--accent); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(16px + var(--safe-t)) var(--pad-r) 16px var(--pad-l);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: var(--bg); padding-block: calc(8px + var(--safe-t)) 8px; border-color: var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: var(--nav-glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
}
.brand { position: relative; z-index: 2; display: flex; align-items: center; min-height: 44px; }
.brand img { height: 50px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .brand img { height: 42px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--ink-2); transition: color .3s; }
.nav-tools { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; }
.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; transition: all .3s;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
}
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; margin-right: -8px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.nav-toggle span:first-child { top: 18px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Same centred composition on every screen: arched photo on top, copy centred beneath it */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center;
  min-height: 100vh; min-height: 100svh;  /* ⟶ iOS/Android: "small" viewport so the address bar never hides the CTA */
  padding: calc(var(--nav-h) + var(--safe-t) + 24px) var(--pad-r) clamp(50px, 6vw, 90px) var(--pad-l);
  gap: clamp(22px, 3vw, 40px); text-align: center;
}
.hero-copy { position: relative; z-index: 2; grid-row: 2; max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(54px, 6vw, 96px); margin-bottom: 24px; color: var(--ink); }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::before { display: none; }
.lede { max-width: 540px; color: var(--ink-2); font-size: 17px; margin: 0 auto 36px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 32px; }
.hero-media {
  position: relative; grid-column: 1; grid-row: 1; justify-self: center;
  height: clamp(320px, 52svh, 540px); width: auto; max-width: 100%;
  aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;  /* arch frame */
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards; }
.hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
@keyframes heroIn { to { transform: scale(1); } }

/* ---------- Specialties strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; list-style: none; margin: 0; padding: 22px var(--pad-r) 22px var(--pad-l); font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.strip li { display: flex; align-items: center; white-space: nowrap; }
.strip li + li::before { content: "•"; color: var(--accent); margin: 0 22px; letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) var(--pad-r) clamp(80px, 11vw, 150px) var(--pad-l); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px 40px; margin-bottom: clamp(40px, 5vw, 70px); }
.section-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-sub { grid-column: 1 / -1; max-width: 580px; color: var(--muted); margin: 0; }
.statement, .testimonials, .footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); border-radius: 999px; font: 500 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; min-height: 44px; padding: 10px 20px; cursor: pointer; transition: color .3s, background .3s, border-color .3s; }
.filter.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.gallery { columns: 3 280px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--accent-soft); box-shadow: var(--shadow); isolation: isolate; }
/* thin brand-coloured rim + soft plum vignette so photos with different backgrounds sit together on the page */
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -80px 90px -60px rgba(96, 10, 95, .35); }
.tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.tile figcaption { z-index: 2; position: absolute; inset: auto 0 0; padding: 60px 20px 18px; background: linear-gradient(0deg, rgba(30,12,36,.78), transparent); color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 10px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); pointer-events: none; }
.tile:focus-within figcaption { opacity: 1; transform: none; }
.tile figcaption b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.tile figcaption span { font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #f0d4f7; white-space: nowrap; }
.tile.is-hidden { display: none; }
/* ⟶ touch: there is no hover, so captions are always shown, smaller */
@media (hover: none) {
  .tile figcaption { opacity: 1; transform: none; padding: 40px 12px 10px; }
  .tile figcaption b { font-size: 17px; }
  .tile figcaption span { font-size: 9px; letter-spacing: .16em; }
}
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---------- Statement ---------- */
.statement { padding: clamp(80px, 11vw, 140px) var(--pad-r) clamp(80px, 11vw, 140px) var(--pad-l); text-align: center; background: var(--bg-2); border-block: 1px solid var(--line); }
.statement-mark { width: 54px; height: auto; margin: 0 auto 26px; }
.statement p { font-family: var(--serif); font-size: clamp(25px, 3.3vw, 44px); line-height: 1.32; max-width: 980px; margin: 0 auto 26px; color: var(--ink); }
.statement span { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Services (cards grouped Makeup / Brows / Lashes) ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
.service-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.group-title { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 18px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s, background-color .5s; }
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.service h4 { font-size: 26px; line-height: 1.1; color: var(--ink); }
.service .price { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; text-align: right; }
.service .price strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--accent); }
.service p { margin: 10px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.service-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.duration { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.book-this { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 100px); padding: clamp(80px, 11vw, 150px) var(--pad-r) clamp(80px, 11vw, 150px) var(--pad-l); background: var(--bg-2); border-block: 1px solid var(--line); }
.about-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius) var(--radius) 999px 999px; overflow: hidden; box-shadow: var(--shadow); max-width: 540px; }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: var(--ink-2); max-width: 520px; font-size: 16.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.stats dt { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 500; line-height: 1; color: var(--accent); }
.stats dd { margin: 10px 0 0; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.testimonials .eyebrow { justify-content: center; }
.testimonials .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); margin-top: 30px; }
.quotes figure { margin: 0; padding: 34px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; transition: background-color .5s; }
.quotes blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.42; color: var(--ink); }
.quotes blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.quotes figcaption { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Booking ---------- */
.book { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 100px); padding: clamp(80px, 11vw, 150px) var(--pad-r) clamp(80px, 11vw, 150px) var(--pad-l); }
.book-intro h2 { margin-bottom: 24px; }
.book-intro > p:not(.eyebrow) { color: var(--ink-2); max-width: 440px; }
.book-notes { list-style: none; margin: 40px 0 0; padding: 0; }
.book-notes li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.book-notes li:first-child { border-top: 1px solid var(--line); }
.book-notes span { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.book-notes a { color: var(--accent); word-break: break-all; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow); transition: background-color .5s; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; margin: 0;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); font: 400 16.5px/1.4 var(--sans);    /* ⟶ iOS: 16px+ stops Safari zooming in on focus */
  padding: 12px 14px; transition: border-color .3s, box-shadow .3s, background-color .5s;
  -webkit-appearance: none; appearance: none; box-shadow: none;
}
/* ⟶ iOS: native date/time inputs collapse and centre their text when appearance is removed */
.field input[type="date"], .field input[type="time"] { display: block; text-align: left; min-width: 0; }
.field input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.4em; }
.field input::-webkit-datetime-edit { padding: 0; }
.field input::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
:root[data-theme="dark"] .field input::-webkit-calendar-picker-indicator { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field input::-webkit-calendar-picker-indicator { filter: invert(1); } }
.field input[type="number"]::-webkit-inner-spin-button, .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(-45deg, transparent 50%, var(--accent) 50%); background-position: right 20px top 52%, right 14px top 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; text-overflow: ellipsis; }
.field select option, .field select optgroup { background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
/* ⟶ iOS/Android autofill: keep the theme colours instead of yellow/blue boxes */
.field input:-webkit-autofill, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; transition: background-color 9999s;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.err { color: var(--error); font-size: 13px; }
.err:empty { display: none; }
.choice { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; min-width: 0; }
.choice legend { width: 100%; margin-bottom: 10px; padding: 0; float: left; }  /* float: Safari legend layout fix */
.choice label { flex: 1 1 150px; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 50px; text-align: center; padding: 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); transition: all .3s; }
.choice input:checked + span { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1 1 240px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--accent); font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.form-msg.bad { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { padding: 72px var(--pad-r) calc(36px + var(--safe-b)) var(--pad-l); border-top: 1px solid var(--line); background: var(--bg-2); text-align: center; }
.footer-logo { width: min(360px, 76%); height: auto; margin: 0 auto 38px; }
.footer-location { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); max-width: 1120px; margin: 0 auto 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); text-align: left; box-shadow: 0 18px 48px rgba(50, 18, 48, .06); }
.footer-location-copy { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.footer-eyebrow { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.footer-location-copy h2 { margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(27px, 3vw, 38px); font-weight: 500; line-height: 1.1; }
.footer-location-copy p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.7; }
.footer-map-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.footer-map-link:hover { background: var(--bg-2); transform: translateY(-1px); }
.footer-map-link svg, .footer-map-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.footer-map-link .footer-external { width: 14px; height: 14px; }
.footer-location-copy small { margin-top: 15px; max-width: 260px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer-map-frame { min-height: 300px; position: relative; background: var(--bg-2); }
.footer-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 300px; border: 0; filter: saturate(.78) contrast(.97); }
.footer-map-chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.93); color: #392a3a; box-shadow: 0 4px 18px rgba(0,0,0,.1); font-size: 11px; font-weight: 600; }
.footer-map-chip svg { width: 15px; height: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; padding: 25px 0; border-block: 1px solid var(--line); font-size: 14px; }
.footer-cols .footer-contact-item > span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-contact-item > a, .footer-socials a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink-2); transition: color .2s ease; }
.footer-contact-item > a:hover, .footer-socials a:hover { color: var(--accent); }
.footer-contact-item svg, .footer-socials svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.fine { margin: 26px 0 0; font-size: 12px; color: var(--muted); }
/* Larger touch targets for footer links. */
.footer-cols a, .book-notes a { padding-block: 8px; margin-block: -8px; }

/* ---------- Floating book bar (phones only) ---------- */
.book-bar { display: none; }

/* ---------- Lightbox (native <dialog>) ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--safe-t) 0 var(--safe-b);
  border: 0; background: color-mix(in srgb, var(--bg) 96%, transparent); color: var(--ink);
  display: grid; place-items: center; overscroll-behavior: contain; touch-action: pan-y pinch-zoom;
}
@supports not (background: color-mix(in srgb, red, blue)) { .lightbox { background: var(--bg); } }
.lightbox:not([open]) { display: none; }
.lightbox[open] { animation: fadeIn .35s var(--ease); }
.lightbox::backdrop { background: rgba(20, 8, 24, .6); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; text-align: center; padding: 0 60px; }
.lightbox img { max-height: 80vh; max-height: 80svh; max-width: 100%; width: auto; object-fit: contain; margin: 0 auto; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { margin-top: 18px; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-size: 30px; font-weight: 300; cursor: pointer; line-height: 1; }
.lb-close { top: calc(14px + var(--safe-t)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .1s; } .hero .reveal:nth-child(3) { transition-delay: .2s; } .hero .reveal:nth-child(4) { transition-delay: .3s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  *, ::view-transition-group(*) { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; max-width: 640px; }
  .about, .book { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 66px; }
  .nav { padding-block: calc(10px + var(--safe-t)) 10px; }
  .brand img, .nav.is-scrolled .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh;  /* ⟶ dvh: full height as the URL bar moves */
    flex-direction: column; justify-content: center; gap: 28px; margin: 0;
    padding: var(--safe-t) var(--pad-r) var(--safe-b) var(--pad-l);
    background: var(--bg); font-size: 14px; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .nav-links a:not(.btn) { min-height: 48px; display: inline-flex; align-items: center; font-size: 15px; color: var(--ink); }
  .nav-links .btn { min-height: 52px; padding-inline: 34px; }
  .nav-links.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }

  .hero { align-content: start; gap: 22px; min-height: 0; padding-bottom: 50px; }
  .hero-media { max-width: 280px; width: 64%; max-height: 40svh; aspect-ratio: auto; height: min(40svh, 350px); }
  .hero-cta .btn { flex: 1 1 100%; }

  .strip ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block: 18px; }
  .strip ul::-webkit-scrollbar { display: none; }
  .section-head { grid-template-columns: 1fr; }
  /* filters scroll sideways on one line instead of wrapping */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1); padding-inline: var(--pad-l) var(--pad-r); scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; }
  .gallery { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: var(--radius-sm); }
  .about-media { width: 82%; margin-inline: auto; }
  .form { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .form-foot .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .footer-location { grid-template-columns: 1fr; }
  .footer-location-copy { padding: 26px; }
  .footer-location-copy small { max-width: 340px; }
  .footer-map-frame, .footer-map-frame iframe { min-height: 260px; }
  .footer { padding-bottom: calc(110px + var(--safe-b)); }  /* room for the floating book bar */
  .stats { gap: 14px; }
  .lightbox figure { padding: 0 10px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + var(--safe-b)); transform: none; }

  .book-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 40; left: var(--pad-l); right: var(--pad-r);
    bottom: calc(14px + var(--safe-b)); min-height: 54px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 12px 30px -8px rgba(96, 10, 95, .5);
    transform: translateY(calc(100% + 30px + var(--safe-b))); transition: transform .45s var(--ease);
  }
  .book-bar.is-visible { transform: none; }
  html.is-locked .book-bar { transform: translateY(calc(100% + 30px + var(--safe-b))); }
}

/* very small phones (iPhone SE / mini Androids) */
@media (max-width: 380px) {
  .hero h1 { font-size: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { column-gap: 8px; }
}

/* landscape phones: side-by-side hero, no forced height */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero-media { grid-column: 2; max-width: 260px; }
  .hero-copy { grid-row: 1; text-align: left; }
  .hero .eyebrow, .hero-cta { justify-content: flex-start; }
  .lede { margin-inline: 0; }
}

/* ---------- Desktop/tablet: About follows the phone's stacked presentation (photo on top, copy beneath), centred ---------- */
@media (min-width: 821px) {
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(30px, 4vw, 50px); }
  .about-media { width: min(420px, 100%); max-width: 420px; }
  .about-copy { max-width: 640px; }
  .about-copy .eyebrow, .about-actions { justify-content: center; }
  .about-copy .eyebrow::before { display: none; }
  .about-copy p { margin-inline: auto; }
}
