/* ==========================================================================
   Southampton Lifeboat — main stylesheet
   Structure and palette mirrored from our partner charity, Hamble Lifeboat
   (hamblelifeboat.org.uk): white top-bar with logo + horizontal nav,
   full-bleed image banner hero, image-tile news/story grid, split
   "achieved" band, two-tone footer boxes above a multi-column footer.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Lato:wght@300;400;700&display=swap");

:root {
  --navy: #0c3d5d;
  --navy-dark: #082a41;
  --blue: #1982d1;
  --blue-dark: #14679e;
  --orange: #fd9f31;
  --orange-dark: #cd7e2b;
  --green: #42b370;
  --text: #3d3d3d;
  --text-light: #6b6b6b;
  --bg-light: #f5f8fa;
  --white: #ffffff;
  --border: #e1e8ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.grid-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8em 1.7em;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-donate {
  background: var(--orange);
  color: var(--navy-dark);
}
.btn-donate:hover {
  background: var(--orange-dark);
  color: var(--white);
}

/* ---------- Top bar / header ---------- */
/* Mirrors Hamble's .top-bar: logo left, horizontal nav right, single row */

.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
}

.logo-placeholder {
  width: 180px;
  height: 60px;
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--navy);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.main-nav a.is-active {
  color: var(--blue);
}

.main-nav .nav-donate a {
  background: var(--orange);
  color: var(--navy-dark);
  padding: 9px 18px;
  border-radius: 4px;
}

.main-nav .nav-donate a:hover {
  background: var(--orange-dark);
  color: var(--white);
}

/* ---------- Hero banner ---------- */
/* Mirrors Hamble's full-bleed .first_post_image: full-width background
   image with an overlaid title / teaser / "Read More" panel */

.hero-banner {
  position: relative;
}

.hero-image-placeholder {
  min-height: 420px;
  background: var(--bg-light);
  border-bottom: 2px dashed var(--border);
  display: flex;
  align-items: flex-end;
}

.hero-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 20px;
}

.hero-text h1 {
  white-space: nowrap;
}

.hero-text h1 {
  margin-bottom: 0.3em;
}

.hero-text .placeholder-note {
  color: var(--text-light);
  font-size: 0.85rem;
}

.hero-read-more {
  text-align: right;
}

/* ---------- Hero with a real photo (overrides the placeholder look) ---------- */

.hero-photo {
  min-height: 760px;
  border-bottom: none;
  background-size: cover;
  background-position: center;
}

.hero-photo .hero-text h1,
.hero-photo .hero-read-more h3 {
  color: var(--white);
}

.hero-photo .hero-text .placeholder-note {
  color: #dfeaf3;
}

.page-hero-photo {
  min-height: 440px;
  background-size: cover;
  background-position: center;
}

/* ---------- Section titles ---------- */

.section-title {
  padding: 40px 0 10px;
}

/* ---------- Image tile (news / stories) ---------- */
/* Mirrors Hamble's .second_post / .third_post / .post_image tiles:
   background-image cover, dark overlay, title pinned to the tile */

.tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0 50px;
}

.tile {
  min-height: 260px;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--text-light);
}

.tile h3 {
  margin: 0;
  color: var(--navy);
}

.go-to-more {
  text-align: center;
  padding-bottom: 40px;
}

/* ---------- Achieved band (split layout) ---------- */
/* Mirrors Hamble's .together_achieved: text column + stats/progress column */

.achieved-band {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
}

.achieved-band h2 {
  color: var(--white);
}

.achieved-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.achieved-grid .placeholder-note {
  color: #b9cddd;
  font-size: 0.85rem;
}

.progress-placeholder {
  min-height: 140px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9cddd;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Spotlight section (image + content, 2 col) ---------- */

.spotlight {
  padding: 50px 0;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.spotlight-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 10px;
}

/* ---------- Supporters / logo strip ---------- */

.supporters-strip {
  padding: 40px 0 60px;
}

.supporters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.logo-tile {
  height: 80px;
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ---------- Generic page banner (inner pages) ---------- */

.page-banner {
  background: var(--bg-light);
  border-bottom: 2px dashed var(--border);
  padding: 50px 0;
  text-align: center;
}

/* ---------- Content section (inner pages) ---------- */

.content-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.image-placeholder {
  min-height: 220px;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Icon box (icon + heading + text, paired with a text block) ---------- */

.icon-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.icon-box-content h4 {
  margin-bottom: 0.2em;
}

.icon-box-content p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---------- Small heading divider ---------- */

.divider {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 16px;
}

/* ---------- Two column block, one pane on a solid colour ---------- */

.two-col-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.block-pane {
  padding: 50px 40px;
}

.block-pane.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.block-pane.bg-navy h1,
.block-pane.bg-navy h2,
.block-pane.bg-navy h3,
.block-pane.bg-navy h4 {
  color: var(--white);
}

.block-pane.bg-light {
  background: var(--bg-light);
}

/* ---------- Checklist (icon-list) ---------- */

.icon-checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.icon-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.icon-checklist i {
  color: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Timeline strip (year tabs) ---------- */

.timeline-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.timeline-strip span {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
}

.timeline-content {
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 24px;
  color: var(--text-light);
}

/* ---------- Contact icon row (three columns: phone / address / email) ---------- */

.contact-icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 44px 0;
  background: var(--bg-light);
  text-align: center;
}

.contact-icon-row .icon-circle {
  margin: 0 auto 14px;
}

/* ---------- Map placeholder ---------- */

.map-placeholder {
  min-height: 320px;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---------- Checkbox group ---------- */

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-family: "Lato", Arial, sans-serif;
  color: var(--text);
  text-transform: none;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.checkbox-group input {
  width: auto;
}

/* ---------- Forms ---------- */

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: "Lato", Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* ---------- Footer ---------- */
/* Mirrors Hamble's footer: two-tone boxes (newsletter / donate) above a
   multi-column link footer with a "connect with us" + social + donate button,
   then a centered bottom bar */

.footer-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-box {
  padding: 44px 40px;
  background: var(--bg-light);
}

.footer-box.footer-box-alt {
  background: var(--orange);
  color: var(--navy-dark);
}

.footer-box.footer-box-alt h1,
.footer-box.footer-box-alt h2 {
  color: var(--navy-dark);
}

.footer-box h1, .footer-box h2 {
  font-size: 1.4rem;
}

.newsletter-placeholder {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-placeholder input {
  flex: 1;
}

.site-footer {
  background: var(--navy-dark);
  color: #c7d8e5;
  padding: 40px 0 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}

.footer-links h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1em;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #c7d8e5;
}

.footer-links a:hover {
  color: var(--orange);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.social-icons a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-dark);
  text-decoration: none;
}

.btn-donate-footer {
  display: inline-block;
  background: var(--orange);
  color: var(--navy-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 4px;
}

.btn-donate-footer:hover {
  background: var(--orange-dark);
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #8fa8bb;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .tile-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .supporters-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .achieved-grid,
  .spotlight-grid,
  .content-grid,
  .two-col-block,
  .contact-icon-row {
    grid-template-columns: 1fr;
  }
  .footer-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .top-bar-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
  }

  .hero-panel {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-text h1 {
    white-space: normal;
  }

  .hero-read-more {
    text-align: left;
  }

  .tile-row {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .block-pane {
    padding: 34px 24px;
  }

  .hero-photo {
    min-height: 480px;
  }

  .page-hero-photo {
    min-height: 260px;
  }

  .content-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .footer-box {
    padding: 32px 20px;
  }

  .nav-toggle {
    padding: 10px;
  }

  .nav-toggle span {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
  .supporters-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo {
    min-height: 400px;
  }

  .page-hero-photo {
    min-height: 220px;
  }

  h1 { font-size: 1.5rem; }
}
