/* Pawhub marketing site — warm watercolour brand.
   Palette mirrors the app theme (src/utils/theme.ts): cream paper, ink brown,
   dusty blue, terracotta, sage. Fraunces = the app's title font.
   Layout system: 96px section rhythm, eyebrow+headline+sub section heads,
   one deep-blue contrast band, 65ch body measure. */

/* Self-hosted Fraunces (privacy: no Google Fonts request / IP leak) */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-500.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-400.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-600.woff2') format('woff2');
  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;
}

:root {
  --cream: #FBF4E7;
  --cream-deep: #F3E8D2;
  --ink: #4A3826;
  --ink-soft: #6E4F33;
  --blue: #517594;
  --blue-deep: #3E5C77;
  --blue-night: #34506A;
  --blue-frame: #8FA6BC;
  --terracotta: #C97B4A;
  --sage: #8A9B6E;
  --card: #FFFDF8;
  --line: rgba(110, 79, 51, 0.16);
  --shadow: 0 10px 30px rgba(110, 79, 51, 0.10);
  --shadow-lift: 0 16px 38px rgba(110, 79, 51, 0.16);
  --radius: 22px;
  --section-pad: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-word {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--ink-soft);
  line-height: 1.2;
  font-weight: 600;
}

a { color: var(--blue); transition: color 0.15s ease; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid rgba(81, 117, 148, 0.55); outline-offset: 2px; border-radius: 4px; }

/* Cookie-consent banner (analytics gate) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 580px;
  margin: 0 auto;
  z-index: 200;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  animation: cookie-in 0.3s ease;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookie-banner p { flex: 1 1 260px; font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-btn { cursor: pointer; border-radius: 999px; padding: 9px 20px; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line); transition: background 0.15s ease; }
.cookie-decline { background: transparent; color: var(--ink-soft); }
.cookie-decline:hover { background: var(--cream-deep); }
.cookie-accept { background: var(--blue); color: #fff; border-color: var(--blue); }
.cookie-accept:hover { background: var(--blue-deep); }
.motion-off .cookie-banner { animation: none; }
@media (max-width: 480px) { .cookie-actions { width: 100%; } .cookie-btn { flex: 1; } }

/* Skip-to-content link (a11y) — off-screen until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Scrollytelling ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.motion-off .reveal { opacity: 1; transform: none; transition: none; }

/* Hero: split — copy left, framed autoplay video right */
.hero {
  padding: 80px 24px 64px;
  position: relative;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 46%; text-align: left; }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p.lede {
  max-width: 44ch;
  margin: 0 0 22px;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
}
.hero-trust {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-video {
  flex: 1 1 54%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 34px 74px rgba(110, 79, 51, 0.24);
  border: 1px solid var(--line);
  background: #EEDFC4;
  line-height: 0;
}
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 1180 / 553; }
.scroll-cue {
  display: flex;
  width: fit-content;
  margin: 46px auto 0;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.scroll-cue:hover { color: var(--blue-deep); }
.scroll-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.motion-off .scroll-cue svg { animation: none; }
@media (max-width: 760px) {
  .hero { padding: 56px 24px 52px; }
  .hero-inner { flex-direction: column; gap: 38px; }
  .hero-copy { text-align: center; flex-basis: auto; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-video { flex-basis: auto; width: 100%; }
}
@media (max-width: 640px) { .hero { padding: 40px 20px 44px; } }

/* Doodads */
.doodad { position: absolute; pointer-events: none; opacity: 0.75; z-index: 0; }
@media (max-width: 760px) { .doodad { transform: scale(0.7); opacity: 0.55; } }
@media (max-width: 820px) { .doodad--inner { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 231, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(110, 79, 51, 0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 9px; }
.nav-logo .brand-word { font-size: 1.35rem; color: var(--blue-deep); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--blue-deep); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--terracotta); color: var(--blue-deep); }
.nav-links a.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav-cta:hover { background: var(--blue-deep); }
.nav-cta:active { transform: scale(0.96); }
@media (max-width: 640px) {
  .nav-inner { gap: 14px; padding: 12px 16px; }
  .nav-logo .brand-word { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-cta { padding: 8px 14px; }
}

/* ---------- Store badges ---------- */
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badges--center { justify-content: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid var(--ink);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.badge:active { transform: translateY(0) scale(0.98); }
.badge--outline { background: transparent; color: var(--ink) !important; }
.badge--outline .b-small { opacity: 0.7; }
.badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.badge .b-small { display: block; font-size: 0.68rem; opacity: 0.85; line-height: 1.15; text-align: left; }
.badge .b-big { display: block; font-size: 1.06rem; font-weight: 700; line-height: 1.2; text-align: left; }

/* ---------- Section heads (eyebrow + headline + sub) ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); max-width: 55ch; margin: 0 auto; }

/* ---------- How it works ---------- */
.how {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how-steps {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.how-trail {
  display: block;
  width: 74%;
  max-width: 760px;
  height: 32px;
  margin: 40px auto 0;
  opacity: 0.55;
}
@media (max-width: 1000px) { .how-trail { display: none; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  width: 300px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.step .tile { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(110, 79, 51, 0.14); }
.step .step-n {
  font-family: "Fraunces", Georgia, serif;
  color: var(--terracotta);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Download-band trust facts ---------- */
.band-facts {
  list-style: none;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 44px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.band-facts li { position: relative; }
.band-facts li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -24px;
  color: var(--ink-soft);
  opacity: 0.5;
}
.band-facts strong {
  font-family: "Fraunces", Georgia, serif;
  color: var(--blue-deep);
  font-weight: 600;
}
@media (max-width: 560px) {
  .band-facts { flex-direction: column; gap: 8px; text-align: center; }
  .band-facts li:not(:last-child)::after { display: none; }
}

/* ---------- Pinned story ---------- */
.story { height: 620vh; position: relative; }
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  overflow: hidden;
  padding: 0 24px;
}
/* width also capped by 34vh so the phone's derived height (~2.1× width ≈ 71vh)
   always fits the 100vh pinned pane and clears the sticky nav — no top clip. */
.story-phone { position: relative; width: min(280px, 36vw, 32vh); aspect-ratio: 520 / 1092; }
.story-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.story-shot.is-active { opacity: 1; transform: none; }
.story-copy { position: relative; width: min(420px, 42vw); min-height: 300px; }
.story-copy .eyebrow { text-align: left; }
.story-text {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.story-text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-text .tile { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(110,79,51,0.14); }
.story-text h2 { font-size: 1.7rem; margin-bottom: 10px; }
.story-text p { color: var(--ink-soft); max-width: 42ch; }
.story-dots {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.story-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
}
.story-dots span.is-active { background: var(--terracotta); transform: scale(1.35); }
@media (max-width: 760px) {
  .story { height: 560vh; }
  .story-sticky { flex-direction: column; justify-content: center; gap: 20px; padding-top: 40px; }
  .story-phone { width: min(200px, 46vw, 30vh); }
  .story-copy { width: 100%; max-width: 420px; text-align: center; min-height: 230px; }
  .story-copy .eyebrow { text-align: center; }
  .story-text p { margin: 0 auto; }
  .story-dots { right: 12px; }
}
.motion-off .story { height: auto; }
.motion-off .story-sticky { position: static; height: auto; flex-wrap: wrap; padding: 40px 24px; }
.motion-off .story-shot, .motion-off .story-text { position: static; opacity: 1; transform: none; }
.motion-off .story-phone, .motion-off .story-dots { display: none; }

/* ---------- Phone frame (raw screenshots) ---------- */
.phone {
  display: inline-block;
  background: var(--blue-frame);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 18px 44px rgba(110, 79, 51, 0.18);
}
.phone img { display: block; border-radius: 32px; width: 100%; }
.phone--feature { max-width: 260px; }
.phone--mini { width: 210px; border-radius: 34px; padding: 9px; }
.phone--mini img { border-radius: 26px; }

/* ---------- Why / values — the blue contrast band ---------- */
.why {
  position: relative;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--blue-deep), var(--blue-night));
}
.why .eyebrow { color: #F0C987; }
.why .section-head h2 { color: var(--cream); }
.why .section-head p { color: rgba(251, 244, 231, 0.8); }
.why-cards {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.why-card {
  background: rgba(251, 244, 231, 0.08);
  border: 1px solid rgba(251, 244, 231, 0.22);
  border-radius: var(--radius);
  padding: 30px 26px;
  width: 320px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.why-card:hover { transform: translateY(-3px); background: rgba(251, 244, 231, 0.13); }
.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(251, 244, 231, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--cream); }
.why-card p { color: rgba(251, 244, 231, 0.82); font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.gallery-section { position: relative; padding: var(--section-pad) 0 64px; }
.gallery-outer { position: relative; }
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 12px 24px 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex-shrink: 0; scroll-snap-align: center; text-align: center; }
.gallery-item .phone--mini { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gallery-item:hover .phone--mini { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(110, 79, 51, 0.24); }
.gallery-item figcaption {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink-soft);
  font-size: 1rem;
  margin-top: 12px;
}
.gallery-arrow {
  position: absolute;
  top: 40%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: var(--cream);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.gallery-arrow:hover { background: var(--blue-deep); }
.gallery-arrow:active { transform: scale(0.94); }
.gallery-arrow--left { left: 14px; }
.gallery-arrow--right { right: 14px; }
@media (max-width: 640px) { .gallery-arrow { display: none; } }

/* ---------- FAQ ---------- */
.faq { position: relative; padding: 64px 0 var(--section-pad); }
.faq-list { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(110, 79, 51, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 8px 20px rgba(110, 79, 51, 0.1); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--ink-soft); max-width: 65ch; }

/* ---------- Download band ---------- */
.band {
  position: relative;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--section-pad) 0;
  text-align: center;
}
.band h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.band > .wrap > p { max-width: 48ch; margin: 0 auto 30px; color: var(--ink-soft); }
.band-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.qr-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 10px;
  box-shadow: var(--shadow);
}
.qr-card img { width: 150px; height: 150px; display: block; border-radius: 8px; }
.qr-card span { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 640px) { .qr-card { display: none; } }

/* ---------- Content pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; position: relative; }
.page > h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); text-align: center; margin-bottom: 8px; }
.page .page-sub { text-align: center; color: var(--ink-soft); opacity: 0.8; margin-bottom: 40px; }
.page h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.page h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.page p { margin-bottom: 12px; }
.page ul { margin: 0 0 12px 24px; }
.page li { margin-bottom: 6px; }
.page .lede-big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  color: var(--terracotta);
  text-align: center;
  margin-bottom: 26px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 42px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .legal-card { padding: 28px 22px; } }

.lost { text-align: center; padding: 90px 24px 110px; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 18px 0 10px; }
.lost p { color: var(--ink-soft); margin-bottom: 26px; }
.lost .paw-big { font-size: 3.4rem; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 560px; margin: 8px 0 22px; }
.contact-form label { display: block; font-weight: 600; color: var(--ink-soft); margin: 16px 0 6px; font-size: 0.95rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(81, 117, 148, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit {
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.1s ease;
}
.cf-submit:hover { background: var(--blue-deep); }
.cf-submit:active { transform: scale(0.98); }
.cf-submit:disabled { opacity: 0.6; cursor: default; }
.cf-status { margin-top: 14px; font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.cf-status.is-success { color: #5f7a3f; }
.cf-status.is-error { color: var(--terracotta); }
.cf-fallback { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto 40px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-badges { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.footer-badges .badge { padding: 9px 16px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; color: var(--ink-soft); }
.footer-social a:hover { color: var(--blue-deep); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.footer-bottom a { color: inherit; }
@media (max-width: 700px) {
  .footer-grid { gap: 32px; }
  .footer-brand { max-width: 100%; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 4px;
  user-select: none;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary:hover { color: var(--blue-deep); }
.lang-switch > summary svg { flex: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(74, 56, 38, 0.16);
  padding: 8px;
  min-width: 190px;
  max-height: 72vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: none;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--cream-deep); color: var(--blue-deep); }
.lang-menu a.is-current { color: var(--blue-deep); background: var(--cream-deep); }
@media (max-width: 640px) {
  .lang-switch > summary span { display: none; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .badge { direction: ltr; }
[dir="rtl"] .hero-trust { direction: rtl; }
[dir="rtl"] .band-facts { direction: rtl; }
[dir="rtl"] .brand-word { direction: ltr; }
/* Flip the two left-pinned copy blocks to right — desktop only, so the
   mobile centred layout (which is direction-neutral) is preserved. */
@media (min-width: 761px) {
  [dir="rtl"] .hero-copy { text-align: right; }
  [dir="rtl"] .story-copy .eyebrow { text-align: right; }
}
