/* ============================================================
   Hensley · Hawai‘i 2027 — shared design system
   Sleek travel-guide styling. Used by every page.
   ============================================================ */
:root {
  --ink: #0c2a31;
  --ocean-deep: #083f4f;
  --ocean: #0e7488;
  --lagoon: #18aec0;
  --lagoon-light: #6fd6e0;
  --palm: #1f8a5b;
  --palm-deep: #15613f;
  --sunset: #ff7a4d;
  --sunset-deep: #ef5d39;
  --sand: #e3a73f;
  --sand-light: #f7d588;
  --paper: #fbf7ef;
  --paper-2: #ffffff;
  --cream: #f2ebdd;
  --text: #28414a;
  --muted: #607a85;
  --border: #e7decd;
  --border-soft: #f0e8da;
  --shadow-sm: 0 2px 6px rgba(8, 42, 49, 0.06);
  --shadow-md: 0 10px 30px rgba(8, 42, 49, 0.10);
  --shadow-lg: 0 28px 64px rgba(8, 42, 49, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.preload body { visibility: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.08rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink); }
p { margin: 0 0 0.9em; }
a { color: var(--ocean); text-decoration: none; transition: color .15s; }
a:hover { color: var(--sunset-deep); text-decoration: underline; }
/* subtle "look it up" link for named places (menus/photos/info) — calm in tables/headings */
.maplink { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(14,116,136,0.5); transition: color .15s, border-color .15s; }
.maplink:hover { color: var(--ocean); border-bottom: 1px solid var(--sunset-deep); text-decoration: none; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1em 1.2em; }
li { margin-bottom: 0.35em; }
img { max-width: 100%; display: block; }
small, .small { font-size: 0.84rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 58px 0; }
.section.tight { padding: 36px 0; }
.section-alt { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem; font-weight: 700; color: var(--ocean); margin-bottom: 0.5rem; }
.lead { font-size: 1.12rem; color: #3c5560; }
.divider { height: 1px; background: var(--border); border: 0; margin: 40px 0; }

/* ---------- header / nav (injected by app.js) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.18rem; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #3a525c; padding: 7px 11px; border-radius: 999px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.nav-links a.active { background: var(--ocean); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--border); padding: 8px 14px 16px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .25s ease; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; border-radius: 10px; font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #eafafa; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,122,77,0.45), transparent 60%),
    linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 48%, var(--lagoon) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C200,75 350,5 600,30 C850,55 1000,5 1200,35 L1200,70 L0,70 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center/cover;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C200,75 350,5 600,30 C850,55 1000,5 1200,35 L1200,70 L0,70 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center/cover;
}
.hero-inner { padding: 76px 0 96px; position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 22px rgba(0,0,0,0.18); }
.hero .lead { color: #e4f6f7; font-size: 1.18rem; max-width: 56ch; margin-top: 0.6rem; }
.hero .kicker { color: var(--sand-light); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-pill { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 500; }
.page-hero { padding: 52px 0 30px; }
.page-hero .eyebrow { color: var(--sand); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sunset); color: #fff; box-shadow: 0 8px 22px rgba(239,93,57,0.32); }
.btn-primary:hover { background: var(--sunset-deep); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-outline { background: #fff; color: var(--ocean); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ocean); color: var(--ocean); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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

.card {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card .icon { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; display: block; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; color: inherit; }

/* nav cards (home "start here") */
.navcard { position: relative; overflow: hidden; }
.navcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--lagoon), var(--sunset)); }
.navcard .arrow { color: var(--sunset-deep); font-weight: 700; margin-top: 10px; display: inline-block; }

/* ---------- callouts ---------- */
.callout { border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; border-left: 5px solid var(--ocean); background: #eef7f9; }
.callout h4 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
.callout.celiac { border-left-color: var(--palm); background: #eef8f1; }
.callout.safety { border-left-color: var(--sunset); background: #fff2ec; }
.callout.tip { border-left-color: var(--sand); background: #fdf6e6; }
.callout.warn { border-left-color: #d9534f; background: #fdeeee; }
.callout .tag { font-weight: 700; }

/* ---------- badges / pills ---------- */
.badge { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--ocean-deep); margin-right: 6px; }
.badge.green { background: #e0f3e7; color: var(--palm-deep); }
.badge.coral { background: #ffe7dd; color: var(--sunset-deep); }
.badge.sand { background: #fbeecb; color: #8a6a1e; }
.badge.blue { background: #e2f1f5; color: var(--ocean-deep); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 22px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
thead th { background: var(--ocean-deep); color: #fff; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: #faf6ee; }
tbody tr:hover { background: #f1f7f8; }
td strong { color: var(--ink); }

/* compact key/value list */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 18px; margin: 16px 0; }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* option comparison (land vs cruise) */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }
.option { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.option .option-head { padding: 22px 24px; color: #fff; }
.option.land .option-head { background: linear-gradient(135deg, var(--palm-deep), var(--palm)); }
.option.cruise .option-head { background: linear-gradient(135deg, var(--ocean-deep), var(--lagoon)); }
.option .option-head h3 { color: #fff; }
.option .option-body { padding: 20px 24px; }
.option .price { font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.pros li::marker { content: "✓  "; color: var(--palm); }
.cons li::marker { content: "—  "; color: var(--sunset-deep); }

/* anchor sub-nav (within long pages) */
.subnav { position: sticky; top: 64px; z-index: 100; background: rgba(251,247,239,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.subnav a { font-size: 0.86rem; font-weight: 600; color: var(--ocean-deep); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.subnav a:hover { background: var(--cream); text-decoration: none; }

/* island/anchor blocks */
.anchor-block { scroll-margin-top: 120px; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr);} }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat .n { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--ocean); font-weight: 700; }
.stat .l { font-size: 0.82rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #bcd3d8; padding: 40px 0 30px; margin-top: 40px; }
.site-footer a { color: #cfeef2; }
.site-footer .foot-grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: center; }
.site-footer .brand { color: #fff; }
.site-footer .small { color: #8fb0b7; }

/* ---------- login gate (injected) ---------- */
#gate {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 75% 0%, rgba(255,122,77,0.5), transparent 60%),
    linear-gradient(140deg, var(--ocean-deep), var(--ocean) 55%, var(--lagoon));
}
#gate.hidden { display: none; }
.gate-card { background: rgba(255,255,255,0.97); border-radius: 20px; padding: 38px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.gate-card .mark { font-size: 2.4rem; }
.gate-card h2 { margin: 8px 0 4px; }
.gate-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.3rem; }
.gate-card input { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px; font-size: 1rem; font-family: inherit; }
.gate-card input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(14,116,136,0.15); }
.gate-card button { width: 100%; margin-top: 12px; background: var(--sunset); color: #fff; border: 0; padding: 13px; border-radius: 11px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.gate-card button:hover { background: var(--sunset-deep); }
.gate-error { color: #c0392b; font-size: 0.85rem; margin-top: 0.7rem; min-height: 1.2em; }
.reset-link { display: inline-block; margin-top: 18px; font-size: 0.8rem; color: var(--muted); cursor: pointer; }

/* ---------- media: photos, galleries & link chips ---------- */
figure.photo { margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; background: var(--cream); box-shadow: var(--shadow-sm); }
figure.photo img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--cream); }
figure.photo.banner img { aspect-ratio: 16 / 7; }
figure.photo.wide img { aspect-ratio: 3 / 2; }
figure.photo.square img { aspect-ratio: 1 / 1; }
figure.photo figcaption { font-size: 0.7rem; color: var(--muted); padding: 5px 10px 6px; background: var(--paper-2); line-height: 1.35; }
figure.photo figcaption b { color: var(--text); font-weight: 600; }
figure.photo figcaption a { color: var(--muted); text-decoration: underline; }
figure.photo figcaption a:hover { color: var(--ocean); }
.photo-cap { font-size: 0.82rem; color: var(--muted); margin: 2px 0 0; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-grid figure.photo img { aspect-ratio: 4 / 3; }
@media (max-width: 760px){ .photo-grid, .photo-grid.cols-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 440px){ .photo-grid, .photo-grid.cols-2, .photo-grid.cols-4 { grid-template-columns: 1fr;} }

/* media link chips (Photos · Map · Video · Official) */
.media-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 2px; align-items: center; }
.media-links .ml-lead { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 2px; }
.media-links a {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: var(--cream); color: var(--ocean-deep);
  border: 1px solid var(--border); white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.media-links a:hover { background: #fff; border-color: var(--lagoon); color: var(--ocean); text-decoration: none; transform: translateY(-1px); }
.media-links a.vid { background: #fff2ec; color: var(--sunset-deep); border-color: #ffd9c9; }
.media-links a.vid:hover { border-color: var(--sunset); color: var(--sunset-deep); }
.media-links a.off { background: #e8f3f6; }
.media-links.sm a { font-size: 0.74rem; padding: 3px 9px; }

/* utilities */
.mt0{margin-top:0}.mb0{margin-bottom:0}.mt1{margin-top:1rem}.mt2{margin-top:2rem}
.pill-row{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.note{font-size:0.85rem;color:var(--muted);font-style:italic}
