/* ==========================================================================
   BUPCC — Batangas United and Progressive Credit Cooperative
   Phase 1 Website — Shared stylesheet
   Brand: Deep Navy / Warm Gold / Cream / White / Teal (logo)
   ========================================================================== */

:root {
  --navy: #1B2A4A;
  --navy-soft: #2b3d63;
  --gold: #B8860B;
  --gold-soft: #d4a520;
  --cream: #F5EFE0;
  --cream-deep: #ece3ce;
  --white: #FFFFFF;
  --teal: #158c70;
  --teal-light: #68c4c1;
  --teal-tint: #e3f2f0;
  --ink: #2a2f3a;
  --ink-soft: #5c6270;
  --border: #e6ddc8;
  --shadow: 0 6px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 16px 48px rgba(27, 42, 74, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --font-head: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 500;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

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

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(245,239,224,.78); }
.section-white { background: var(--white); }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-navy .eyebrow { color: var(--teal-light); }

.section-head { max-width: 700px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.closing-line {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  margin-top: 22px;
}

/* ---------- Buttons (soft pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,239,224,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1360px;
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.2rem;
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .88rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); border-bottom-color: var(--gold); }

/* Mega-menu nav groups (Task #81, 10 August 2026) — 3 groups (Our Coop / Our Journey /
   Let's Talk) replacing the old 8-item flat nav. Built on native <details>/<summary> so it
   works without JS: click-to-expand everywhere (mobile relies on this), with a CSS
   hover/focus-within override on wide screens so desktop visitors get a true dropdown
   instead of having to click. */
.nav-group { position: relative; }
.nav-group > summary {
  cursor: pointer; list-style: none; font-family: var(--font-body); font-weight: 500;
  font-size: .88rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: " \25BE"; font-size: .7em; }
.nav-group[open] > summary,
.nav-group > summary:hover { color: var(--teal); border-bottom-color: var(--gold); }
.nav-group.active > summary { color: var(--teal); border-bottom-color: var(--gold); }
.mega-menu { display: none; }
.nav-group[open] > .mega-menu { display: block; margin-top: 10px; }
.mega-item {
  display: block; padding: 10px 4px; border-bottom: 1px solid var(--border);
  text-decoration: none; white-space: normal;
}
.mega-item:last-child { border-bottom: none; }
.mega-item strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
.mega-item span { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }

@media (min-width: 1301px) {
  .mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); padding: 16px 20px; min-width: 320px; z-index: 60;
    white-space: normal;
  }
  .nav-group:hover > .mega-menu,
  .nav-group:focus-within > .mega-menu { display: block; margin-top: 0; }
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 9px 16px; font-size: .8rem; }

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--navy);
}
.lang-toggle button.active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Radiating glow hero ---------- */
.hero-invite {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #2a3f6b 0%, var(--navy) 46%, #12203c 100%);
  color: #fff;
  padding: 120px 0 130px;
  text-align: center;
}
.hero-invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(184,134,11,.35) 0%, rgba(184,134,11,.08) 32%, transparent 62%);
  animation: glow-pulse 7s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}
.hero-invite .container { position: relative; z-index: 1; max-width: 780px; }
.hero-invite h1 { color: #fff; margin-bottom: 20px; }
.hero-invite p.lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; margin: 0 auto 34px; }
.hero-mark { width: 280px; max-width: 80%; margin: 0 auto 28px; opacity: .95; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #24365e 0%, var(--navy) 55%);
  color: #fff;
  padding: 76px 0 84px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -140px; top: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,140,112,.32), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto; }
.page-hero .eyebrow { color: var(--teal-light); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-cream { background: var(--cream); border-color: var(--cream-deep); }
.card h3 { margin-bottom: 10px; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.value-card { border-top: 3px solid var(--gold); }
.value-card .tag { font-family: var(--font-body); font-weight: 600; color: var(--teal); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step-list li {
  display: flex; gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.step-list .num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.step-list li { align-items: center; }

/* "After Board Approval" variant (30 August 2026, Ramil) — deliberately
   inverted to solid navy with white text, distinct from the plain-white
   "Before Approval" cards, so the two requirement groups read as visually
   different stages at a glance, not just different labels. The numbered
   circle keeps the gold/navy pairing already used elsewhere on the site
   (see .prompt-btn-featured) for contrast against the navy card. */
.step-list.navy li { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-list.navy .num { background: var(--gold); color: var(--navy); }

/* ---------- Requirements overview (apply.html) ---------- */
.req-group-label {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .requirements-grid.grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
thead th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- People cards ---------- */
.person-card { text-align: center; }
.person-photo, .person-photo-fallback {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
}
.person-photo { object-fit: cover; border: 3px solid var(--white); box-shadow: var(--shadow); }
.person-photo-fallback {
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.person-photo-fallback svg { width: 44%; height: 44%; }
.person-card .role { color: var(--gold); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.person-card.compact { padding: 20px 16px; }
.person-card.compact .person-photo, .person-card.compact .person-photo-fallback { width: 72px; height: 72px; margin-bottom: 12px; }
.person-card.compact h3 { font-size: 1.05rem; margin-bottom: 4px; }

.person-bio { text-align: left; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.person-bio p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .8em; }
.person-bio p:last-child { margin-bottom: 0; }

.committee-chair { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.committee-chair .person-photo, .committee-chair .person-photo-fallback { width: 40px; height: 40px; margin: 0; border-width: 2px; flex-shrink: 0; }
.committee-chair .person-photo-fallback svg { width: 50%; height: 50%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Buppy ---------- */
.buppy-bubble {
  display: flex; gap: 20px; align-items: center;
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.buppy-bubble img { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; }
.buppy-prompts { display: grid; gap: 14px; max-width: 460px; margin: 30px auto 0; }
.buppy-featured { max-width: 720px; margin: 30px auto 0; }
.buppy-prompts-grid { max-width: 720px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.prompt-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 16px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.prompt-btn:hover { border-color: var(--gold); background: var(--cream); transform: translateY(-1px); }
/* Featured "Our Purpose" entry — added 28 Aug 2026 so the cooperative's
   reason for existing is the first, most prominent choice on Begin, visually
   set apart from the more specific question buttons below it. */
.prompt-btn-featured {
  display: block;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 20px 30px;
  text-align: center;
}
.prompt-btn-featured:hover { background: #fff; border-color: #fff; color: var(--navy); transform: translateY(-1px); }

@media (max-width: 760px) {
  .buppy-prompts-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
fieldset { border: none; padding: 0; margin: 0 0 26px; }
legend { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
textarea { resize: vertical; min-height: 90px; }

.check-item, .radio-item { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.check-item input, .radio-item input { width: auto; margin-top: 3px; }

.form-note {
  display: flex; gap: 12px; background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: .88rem; margin-bottom: 28px;
}

/* ---------- Pathway visual ---------- */
.pathway { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; }
.pathway-step {
  flex: 1 1 160px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 22px 18px;
  text-align: center;
  position: relative;
}
.pathway-step.active { background: var(--navy); color: #fff; }
.pathway-step.active h4 { color: #fff; }
.pathway-step h4 { font-family: var(--font-head); margin: 8px 0 6px; font-size: 1.05rem; }
.pathway-step p { font-size: .8rem; margin: 0; }
.pathway-step.active p { color: rgba(255,255,255,.8); }
.pathway-num { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--gold); }

/* Progress-map states — layered on top of the static .pathway above, used by
   full-path.html and personnel-progress.html once a lookup succeeds. */
.pathway-step.done { background: #EAF3DE; border-color: #C0DD97; }
.pathway-step.done .pathway-num { color: #3B6D11; }
.pathway-step.done .pathway-num::after { content: " \2713"; }
.pathway-step.current { background: var(--navy); color: #fff; }
.pathway-step.current h4 { color: #fff; }
.pathway-step.current p { color: rgba(255,255,255,.8); }
.pathway-step.locked { background: #F5F4F0; color: var(--ink-soft,#4A4A4A); opacity: .65; }
.pathway-step.locked .pathway-num { color: var(--ink-soft,#4A4A4A); }
.pathway-step.on-hold { background: #FFF4E5; border-color: #F0C36D; }
.pathway-step.on-hold .pathway-num { color: #8A5A00; }
.pathway-step.disapproved { background: #FBEAEA; border-color: #E9AFAF; }
.pathway-step.disapproved .pathway-num { color: #A32D2D; }
.progress-callout { background: var(--cream,#F5EFE0); border-radius: 10px; padding: 18px 22px; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.progress-callout p { margin: 0; }
.progress-callout .label { font-size: .82rem; color: var(--ink-soft,#4A4A4A); margin-bottom: 2px; }
.progress-callout .value { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.personnel-detail { border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-top: 10px; font-size: .9rem; }
.personnel-detail h4 { margin: 0 0 8px; font-family: var(--font-head); color: var(--navy); }
.personnel-detail dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; }
.personnel-detail dt { color: var(--ink-soft,#4A4A4A); }
.personnel-detail dd { margin: 0; }

/* ---------- Footer / Contact Us ---------- */
.site-footer { background: var(--navy); color: rgba(245,239,224,.85); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(245,239,224,.75); font-size: .92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 1.15rem; }
.footer-bottom {
  border-top: 1px solid rgba(245,239,224,.15);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(245,239,224,.55);
}
.footer-form { display: grid; gap: 12px; }
.footer-form input, .footer-form textarea {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,.5); }
.footer-form label { color: rgba(245,239,224,.85); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social .social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,239,224,.12);
  color: rgba(245,239,224,.85);
  font-family: var(--font-body); font-weight: 600; font-size: .66rem; letter-spacing: .01em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-social .social-icon:hover { background: var(--gold); color: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-pill { display: inline-block; background: var(--teal-tint); color: var(--teal); font-size: .78rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; }
.placeholder-note {
  display: inline-block;
  background: #fdf3d8;
  border: 1px dashed var(--gold);
  color: #7a5c05;
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-style: italic;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.video-embed { position: relative; padding-top: 56.25%; background: var(--navy); border-radius: var(--radius-sm); overflow: hidden; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1300px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions > .lang-toggle { display: none; }
  body.nav-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 16px;
    white-space: normal;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  body.nav-open .nav-links a { font-size: 1rem; }
  .nav-links > .lang-toggle-item { margin-bottom: 4px; }
}

@media (min-width: 1301px) {
  .nav-links > .lang-toggle-item { display: none; }
}

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; }
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
}

/* Touch/draw signature pad — Feature #2, 23 August 2026. Shared between
   sign.html and full-path.html's inline Sign panel (see js/signature-pad.js)
   so both entry points look and behave identically. touch-action:none stops
   the page from scrolling while the applicant is mid-stroke on a phone. */
.signature-canvas {
  width: 100%;
  height: 180px;
  border: 1px solid #cfc7b0;
  border-radius: 10px;
  background: #fff;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  #incorporators-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .cta-band { padding: 32px; flex-direction: column; text-align: center; }
  section { padding: 56px 0; }
  .hero-invite { padding: 90px 0 100px; }
  .pathway-step { flex: 1 1 45%; }
}
