/* travelinpanama.com — one stylesheet for both languages. */

:root {
  --paper: #f4f2eb;
  --paper-deep: #e9e6db;
  --ink: #17221e;
  --ink-soft: #4a5450;
  --line: #cfcbbd;
  --sea: #0e5c73;
  --sea-deep: #0a4557;
  --jungle: #1f5a3c;
  --sun: #f0b429;
  --sun-deep: #d99a0e;
  --van: #8a8f8c;
  --ok: #1f5a3c;
  --err: #a63c2a;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variation-settings: "opsz" 14, "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.015em; font-weight: 800; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; align-items: center; font-weight: 500; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--sea); }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.lang { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .9rem; color: var(--ink); text-decoration: none; }
a.lang:hover { border-color: var(--sea); color: var(--sea); }
.lang.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
footer .lang.current { background: transparent; border-color: var(--line); color: var(--ink-soft); }
@media (max-width: 760px) { .top nav a:not(.lang) { display: none; } }

/* Hebrew: Bricolage has no Hebrew glyphs, Heebo carries the text; the Latin
   bits (place names, "Travel in Panama") still come from Bricolage. */
[lang="he"] { --font: "Bricolage Grotesque", "Heebo", "Helvetica Neue", Arial, sans-serif; }
[lang="he"] h1, [lang="he"] h2 { letter-spacing: 0; }
[dir="rtl"] .route { direction: ltr; } /* the map is a drawing; its labels stay where drawn */

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 7vw, 88px) 0 clamp(32px, 5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.9rem);
  font-variation-settings: "opsz" 96, "wdth" 112;
  max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--sea); }
.hero .lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); margin-top: 1.25em; color: var(--ink-soft); max-width: 44ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75em; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius);
  background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; font: inherit; font-weight: 700; line-height: 1;
}
.btn:hover { background: var(--sun-deep); color: var(--ink); }
.btn.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); }

/* route map — the hero's visual */
.route { display: block; width: 100%; height: auto; }
.route .land { fill: var(--paper-deep); }
.route .water { fill: none; stroke: var(--sea); stroke-opacity: .25; stroke-width: 1.5; }
.route .path { fill: none; stroke: var(--sea); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; }
.route .stop { fill: var(--sea); }
.route .city { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.route text { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--ink); }
.route .t { font-weight: 400; fill: var(--ink-soft); font-size: 12px; }
.route-note { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- sections ---------- */
section { padding: clamp(40px, 6vw, 80px) 0; }
section + section { border-top: 1.5px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-variation-settings: "opsz" 48, "wdth" 108; }
.section-head p { font-size: 1.125rem; color: var(--ink-soft); }

/* destinations table */
table { width: 100%; border-collapse: collapse; margin-top: 32px; font-variant-numeric: tabular-nums; }
th, td { text-align: start; padding: 14px 0; padding-inline-end: 10px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
td.name { font-weight: 700; }
td.time { white-space: nowrap; color: var(--sea); font-weight: 600; }
td.what { color: var(--ink-soft); }
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 14px 0; border-bottom: 1.5px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td.time::before { content: attr(data-label) " "; color: var(--ink-soft); font-weight: 400; }
}
.table-note { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }

/* the van */
.van-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 760px) { .van-grid { grid-template-columns: 1fr; } }
.van-figure { margin: 0; background: var(--paper-deep); border-radius: var(--radius); aspect-ratio: 4 / 3; overflow: hidden; }
.van-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.facts li:first-child { border-top: 1.5px solid var(--line); }
.facts b { font-weight: 600; color: var(--ink-soft); }
@media (max-width: 420px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* how it works — a real sequence, hence numbered */
.steps { counter-reset: s; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding-top: 14px; border-top: 3px solid var(--jungle); }
.after-h2 { margin-top: 1em; }
.steps li::before { content: counter(s); display: block; font-weight: 800; font-size: 1.6rem; color: var(--jungle); line-height: 1; margin-bottom: 10px; font-variation-settings: "opsz" 48, "wdth" 112; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- form ---------- */
.ask { background: var(--ink); color: var(--paper); }
.ask h2, .ask p { color: inherit; }
.ask .section-head p { color: #b9c3bf; }
.ask a { color: var(--sun); }

form { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; max-width: 760px; }
@media (max-width: 600px) { form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: #b9c3bf; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-foot small { color: #b9c3bf; max-width: 46ch; }
.btn[disabled] { opacity: .6; cursor: progress; }

.notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; display: none; }
.notice.ok { display: block; background: #244f3a; color: #e6f3ea; }
.notice.err { display: block; background: #5a2a22; color: #f6e2dc; }

/* ---------- footer ---------- */
footer { padding: 28px 0 40px; font-size: .95rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer a { color: inherit; }
