/* ====================================================================
   MALDIVES TRAVEL PACKAGE -- design tokens
   Signature: the "depth gradient" -- the same shallow-reef-to-deep-
   atoll colour run used in the hero photography, used again as a
   left-border accent on every comparison card so that colour itself
   tells you whether a package is budget, mid, or luxury tier.
   ==================================================================== */

:root {
  /* palette */
  --atoll-ink: #0A2E36;
  --atoll-ink-soft: #123C45;
  --lagoon: #1E8C82;
  --lagoon-light: #2FA89C;
  --reef-shallow: #9FE0D2;
  --reef-pale: #E3F5EF;
  --sandbar: #F7F1E4;
  --sandbar-deep: #EFE5D0;
  --coral: #E8703C;
  --coral-deep: #C85A2A;
  --driftwood: #5B4A3A;
  --driftwood-soft: #8A7866;

  --depth-gradient: linear-gradient(180deg, var(--reef-shallow) 0%, var(--lagoon) 55%, var(--atoll-ink) 100%);
  --depth-gradient-budget: linear-gradient(180deg, var(--reef-shallow), var(--lagoon-light));
  --depth-gradient-mid: linear-gradient(180deg, var(--lagoon-light), var(--lagoon));
  --depth-gradient-luxury: linear-gradient(180deg, var(--lagoon), var(--atoll-ink));

  /* type */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(2rem, 1.7rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.4vw, 4rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --shadow-card: 0 12px 28px -14px rgba(10, 46, 54, 0.28);
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sandbar);
  color: var(--atoll-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lagoon); text-decoration-color: var(--reef-shallow); text-decoration-thickness: 1.5px; }
a:hover { color: var(--coral-deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.wrap { max-width: var(--maxw); margin-left: auto; margin-right: auto; margin-inline: auto; padding-left: 1.25rem; padding-right: 1.25rem; padding-inline: 1.25rem; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--atoll-ink);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: 2.4em; }
h3 { font-size: var(--step-2); margin-top: 1.8em; }
em, .accent-italic { font-style: italic; color: var(--lagoon); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lagoon);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: "";
  width: 1.4em; height: 2px;
  background: var(--coral);
  display: inline-block;
}

p { margin: 0 0 1.2em; }
.lede { font-size: var(--step-1); color: var(--driftwood); }

/* ---------------------------------------------------------- depth rule */
.depth-rule {
  height: 5px;
  width: 100%;
  background: var(--depth-gradient);
  border-radius: 3px;
  margin: 2.5rem 0;
}
.depth-rule.short { width: 64px; height: 4px; margin: 1.5rem 0; }

/* ----------------------------------------------------------- nav / hdr */
.site-header {
  background: var(--atoll-ink);
  color: var(--sandbar);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(159,224,210,0.18);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.04em;
  color: var(--sandbar); text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--depth-gradient);
  position: relative; flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  border: 1.5px solid rgba(247,241,228,0.85);
  border-radius: 50%;
}
.brand b { color: var(--sandbar); font-weight: 700; }
.brand span { color: var(--reef-shallow); }

.main-nav { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  color: var(--reef-pale); text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--sandbar); border-bottom-color: var(--coral); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(232,112,60,0.55); }
.btn-coral:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--sandbar);
  border: 1.5px solid rgba(247,241,228,0.45);
}
.btn-ghost:hover { border-color: var(--reef-shallow); color: var(--reef-shallow); }
.btn-outline-dark {
  background: transparent; color: var(--atoll-ink);
  border: 1.5px solid var(--atoll-ink);
}
.btn-outline-dark:hover { background: var(--atoll-ink); color: var(--sandbar); }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; color: var(--sandbar);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero .wrap {
  position: relative; z-index: 2;
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(3.5rem, 9vw, 7rem);
  max-width: 760px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,46,54,0.55) 0%, rgba(10,46,54,0.22) 65%);
}
.hero h1 { color: #fff; }
.hero .lede { color: var(--reef-pale); }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* depth scale legend, used in hero + sidebar -- the signature element */
.depth-scale {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: 2.2rem; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--reef-pale); letter-spacing: 0.03em;
}
.depth-scale .bar {
  width: 90px; height: 8px; border-radius: 4px;
  background: var(--depth-gradient);
}

/* ------------------------------------------------------------- section */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.section-sand { background: var(--sandbar); }
.section-pale { background: var(--reef-pale); }
.section-dark { background: var(--atoll-ink); color: var(--sandbar); }
.section-dark h2, .section-dark h3 { color: var(--sandbar); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }

/* ---------------------------------------------------------------- grid */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- card */
.card {
  background: #fff; border-radius: var(--radius-md);
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--lagoon);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card.tier-budget { border-left-image: none; border-left-color: var(--reef-shallow); }
.card.tier-mid { border-left-color: var(--lagoon-light); }
.card.tier-luxury { border-left-color: var(--atoll-ink); }
.card .tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--driftwood-soft);
}
.card h3 { margin-top: 0; font-size: var(--step-1); }
.card .price {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--step-1);
  color: var(--atoll-ink);
}
.card .price small { font-family: var(--font-body); font-weight: 400; font-size: 0.7em; color: var(--driftwood-soft); }
.card p { margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--driftwood); }
.card ul { margin: 0 0 0.8rem; padding-left: 1.1rem; font-size: 0.92rem; color: var(--driftwood); }
.card ul li { margin-bottom: 0.3rem; }

.article-card { text-decoration: none; color: inherit; display: block; background: #fff;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.article-card img { aspect-ratio: 16/9; object-fit: cover; }
.article-card .body { padding: 1.2rem 1.3rem 1.4rem; }
.article-card .eyebrow { margin-bottom: 0.5rem; }
.article-card h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.article-card p { font-size: 0.92rem; color: var(--driftwood); margin: 0; }

/* --------------------------------------------------------------- table */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 2.2rem; font-size: 0.94rem; }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--sandbar-deep); }
.compare-table thead th {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; background: var(--atoll-ink);
}
.compare-table tbody tr:nth-child(odd) { background: var(--reef-pale); }
.compare-table td.num, .compare-table th.num { font-family: var(--font-mono); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------- article */
.article-shell { max-width: 720px; margin-left: auto; margin-right: auto; margin-inline: auto; padding: 0 1.25rem; }
.article-meta {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--driftwood-soft);
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; letter-spacing: 0.02em;
}
.article-hero {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-md); margin: 1.6rem 0 2.2rem;
}
.article-body h2 { font-size: var(--step-2); }
.article-body h3 { font-size: var(--step-1); }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.55rem; }
.article-body blockquote {
  margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 4px solid var(--coral);
  font-style: italic; color: var(--atoll-ink-soft);
}

.callout {
  background: var(--reef-pale); border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem; margin: 1.8rem 0;
  border-left: 6px solid var(--lagoon);
}
.callout .eyebrow { margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.coral { background: #FCEAE0; border-left-color: var(--coral); }

.disclosure {
  font-size: 0.85rem; color: var(--driftwood-soft);
  background: var(--sandbar-deep); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; margin: 2rem 0;
}

.faq-item { border-top: 1px solid var(--sandbar-deep); padding: 1.3rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--coral); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.8rem; color: var(--driftwood); }

.toc { background: var(--reef-pale); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; margin: 2rem 0; }
.toc .eyebrow { margin-bottom: 0.7rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 1.6rem; }
.toc li { margin-bottom: 0.4rem; font-size: 0.92rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ----------------------------------------------------------- mini-nav pills */
.pill-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.6rem 0; }
.pill {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--reef-pale); color: var(--atoll-ink); text-decoration: none;
  border: 1px solid var(--reef-shallow);
}
.pill:hover { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--atoll-ink); color: var(--reef-pale); padding: 3rem 0 2rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--reef-shallow); margin-bottom: 0.9rem; }
.site-footer a { color: var(--reef-pale); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-bottom {
  max-width: var(--maxw); margin: 2rem auto 0; padding: 1.2rem 1.25rem 0;
  border-top: 1px solid rgba(159,224,210,0.18);
  font-size: 0.8rem; color: var(--driftwood-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
