/* ==========================================================
   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: Trailmoth (travel agency)
   ========================================================== */
:root {
  --bg: #fff8f0;
  --fg: #1d2b3a;
  --muted: #5d6b7a;
  --accent: #ff7a59;
  --on-accent: #fff;
  --sky: #1f8fd1;
  --sky-dark: #0f5f94;
  --sand: #ffe9d2;
  --line: #f0dcc5;
  --line-strong: #e2c6a6;
  --maxw: 1180px;
  --btn-radius: 14px;
  --field-radius: 12px;
  --font: "Trebuchet MS", "Segoe UI", "Avenir Next", system-ui, "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .8rem; }
h3 { font-size: 1.25rem; margin-bottom: .3rem; }
em { font-style: normal; color: #ffd36b; }
.center { text-align: center; margin-inline: auto; }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.btn-light { background: #fff; color: var(--sky-dark); }
.btn-light:hover { box-shadow: 0 12px 26px -12px #000; }
.btn-dark { background: var(--fg); color: #fff; }

.site-header { color: #fff; --nav-bg: var(--sky-dark); }
.site-header .lang-select { border-color: #ffffff66; }
.site-header.is-stuck { background: rgba(15, 95, 148, .94); backdrop-filter: blur(10px); }

/* ---------- preloader: paper plane ---------- */
#preloader { --pre-bg: linear-gradient(180deg, #1f8fd1, #7fd0ee); background: linear-gradient(180deg, #1f8fd1, #7fd0ee); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; transition: opacity .7s ease, transform .9s cubic-bezier(.6, 0, .2, 1); }
#preloader.is-leaving { opacity: 0; transform: translateY(-30px) scale(1.04); }
.sky { position: relative; width: min(340px, 80vw); aspect-ratio: 300 / 120; }
.arc { width: 100%; overflow: visible; }
.arc path { fill: none; stroke: #ffffffaa; stroke-width: 2; stroke-dasharray: 3 5; }
.plane { position: absolute; left: 0; top: 0; width: 34px; offset-path: path("M 3 105 Q 150 -40 297 105"); offset-rotate: auto; offset-distance: calc(var(--p, 0) * 1%); transition: offset-distance .15s linear; filter: drop-shadow(0 4px 4px #0003); }
[dir="rtl"] .plane { transform: none; }
.pre-word { font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; padding: 9.5rem 0 8rem; background: linear-gradient(180deg, #1f8fd1 0%, #5bb8e4 55%, #ffb48a 120%); overflow: hidden; }
.hero-in { position: relative; z-index: 2; }
.badge { display: inline-block; background: #ffffff26; border: 1px solid #ffffff55; padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 1.4rem; backdrop-filter: blur(4px); }
.hero h1 { max-width: 14ch; }
.lead { max-width: 34rem; font-size: 1.15rem; opacity: .95; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.8rem; margin-top: 3rem; }
.hero-stats b { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: .85rem; opacity: .9; }
.hills { position: absolute; bottom: -1px; inset-inline: 0; width: 100%; height: 110px; z-index: 1; }
.cloud { position: absolute; height: 46px; border-radius: 40px; background: #ffffffcc; filter: blur(.5px); animation: glide 40s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 54px; height: 54px; top: -24px; inset-inline-start: 22px; }
.cloud::after { width: 38px; height: 38px; top: -14px; inset-inline-start: 66px; }
.c1 { width: 130px; top: 18%; inset-inline-start: -160px; }
.c2 { width: 100px; top: 38%; inset-inline-start: -160px; animation-duration: 55s; animation-delay: -18s; opacity: .8; }
.c3 { width: 150px; top: 62%; inset-inline-start: -160px; animation-duration: 48s; animation-delay: -30s; opacity: .7; }
@keyframes glide { to { transform: translateX(calc(100vw + 360px)); } }
[dir="rtl"] .cloud { animation-name: glide-rtl; }
@keyframes glide-rtl { to { transform: translateX(calc(-100vw - 360px)); } }

/* ---------- destinations ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip { border: 1.5px solid var(--line-strong); background: #fff; padding: .5rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: all .25s ease; }
.chip:hover { border-color: var(--sky); color: var(--sky-dark); }
.chip.is-on { background: var(--sky); border-color: var(--sky); color: #fff; }
.dests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dest { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; }
.dest:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -32px #1d2b3a88; }
.dest.is-off { display: none; }
.dest.is-hide { opacity: 0; transform: scale(.96); }
.pic { position: relative; aspect-ratio: 16 / 11; background: var(--c); overflow: hidden; }
.pic svg { width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.dest:hover .pic svg { transform: scale(1.08); }
.tagc { position: absolute; top: .9rem; inset-inline-start: .9rem; background: #fff; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; color: var(--sky-dark); }
.info { padding: 1.2rem 1.4rem 1.4rem; }
.info p { color: var(--muted); font-size: .92rem; min-height: 2.9em; }
.foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line-strong); }
.foot b { font-size: 1.35rem; color: var(--accent); }
.foot small { color: var(--muted); font-size: .8rem; }
.dd { font-size: .85rem; color: var(--muted); font-weight: 700; }

/* ---------- planner ---------- */
.planner { background: var(--sand); }
.plan-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.sub { color: var(--muted); max-width: 28rem; }
.calc { background: #fff; border-radius: 24px; padding: 2.2rem; display: grid; gap: 1.5rem; box-shadow: 0 40px 70px -50px #e2763d; border: 1px solid var(--line); }
.ctl label { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.ctl label b { color: var(--accent); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--line) var(--fill, 30%)); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; box-shadow: 0 4px 8px #0002; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: .6rem .3rem; border-radius: 9px; font-weight: 700; font-size: .85rem; transition: all .25s ease; }
.seg button.is-on { background: var(--sky); color: #fff; box-shadow: 0 6px 14px -6px var(--sky); }
.total { text-align: center; padding: 1.2rem; background: linear-gradient(135deg, #e8f6fd, #fff1e6); border-radius: 16px; }
.total p { font-size: 3.2rem; font-weight: 800; line-height: 1.1; color: var(--sky-dark); font-variant-numeric: tabular-nums; }
.total small { color: var(--muted); }
.calc .btn { width: 100%; }

/* ---------- why ---------- */
.whys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.whys li { padding: 0 .4rem; }
.n { display: inline-block; font-size: 3rem; font-weight: 800; color: #ffd0bf; line-height: 1; margin-bottom: .5rem; }
.whys p { color: var(--muted); }

/* ---------- newsletter ---------- */
.news { background: var(--sky); color: #fff; padding: 4.5rem 0; }
.news-in { display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: center; justify-content: space-between; }
.news h2 { margin: 0; max-width: 22ch; }
.nl { display: flex; flex-wrap: wrap; gap: .6rem; flex: 1; min-width: 280px; max-width: 480px; }
.nl input { flex: 1; min-width: 190px; padding: .95rem 1rem; border: 0; border-radius: 12px; color: var(--fg); background: #fff; }
.nl .form-note { flex-basis: 100%; color: #fff; font-weight: 700; }

.site-footer { padding: 3rem 0; background: #0f2a3f; color: #cfe3f1; }
.foot-in { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; }
.foot-in p { font-size: .9rem; opacity: .75; margin-top: .4rem; }

@media (max-width: 900px) {
  .hero { padding: 8rem 0 6rem; }
  .dests, .whys { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- photography ---------- */
.hero { position: relative; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .2; 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; } }

/* 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; }
