/* ============================================================
   PASSPORT GATEWAY — Page Sections
   How it Works, Coverage Map, FAQ, Final CTA, Footer
   ============================================================ */

/* Shared header for all sections below the hero */
.section-head {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-head .eyebrow {
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

/* Section ornament: two gold lines fading toward a center diamond */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto var(--space-5);
  color: var(--color-gold);
}

.ornament-line {
  display: block;
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.ornament-line:first-child {
  background: linear-gradient(to right, transparent, currentColor);
}

.ornament-line:last-child {
  background: linear-gradient(to right, currentColor, transparent);
}

.ornament-diamond {
  display: block;
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin: 0 auto;
  max-width: 22ch;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.how-it-works,
.coverage,
.faq {
  position: relative;
  color: var(--color-text-on-dark);
}


/* ---- How it works ---- */
.how-it-works {
  padding-block: clamp(2rem, 5.5vw, 4rem);
  background-color: var(--color-navy-deep);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23C9A24A' stroke-width='1.5' opacity='0.7'><circle cx='0' cy='70' r='70'/><circle cx='70' cy='0' r='70'/><circle cx='140' cy='70' r='70'/><circle cx='70' cy='140' r='70'/><circle cx='70' cy='70' r='70'/></g></svg>");
  background-size: 140px 140px;
  background-position: top left;
  background-attachment: fixed;
  background-blend-mode: soft-light;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1000px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.step {
  text-align: center;
  padding: var(--space-4);
}

.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-3);
}

.step-body {
  color: rgba(247, 244, 236, 0.72);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 32ch;
  margin: 0 auto;
}


/* ---- Coverage — Jacó ↔ SJO route map ---- */
.coverage {
  padding-block: clamp(2rem, 5.5vw, 4rem);
  background-color: var(--color-navy-deep);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23C9A24A' stroke-width='1.5' opacity='0.7'><circle cx='0' cy='70' r='70'/><circle cx='70' cy='0' r='70'/><circle cx='140' cy='70' r='70'/><circle cx='70' cy='140' r='70'/><circle cx='70' cy='70' r='70'/></g></svg>");
  background-size: 140px 140px;
  background-position: top left;
  background-attachment: fixed;
  background-blend-mode: soft-light;
}

.coverage-map {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(var(--space-3), 3vw, var(--space-5));
  background: rgba(10, 15, 34, 0.55);
  border: 1px solid rgba(201, 162, 74, 0.32);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(10, 15, 34, 0.4);
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
  text-rendering: optimizeLegibility;
}

.map-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: center;
}

.map-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  min-width: 80px;
}

.map-stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.85;
}

.map-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  letter-spacing: 0.01em;
}

@media (min-width: 720px) {
  .map-stats {
    position: absolute;
    top: clamp(var(--space-4), 3vw, var(--space-5));
    left: clamp(var(--space-4), 3vw, var(--space-5));
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    z-index: 2;
  }

  .map-stat {
    align-items: flex-start;
  }
}

/* Mobile: hide decorative SVG layers that become illegible at small sizes */
@media (max-width: 720px) {
  .map-stop-label,
  .map-cordillera,
  .map-contours,
  .map-lat-ticks,
  .map-region,
  .map-inset {
    display: none;
  }

  .map-pin-main {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .map-pin-sub {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
}

.coverage-caption {
  text-align: center;
  max-width: 600px;
  margin: var(--space-5) auto 0;
  color: rgba(247, 244, 236, 0.78);
  font-size: var(--text-base);
  line-height: 1.65;
}


/* ---- FAQ ---- */
.faq {
  padding-block: clamp(2rem, 5.5vw, 4rem);
  background-color: var(--color-navy-deep);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23C9A24A' stroke-width='1.5' opacity='0.7'><circle cx='0' cy='70' r='70'/><circle cx='70' cy='0' r='70'/><circle cx='140' cy='70' r='70'/><circle cx='70' cy='140' r='70'/><circle cx='70' cy='70' r='70'/></g></svg>");
  background-size: 140px 140px;
  background-position: top left;
  background-attachment: fixed;
  background-blend-mode: soft-light;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(247, 244, 236, 0.05);
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.faq-item[open] {
  border-color: rgba(201, 162, 74, 0.4);
  background: rgba(247, 244, 236, 0.08);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-on-dark);
  position: relative;
  padding-right: 3rem;
  transition: background 0.15s ease;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-gold);
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.faq-item summary:hover {
  background: rgba(201, 162, 74, 0.08);
}

.faq-item p {
  padding: 0 var(--space-5) var(--space-4);
  margin: 0;
  font-size: 0.95rem;
  color: rgba(247, 244, 236, 0.78);
  line-height: 1.65;
}


/* ---- Final CTA ---- */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6.5vw, 4.5rem);
  background-color: var(--color-navy-deep);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23C9A24A' stroke-width='1.5' opacity='0.7'><circle cx='0' cy='70' r='70'/><circle cx='70' cy='0' r='70'/><circle cx='140' cy='70' r='70'/><circle cx='70' cy='140' r='70'/><circle cx='70' cy='70' r='70'/></g></svg>"),
    radial-gradient(900px 500px at 50% 50%, rgba(201, 162, 74, 0.18), transparent 60%);
  background-size: 140px 140px, auto;
  background-position: top left, center;
  background-attachment: fixed, scroll;
  background-blend-mode: soft-light, normal;
  color: var(--color-text-on-dark);
}

.final-cta-inner {
  text-align: center;
  max-width: 720px;
}

.final-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}

.final-body {
  font-size: var(--text-lg);
  color: rgba(247, 244, 236, 0.85);
  max-width: 50ch;
  margin: 0 auto var(--space-8);
  line-height: 1.55;
}

.final-cta .cta-row {
  margin-bottom: 0;
}


/* ---- Footer ---- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(247, 244, 236, 0.65);
  padding-block: var(--space-5);
  text-align: center;
  font-size: 0.85rem;
}
