/* ============================================================
   Scituate Seawalls — Cedar Point Association
   Palette: harbor navy / storm slate / signal amber / sand
   ============================================================ */

:root {
  --ink:      #08202e;
  --ink-2:    #0d3247;
  --ink-3:    #14455f;
  --sea:      #1c7a8c;
  --sea-soft: #d9e9ec;
  --sand:     #f6f2e9;
  --sand-2:   #efe8da;
  --amber:    #d9822b;
  --amber-lt: #f0a94a;
  --paper:    #ffffff;
  --body:     #3c4a52;
  --rule:     rgba(8, 32, 46, 0.12);
  --shadow:   0 18px 50px rgba(8, 32, 46, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

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

h1, h2, h3, h4, .display-font {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }

.section { padding: 6.5rem 0; }
@media (max-width: 767px) { .section { padding: 4rem 0; } }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 1rem;
  display: block;
}
.eyebrow-light { color: var(--amber-lt); }

.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.lede { font-size: 1.1875rem; line-height: 1.8; color: #4b5c66; }

.rule-mark {
  width: 62px; height: 4px; border-radius: 2px;
  background: var(--amber);
  margin-bottom: 1.75rem;
}
.rule-mark.center { margin-left: auto; margin-right: auto; }

/* ---------------- Buttons ---------------- */
.btn-wf {
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  padding: 0.95rem 2rem;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  text-transform: uppercase;
}
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #b9691c; color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.75); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); color: #fff; }

/* ---------------- Navbar ---------------- */
.navbar-wf {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1rem 0;
  background: rgba(8, 32, 46, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar-wf.scrolled {
  background: var(--ink);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  padding: 0.5rem 0;
}
.navbar-brand-wf { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-chip {
  background: #fdfbf6;
  border-radius: 6px;
  padding: 4px 6px;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.brand-chip img { height: 34px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-sub {
  color: rgba(255,255,255,0.72);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.navbar-wf .nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.855rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}
.navbar-wf .nav-link:hover { color: var(--amber-lt); }
.nav-cta {
  background: var(--amber);
  color: #fff !important;
  border-radius: 2px;
  padding: 0.55rem 1.1rem !important;
  margin-left: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
}
.nav-cta:hover { background: #b9691c; color: #fff !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.4); padding: 0.35rem 0.55rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--ink);
    margin-top: 0.75rem;
    padding: 0.75rem 1rem 1rem;
    border-radius: 4px;
  }
  .nav-cta { display: inline-block; margin: 0.6rem 0 0; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('img/hero.webp') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 3rem 2.25rem;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
}
.hero-eyebrow {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.hero-title {
  color: #fff;
  font-size: clamp(2.15rem, 7.4vw, 4.6rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}
.hero-subtitle {
  color: #fff;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  max-width: 640px;
  margin: 0 auto 1rem;
  font-weight: 400;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}
.hero-tagline {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 1.4rem; z-index: 2; opacity: 0.85;
  animation: bob 2.4s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(0,0,0,0.9);
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------- Army Corps alert band ---------------- */
.alert-band { background: var(--ink); color: #fff; padding: 2.25rem 0; }
.alert-band .corps-logo {
  background: #fff; border-radius: 8px; padding: 10px;
  width: 88px; height: 88px; display: flex; align-items: center; justify-content: center;
}
.alert-band .corps-logo img { max-width: 100%; height: auto; }
.alert-band p { margin: 0; color: rgba(255,255,255,0.92); font-size: 1.06rem; }
.alert-band strong { color: var(--amber-lt); }

/* ---------------- Cards / images ---------------- */
.wall-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wall-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.wall-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.wall-card .body { padding: 1.6rem 1.5rem 1.85rem; }
.wall-card h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }
.wall-card p { margin: 0; font-size: 0.98rem; }

/* ---------------- 2013 Blizzard archive callout ---------------- */
.archive-callout {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 4px solid var(--amber);
  border-radius: 4px;
  padding: 2.4rem 2.2rem;
}
.archive-title { color: #fff; font-size: 1.6rem; margin-bottom: 0.85rem; }
.archive-callout p { color: rgba(255,255,255,0.82); font-size: 1rem; }
.archive-thumb {
  display: block; border-radius: 3px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
}
.archive-thumb img {
  width: 100%; height: 165px; object-fit: cover; display: block;
  transition: transform 0.4s ease, opacity 0.25s ease;
}
.archive-thumb:hover img { transform: scale(1.06); opacity: 0.9; }
@media (max-width: 767px) {
  .archive-callout { padding: 1.8rem 1.35rem; }
  .archive-thumb img { height: 110px; }
}

/* ---------------- Video ---------------- */
.video-band {
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 70%);
  padding: 5.5rem 0;
}
.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.45);
  border: 5px solid #fff;
  background: #000;
}
.video-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
@media (max-width: 767px) { .video-band { padding: 3.5rem 0; } .video-frame { border-width: 3px; } }

/* ---------------- Stats band (masonry courses) ---------------- */
.stats-band {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 64px),
    linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 100%);
  color: #fff;
  padding: 4.25rem 0;
}
.stat { text-align: center; padding: 1rem 0.5rem; }
.stat i { color: var(--amber-lt); font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }
.stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  color: #fff; line-height: 1; font-weight: 600;
}
.stat .lbl {
  display: block; margin-top: 0.6rem;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
@media (min-width: 768px) {
  .stat { border-right: 1px solid rgba(255,255,255,0.14); }
  .stats-row > div:last-child .stat { border-right: none; }
}

/* ---------------- Storms ---------------- */
.storms { background: var(--ink); color: rgba(255,255,255,0.85); }
.storms h2 { color: #fff; }
.storm-shot { border-radius: 4px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,0.4); }
.storm-shot img { width: 100%; height: 320px; object-fit: cover; display: block; }
.storm-note {
  border-left: 3px solid var(--amber);
  padding-left: 1.35rem;
  font-size: 1.06rem;
  color: rgba(255,255,255,0.88);
}

/* ---------------- Reasons bento ---------------- */
.reasons { background: var(--sand); }
.reason-card {
  background: #fdfbf6;
  border: 1px solid rgba(8,32,46,0.09);
  border-radius: 4px;
  padding: 2.1rem 1.9rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.reason-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(8,32,46,0.18); }
.sketch {
  height: 72px; width: 108px;
  object-fit: contain;
  object-position: left bottom;
  mix-blend-mode: multiply;
  margin-bottom: 1.1rem;
  display: block;
}
.reason-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.reason-card p { font-size: 0.99rem; margin: 0; }
.reason-quote {
  background: linear-gradient(150deg, var(--ink-3) 0%, var(--ink) 100%);
  color: #fff;
  border-radius: 4px;
  padding: 2.3rem 2rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.reason-quote i { color: var(--amber-lt); font-size: 1.8rem; margin-bottom: 1rem; }
.reason-quote p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.42;
  color: #fff;
  margin: 0 0 0.9rem;
}
.reason-quote span { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---------------- Scope ---------------- */
.map-plate {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.map-plate img { width: 100%; height: auto; display: block; }
.map-caption {
  font-size: 0.82rem; letter-spacing: 0.06em; color: #6b7a83;
  padding: 0.85rem 1.1rem; border-top: 1px solid var(--rule); background: #fbfaf7; margin: 0;
}
.aerial { border-radius: 4px; overflow: hidden; box-shadow: 0 12px 32px rgba(8,32,46,0.16); }
.aerial img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.aerial:hover img { transform: scale(1.05); }

/* ---------------- News ---------------- */
.news { background: var(--sea-soft); }
.news-entry {
  background: #fff;
  border-radius: 4px;
  border-top: 4px solid var(--amber);
  padding: 2rem 1.9rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(8,32,46,0.08);
}
.news-date {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sea); font-weight: 600; display: block; margin-bottom: 0.7rem;
}
.news-entry h3 { font-size: 1.22rem; margin-bottom: 0.75rem; }
.news-entry p { font-size: 0.99rem; }
.news-entry p:last-child { margin-bottom: 0; }
.news-shot { border-radius: 4px; overflow: hidden; box-shadow: 0 12px 30px rgba(8,32,46,0.16); }
.news-shot img { width: 100%; height: 230px; object-fit: cover; display: block; }

.official {
  background: #fff; border: 1px solid rgba(8,32,46,0.1); border-radius: 4px;
  padding: 1.35rem 1.4rem; height: 100%;
  display: flex; gap: 0.9rem; align-items: flex-start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.official:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.official i { color: var(--sea); font-size: 1.3rem; line-height: 1.4; }
.official .nm { font-weight: 600; color: var(--ink); display: block; font-size: 1rem; }
.official .rl { font-size: 0.85rem; color: #6b7a83; display: block; }
.official a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

/* ---------------- Location ---------------- */
.location { background: var(--ink); color: rgba(255,255,255,0.84); }
.location h2, .location h3 { color: #fff; }
.info-line { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.6rem; }
.info-line i { color: var(--amber-lt); font-size: 1.15rem; margin-top: 0.25rem; }
.info-line .k {
  display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 0.2rem;
}
.info-line .v { color: #fff; font-size: 1.02rem; }
.map-frame {
  border-radius: 4px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.14); line-height: 0;
}
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(18%); }

/* ---------------- Footer ---------------- */
.footer { background: #061a25; color: rgba(255,255,255,0.6); padding: 3.5rem 0 2rem; }
.footer-mark {
  font-family: 'Fraunces', Georgia, serif;
  color: #fff; font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem;
}
.footer-mark span { color: var(--amber-lt); }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.92rem; }
.footer a:hover { color: var(--amber-lt); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: 0.85rem;
}
.wf-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75) !important;
  transition: all 0.22s ease;
}
.wf-badge:hover { background: var(--amber); border-color: var(--amber); color: #fff !important; }
.wf-badge i { color: var(--amber-lt); }
.wf-badge:hover i { color: #fff; }

@media (min-width: 768px) {
  .stat .lbl { min-height: 2.6em; }
}

@media (max-width: 575px) {
  .hero-content { padding: 2rem 1.1rem; }
  .hero-eyebrow { font-size: 0.63rem; letter-spacing: 0.14em; }
  .hero-subtitle { font-size: 1rem; }
  .hero-tagline { font-size: 0.84rem; }
  .hero-actions .btn-wf { padding: 0.85rem 1.35rem; font-size: 0.82rem; }
  .wall-card img, .storm-shot img, .aerial img, .news-shot img { height: 210px; }
  .brand-name { font-size: 1.04rem; }
  .brand-sub { font-size: 0.56rem; letter-spacing: 0.12em; }
  .brand-chip img { height: 28px; }
  .reason-card, .reason-quote { padding: 1.7rem 1.35rem; }
  .footer-links { flex-direction: column; gap: 0.55rem; }
}
