/* ==========================================================================
   Isle of Wight School Trip 2026 — stylesheet
   Layout inspired by visitisleofwight.co.uk (image-led, card-based).
   Colour palette from Scargill C of E Primary: deep indigo navy + gold.
   ========================================================================== */

:root {
  --navy: #201745;          /* primary brand */
  --navy-deep: #171131;     /* darker shade */
  --blue: #032b60;          /* secondary deep blue */
  --gold: #eec102;          /* accent */
  --gold-dark: #bf9b02;
  --ink: #2b2a33;
  --ink-soft: #5c5a6b;
  --bg: #f8f9fa;            /* page background */
  --surface: #ffffff;
  --line: #e6e6ea;
  --shadow: 0 6px 20px rgba(32, 23, 69, 0.12);
  --shadow-lg: 0 16px 40px rgba(32, 23, 69, 0.22);
  --radius: 16px;
  --maxw: 1400px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --head: "Georgia", "Times New Roman", serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 3rem);
}

/* ---------- Site header / navigation ---------------------------------- */
.site-header {
  background: var(--navy);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.4px;
}
.brand span { color: var(--gold); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.main-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.main-nav a.active { background: var(--gold); color: var(--navy); }

/* ---------- Home hero (full-bleed image) ------------------------------ */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 5rem 1.25rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,17,49,0.45) 0%, rgba(23,17,49,0.78) 100%);
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--head);
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero p {
  margin: 0 auto;
  max-width: 660px;
  font-size: 1.15rem;
  opacity: 0.96;
}
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Page hero (day pages, full-bleed image) ------------------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 4rem 1.25rem 3.25rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,17,49,0.35) 0%, rgba(23,17,49,0.8) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }

.page-hero .day-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.25rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
}
.page-hero h1 {
  font-family: var(--head);
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* ---------- Sections --------------------------------------------------- */
section { padding: 3rem 0; }

.section-title {
  font-family: var(--head);
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title::before {
  content: "";
  width: 10px;
  height: 1.5rem;
  background: var(--gold);
  border-radius: 4px;
  display: inline-block;
}

.prose { max-width: none; font-size: 1.06rem; color: var(--ink); }
.prose p { margin: 0 0 1rem; }

.placeholder {
  background: repeating-linear-gradient(
    45deg, #fff7e6, #fff7e6 12px, #fdeec2 12px, #fdeec2 24px);
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #8a6d0a;
  font-style: italic;
}

/* ---------- Sea shanty ------------------------------------------------- */
.shanty {
  background: var(--surface);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.85rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.95;
}
.shanty .verse { margin: 0 0 1.1rem; }
.shanty .verse:last-child { margin-bottom: 0; }
.shanty .chorus {
  color: var(--navy);
  font-style: italic;
  font-weight: 700;
  padding-left: 0.95rem;
  border-left: 3px dotted var(--gold-dark);
  margin: 0 0 1.1rem;
}
.shanty-intro { color: var(--ink-soft); font-style: italic; margin: 0 0 1rem; }

/* ---------- What we did (shanty, full width, two columns) ------------- */
.poem-col { max-width: none; }

/* Flow the verses into two panels on wider screens so the words follow on */
@media (min-width: 720px) {
  .shanty { column-count: 2; column-gap: 3rem; }
}
.shanty .verse, .shanty .chorus { break-inside: avoid; }
/* Keep the first line snug to the top of each column */
.shanty > :first-child { margin-top: 0; }

/* ---------- Photo gallery (full width, masonry) ----------------------- */
.collage { column-count: 3; column-gap: 0.9rem; }
.collage figure {
  margin: 0 0 0.9rem;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.collage img { width: 100%; display: block; transition: transform 0.3s ease; }
.collage figure:hover img { transform: scale(1.06); }

/* Wide screens: four photos across to fill the extra room */
@media (min-width: 1200px) { .collage { column-count: 4; } }
/* Tablet */
@media (max-width: 760px)  { .collage { column-count: 2; } }
/* Phone */
@media (max-width: 420px)  { .collage { column-count: 1; } }

/* ---------- Day cards (home page, image-forward) ---------------------- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.day-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #fff;
  display: block;
  min-height: 340px;
  background: var(--navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.day-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.day-card .thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.day-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.day-card:hover .thumb img { transform: scale(1.08); }
.day-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,17,49,0.10) 30%, rgba(23,17,49,0.88) 100%);
}

.day-card .card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.4rem 1.5rem;
  z-index: 1;
}
.day-card .card-day {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}
.day-card h3 {
  font-family: var(--head);
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.day-card p { margin: 0; color: rgba(255,255,255,0.9); font-size: 0.98rem; }

/* ---------- "Something Interesting" callout --------------------------- */
.interesting {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.interesting::after {
  content: "\2691";
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.12;
}
.interesting .label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.interesting h3 { font-family: var(--head); margin: 0 0 0.6rem; font-size: 1.55rem; }
.interesting p { margin: 0; font-size: 1.06rem; opacity: 0.97; max-width: none; }
.interesting em { color: var(--gold); font-style: italic; }
.interesting .label, .interesting h3, .interesting p { position: relative; z-index: 1; }

/* ---------- Prev / next day navigation -------------------------------- */
.day-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.day-pager a {
  text-decoration: none;
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.day-pager a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.day-pager .spacer { flex: 1; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 1rem;
  border-top: 4px solid var(--gold);
}
.site-footer a { color: var(--gold); }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 900px) {
  section { padding: 2.25rem 0; }
}

@media (max-width: 600px) {
  .site-header .container { justify-content: center; }
  .main-nav { justify-content: center; gap: 0.15rem; }
  .main-nav a { padding: 0.35rem 0.7rem; font-size: 0.9rem; }
  .hero { min-height: 60vh; padding: 3.25rem 1.1rem; }
  section { padding: 1.9rem 0; }
  .section-title { font-size: 1.5rem; }
  .shanty { padding: 1.25rem 1.35rem; }
  .interesting { padding: 1.5rem; }
  .day-pager a { padding: 0.6rem 1rem; font-size: 0.95rem; }
}
