/* ==========================================================
   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: Parcelwick Cargo (logistics)
   ========================================================== */
:root {
  --bg: #f5f7fa;
  --fg: #0e1a2b;
  --muted: #5a6779;
  --accent: #ffb020;
  --on-accent: #0e1a2b;
  --navy: #0e1a2b;
  --navy-2: #16273f;
  --surface: #ffffff;
  --line: #dde3ec;
  --maxw: 1180px;
  --btn-radius: 10px;
  --field-radius: 10px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.muted { color: var(--muted); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }

/* ---------- preloader ---------- */
#preloader { --pre-bg: var(--navy); --pre-fg: #fff; transition: transform .8s cubic-bezier(.77, 0, .18, 1); }
#preloader.is-leaving { transform: translateY(-100%); }
.pre-inner { width: min(78vw, 380px); text-align: center; }
.pre-truck { margin: 0 auto 0; transform: translateX(calc((var(--p, 0) - 50) * 2.2px)); transition: transform .15s linear; animation: bump .5s ease-in-out infinite alternate; }
@keyframes bump { to { translate: 0 -2px; } }
.pre-road { height: 6px; background: repeating-linear-gradient(90deg, #ffffff30 0 14px, transparent 14px 24px); border-radius: 4px; position: relative; overflow: hidden; margin-top: 4px; }
.pre-road-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 1%); background: var(--accent); transition: width .15s linear; }
.pre-num { margin-top: 1.1rem; font-size: 3rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pre-num small { font-size: 1.2rem; opacity: .6; margin-inline-start: 2px; }

/* ---------- header on dark hero ---------- */
.site-header { color: #fff; --nav-bg: var(--navy); }
.site-header.is-stuck { background: rgba(14, 26, 43, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -14px #000; }
.site-header .lang-select { border-color: #ffffff40; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 10%, #1d3556 0%, transparent 60%), var(--navy); color: #fff; padding: 9.5rem 0 7.5rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); margin: 1rem 0 1.4rem; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero .lead { font-size: 1.15rem; color: #b9c6d9; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero .btn-ghost { border-color: #ffffff45; color: #fff; }
.routes { width: 100%; height: auto; }
.lane { fill: none; stroke: #ffffff55; stroke-width: 1.6; stroke-dasharray: 5 7; animation: dash 18s linear infinite; }
.lane-b { stroke: #ffb02088; }
.lane-c { stroke: #7fb4ff88; }
@keyframes dash { to { stroke-dashoffset: -240; } }
.node circle:first-child { fill: #fff; }
.pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
.node:nth-of-type(2) .pulse { animation-delay: .8s; }
.node:nth-of-type(3) .pulse { animation-delay: 1.6s; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.cargo { fill: var(--accent); }
.cargo-b { fill: #fff; }
.cargo-c { fill: #7fb4ff; }

/* ---------- tracking ---------- */
.tracking { margin-top: -4rem; position: relative; z-index: 5; }
.track-card { background: var(--surface); border-radius: 16px; padding: 1.8rem; box-shadow: 0 30px 60px -30px rgba(14, 26, 43, .35); border: 1px solid var(--line); }
.track-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.track-head h2 { font-size: 1.4rem; margin: 0; }
.hint { color: var(--muted); font-size: .88rem; }
.track-form { display: flex; gap: .7rem; }
.track-form input { flex: 1; min-width: 0; padding: .95rem 1.1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 1rem; }
.track-form input:focus { outline: none; border-color: var(--accent); background: #fff; }
.track-result { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.track-msg { font-weight: 600; margin-bottom: 1.2rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; counter-reset: s; }
.timeline li { position: relative; padding-top: 2rem; font-size: .88rem; color: var(--muted); text-align: center; }
.timeline li::before { content: ""; position: absolute; top: 6px; inset-inline: 0; height: 4px; background: var(--line); border-radius: 4px; }
.timeline li::after { content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline li.done, .timeline li.now { color: var(--fg); font-weight: 600; }
.timeline li.done::before, .timeline li.now::before { background: var(--accent); }
.timeline li.done::after { background: var(--accent); border-color: var(--accent); }
.timeline li.now::after { border-color: var(--accent); animation: ping2 1.4s infinite; }
.track-result.play .timeline li::before { animation: grow .7s ease both; }
.track-result.play .timeline li:nth-child(2)::before { animation-delay: .15s; }
.track-result.play .timeline li:nth-child(3)::before { animation-delay: .3s; }
.track-result.play .timeline li:nth-child(4)::before { animation-delay: .45s; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 #ffb02099; } 100% { box-shadow: 0 0 0 10px #ffb02000; } }
[dir="rtl"] .timeline li::after { left: auto; right: 50%; margin-left: 0; margin-right: -8px; }
@media (max-width: 560px) {
  .track-form { flex-direction: column; }
  .timeline { grid-template-columns: 1fr; gap: 1.2rem; }
  .timeline li { text-align: start; padding: 0 0 0 2rem; }
  [dir="rtl"] .timeline li { padding: 0 2rem 0 0; }
  .timeline li::before { display: none; }
  .timeline li::after { left: 0; top: 4px; margin: 0; }
  [dir="rtl"] .timeline li::after { left: auto; right: 0; }
}

/* ---------- stats ---------- */
.stats { padding: 4.5rem 0 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats b { display: block; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .92rem; }

/* ---------- services ---------- */
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem 1.5rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -26px rgba(14, 26, 43, .4); border-color: var(--accent); }
.card p { color: var(--muted); font-size: .94rem; }
.ico { width: 46px; height: 46px; margin-bottom: 1.2rem; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; padding: 9px; background: #fff3d6; border-radius: 12px; box-sizing: content-box; }
.ico { width: 28px; height: 28px; }
.card:hover .ico { background: var(--accent); }

/* ---------- network ---------- */
.network { background: var(--navy); color: #fff; }
.network .muted { color: #aab8cd; }
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ticks { margin-top: 1.8rem; display: grid; gap: .8rem; }
.ticks li { padding-inline-start: 2rem; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230e1a2b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.net-visual { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; }
.ring { position: absolute; inset: 0; margin: auto; border: 1px dashed #ffffff40; border-radius: 50%; animation: spin 40s linear infinite; }
.r1 { width: 96%; height: 96%; }
.r2 { width: 66%; height: 66%; animation-direction: reverse; animation-duration: 28s; }
.r3 { width: 36%; height: 36%; animation-duration: 20s; }
@keyframes spin { to { transform: rotate(360deg); } }
.core { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px #ffffff1c; animation: float 5s ease-in-out infinite; }
.d1 { top: 6%; left: 48%; } .d2 { top: 38%; right: 2%; animation-delay: -1s; } .d3 { bottom: 10%; right: 26%; animation-delay: -2s; background: var(--accent); }
.d4 { bottom: 24%; left: 6%; animation-delay: -3s; } .d5 { top: 24%; left: 14%; animation-delay: -4s; background: #7fb4ff; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: x; }
.steps li { border-top: 3px solid var(--navy); padding-top: 1.4rem; }
.steps .n { font-size: .85rem; font-weight: 800; color: var(--accent); background: var(--navy); padding: .2rem .6rem; border-radius: 6px; display: inline-block; margin-bottom: 1rem; }
.steps p { color: var(--muted); }

/* ---------- quote ---------- */
.quote { background: #fff3d6; padding: 5rem 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 46rem; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.quote .who { margin-top: 1.2rem; color: #6b5a2a; font-size: .95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.form { display: grid; gap: 1.1rem; background: var(--surface); padding: 2rem; border-radius: 16px; border: 1px solid var(--line); }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #aab8cd; padding: 3rem 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: end; }
.site-footer .brand { color: #fff; margin-bottom: .5rem; }
.copy { font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}
@media (max-width: 860px) {
  .hero { padding-top: 7.5rem; }
  .hero-grid, .net-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-map { max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero h1 em { white-space: normal; }
}

.stats b { direction: ltr; unicode-bidi: isolate; }

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

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