/* =====================================================================
   Paddlers Cove - Landing Page
   ===================================================================== */
:root {
  --navy: #123a63;
  --navy-deep: #0e2d4f;
  --navy-footer: #0f2e52;
  --teal: #1c6b8c;
  --water: #3f88a8;
  --gold: #c38d2c;
  --gold-soft: #e3bb67;
  --green: #4d6b2c;
  --green-btn: #4f6f2a;
  --cream: #f7f5f0;
  --paper: #ffffff;
  --line: #e4e1d9;
  --text: #2a333d;
  --muted: #5d6873;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --header-h: 66px;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(14, 45, 79, .16), 0 2px 6px rgba(14, 45, 79, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 1px 0 rgba(14, 45, 79, .07);
}
.header-inner {
  height: 100%; max-width: 1600px; margin: 0 auto; padding: 0 44px;
  display: flex; align-items: center; justify-content: flex-end;
}
.nav { display: flex; gap: clamp(18px, 3vw, 46px); }
.nav a {
  position: relative; font-weight: 600; font-size: 16px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: -8px; height: 3px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 28px; cursor: pointer; padding: 6px; }

/* ---------------------------------------------------------------------
   Logo badge - overlaps header and hero, like the mockup
   --------------------------------------------------------------------- */
.badge {
  position: absolute; z-index: 45;
  left: clamp(16px, 3.6vw, 56px); top: 14px;
  width: clamp(150px, 26vw, 400px);
  filter: drop-shadow(0 8px 20px rgba(14, 45, 79, .28));
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 30% 44% at 46% 27%, rgba(255, 251, 244, .9) 0%, rgba(255, 251, 244, .72) 48%, rgba(255, 251, 244, 0) 100%),
    linear-gradient(180deg, rgba(247, 245, 240, 0) 50%, rgba(247, 245, 240, .6) 76%, var(--cream) 96%),
    image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  /* photo is 1536x794 (ratio .517) - size it to the page width so the entrance sign sits above the cards */
  background-size: auto, max(100%, 1277px) max(calc(51.7vw + 6px), 666px), max(100%, 1277px) auto;
  background-position: center, 62% top, 62% top;
  background-repeat: no-repeat;
}
.hero-inner { max-width: 1600px; margin: 0 auto; padding: 0 44px; }

.hero-copy {
  margin-left: clamp(0px, 29vw, 470px);
  max-width: 520px;
  padding: 38px 0 0;
  min-height: 316px;
}
.hero-copy h1 {
  margin: 0; font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(30px, 3.1vw, 46px); line-height: 1.12; letter-spacing: -.005em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.hero-rule { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; width: min(380px, 100%); color: var(--gold); }
.hero-rule::before, .hero-rule::after { content: ""; flex: 1; height: 1.5px; background: currentColor; opacity: .75; }
.hero-rule svg { width: 118px; height: 18px; }
.tagline { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--teal); font-size: clamp(18px, 1.45vw, 21px); }
.lede { margin: 0; color: #1f2a34; font-size: clamp(15px, 1.12vw, 16.5px); max-width: 470px; }

/* ---------------------------------------------------------------------
   Feature cards
   --------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1.06fr 0.96fr 1.52fr;
  gap: 20px;
  align-items: stretch;
  padding: 44px 0 34px;
}
.card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 70px 24px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; overflow: visible;
}
.card-icon {
  position: absolute; top: -42px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 4px solid #fff; box-shadow: 0 6px 16px rgba(14, 45, 79, .25);
}
.card-icon .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.card-icon.navy { background: var(--navy); }
.card-icon.green { background: var(--green); }
.card-icon.gold { background: var(--gold); }

.card h2 {
  margin: 0; font-family: var(--sans); font-weight: 700; font-size: 18.5px; line-height: 1.25;
  letter-spacing: .035em; text-transform: uppercase; color: var(--navy);
}
.card h2.green { color: var(--green); }
.card h2.gold { color: var(--gold); font-size: 20px; }
.card-rule { width: 62%; height: 1.5px; margin: 14px auto 16px; border: 0; background: currentColor; opacity: .35; }
.card .short-rule { width: 38px; opacity: 1; background: var(--teal); height: 2px; }
.card p { margin: 0 0 20px; font-size: 15.5px; color: #3a4550; }

.btn {
  display: inline-block; padding: 9px 30px; border-radius: 4px;
  font-weight: 600; font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; white-space: nowrap; transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(14, 45, 79, .22); filter: brightness(1.06); }
.btn-navy { background: var(--navy); }
.btn-green { background: var(--green-btn); }
.btn-gold { background: var(--gold); }
.btn-wide { min-width: 186px; }

.text-link { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.text-link:hover { text-decoration: underline; }

/* About card - misty pines illustration */
.card-about { padding-bottom: 0; }
.card-about .btn { margin-top: 6px; }
.about-art { margin: auto -24px 0; width: calc(100% + 48px); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.about-art svg { width: 100%; height: auto; }

/* Events card */
.event-list {
  width: 100%; margin-top: 20px; background: #f6f6f3; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px 4px; text-align: left;
}
.event-list-title { text-align: center; color: var(--green); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; margin: 2px 0 4px; }
.event { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.date-chip { flex: 0 0 38px; border: 1px solid #cfd3cc; border-radius: 3px; background: #fff; text-align: center; overflow: hidden; }
.date-chip .m { display: block; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.date-chip .d { display: block; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.event strong { display: block; font-size: 14.5px; color: #1f2a34; line-height: 1.3; }
.event span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.card-events .text-link { color: var(--green); margin-top: 12px; }

/* Directory card */
.privacy {
  width: 100%; margin-top: 26px; padding: 22px 18px 18px; text-align: left;
  background: #f4f6f8; border: 1px solid #dde3e8; border-radius: 8px;
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start;
}
.privacy .lock { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: 4px; }
.privacy .lock .icon { width: 20px; height: 20px; }
.privacy strong { color: var(--navy); font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase; }
.privacy p { grid-column: 2; margin: 0; font-size: 13.5px; color: var(--muted); }
.privacy .text-link { grid-column: 2; color: var(--navy); margin-top: 14px; }

/* Lending library card - the headliner */
.card-library .card-rule { color: var(--gold); opacity: .6; width: 34%; }
.hook { font-weight: 700; color: #1b2733; font-size: 17px; line-height: 1.35; margin: 0 0 8px !important; max-width: 380px; }
.card-library > p { max-width: 420px; }
.stats {
  width: 100%; margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 8px; background: #fdfcf9;
}
.stat { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .icon { width: 36px; height: 36px; color: var(--navy); stroke-width: 1.4; flex: 0 0 auto; }
.stat b { display: block; font-family: var(--serif); color: var(--gold); font-size: 25px; line-height: 1; }
.stat small { display: block; font-size: 12.5px; line-height: 1.25; color: #3a4550; text-align: left; }
.cat-title { margin: 16px 0 10px; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.cats { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #2a333d; font-size: 12.5px; line-height: 1.2; padding: 6px 2px; border-radius: 8px; transition: background .15s, color .15s; }
.cat .icon { width: 32px; height: 32px; color: var(--navy); stroke-width: 1.4; }
.cat:hover { background: #fbf4e6; color: var(--gold); }
.cat:hover .icon { color: var(--gold); }

/* ---------------------------------------------------------------------
   Footer value strip
   --------------------------------------------------------------------- */
.values { background: var(--navy-footer); color: #fff; }
.values-inner {
  max-width: 1600px; margin: 0 auto; padding: 24px 44px;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.value { display: flex; align-items: center; gap: 18px; padding: 4px 22px; }
.value + .value { border-left: 1px solid rgba(255, 255, 255, .22); }
.value .icon { width: 50px; height: 50px; flex: 0 0 50px; stroke-width: 1.3; }
.value strong { display: block; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.value span { display: block; font-size: 14px; color: #d5e1eb; line-height: 1.4; }
.copyright { background: #0b2340; color: #9fb4c7; text-align: center; font-size: 13px; padding: 12px 20px; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .btn { padding: 9px 18px; }
  .btn-wide { min-width: 0; }
  .card { padding-left: 18px; padding-right: 18px; }
  .about-art { margin-left: -18px; margin-right: -18px; width: calc(100% + 36px); }
}
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
  .values-inner { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .value:nth-child(4) { border-left: 0; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 28px 16px;
    box-shadow: 0 12px 24px rgba(14, 45, 79, .12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .badge { width: clamp(150px, 24vw, 250px); top: 8px; }
  .hero-copy { margin-left: clamp(0px, 27vw, 290px); padding-top: 34px; min-height: 0; }
}
@media (max-width: 860px) {
  .hero-copy {
    margin-left: 0; max-width: none; padding: 24px 22px 24px; margin-top: clamp(120px, 26vw, 200px);
    background: rgba(255, 251, 244, .9); border-radius: 14px;
    box-shadow: 0 8px 26px rgba(14, 45, 79, .14);
  }
  .cards { padding-top: 64px; }
}
@media (max-width: 680px) {
  .header-inner, .hero-inner, .values-inner { padding-left: 18px; padding-right: 18px; }
  .badge { width: 132px; }
  .cards { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .values-inner { grid-template-columns: 1fr; }
  .value { border-left: 0 !important; padding: 8px 0; }
}
