/* ============================================================
   HeavyPass — shared stylesheet
   Brand name constant lives in each HTML file's <script> block.
   Accent: #0F6E56  |  Emergency amber: #D97706
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #0F6E56;
  --teal-dark:  #0A5240;
  --teal-light: #E6F4F0;
  --amber:      #D97706;
  --amber-bg:   #FEF3C7;
  --text:       #1A1A1A;
  --text-muted: #5A5A5A;
  --border:     #D1D5DB;
  --bg:         #FFFFFF;
  --bg-alt:     #F7F8F9;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --max-w:      1100px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
p  { margin-bottom: .75rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
  text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); text-decoration: none; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #B45309; text-decoration: none; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -.5px;
  white-space: nowrap;
}
.nav-logo span { color: var(--text-muted); font-weight: 400; font-size: .75rem; display: block; line-height: 1; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a { color: var(--text); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); }

.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .15s;
}
.lang-btn.active { background: #fff; color: var(--teal); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

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

/* ── Emergency Banner ─────────────────────────────────────── */
.emergency-banner {
  background: var(--amber-bg);
  border-bottom: 3px solid var(--amber);
}
.emergency-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}
.emergency-icon { font-size: 1.5rem; flex-shrink: 0; }
.emergency-text { flex: 1; min-width: 200px; }
.emergency-text strong { color: var(--amber); display: block; font-size: 1rem; }
.emergency-text p { color: #78350F; font-size: .9rem; margin: 0; }
.emergency-banner .btn-amber { white-space: nowrap; flex-shrink: 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-secondary {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.25); text-decoration: none; }

/* ── Section headings ─────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Country cards ────────────────────────────────────────── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.country-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.country-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); text-decoration: none; }
.country-card .flag { font-size: 2rem; }
.country-card h3 { color: var(--teal); }
.country-card p { font-size: .88rem; color: var(--text-muted); margin: 0; flex: 1; }
.country-card .badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal);
  align-self: flex-start;
}
.country-card.coming-soon { opacity: .6; cursor: default; }
.country-card.coming-soon:hover { transform: none; box-shadow: var(--shadow); }
.badge-soon { background: #F3F4F6; color: var(--text-muted); }
.badge-request { background: var(--amber-bg); color: var(--amber); }

/* ── How it works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; }
.step-number {
  width: 52px; height: 52px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--text-muted); }

/* ── Request form ─────────────────────────────────────────── */
.form-section {
  background: var(--teal);
  padding: 4rem 0;
}
.form-section .section-heading h2 { color: #fff; }
.form-section .section-heading p { color: rgba(255,255,255,.8); }

.request-form {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  max-width: 820px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group .hint { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .92rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,110,86,.1);
}

.form-group textarea { min-height: 80px; resize: vertical; }

.form-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
  padding-bottom: .4rem;
  margin: .5rem 0;
}

.form-submit-row { text-align: center; margin-top: 1.5rem; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: .75rem; }

/* Hidden conditional fields */
.field-conditional { display: none; }
.field-conditional.visible { display: flex; flex-direction: column; gap: .35rem; }

/* ── About strip ──────────────────────────────────────────── */
.about-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.about-stat { }
.about-stat .number { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.about-stat .label { font-size: .9rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Country page specifics ───────────────────────────────── */
.country-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.country-hero h1 { color: #fff; }
.country-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-top: .5rem; }

.permit-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.permit-type-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
}
.permit-type-card h4 { color: var(--teal); margin-bottom: .4rem; }
.permit-type-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

.info-list { list-style: none; }
.info-list li {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.info-list li:last-child { border: none; }
.info-list .icon { flex-shrink: 0; color: var(--teal); font-size: 1.1rem; }

.differentiator-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.differentiator-box p { color: var(--teal-dark); font-weight: 500; margin: 0; }

/* ── Coming soon page ─────────────────────────────────────── */
.coming-soon-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.coming-soon-page .icon { font-size: 3rem; margin-bottom: 1rem; }
.coming-soon-page h1 { margin-bottom: .75rem; }
.coming-soon-page p { color: var(--text-muted); max-width: 400px; margin: 0 auto 1.5rem; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-card .icon { font-size: 1.75rem; margin-bottom: .75rem; }
.contact-card h3 { margin-bottom: .5rem; }
.contact-card a { font-size: 1.05rem; font-weight: 600; }
.contact-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-logo span { font-weight: 400; font-size: .75rem; color: rgba(255,255,255,.5); display: block; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.placeholder {
  background: #FFE4B5;
  color: #8B4513;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: .82em;
  font-style: italic;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 20px;
    gap: .75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
  .nav-mobile-toggle { display: block; }

  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .request-form { padding: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { padding: 3rem 0 2.5rem; }
  .emergency-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .country-grid { grid-template-columns: 1fr 1fr; }
}

/* ── FAQ (SEO/AEO) ─────────────────────────── */
.faq-section { max-width: 820px; margin: 0 auto; }
.faq-section h2 { text-align: center; margin-bottom: 1.5rem; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--teal);
  position: relative;
  padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Form result message ───────────────────── */
.form-result {
  margin-top: 1rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-result.ok  { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; }
.form-result.err { background: var(--amber-bg); border: 1px solid #FCD34D; color: #92400E; }
