/* ============================================
   WWFA — World Wide Fishing Adventures
   Structure: the ship's logbook (multi-page, coordinates, entries)
   Theme: the safari-lodge palette (charcoal + brass, Playfair + Inter)
   ============================================ */

:root {
  /* Color tokens — from the lodge theme */
  --ink: #111214;          /* was --ink navy, now charcoal */
  --ink-2: #18191b;        /* alternate dark section */
  --ink-3: #0d0e10;        /* deepest, used behind placeholders */
  --brass: #b89a5a;
  --brass-bright: #cfb373;
  --accent-soft: rgba(184, 154, 90, 0.17);
  --forest: #384736;       /* secondary accent, replaces oxblood */
  --paper: #f7f3ec;
  --paper-line: #e0d8c7;
  --paper-2: #f2ece0;
  --text-light: #f5f2ec;
  --text-light-dim: #b0a89a;
  --text-dark: #262626;
  --text-dark-dim: #5b5652;

  /* Type — from the lodge theme */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow--dark { color: var(--forest); }

/* ---------- Buttons (lodge theme: pill-shaped) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

.btn--brass {
  background: var(--brass);
  color: var(--ink);
}
.btn--brass:hover { background: var(--brass-bright); }

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 242, 236, 0.55);
  color: inherit;
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--text-light); }

.btn--ghost-dark {
  background: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.btn--ghost-dark:hover { background: rgba(0,0,0,0.06); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 18, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 154, 90, 0.16);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}
.brand span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-light-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-dim);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-light);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--text-light-dim);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(184, 154, 90, 0.16);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem var(--edge);
    border-bottom: 1px solid rgba(184, 154, 90, 0.1);
  }
  .nav-links .nav-cta { padding: 1rem var(--edge) 1.2rem; }
}

/* ---------- Chart grid texture + hero image (signature) ---------- */
.chart-bg {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(184, 154, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 154, 90, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.chart-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(184, 154, 90, 0.10), transparent 55%);
  pointer-events: none;
}

/* Homepage hero gets the lodge photo behind the logbook grid */
.hero.chart-bg {
  background-image:
    linear-gradient(rgba(17,18,20,0.82), rgba(17,18,20,0.88)),
    linear-gradient(rgba(184, 154, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 154, 90, 0.08) 1px, transparent 1px),
    url("https://images.pexels.com/photos/2014422/pexels-photo-2014422.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover, 48px 48px, 48px 48px, cover;
  background-position: center, center, center, center;
}

/* ---------- Hero ---------- */
.hero {
  color: var(--text-light);
  padding: 5.5rem 0 6rem;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { display: inline-block; margin-bottom: 1.4rem; }

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  color: var(--text-light);
  margin-bottom: 1.4rem;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-light-dim);
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-coords {
  margin-top: 3.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-light-dim);
}
.hero-coords strong { color: var(--brass-bright); display: block; font-size: 0.9rem; margin-bottom: 2px; }

/* ---------- Credential stamps ---------- */
.stamps {
  background: var(--paper);
  padding: 3rem 0;
  border-bottom: 1px solid var(--paper-line);
}
.stamps .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stamp {
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  position: relative;
}
.stamp h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.stamp p { font-size: 0.92rem; color: var(--text-dark-dim); margin: 0; }

@media (max-width: 780px) {
  .stamps .wrap { grid-template-columns: 1fr; }
}

/* ---------- Section headers ---------- */
.section { padding: 5.5rem 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--text-light); }
.section--ink2 { background: var(--ink-2); color: var(--text-light); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.8rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 1rem; color: var(--text-dark-dim); font-size: 1.05rem; }
.section--ink .section-head p, .section--ink2 .section-head p { color: var(--text-light-dim); }

/* ---------- Logbook cards (destinations) ---------- */
.logbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 860px) {
  .logbook-grid { grid-template-columns: 1fr; }
}

.logbook-card {
  background: var(--ink-3);
  border: 1px solid rgba(184, 154, 90, 0.16);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logbook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(184, 154, 90, 0.14) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1b1c1e, var(--ink-3));
  color: var(--text-light-dim);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(184, 154, 90, 0.16);
}

.logbook-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }

.logbook-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.8rem;
}

.logbook-body h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--text-light); }
.logbook-body p { color: var(--text-light-dim); font-size: 0.98rem; }

.species-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
}
.species-tags span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 154, 90, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--text-light-dim);
}

.logbook-body .btn { margin-top: auto; align-self: flex-start; }

/* On paper background, flip logbook card to a light card (used on destinations.html) */
.section--paper .logbook-card {
  background: #ffffff;
  border-color: var(--paper-line);
}
.section--paper .logbook-body h3 { color: var(--text-dark); }
.section--paper .logbook-body p { color: var(--text-dark-dim); }
.section--paper .logbook-meta { color: var(--forest); }
.section--paper .species-tags span {
  border-color: var(--paper-line);
  color: var(--text-dark-dim);
}

/* ---------- Two-col feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 2rem; }
}
.feature-visual .photo-placeholder { aspect-ratio: 1 / 1; }

.feature h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1.1rem; }
.feature p { color: var(--text-light-dim); font-size: 1.02rem; }
.section--paper .feature p { color: var(--text-dark-dim); }

.feature-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(245, 242, 236, 0.14);
  font-size: 0.95rem;
  color: var(--text-light-dim);
}
.feature-list li:last-child { border-bottom: 1px solid rgba(245, 242, 236, 0.14); }
.feature-list .mark { font-family: var(--font-body); font-weight: 600; color: var(--brass-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--forest), var(--ink));
  color: var(--text-light);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--text-light);
  margin-bottom: 1.4rem;
}
.cta-band .wrap { max-width: 640px; }
.cta-band p { color: rgba(245, 242, 236, 0.85); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b0c0d;
  color: var(--text-light-dim);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(184, 154, 90, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 242, 236, 0.14);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.footer-grid p, .footer-grid a { font-size: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a:hover { color: var(--text-light); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Page header (inner pages) ---------- */
.page-header { color: var(--text-light); padding: 3.6rem 0 3.2rem; }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.6rem 0 0.8rem; }
.page-header p { color: var(--text-light-dim); max-width: 560px; margin: 0; }

/* ---------- Form ---------- */
.enquiry-form { display: grid; gap: 1.3rem; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.85rem; color: var(--text-dark-dim); }

/* ---------- Contact info cards ---------- */
.contact-info { display: grid; gap: 1.5rem; }
.contact-info .card {
  border: 1px solid rgba(184, 154, 90, 0.18) !important;
  border-radius: 10px !important;
  background: var(--ink) !important;
  padding: 1.4rem 1.5rem;
}
.contact-info h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.contact-info p { color: var(--text-light-dim); margin: 0; }

/* ---------- Tier cards (accommodation framework) ---------- */
.subdestination {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--paper-line);
}
.subdestination:first-of-type { margin-top: 2.5rem; padding-top: 0; border-top: none; }

.subdestination-head { margin-bottom: 1.75rem; }
.subdestination-head h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.subdestination-head p {
  color: var(--text-dark-dim);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0;
}
.section--ink2 .subdestination-head p,
.section--ink .subdestination-head p { color: var(--text-light-dim); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.section--ink2 .tier-card,
.section--ink .tier-card {
  background: var(--ink-3);
  border-color: rgba(184, 154, 90, 0.18);
}

.tier-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.tier-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}
.section--ink2 .tier-card h4,
.section--ink .tier-card h4 { color: var(--text-light); }

.tier-property {
  font-size: 0.85rem;
  color: var(--text-dark-dim);
  margin-bottom: 0.9rem;
}
.section--ink2 .tier-property,
.section--ink .tier-property { color: var(--text-light-dim); }

.tier-card p.tier-desc {
  font-size: 0.92rem;
  color: var(--text-dark-dim);
  flex: 1;
}
.section--ink2 .tier-card p.tier-desc,
.section--ink .tier-card p.tier-desc { color: var(--text-light-dim); }

.tier-card .btn {
  margin-top: 1rem;
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
}

/* ---------- About page specifics ---------- */
.timeline { display: grid; gap: 0; max-width: 720px; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--paper-line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--paper-line); }
.timeline-item .stage {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timeline-item h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-item p { color: var(--text-dark-dim); margin: 0; font-size: 0.95rem; }
