/* ============================================================
   Wanderwake — Travel Journal & Cruise Tours
   Shared stylesheet for all pages
   ============================================================ */

:root {
  --ink: #0b2239;
  --ink-soft: #3b5368;
  --sea: #145374;
  --sea-dark: #0d3b55;
  --foam: #eef4f6;
  --sand: #f7f1e6;
  --coral: #e8643c;
  --coral-dark: #cf4f29;
  --gold: #c9a45c;
  --white: #ffffff;
  --line: #dbe4e9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 34, 57, 0.12);
  --shadow-sm: 0 4px 14px rgba(11, 34, 57, 0.08);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral); margin-bottom: .8rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600;
  font-size: .98rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  font-family: var(--font-body); line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(232,100,60,.35); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--sea); border-color: var(--sea); }
.btn-outline:hover { background: var(--sea); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; padding: 6px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--coral); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--sea); }
.nav-links .btn { color: #fff; padding: 10px 22px; font-size: .92rem; }
.nav-links .btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative;
  transition: transform .25s ease, background .25s ease; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,26,44,.82) 0%, rgba(8,26,44,.45) 55%, rgba(8,26,44,.15) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 90px 0; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { font-size: 1.25rem; max-width: 52ch; color: rgba(255,255,255,.92); }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.page-hero {
  position: relative; color: #fff; padding: 120px 0 90px; background-size: cover; background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,44,.7), rgba(8,26,44,.55));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero.plain { background: linear-gradient(135deg, var(--ink), var(--sea)); padding: 90px 0 70px; }
.page-hero.plain::before { display: none; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.bg-foam { background: var(--foam); }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .lead { color: rgba(255,255,255,.8); }
.section-head { margin-bottom: 3rem; }
.section-head.center { max-width: 720px; margin-inline: auto; }

/* ---------- Stats strip ---------- */
.stats { background: var(--ink); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat span { font-size: .92rem; color: rgba(255,255,255,.75); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--foam); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--ink);
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .98rem; }
.card-meta { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: .6rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.price small { font-family: var(--font-body); font-size: .78rem; color: var(--ink-soft); font-weight: 400; display: block; }
.link-arrow { font-weight: 600; font-size: .95rem; }
.link-arrow::after { content: " →"; transition: margin .2s ease; }
.link-arrow:hover::after { margin-left: 4px; }

/* Destination overlay tiles */
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex;
  align-items: flex-end; color: #fff; background-size: cover; background-position: center;
  box-shadow: var(--shadow-sm); transition: transform .3s ease;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,26,44,.85)); }
.tile:hover { transform: translateY(-6px); color: #fff; }
.tile div { position: relative; padding: 24px; }
.tile h3 { color: #fff; margin: 0 0 .2em; font-size: 1.6rem; }
.tile p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.checks li { padding-left: 34px; position: relative; margin-bottom: .8rem; color: var(--ink-soft); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}
.icon-box { text-align: left; padding: 30px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.icon-box .ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--foam); display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.icon-box p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote p { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 1.2rem; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--sea); color: #fff; display: grid;
  place-items: center; font-weight: 600; font-family: var(--font-head);
}
.who strong { display: block; font-size: .97rem; line-height: 1.2; }
.who span { font-size: .84rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: .6rem; }

/* ---------- CTA / Newsletter ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sea-dark), var(--sea)); color: #fff; border-radius: 22px;
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 56ch; margin-inline: auto; }
.news-form { display: flex; gap: 10px; max-width: 520px; margin: 1.6rem auto 0; }
.news-form input {
  flex: 1; padding: 15px 22px; border-radius: 999px; border: 0; font-size: 1rem; font-family: inherit; min-width: 0;
}
.form-note { font-size: .85rem; margin-top: .9rem; color: rgba(255,255,255,.7); }
.form-msg { margin-top: 1rem; font-weight: 600; color: var(--gold); min-height: 1.5em; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.4rem; }
.chip {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-family: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); transition: all .2s ease;
}
.chip:hover { border-color: var(--sea); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.hidden { display: none !important; }

/* ---------- Itinerary / table ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 12px; padding-left: 32px; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -41px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--coral);
}
.timeline-item h4 { margin-bottom: .2em; font-size: 1.15rem; }
.timeline-item span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.timeline-item p { color: var(--ink-soft); margin: .2em 0 0; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--foam); }

/* ---------- FAQ ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; }
details summary {
  cursor: pointer; font-weight: 600; padding: 20px 56px 20px 24px; list-style: none; position: relative; font-size: 1.02rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--coral); font-weight: 400; transition: transform .25s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details .answer { padding: 0 24px 22px; color: var(--ink-soft); }
details .answer p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.featured-post .img { min-height: 400px; background-size: cover; background-position: center; }
.featured-post .body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.post-card .card-body details { margin: .4rem 0 0; border: 0; background: transparent; }
.post-card .card-body details summary { padding: 8px 0; color: var(--sea); font-size: .95rem; }
.post-card .card-body details summary::after { content: "→"; font-size: 1rem; right: 0; }
.post-card .card-body details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.post-card .card-body details .answer { padding: 6px 0 4px; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-info .row { display: flex; gap: 16px; margin-bottom: 1.6rem; }
.contact-info .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--foam); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-info strong { display: block; }
.contact-info span, .contact-info a { color: var(--ink-soft); font-size: .97rem; }
.form-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(20,83,116,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.consent input { margin-top: 5px; accent-color: var(--coral); }
#contact-msg { margin-top: 1rem; font-weight: 600; color: var(--sea); }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; background: var(--foam); border-radius: var(--radius); padding: 24px; }
.toc h4 { font-size: 1rem; margin-bottom: .8rem; }
.toc ol { margin: 0; padding-left: 18px; font-size: .92rem; }
.toc li { margin-bottom: .5rem; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--coral); }
.legal-body h2 { font-size: 1.55rem; margin-top: 2.4rem; padding-top: .4rem; scroll-margin-top: 100px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: .4rem; color: var(--ink-soft); }
.legal-body p { color: var(--ink-soft); }
.legal-meta { background: var(--sand); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 8px; margin-bottom: 2rem; font-size: .95rem; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .photo { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, var(--sea), var(--ink)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.6rem; margin: 0 auto 1.2rem; box-shadow: var(--shadow-sm); }
.team-card span { color: var(--coral); font-size: .88rem; font-weight: 600; }
.team-card p { font-size: .94rem; color: var(--ink-soft); margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 72px 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .7rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .87rem;
}
.footer-bottom .links { display: flex; gap: 22px; }
.credit { font-size: .8rem; color: rgba(255,255,255,.5); }
.credit a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .featured-post { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .featured-post .img { min-height: 280px; }
  .featured-post .body { padding: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 4% 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 0; }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .nav-links .btn { text-align: center; display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .news-form { flex-direction: column; }
  .cta-band { padding: 44px 24px; }
  .form-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat strong { font-size: 2.1rem; }
}

/* ---------- Fixes ---------- */
.brand .wm { font-weight: 700; }
.hero, .page-hero { background-color: var(--ink); }
