/* ==========================================================================
   Go To Sherry — Global styles
   Warm, bright, welcoming theme (matching gotosherry.com brand palette)
   Palette: cream #FAF8F3 · warm card #F2EFEA · amber #FFA32D/#FFB04B
   Fonts: Inter (body) · Plus Jakarta Sans (headings) — self-hosted, latin subset
   Contrast: amber surfaces carry ink text (never white); amber text on cream
   uses the deeper #9a5502 so every pair clears WCAG AA.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License 1.1) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-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;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-700.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-800.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 {
  /* Warm neutrals (from gotosherry.com) */
  --ink: #1e1b16;          /* headings — warm near-black */
  --body: #676767;         /* body text — warm gray (5.3:1 on cream) */
  --muted: #6f685e;        /* muted warm gray (5.2:1 on cream) */
  --line: #e9e2d6;         /* borders — warm */
  --card-warm: #f2efea;    /* warm card fill (reference) */
  --bg: #faf8f3;           /* page background (reference) */
  --bg-soft: #f5f1e9;      /* subtle section alt */

  /* Brand accents (from gotosherry.com) */
  --accent: #ffa32d;       /* primary amber — fills only, pairs with --ink */
  --accent-dark: #e8890b;  /* hover amber */
  --accent-soft: #fff1dc;  /* light amber tint */
  --accent-ink: #9a5502;   /* amber for text/links on light (5.4:1 on cream) */
  --band: #ffb04b;         /* warm band / stats background (reference) */
  --amber-star: #b45309;

  /* Warm dark (footer / CTA) */
  --dark: #2e2419;
  --dark-2: #3a2d1f;
  --dark-line: rgb(255 255 255 / 0.12);
  --cream-text: #f5efe4;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(46 36 25 / 0.06), 0 4px 12px rgb(46 36 25 / 0.05);
  --shadow-md: 0 4px 10px rgb(46 36 25 / 0.08), 0 12px 32px rgb(46 36 25 / 0.1);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--band);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

#main:focus {
  outline: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn svg {
  flex: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 14px rgb(255 163 45 / 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--ink);
  box-shadow: 0 6px 18px rgb(255 163 45 / 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #d8cdba;
}

.btn-secondary:hover {
  background: var(--card-warm);
  border-color: var(--muted);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream-text);
  border-color: rgb(255 255 255 / 0.6);
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  border-color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 248 243 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgb(46 36 25 / 0.09);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

/* Logo sits on a warm-dark badge: the gold gradient (and the pale "e" in
   "Sherry") only clears contrast against a dark ground, never on cream. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--dark);
  box-shadow: 0 2px 8px rgb(46 36 25 / 0.18);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-nav svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d8cdba;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background 0.2s ease;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.nav.is-open .menu-toggle-bars {
  background: transparent;
}

.nav.is-open .menu-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .menu-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgb(255 163 45 / 0.14), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgb(255 176 75 / 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgb(255 163 45 / 0.45);
  padding: 6px 14px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 4.3vw, 3.05rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 22ch;
}

.hero-sub {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: var(--body);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dark);
  flex: none;
}

.hero-contact-line {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.hero-contact-line a {
  font-weight: 600;
  color: var(--ink);
}

.hero-media img {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

/* ---------- 404 ---------- */

.not-found {
  background: var(--bg);
  text-align: center;
}

.not-found-inner {
  max-width: 640px;
}

.not-found h1 {
  margin-bottom: 12px;
  max-width: none;
}

.not-found .hero-sub {
  margin-inline: auto;
  color: var(--body);
}

.not-found .hero-actions {
  justify-content: center;
  margin-bottom: 18px;
}

/* ---------- Partners ---------- */

.partners {
  padding: 44px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.partners-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
}

.partners-row img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partners-row img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
  font-weight: 800;
}

.section-sub {
  margin: 0;
  color: var(--body);
  font-size: 1.06rem;
}

/* ---------- Services ---------- */

.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgb(255 163 45 / 0.5);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--body);
  font-size: 0.98rem;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--band);
  color: var(--ink);
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--ink);
  font-size: 1rem;
  opacity: 0.92;
}

/* ---------- Process ---------- */

.process {
  background: #fff;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  color: var(--amber-star);
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card figcaption img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-warm);
}

.testimonial-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-role {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.reviews-link {
  text-align: center;
  margin: 36px 0 0;
}

.reviews-link a {
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  background: #fff;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}

.faq-item[open] {
  border-color: rgb(255 163 45 / 0.55);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--accent-ink);
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--body);
  font-size: 0.98rem;
  max-width: 68ch;
}

/* ---------- CTA ---------- */

.cta {
  background:
    radial-gradient(700px 380px at 15% 0%, rgb(255 163 45 / 0.16), transparent 60%),
    linear-gradient(135deg, var(--dark-2), var(--dark));
  color: var(--cream-text);
  padding: 88px 0;
  text-align: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cream-text);
}

.cta p {
  margin: 0 0 30px;
  color: rgb(245 239 228 / 0.9);
  font-size: 1.1rem;
}

.cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 20px rgb(46 36 25 / 0.24), 0 2px 6px rgb(46 36 25 / 0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}

.wa-float:hover {
  background: var(--accent-dark);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--cream-text);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .brand {
  background: var(--dark-2);
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: none;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand .brand img {
  height: 36px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 36ch;
  font-size: 0.95rem;
  color: var(--cream-text);
  opacity: 0.85;
}

.footer-col h2 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--cream-text);
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-col a:hover {
  color: var(--band);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding-block: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cream-text);
  opacity: 0.65;
}

/* ---------- Privacy notice ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.prose h2:first-of-type {
  margin-top: 8px;
}

.prose p,
.prose li {
  color: var(--body);
  font-size: 1rem;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.updated {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Scroll reveal (only once JS is on) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  h1 {
    max-width: none;
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-media img {
    max-width: 380px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Menu breakpoint: below this the links + CTA move into the panel. */
@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
  }

  /* No-JS fallback: links stay visible, wrapped under the logo — but they must
     not stay in a sticky header, which would cover a third of a phone screen. */
  html:not(.js) .site-header {
    position: static;
  }

  /* No-JS fallback: links stay visible, wrapped under the logo. */
  .nav-panel {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 2px 0 14px;
  }

  .nav-links {
    flex-direction: column;
    gap: 2px;
  }

  .nav-links a {
    display: block;
    padding: 10px 2px;
  }

  .btn-nav {
    align-self: flex-start;
  }

  /* With JS the panel becomes a dropdown behind the toggle. */
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 24px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .js .nav.is-open .nav-panel {
    display: flex;
  }

  .js .nav-links a {
    padding: 12px 2px;
    font-size: 1.02rem;
  }

  .js .btn-nav {
    width: 100%;
    margin-top: 8px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 84px;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .section {
    padding: 64px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .brand img {
    height: 36px;
  }

  .partners-row {
    gap: 20px 26px;
    max-width: 250px;
    margin-inline: auto;
  }

  .partners-row img {
    height: 38px;
    max-width: 120px;
  }

  .site-footer {
    padding-bottom: 72px;
  }

  .wa-float {
    width: 52px;
    height: 52px;
  }

  .wa-float svg {
    width: 27px;
    height: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js [data-reveal],
  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
