/* ==========================================================================
   The Crow's Nest - shared site styles
   Palette: navy #1B345C - yellow #FFC639 - orange #F08524 - green #5F8E72
   Type:    Fredoka (display) - Caveat (hand) - Nunito (body)
   ========================================================================== */

:root {
  --navy: #1B345C;
  --navy-deep: #0F2240;
  --yellow: #FFC639;
  --yellow-deep: #E8A914;
  --orange: #F08524;
  --orange-deep: #D26A0F;
  --green: #5F8E72;
  --green-deep: #4A7359;
  --cream: #FAF1DA;
  --cream-light: #FDF8E8;
  --paper: #FFFFFF;
  --ink: #142C53;
  --ink-soft: #33446B;
  --line: rgba(20, 44, 83, 0.12);

  --head: "Fredoka", "Quicksand", system-ui, sans-serif;
  --hand: "Caveat", "Patrick Hand", cursive;
  --body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--cream-light); }

body {
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--orange); }
a:hover { color: var(--orange-deep); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px;
  font-family: var(--head); font-weight: 600; text-decoration: none;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 56px; }

/* ---------- announcement banner ---------------------------------------- */
.banner {
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 20px;
}

/* ---------- header / nav ------------------------------------------------ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 56px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name {
  font-family: var(--head); font-size: 26px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.3px; white-space: nowrap;
}
.logo-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream-light); border: 2.5px solid var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 30px; margin-left: auto; align-items: center;
  font-family: var(--head);
}
.nav-links a {
  color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none;
  display: block; padding: 4px 0; white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 10px; margin-top: 2px;
  background: no-repeat center/64px 10px
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="10" fill="none"><path d="M2 6 Q10 0 18 6 T34 6 T50 6 T62 6" stroke="%23FFC639" stroke-width="3" stroke-linecap="round" fill="none"/></svg>');
}
.nav-cta { margin-left: 18px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--paper); border: 2px solid var(--line);
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 24px 20px;
  background: var(--paper);
}
.nav-drawer.open { display: block; }
.nav-drawer a.drawer-link {
  display: block; padding: 16px 4px;
  font-family: var(--head); font-size: 19px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-drawer a.drawer-link[aria-current="page"] { color: var(--orange); }
.nav-drawer .btn { width: 100%; margin-top: 18px; }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  font-family: var(--head); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(2px) scale(0.98); }
.btn.inert { box-shadow: none; opacity: 0.6; cursor: default; }
.btn.inert:hover { transform: none; }
.btn-navy   { background: var(--navy);   color: #fff; box-shadow: 0 4px 0 rgba(20,44,83,0.35); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-deep); }
.btn-green  { background: var(--green);  color: #fff; box-shadow: 0 4px 0 var(--green-deep); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn-ghost  { background: var(--paper);  color: var(--ink); border: 2px solid var(--ink); }
.btn-navy:hover, .btn-orange:hover, .btn-green:hover, .btn-yellow:hover { color: #fff; }
.btn-yellow:hover { color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- decorative bits -------------------------------------------- */
.hand-tag {
  font-family: var(--hand); font-size: 28px; color: var(--yellow);
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.1;
  transform: rotate(-4deg);
}
.hand-tag-orange { color: var(--orange); }
.hand-tag-green  { color: var(--green); }
.squiggle { display: block; }

.polaroid {
  position: relative; background: var(--paper); padding: 16px 16px 56px;
  border-radius: 6px; box-shadow: 0 14px 34px rgba(20,44,83,0.18);
}
.polaroid .tape {
  position: absolute; top: -11px; left: 50%; margin-left: -40px;
  width: 80px; height: 22px; background: rgba(255,255,255,0.72);
  transform: rotate(-8deg); box-shadow: inset 0 -1px 2px rgba(0,0,0,0.08); z-index: 3;
}
.polaroid img, .polaroid .ph {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: #D9CAB1;
}
.polaroid .frame { overflow: hidden; border-radius: 2px; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--hand); font-size: 21px; color: var(--ink-soft);
}
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(2deg); }

/* ---------- sections ---------------------------------------------------- */
section { position: relative; }
.sec { padding: 88px 0; }
.sec-tight { padding: 64px 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream-light); }
.bg-cream-deep { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--cream); }

.eyebrow {
  font-family: var(--head); font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-family: var(--head); font-weight: 600; font-size: 46px; line-height: 1.06;
  letter-spacing: -0.8px; color: var(--navy); margin-bottom: 14px;
}
.sec-head p { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); }

.lede { font-size: 19px; line-height: 1.7; color: var(--ink-soft); }
.prose p { font-size: 17px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--head); font-size: 26px; font-weight: 600;
  color: var(--navy); margin: 34px 0 14px;
}
.prose blockquote {
  font-family: var(--hand); font-size: 30px; line-height: 1.35; color: var(--orange);
  border-left: 4px solid var(--yellow); padding-left: 20px; margin: 26px 0;
}

/* ---------- hero -------------------------------------------------------- */
.hero { background: var(--cream-light); padding: 76px 0 92px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero h1 {
  font-family: var(--head); font-weight: 600; font-size: 78px; line-height: 0.99;
  letter-spacing: -1.5px; color: var(--navy); margin: 10px 0 14px; text-wrap: pretty;
}
.hero .lede { max-width: 520px; margin: 22px 0 30px; }

.page-hero { background: var(--cream-light); padding: 68px 0 60px; }
.page-hero h1 {
  font-family: var(--head); font-weight: 600; font-size: 58px; line-height: 1.02;
  letter-spacing: -1.2px; color: var(--navy); margin: 8px 0 16px; max-width: 900px;
}
.page-hero h1 .accent { color: var(--orange); }
.page-hero .lede { max-width: 720px; }

/* ---------- cards ------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.grid-split.align-start { align-items: start; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  padding: 30px; box-shadow: 0 8px 22px rgba(20,44,83,0.06);
}
.card h3 {
  font-family: var(--head); font-size: 23px; font-weight: 600;
  color: var(--navy); margin-bottom: 10px;
}
.card p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.card-media { padding: 0; overflow: hidden; }
a.card-link { display: block; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.card-link:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,44,83,0.14); }
a.card-link:hover .shot img { transform: scale(1.04); }
.card-media .shot img { transition: transform .3s ease; }
.card-media .shot { aspect-ratio: 3 / 2; background: #D9CAB1; }
.card-media .shot img { width: 100%; height: 100%; object-fit: cover; }
.card-media .card-body { padding: 26px 28px 30px; }

.value-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 18px;
  margin-bottom: 16px;
}
.icon-chip {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.pill {
  display: inline-block; background: var(--cream); border-radius: 999px;
  padding: 6px 14px; font-family: var(--head); font-size: 12.5px;
  font-weight: 700; color: var(--orange); margin-bottom: 12px;
}
.pill-green { color: var(--green); }
.pill-navy { color: var(--navy); }

.meta-line {
  font-family: var(--head); font-weight: 600; font-size: 14.5px;
  color: var(--green); margin-top: 14px; white-space: pre-line;
}

.datechip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 12px; text-align: center; min-width: 66px;
  flex-shrink: 0; white-space: nowrap; align-self: flex-start;
}
.datechip .m {
  font-family: var(--head); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--orange);
}
.datechip .d {
  font-family: var(--head); font-size: 24px; font-weight: 600; color: var(--navy);
  line-height: 1.1;
}

.event-row { display: flex; gap: 20px; align-items: flex-start; }

.notice {
  background: #FCEACB; border: 1px solid var(--yellow);
  border-radius: 20px; padding: 20px 24px;
  font-family: var(--head); font-weight: 600; font-size: 16.5px; color: var(--navy);
  display: flex; gap: 12px; align-items: flex-start;
}
.notice.plain {
  background: var(--cream); border-color: var(--line);
  font-family: var(--body); font-weight: 400; font-size: 15.5px;
  color: var(--ink-soft); line-height: 1.7;
}

/* ---------- forms ------------------------------------------------------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 28px; padding: 34px;
}
.field { margin-bottom: 18px; min-width: 0; }
.field label {
  display: block; font-family: var(--head); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.9px; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 15px 18px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--cream-light);
  font-family: var(--body); font-size: 15px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.check-list { display: grid; gap: 12px; }
.check-list label {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--body); font-size: 15px; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--ink-soft);
  line-height: 1.5; margin: 0;
}
.check-list input { width: auto; min-width: 0; margin-top: 3px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; opacity: 0.85; }

/* ---------- FAQ --------------------------------------------------------- */
.faq-group { margin-bottom: 44px; }
.faq-group > h2 {
  font-family: var(--head); font-size: 30px; font-weight: 600;
  color: var(--navy); margin-bottom: 18px;
}
details.faq {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; padding: 0; margin-bottom: 12px; overflow: hidden;
}
details.faq > summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-family: var(--head); font-size: 18.5px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+"; font-size: 26px; line-height: 1; color: var(--orange); flex-shrink: 0;
}
details.faq[open] > summary::after { content: "\2013"; }
details.faq .answer {
  padding: 0 26px 24px; font-size: 16px; line-height: 1.75; color: var(--ink-soft);
}

/* ---------- amount / impact tiles -------------------------------------- */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amount {
  background: var(--cream-light); border: 2px solid var(--line); border-radius: 16px;
  padding: 16px 10px; text-align: center;
  font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--navy);
}
.impact-num {
  font-family: var(--head); font-size: 30px; font-weight: 600; color: var(--orange);
  margin-bottom: 6px;
}

/* ---------- CTA band ---------------------------------------------------- */
.cta-band {
  background: var(--navy); color: var(--cream);
  border-radius: 32px; padding: 52px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
}
.cta-band h2 {
  font-family: var(--head); font-size: 38px; font-weight: 600;
  line-height: 1.1; color: var(--cream); margin-bottom: 12px;
}
.cta-band p { font-size: 16.5px; line-height: 1.7; opacity: 0.86; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- footer ------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep); color: var(--cream);
  font-family: var(--body); padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 44px;
}
.site-footer .logo-badge { background: transparent; border-color: var(--yellow); }
.site-footer .brand-name { color: var(--cream); font-size: 22px; }
.footer-hand {
  font-family: var(--hand); font-size: 22px; color: var(--yellow);
  margin: 16px 0 12px; line-height: 1.25;
}
.footer-blurb { font-size: 14px; opacity: 0.78; line-height: 1.65; max-width: 380px; }
.footer-col h2 {
  font-family: var(--head); font-size: 13px; color: var(--yellow); margin-bottom: 14px;
  font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
}
.footer-col a, .footer-col p {
  display: block; font-size: 14.5px; opacity: 0.88; margin-bottom: 9px;
  color: var(--cream); text-decoration: none;
}
.footer-col a:hover { color: var(--yellow); opacity: 1; }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; margin: 0;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center; color: var(--cream);
}
.social-row a:hover { background: var(--yellow); color: var(--navy-deep); }
.newsletter { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 170px; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08);
  color: var(--cream); font-family: var(--body); font-size: 14.5px;
}
.newsletter input::placeholder { color: rgba(250,241,218,0.6); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; opacity: 0.62;
}

/* ---------- responsive -------------------------------------------------- */
@media (max-width: 1040px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 940px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .nav-bar { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 52px 0 64px; }
  .hero-grid, .grid-split, .cta-band { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 54px; }
  .page-hero h1 { font-size: 42px; }
  .sec-head h2 { font-size: 34px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { padding: 40px 32px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .sec { padding: 60px 0; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 42px; }
  .page-hero h1 { font-size: 34px; }
  .sec-head h2 { font-size: 29px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { flex-direction: column; gap: 8px; }
  .btn-row .btn { width: 100%; }
  .brand-name { font-size: 21px; }
  .logo-badge { width: 42px; height: 42px; }
  .form-card { padding: 24px; }
  .event-row { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
