/* =========================================================
   Serendib Haven Travels — Design tokens
   Palette: jungle teal + cinnamon gold + coral clay on warm paper
   Type: Fraunces (display) + Karla (body/UI)
   Signature: passport-stamp duration badges + dotted "journey trail"
   ========================================================= */
:root {
  --ink: #12332f;
  --ink-soft: #3c5450;
  --paper: #faf3e4;
  --paper-alt: #f2e9d6;
  --teal: #0f6e6a;
  --teal-dark: #0a4d4a;
  --teal-light: #12958f;
  --gold: #c98a2b;
  --gold-light: #e0ab52;
  --clay: #b5502f;
  --line: #e2d7bd;
  --white: #ffffff;
  --shadow: 0 18px 40px -18px rgba(18, 51, 47, 0.35);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
}
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b47a22; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-invert { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-invert:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--teal-dark); }
.brand-mark { color: var(--teal); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.brand-sub { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.nav-item.active > .nav-link, .nav-link:hover { color: var(--teal-dark); background: var(--paper-alt); }
.caret { font-size: 0.65em; opacity: 0.7; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 210px; max-height: 320px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all 0.16s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.dropdown li a:hover { background: var(--paper-alt); color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; }
@media (min-width: 900px) { .header-phone { display: inline-flex; } }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--paper);
    padding: 20px 24px; overflow-y: auto; transform: translateX(100%);
    transition: transform 0.25s ease; justify-content: flex-start;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-burger { display: flex; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 0.82rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 90px 0 70px;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 56px 0 40px; } }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,0.86); font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); }
.hero-stats span { font-size: 0.78rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.wave-bottom { display: block; width: 100%; line-height: 0; margin-top: -2px; }

/* small page hero (non-home pages) */
.page-hero {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: var(--white); padding: 64px 0 46px; position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero .lede { max-width: 62ch; color: rgba(255,255,255,0.85); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-alt { background: var(--paper-alt); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.78); }

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

.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgba(18,51,47,0.28);
  display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
  position: relative; height: 168px;
  display: flex; align-items: flex-end; padding: 14px;
  color: var(--white);
}
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin-bottom: 2px; }
.card-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.card-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; }
.card-list li { font-size: 0.88rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.card-list li::before { content: "•"; position: absolute; left: 2px; color: var(--gold); }

/* passport-stamp duration badge (signature element) */
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.85);
  transform: rotate(-8deg);
  font-family: var(--font-display); font-weight: 700; text-align: center; line-height: 1.05;
  background: rgba(18,51,47,0.28);
}
.stamp span:first-child { font-size: 0.95rem; }
.stamp span:last-child { font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }

.price-tag { font-weight: 700; color: var(--teal-dark); font-family: var(--font-body); }

/* ---------- Journey trail (destinations index signature) ---------- */
.trail-wrap { position: relative; }
.trail-line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.5;
}
.dest-grid { position: relative; z-index: 1; }

.dest-card { position: relative; }
.dest-card .card-media { background-size: cover; background-position: center; }
.dest-region { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); color: var(--teal-dark); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: 14px; }
.feature-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper-alt); color: var(--teal); display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.05rem; }
.feature-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Route strip ---------- */
.route-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.84rem; color: var(--ink-soft); }
.route-strip .stop { background: var(--paper-alt); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.route-strip .arrow { color: var(--gold); }

/* ---------- Testimonials / callouts ---------- */
.callout {
  background: var(--teal-dark); color: var(--white); border-radius: var(--radius-lg);
  padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.callout h2 { color: var(--white); margin-bottom: 6px; }
.callout p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline: none; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); }
.form-status { font-size: 0.88rem; font-weight: 600; padding-top: 4px; min-height: 1.2em; }
.form-status.ok { color: var(--teal-dark); }
.form-status.error { color: var(--clay); }

/* ---------- Modal (package PDF request) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18, 51, 47, 0.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper); border-radius: var(--radius-lg); max-width: 460px; width: 100%;
  padding: 28px; position: relative; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft); }
.modal h3 { margin-bottom: 4px; }
.modal .modal-sub { font-size: 0.88rem; margin-bottom: 18px; }
.modal .field { margin-bottom: 12px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: #21bd63; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(0,0,0,0.4);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Info blocks (transport pages etc.) ---------- */
.info-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .info-block { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 10px 26px -18px rgba(18,51,47,0.28); }
.panel-icon-list { display: flex; flex-direction: column; gap: 16px; }
.panel-icon-list .row { display: flex; gap: 12px; align-items: flex-start; }
.panel-icon-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--paper-alt); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }

table.price-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.price-table th, table.price-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table.price-table th { color: var(--teal-dark); font-family: var(--font-display); font-weight: 700; }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgba(18,51,47,0.28); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); padding: 64px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); display: block; margin-bottom: 10px; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; font-size: 0.84rem; }
.footer-social a { color: var(--gold-light); font-weight: 700; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { color: rgba(255,255,255,0.75); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 24px; margin-top: 10px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.6);
}

/* ---------- Misc ---------- */
.divider-dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 30px; }
.divider-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.5; }
.divider-dots span:nth-child(2) { opacity: 0.8; }
.divider-dots span:nth-child(3) { opacity: 1; }

.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
