/* ==========================================================================
   مجموعة عبدالرحمن القحطاني — site styles
   No inline styles anywhere: everything lives here (strict CSP: style-src 'self').
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --background: #ffffff;
  --foreground: #0b0d12;
  --brand: #c9a14a;        /* AQ gold */
  --brand-deep: #0b1a33;   /* AQ navy */
  --brand-light: #e6c578;  /* light gold accent / focus ring */
  --accent-teal: #138f88;  /* taxi teal */
  --surface: #f5f3ef;
  --surface-card: #ffffff;
  --ink: #0b0d12;
  --ink-soft: #676c7a;
  --ghost: #dedad1;
  --hairline: #e7e3db;
  --on-brand: #ffffff;
  --radius-card: 1.5rem;
  --radius-card-lg: 2rem;
  --radius-pill: 62.5rem;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-io-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Adaptive rem grid ---------- */
html { font-size: 16px; }
@media (max-width: 1920px) { html { font-size: 0.833333vw; } }
@media (max-width: 1440px) { html { font-size: 1.111111vw; } }
@media (max-width: 1024px) { html { font-size: 1.5625vw; } }
@media (max-width: 640px)  { html { font-size: 4.444444vw; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked { position: relative; overflow: hidden; height: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Alexandria", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; inset-inline-start: 0.75rem; z-index: 300;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-size: 0.875rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.icon { width: 1em; height: 1em; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Page frame ---------- */
main { width: 100%; overflow-x: clip; padding: 0.5rem; }
@media (min-width: 640px) { main { padding: 0.75rem; } }

/* ---------- Reveal primitives ---------- */
.clip {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-top: 0.06em; padding-bottom: 0.18em;
}
.clip-line { display: block; }
.rv {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: var(--d, 950ms);
  transition-timing-function: var(--ease-expo);
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}
.rv-fade { transform: translateY(18px); transition-timing-function: var(--ease-quart); }
.is-in .rv, .rv.is-in { transform: none; opacity: 1; }
.no-tr .rv { transition: none !important; }
/* Without JS everything is simply visible */
html:not(.js) .rv { transform: none; opacity: 1; }
.js [data-inview] { opacity: 0; }

/* ---------- Shared components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 0.375rem; height: 0.375rem; border-radius: var(--radius-pill);
  background: var(--brand);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.eyebrow--light::before { background: var(--brand-light); }

.h-section {
  font-size: 3rem; font-weight: 600; line-height: 1.12; margin-top: 1rem;
}

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-radius: var(--radius-pill); padding: 0.9rem 1.75rem;
  font-size: 0.9rem; font-weight: 500;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.pill .icon { width: 1rem; height: 1rem; }
.pill--light { background: #fff; color: var(--brand-deep); }
.pill--light:hover { background: var(--brand-light); color: var(--brand-deep); }
.pill--solid { background: var(--ink); color: #fff; }
.pill--solid:hover { background: var(--brand-deep); }
.pill--outline { border: 1px solid currentColor; color: var(--ink); }
.pill--outline:hover { background: var(--ink); color: #fff; }
.pill[disabled] { opacity: 0.55; pointer-events: none; }

.arrow-btn {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: var(--radius-pill); border: 1px solid var(--hairline);
  color: var(--ink); transition: background-color 0.25s, border-color 0.25s;
}
.arrow-btn .icon { width: 1.25rem; height: 1.25rem; }
.arrow-btn--outline:hover { border-color: var(--ink); }
.arrow-btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.arrow-btn--solid:hover { background: var(--brand-deep); }
@media (min-width: 640px) { .arrow-btn { width: 3.5rem; height: 3.5rem; } }

.dots { display: flex; align-items: center; gap: 0.5rem; }
.dot { padding: 0.375rem; }
.dot span {
  display: block; height: 0.375rem; width: 0.375rem; border-radius: var(--radius-pill);
  background: var(--ghost); transition: width 0.35s var(--ease-expo), background-color 0.35s;
}
.dot[aria-current="true"] span { width: 1.25rem; background: var(--ink); }
.dots--light .dot span { background: rgba(255, 255, 255, 0.4); }
.dots--light .dot[aria-current="true"] span { background: #fff; }

.glass {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 0.75rem;
  box-shadow: 0 1.25rem 2.5rem rgba(11, 26, 51, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mark { width: 1.35rem; height: 1.35rem; color: var(--brand-light); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  background: var(--brand-deep); color: #fff;
  transition: transform 850ms var(--ease-io-cubic);
}
.js .loader { display: flex; }
.loader.is-out { transform: translateY(-105%); }
.loader__brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 600; }
.loader__brand .mark { width: 2.25rem; height: 2.25rem; }
.loader__track {
  width: 10rem; height: 1px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2); overflow: hidden;
}
.loader__fill {
  height: 100%; background: var(--brand-light);
  transform: scaleX(0); transform-origin: right;
  transition: transform 1280ms var(--ease-io-cubic) 120ms;
}
.loader.is-loading .loader__fill { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.5rem 0; font-size: 0.85rem; color: #fff;
  position: relative; z-index: 5;
}
@media (min-width: 640px) { .site-header { padding: 2rem 2.5rem 0; } }
.site-header__nav { display: none; flex: 1; gap: 2rem; }
.site-header__nav a { opacity: 0.9; transition: opacity 0.2s; }
.site-header__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.4em; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; white-space: nowrap; }
.site-header .brand { flex: 1; }
.site-header__end { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.link-cta { display: none; }
.link-cta:hover { text-decoration: underline; text-underline-offset: 0.4em; }
@media (min-width: 640px) { .link-cta { display: inline; } .site-header__end { gap: 1.25rem; } }
@media (min-width: 1024px) {
  .site-header__nav { display: flex; }
  .site-header .brand { justify-content: center; }
}
.burger {
  display: grid; place-items: center; gap: 5px; align-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 0.2s;
}
.burger:hover { background: rgba(255, 255, 255, 0.25); }
.burger span { display: block; width: 1rem; height: 1px; background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  height: calc(100svh - 1rem); min-height: 36rem;
  border-radius: var(--radius-card-lg);
  background: var(--brand-deep); color: #fff;
}
@media (min-width: 640px) { .hero { height: calc(100svh - 1.5rem); } }
.hero__plate { position: absolute; inset: 0; z-index: -10; }
.hero__plate-inner { position: absolute; left: 0; right: 0; top: -16%; height: 132%; width: 100%; }
.hero__plate-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero__plate::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11, 26, 51, 0.82), rgba(11, 26, 51, 0.62), rgba(11, 26, 51, 0.92));
}
.hero__title-wrap { padding: 1.5rem 1.5rem 0; }
@media (min-width: 640px) { .hero__title-wrap { padding: 1.5rem 2.5rem 0; } }
.hero__title {
  font-size: 9.4vw; font-weight: 600; line-height: 1.05; white-space: nowrap;
}
.hero__title .rv { --d: 1100ms; }
.hero__bottom {
  margin-top: auto; padding: 0 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 640px) {
  .hero__bottom { padding: 0 2.5rem 2.5rem; flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.hero__tagline {
  font-size: 2.4rem; font-weight: 600; line-height: 1.12; color: rgba(255, 255, 255, 0.88);
}
.hero__tagline .rv { --d: 900ms; }
.hero__cluster { display: flex; align-items: flex-end; gap: 1rem; }

.collection { display: none; width: 17rem; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) { .collection { display: flex; } }
.collection__card { display: flex; gap: 0.75rem; align-items: center; }
.collection__img { width: 3.75rem; height: 3.75rem; border-radius: 0.75rem; object-fit: cover; flex: none; }
.collection__brand { font-size: 0.8rem; font-weight: 600; }
.collection__title { font-size: 0.72rem; opacity: 0.8; margin-top: 0.1rem; }
.collection__cta { display: inline-block; font-size: 0.7rem; margin-top: 0.3rem; text-decoration: underline; text-underline-offset: 0.3em; }

.member { display: flex; gap: 0.75rem; align-items: stretch; width: 100%; max-width: 20rem; }
@media (min-width: 640px) { .member { width: 16rem; } }
.member__col { display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; flex: 1; }
.member__value { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.avatars { display: flex; }
.avatars span {
  width: 1.25rem; height: 1.25rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(11, 26, 51, 0.4); margin-inline-start: -0.5rem;
}
.avatars span:first-child { margin-inline-start: 0; }
.av-1 { background: #e6c578; } .av-2 { background: #c9a14a; } .av-3 { background: #138f88; } .av-4 { background: #ffffff; }
.member__caption { font-size: 0.7rem; opacity: 0.8; line-height: 1.4; }
.member__img { width: 4.25rem; aspect-ratio: 3 / 4; border-radius: 0.75rem; object-fit: cover; flex: none; }

/* ---------- Trust / about ---------- */
.trust {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--background); padding: 4rem 1.5rem;
}
@media (min-width: 640px) { .trust { padding: 5rem 2.5rem; } }
.trust__top { position: relative; z-index: 20; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .trust__top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.badge-round {
  width: 7.5rem; height: 7.5rem; border-radius: var(--radius-pill); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.2rem;
}
@media (min-width: 640px) { .badge-round { width: 8.5rem; height: 8.5rem; } }
.badge-round strong { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.badge-round span { font-size: 0.62rem; color: var(--ink-soft); max-width: 8em; line-height: 1.45; }
.badge-card {
  display: flex; gap: 1rem; align-items: flex-start; max-width: 30rem;
  border-radius: var(--radius-card); background: var(--surface); padding: 1.25rem;
}
@media (min-width: 640px) { .badge-card { gap: 1.25rem; padding: 1.5rem; } }
.badge-card__chip {
  border-radius: 0.75rem; background: var(--background); padding: 0.5rem 1rem;
  font-size: 1.25rem; font-weight: 600; flex: none;
}
.badge-card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.badge-card p { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.8; margin-top: 0.4rem; }

.ghost {
  position: relative; z-index: 0; pointer-events: none; user-select: none;
  max-width: 88rem; margin: 3rem auto 0;
  font-size: 8.2vw; font-weight: 600; line-height: 1.15;
}
.ghost__row { display: flex; justify-content: space-between; }
.ghost__word { display: inline-block; color: var(--ghost); }
.ghost__word--ink { color: var(--ink); }
.ghost .rv { --d: 700ms; }

.coach {
  position: relative; z-index: 10; width: 13rem; margin: 2rem auto 0;
}
@media (min-width: 640px) {
  .coach { position: absolute; left: 50%; top: 50%; width: 16rem; margin: 0; transform: translate(-50%, -50%); }
}
.coach__fig {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-card);
  background: var(--brand-deep); overflow: hidden; transform: rotate(-6deg);
}
.coach__fig img { width: 100%; height: 100%; object-fit: cover; }
.caption-glass {
  position: absolute; inset-inline: 0.75rem; bottom: 0.75rem;
  border-radius: 0.75rem; background: rgba(11, 26, 51, 0.5); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 0.6rem 0.85rem;
}
.caption-glass strong { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.caption-glass span { display: block; font-size: 0.68rem; opacity: 0.85; line-height: 1.5; }
.caption-glass--teal { background: rgba(19, 143, 136, 0.6); }

.trust__controls {
  position: relative; z-index: 20; margin-top: 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .trust__controls { margin-top: 6rem; } }

/* ---------- Services list ---------- */
.services { background: var(--surface); padding: 6rem 1.5rem 8rem; border-radius: var(--radius-card-lg); }
@media (min-width: 640px) { .services { padding-inline: 2.5rem; } }
.services__list { margin-top: 3.5rem; }
.services__list li { border-top: 1px solid var(--hairline); }
.services__list li:last-child { border-bottom: 1px solid var(--hairline); }
.svc-row {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 0; width: 100%; text-align: start;
  transition: background-color 0.2s;
}
.svc-row:focus-visible { background: var(--background); }
.svc-row__idx { width: 2.5rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); flex: none; }
.svc-row__body { flex: 1; }
.svc-row__name { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.35; }
.svc-row__desc { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.35rem; line-height: 1.7; }
@media (min-width: 640px) { .svc-row__name { font-size: 1.875rem; } }
.svc-row__arrow {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill); border: 1px solid var(--hairline);
}
.svc-row__arrow .icon { width: 1.1rem; height: 1.1rem; opacity: 0.55; }

/* ---------- Branches ---------- */
.branches {
  position: relative; background: var(--background); border-radius: var(--radius-card-lg);
  margin-top: -2.5rem; padding: 4rem 1.5rem 5rem;
}
@media (min-width: 640px) { .branches { padding-inline: 2.5rem; } }
.branches__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 768px) { .branches__grid { grid-template-columns: 1fr 1fr; } }
.branches__intro { max-width: 26rem; }
.branches__icon { width: 4rem; height: 4rem; border-radius: var(--radius-card); object-fit: cover; }
.branches__intro .h-section { margin-top: 1.5rem; }
.branches__body { font-size: 0.9rem; color: var(--ink-soft); max-width: 22rem; margin-top: 1.5rem; line-height: 1.9; }
.branches__body .rv { --d: 700ms; }
.cities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.cities li {
  font-size: 0.75rem; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); color: var(--ink-soft);
}
.map-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
  font-size: 0.85rem; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 0.15rem;
}
.map-link .icon { width: 0.9rem; height: 0.9rem; }
.tiles { display: flex; align-items: flex-end; gap: 1.25rem; }
.tile { flex: 1; }
.tile--offset { margin-bottom: 2rem; }
.tile__fig { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.tile__fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats {
  background: var(--brand-deep); color: #fff; border-radius: var(--radius-card-lg);
  margin-top: 0.75rem; padding: 5rem 1.5rem;
}
@media (min-width: 640px) { .stats { padding-inline: 2.5rem; } }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2rem; row-gap: 3rem; margin-top: 4rem; }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.25rem; }
.stat__value { display: block; font-size: 3.75rem; font-weight: 600; line-height: 1.1; }
.stat__value small { font-size: 0.5em; color: var(--brand-light); }
@media (min-width: 640px) { .stat__value { font-size: 4.5rem; } }
.stat__label { display: block; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); margin-top: 0.75rem; }

/* ---------- Why us ---------- */
.why { background: var(--background); padding: 5rem 1.5rem; }
@media (min-width: 640px) { .why { padding: 6rem 2.5rem; } }
.why__grid { display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  border-radius: var(--radius-card); background: var(--surface); padding: 1.75rem;
}
.why-card__icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  display: grid; place-items: center; background: var(--brand-deep); color: var(--brand-light);
}
.why-card__icon .icon { width: 1.25rem; height: 1.25rem; }
.why-card p { font-size: 1.125rem; line-height: 1.8; color: var(--ink); margin-top: 1rem; }
.why-card figcaption { border-top: 1px solid var(--hairline); padding-top: 1rem; margin-top: 1.5rem; }
.why-card figcaption strong { display: block; font-weight: 600; }
.why-card figcaption span { display: block; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-deep); color: #fff; border-radius: var(--radius-card-lg);
  margin-top: 0.75rem; padding: 3.5rem 1.5rem;
}
@media (min-width: 640px) { .footer { padding: 4rem 2.5rem; } }
.footer__cta {
  display: flex; flex-direction: column; gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 3.5rem;
}
@media (min-width: 640px) { .footer__cta { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.footer__big { font-size: 3.75rem; font-weight: 600; line-height: 1.12; margin-top: 1rem; }
.footer__cols { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { max-width: 22rem; }
.footer__brand .brand { font-size: 1.125rem; }
.footer__blurb { font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); margin-top: 1rem; line-height: 1.9; }
.footer address { font-style: normal; margin-top: 1.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); display: grid; gap: 0.4rem; }
.footer address a:hover { color: var(--brand-light); }
.muted { color: rgba(255, 255, 255, 0.55); }
.footer__col h2 { font-size: 0.78rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.footer__col ul { margin-top: 1rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); display: grid; gap: 0.75rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.35em; }
.footer__bar {
  display: flex; flex-direction: column; gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 2rem;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 640px) { .footer__bar { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__bar nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bar a:hover { color: #fff; }

/* ---------- Overlays (menu + modal) ---------- */
.overlay { position: fixed; inset: 0; pointer-events: none; visibility: hidden; }
.overlay.is-open { pointer-events: auto; visibility: visible; }
.overlay.is-closing { visibility: visible; }

.menu { z-index: 70; display: flex; flex-direction: column; color: #fff; }
.menu__backdrop { position: absolute; inset: 0; background: var(--brand-deep); opacity: 0; }
.menu__panel {
  position: relative; height: 100%; display: flex; flex-direction: column; opacity: 0;
  padding: 0.5rem;
}
@media (min-width: 640px) { .menu__panel { padding: 0.75rem; } }
.menu__inner { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.5rem; }
@media (min-width: 640px) { .menu__inner { padding: 2rem 2.5rem 2.5rem; } }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.close-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15); transition: background-color 0.2s;
}
.close-btn:hover { background: rgba(255, 255, 255, 0.25); }
.close-btn .icon { width: 1.1rem; height: 1.1rem; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.menu__nav a { display: block; font-size: 3rem; font-weight: 600; line-height: 1.3; transition: color 0.2s; }
.menu__nav a:hover { color: var(--brand-light); }
@media (min-width: 640px) { .menu__nav a { font-size: 4.5rem; } }
.menu__bottom {
  display: flex; flex-direction: column; gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 2rem;
}
@media (min-width: 640px) { .menu__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.menu__social { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.menu__social a:hover { color: #fff; }

.modal { z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 0.75rem; }
@media (min-width: 640px) { .modal { align-items: center; padding: 1.5rem; } }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(11, 26, 51, 0.45); opacity: 0;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative; width: 100%; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--radius-card-lg); background: var(--surface-card); color: var(--ink);
  padding: 1.5rem; opacity: 0;
  box-shadow: 0 2rem 5rem rgba(11, 26, 51, 0.35);
}
@media (min-width: 640px) { .modal__panel { max-width: 34rem; padding: 2rem; } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal__title { font-size: 2.25rem; font-weight: 600; line-height: 1.15; margin-top: 0.75rem; }
.modal__title .rv { --d: 800ms; }
@media (min-width: 640px) { .modal__title { font-size: 3rem; } }
.modal .close-btn { background: var(--surface); flex: none; }
.modal .close-btn:hover { background: var(--hairline); }

.form { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.field label, .field .label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; border-radius: 0.75rem; border: 1px solid var(--hairline);
  background: var(--background); padding: 0.75rem 1rem; font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.25);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field__error { display: block; min-height: 1em; font-size: 0.75rem; color: #b42318; margin-top: 0.3rem; }
.field__hint { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.3rem; }
.form__note { font-size: 0.72rem; color: var(--ink-soft); line-height: 1.7; }
.form .pill { justify-content: center; }

.success {
  margin-top: 2rem; border-radius: var(--radius-card); background: var(--surface);
  padding: 1.5rem; text-align: center;
}
.success__icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-pill); background: var(--brand);
  color: #fff; display: grid; place-items: center; margin: 0 auto;
}
.success__icon .icon { width: 1.4rem; height: 1.4rem; }
.success h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1rem; }
.success p { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.8; }
.success .pill { margin-top: 1.25rem; }
[hidden] { display: none !important; }

/* ---------- 404 ---------- */
.nf {
  min-height: calc(100svh - 1rem); border-radius: var(--radius-card-lg);
  background: var(--brand-deep); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  text-align: center; padding: 2rem;
}
.nf__code { font-size: 9rem; font-weight: 600; line-height: 1; color: var(--brand-light); }
.nf p { color: rgba(255, 255, 255, 0.75); max-width: 26rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .loader { transition-duration: 1ms; }
  .loader__fill { transition-duration: 150ms; transition-delay: 0ms; }
}
