/* ---------- Tokens ---------- */
:root {
  --navy: #173a5e;
  --navy-dark: #0e2338;
  --slate: #2a5580;
  --amber: #e8952e;
  --amber-dark: #c97a1a;
  --ink: #1c2733;
  --ink-soft: #4b5b6b;
  --paper: #ffffff;
  --paper-muted: #f5f8fb;
  --line: #e1e8ef;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(23, 58, 94, 0.08);
  --shadow-hover: 0 10px 28px rgba(23, 58, 94, 0.14);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--amber);
  color: var(--navy-dark);
}
.btn--primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: inherit;
}
.hero__actions .btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: rgba(23, 58, 94, 0.06); }

.link-arrow {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--amber-dark); }
.link-arrow--back { display: inline-block; margin-bottom: 16px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { border-radius: 8px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; color: var(--navy-dark); font-size: 0.98rem; }
.brand__sub { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.03em; text-transform: uppercase; }

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-dark);
  border-bottom-color: var(--amber);
}

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

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
  padding: 56px 0 40px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin: 0 0 12px;
}
.hero__lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--muted { background: var(--paper-muted); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-heading h2 { margin: 0; }

.page-header { padding: 48px 0 20px; }
.page-header .prose { max-width: 70ch; }

.prose { max-width: 72ch; color: var(--ink-soft); }
.prose--centered { max-width: 72ch; margin: 0 auto; text-align: left; }
.prose h2 { color: var(--navy-dark); margin-top: 1.6em; }
.prose a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.empty-note { color: var(--ink-soft); font-style: italic; }

/* ---------- Grid & feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Tour cards ---------- */
.tour-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.tour-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tour-card__media { position: relative; display: block; aspect-ratio: 8 / 5; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card__status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-dark);
}
.tour-card__status--past { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.tour-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tour-card__date { font-size: 0.82rem; color: var(--ink-soft); margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }
.tour-card__title { margin: 0 0 4px; font-size: 1.15rem; }
.tour-card__title a { color: var(--navy-dark); }
.tour-card__summary { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.tour-card--past { opacity: 0.9; }

/* ---------- Tour detail ---------- */
.tour-detail__media img { width: 100%; max-height: 420px; object-fit: cover; }
.tour-detail__body { padding-top: 28px; max-width: 76ch; }
.tour-detail__meta {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-soft);
}
.tour-detail__body .tour-card__status { position: static; display: inline-block; margin: 12px 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  margin: 0 24px;
  padding: 40px;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 52ch; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid__item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 35, 56, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 100;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: min(90vw, 1000px); max-height: 78vh; border-radius: 8px; }
.lightbox__caption { color: #fff; font-size: 0.95rem; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}
.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.social-links--inline { flex-wrap: wrap; }

.contact-form {
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.form-note code { background: #eef2f6; padding: 2px 5px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 64px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px 32px;
}
.site-footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: rgba(255,255,255,0.6); }
.site-footer__tagline { color: rgba(255,255,255,0.65); margin-top: 14px; max-width: 34ch; }
.footer-links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--amber); }
.footer-address { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.site-footer .social-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.site-footer .social-links a:hover { color: var(--amber); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.site-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid--3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .nav-toggle__label { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 12px 0; }
  .nav-toggle:checked ~ .site-nav { max-height: 400px; }
}
