/* ==========================================================
   base.css  -  reset, layout helpers, shared components
   Theme colours and fonts live in the theme section below.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: min(100% - 2.5rem, var(--maxw, 1180px)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius, 999px);
  font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 10px 26px -10px var(--accent); }
.btn-ghost { border-color: var(--line-strong, var(--line)); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 78px; transition: min-height .3s ease;
}
.site-header.is-stuck .bar { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.01em; font-size: 1.25rem; }
.nav ul { display: flex; gap: 2rem; }
.nav a { font-size: .93rem; font-weight: 500; opacity: .85; position: relative; padding-block: .3rem; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: .8rem; }
.lang-select {
  appearance: none; background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; cursor: pointer;
}
.lang-select option { color: #111; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .tools .btn { display: none; }
  .nav {
    position: fixed; inset: 0; padding: 6rem 2rem 2rem; background: var(--nav-bg, var(--bg));
    transform: translateY(-100%); visibility: hidden; z-index: -1;
    transition: transform .45s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .45s;
  }
  /* a blurred header would trap the fixed menu inside its own box, so drop the blur here */
  .site-header.is-stuck { backdrop-filter: none !important; }
  .nav ul { flex-direction: column; gap: 1.2rem; }
  .nav a { font-size: 1.6rem; }
  .nav-open .nav { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
}

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[dir="rtl"] [data-reveal="left"] { transform: translateX(34px); }
[dir="rtl"] [data-reveal="right"] { transform: translateX(-34px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- preloader shell ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: var(--pre-bg, var(--bg)); color: var(--pre-fg, var(--fg));
}
body.is-loading { overflow: hidden; }

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; opacity: .8; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--field-radius, 12px);
  border: 1px solid var(--line); background: var(--field-bg, transparent);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-note { font-size: .9rem; color: var(--accent); min-height: 1.4em; }

/* ---------- misc ---------- */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.flip { display: inline-block; }
[dir="rtl"] .flip { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================
   Theme: Charwood & Fig (restaurant)
   ========================================================== */
:root {
  --bg: #f6ecdc;
  --fg: #231b16;
  --muted: #6f6256;
  --accent: #e8743b;
  --on-accent: #1c1714;
  --coal: #1c1714;
  --cream: #f6ecdc;
  --olive: #9bb26a;
  --line: #dccfb8;
  --line-strong: #c9b999;
  --maxw: 1160px;
  --btn-radius: 6px;
  --field-radius: 6px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Naskh Arabic", "Songti SC", "SimSun", serif;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h1 { letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
em { color: var(--accent); font-style: italic; }
.eyebrow { margin-bottom: .7rem; }
.center { text-align: center; margin-inline: auto; }
.section-head { max-width: 38rem; margin-bottom: 2.4rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.btn-dark { background: var(--coal); color: var(--cream); }
.btn-dark:hover { box-shadow: 0 12px 26px -12px #000; }

.site-header { color: var(--cream); --nav-bg: var(--coal); }
.site-header .lang-select { border-color: #f6ecdc40; }
.site-header.is-stuck { background: rgba(28, 23, 20, .92); backdrop-filter: blur(10px); }
.brand { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }

/* ---------- preloader: bowl and steam ---------- */
#preloader { --pre-bg: var(--coal); color: var(--cream); flex-direction: column; gap: 1.2rem; transition: opacity .7s ease .15s, clip-path .9s cubic-bezier(.7, 0, .2, 1); clip-path: circle(150% at 50% 50%); }
#preloader.is-leaving { opacity: 0; clip-path: circle(0% at 50% 50%); }
#preloader { display: flex; align-items: center; justify-content: center; }
.pre-box { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.pre-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.pre-ring circle { fill: none; stroke-width: 3; }
.r-bg { stroke: #f6ecdc25; }
.r-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .15s linear; }
.pre-bowl { width: 70px; overflow: visible; }
.steam { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; opacity: 0; animation: rise 1.8s ease-in-out infinite; }
.s2 { animation-delay: .35s; } .s3 { animation-delay: .7s; }
@keyframes rise { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-12px); } }
.pre-word { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; }

/* ---------- hero ---------- */
.hero { background: var(--coal); color: var(--cream); padding: 9rem 0 5rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; inset-inline-end: -160px; top: -120px; background: radial-gradient(circle, #e8743b55, transparent 65%); animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.15); opacity: .7; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin: .9rem 0 1.2rem; }
.lead { max-width: 30rem; color: #f6ecdcbf; font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn-ghost { border-color: #f6ecdc55; color: var(--cream); }
.open { margin-top: 1.6rem; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #f6ecdcbf; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 #9bb26a99; animation: ping 2s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px #9bb26a00; } }
.plate-wrap { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.plate { width: 78%; margin: 11% auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
.ring-text { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.ring-text text { fill: #f6ecdcaa; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-family: var(--font); }
@keyframes spin { to { transform: rotate(360deg); } }
.steam-hero path { fill: none; stroke: #f6ecdc88; stroke-width: 4; stroke-linecap: round; animation: rise 3s ease-in-out infinite; }
.steam-hero path:nth-child(2) { animation-delay: .8s; } .steam-hero path:nth-child(3) { animation-delay: 1.6s; }

/* ---------- marquee ---------- */
.marquee { background: var(--accent); color: var(--coal); overflow: hidden; padding: .9rem 0; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.track { display: flex; gap: 1.6rem; width: max-content; animation: slide 28s linear infinite; }
.track i { font-style: normal; opacity: .6; }
[dir="rtl"] .track { animation-name: slide-rtl; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; max-width: 34rem; }
.stats { display: flex; gap: 2.4rem; margin-top: 2rem; }
.stats b { display: block; font-family: var(--serif); font-size: 2.8rem; color: var(--accent); line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }
.feats { display: grid; gap: 1rem; }
.feats li { display: flex; gap: 1.2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: #fffaf0; transition: transform .3s ease, box-shadow .3s ease; }
.feats li:hover { transform: translateX(6px); box-shadow: 0 18px 30px -22px #231b16; }
[dir="rtl"] .feats li:hover { transform: translateX(-6px); }
.feats svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; padding: 9px; background: #e8743b1c; border-radius: 12px; }
.feats p { color: var(--muted); font-size: .95rem; }

/* ---------- menu ---------- */
.menu { background: var(--coal); color: var(--cream); }
.menu .section-head p:not(.eyebrow) { color: #f6ecdcb0; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.6rem; }
.tab { background: transparent; border: 1px solid #f6ecdc40; color: var(--cream); padding: .55rem 1.3rem; border-radius: 999px; font-size: .9rem; transition: all .25s ease; }
.tab:hover { border-color: var(--accent); }
.tab.is-on { background: var(--accent); border-color: var(--accent); color: var(--coal); font-weight: 700; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 4rem; max-width: 960px; margin-inline: auto; }
.dish { transition: opacity .35s ease, transform .35s ease; }
.dish.is-off { display: none; }
.dish.is-hide { opacity: 0; transform: translateY(12px); }
.dish .row { display: flex; align-items: baseline; gap: .7rem; }
.dish .row i { flex: 1; border-bottom: 1px dotted #f6ecdc66; transform: translateY(-4px); }
.dish h3 { font-size: 1.3rem; margin: 0; }
.dish b { font-family: var(--serif); color: var(--accent); font-size: 1.2rem; }
.dish b::before { content: "$"; font-size: .8em; opacity: .8; }
.dish p { color: #f6ecdcaa; font-size: .95rem; margin-top: .25rem; }

/* ---------- special ---------- */
.special { background: var(--accent); color: var(--coal); padding: 4rem 0; }
.special .eyebrow { color: var(--coal); opacity: .75; }
.special h2 { margin-bottom: .5rem; }
.special-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.special-in p:not(.eyebrow) { max-width: 38rem; }

/* ---------- reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; }
.quotes figure { margin: 0; padding: 2rem; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.quotes figure::before { content: "\201C"; position: absolute; top: .2rem; inset-inline-start: 1.2rem; font: 4rem/1 var(--serif); color: var(--accent); opacity: .5; }
.quotes blockquote { margin: 1.2rem 0 1.2rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
.quotes figcaption { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- booking ---------- */
.visit { background: #efe2cb; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.visit .sub { color: var(--muted); max-width: 30rem; }
.hrs { margin: 2.2rem 0 .6rem; }
.hours div { display: flex; justify-content: space-between; max-width: 22rem; padding: .5rem 0; border-bottom: 1px solid var(--line-strong); font-size: .95rem; }
.hours dd { margin: 0; font-weight: 600; }
.addr { margin-top: 1.2rem; font-weight: 600; }
.book { background: #fffaf0; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; display: grid; gap: 1.1rem; box-shadow: 0 30px 50px -35px #231b16; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field select { background: #fff; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: max-content; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; transition: background .2s; }
.stepper button:hover { background: #e8743b22; }
.stepper output { min-width: 3rem; text-align: center; font-weight: 700; }
.book .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--coal); color: var(--cream); padding: 3rem 0; }
.foot { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; }
.foot p { color: #f6ecdc99; font-size: .9rem; margin-top: .4rem; }

@media (max-width: 900px) {
  .hero { padding-top: 7.5rem; }
  .hero-in, .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .plate-wrap { max-width: 320px; }
  .dishes, .quotes { grid-template-columns: 1fr; }
  .stats { gap: 1.4rem; }
}

/* ---------- photography ---------- */
.hero { position: relative; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .28; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
  animation: photoDrift 24s ease-in-out infinite alternate; }
@keyframes photoDrift { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-1.5%); } }
.photo-band { padding: clamp(3rem, 7vw, 6rem) 0; }
.pb-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; height: clamp(320px, 46vw, 560px); }
.pb-grid figure { margin: 0; overflow: hidden; border-radius: 18px; position: relative; }
.pb-grid figure:first-child { grid-row: span 2; }
.pb-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pb-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .pb-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .pb-grid figure, .pb-grid figure:first-child { grid-row: auto; aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }

/* ---------- form status (mailer.js) ---------- */
.mail-status { margin: .8rem 0 0; min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.mail-status[data-state="ok"] { color: #1d8a4f; }
.mail-status[data-state="bad"] { color: #c0392b; }
.mail-status[data-state="busy"] { opacity: .7; }
form [aria-invalid="true"] { border-color: #c0392b !important; outline: 0; box-shadow: 0 0 0 3px #c0392b33; }
button[disabled] { opacity: .65; cursor: progress; }

/* ---------- inner pages (about, services, contact, 404) ---------- */
.inner .page-hero { min-height: 0 !important; height: auto !important; padding: 9.5rem 0 4.5rem !important; display: block !important; }
.inner .page-hero-copy { position: relative; max-width: 780px; }
.inner .page-hero h1 { margin: .8rem 0 1rem; }
.pg { background: var(--bg); color: var(--fg); --pg-r: min(18px, var(--btn-radius, 14px)); }
.pg-alt { background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.pg-h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 1.2rem; font-family: var(--pg-head, inherit); font-weight: 700; }
.pg p { color: var(--muted); }
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pg-split p { font-size: 1.08rem; max-width: 52ch; }
.pg-fig { margin: 0; border-radius: var(--pg-r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.pg-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.pg-fig:hover img { transform: scale(1.05); }
.pg-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pg-duo .pg-fig { aspect-ratio: 16 / 11; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.pg-card { background: var(--surface, color-mix(in srgb, var(--bg) 93%, var(--fg))); border: 1px solid var(--line); border-radius: var(--pg-r); padding: 1.7rem; transition: transform .35s ease, box-shadow .35s ease; }
.pg-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--fg) 45%, transparent); }
.pg-card .num { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding-inline: .5rem; border-radius: min(50%, var(--pg-r)); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }
.pg-card h3 { font-size: 1.2rem; margin-bottom: .45rem; color: var(--fg); font-family: var(--pg-head, inherit); }
.pg-card a.more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--accent); font-size: .92rem; }
.pg-card a.more:hover { text-decoration: underline; }
.pg-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 2rem; text-align: center; }
.pg-team figure { margin: 0; }
.pg-team svg { width: 96px; height: 96px; margin: 0 auto 1rem; transition: transform .4s ease; }
.pg-team figure:hover svg { transform: rotate(-6deg) scale(1.06); }
.pg-team b { display: block; color: var(--fg); }
.pg-team span { color: var(--muted); font-size: .92rem; }
.pg-cta { background: var(--accent); color: var(--on-accent); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.pg-cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 1.4rem; font-family: var(--pg-head, inherit); }
.pg-cta .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.pg-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pg-info { display: grid; gap: 1rem; }
.pg-info .pg-card { padding: 1.2rem 1.4rem; }
.pg-info small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--accent); font-weight: 700; margin-bottom: .25rem; }
.pg-info p { color: var(--fg); font-weight: 500; margin: 0; }
.pg-form { background: var(--surface, color-mix(in srgb, var(--bg) 93%, var(--fg))); border: 1px solid var(--line); border-radius: var(--pg-r); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; }
.pg-form h2 { font-size: 1.5rem; font-family: var(--pg-head, inherit); }
.pg-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--fg); }
.pg-form input, .pg-form textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: min(var(--field-radius, 12px), 14px); background: var(--bg); color: var(--fg); transition: border-color .2s, box-shadow .2s; }
.pg-form input:focus, .pg-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pg-form .btn { justify-self: start; }
.pg-map { margin-top: clamp(2rem, 5vw, 3.5rem); border-radius: var(--pg-r); border: 1px solid var(--line); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), color-mix(in srgb, var(--fg) 3%, var(--bg)); }
.pg-map svg { width: 44px; height: 44px; margin: 0 auto .8rem; color: var(--accent); animation: pgPin 2.4s ease-in-out infinite; }
@keyframes pgPin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pg-faq { max-width: 820px; margin-top: 1.5rem; display: grid; gap: .8rem; }
.pg-faq details { border: 1px solid var(--line); border-radius: var(--pg-r); background: var(--surface, color-mix(in srgb, var(--bg) 93%, var(--fg))); padding: 1rem 1.3rem; }
.pg-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--fg); }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq details p { margin-top: .7rem; }
.pg-404 { text-align: center; }
.pg-404 .big { font-size: clamp(6rem, 22vw, 13rem); line-height: 1; font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--accent); letter-spacing: -.04em; animation: pgFloat 4s ease-in-out infinite; }
@keyframes pgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.pg-foot { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding-block: 0 1.6rem; font-size: .9rem; }
.pg-foot a { opacity: .75; transition: opacity .2s; }
.pg-foot a:hover, .pg-foot a[aria-current] { opacity: 1; text-decoration: underline; }
.nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 820px) { .pg-split, .pg-contact, .pg-duo { grid-template-columns: 1fr; } .inner .page-hero { padding-top: 8rem !important; } }
@media (prefers-reduced-motion: reduce) { .pg-map svg, .pg-404 .big { animation: none; } }

.pg, .pg-cta, .pg-form { --pg-head: var(--serif); }

/* mobile overflow guards */
.hero{overflow:hidden;overflow:clip}
.pg-form,.pg-form input,.pg-form select,.pg-form textarea{min-width:0;max-width:100%}
.pg-form{box-sizing:border-box}
html,body{overflow-x:hidden;overflow-x:clip}

/* prevent sideways scroll on phones (scroll-reveal offsets) */
html, body { overflow-x: clip; }
