/* =========================================================================
   Carriacou Animal Hospital — design system
   Palette + type are centralised as tokens so the whole site retunes here.
   ========================================================================= */

@font-face {
  font-family: "Architects Daughter";
  src: url("/assets/fonts/Architects Daughter Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Colour — Caribbean sea, sand and coral, anchored to the navy logo. */
  --sand:       #FFF6EC;
  --sand-2:     #FBEEDD;
  --shell:      #FFFFFF;
  --sea:        #00506E;   /* primary — logo navy */
  --sea-700:    #013e56;
  --ink:        #0B2A36;   /* body text */
  --ink-soft:   #45606c;
  --lagoon:     #2FB5D8;   /* bright interactive blue */
  --lagoon-700: #1f93b3;
  --coral:      #FF6F5E;   /* accent / primary CTA */
  --coral-700:  #e8503d;
  --gold:       #F4B740;   /* small highlights only */
  --line:       #e7d9c6;   /* hairlines on sand */

  --container: 1140px;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 40px -24px rgba(11, 42, 54, .45);
  --shadow-sm: 0 8px 20px -14px rgba(11, 42, 54, .4);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Cabin", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-hand: "Architects Daughter", var(--font-body);
}

/* ---- reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration-color: color-mix(in srgb, var(--sea) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--lagoon-700); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--sea); margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 4px; }

/* ---- layout helpers ---- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--sand2 { background: var(--sand-2); }
.section--sea { background: var(--sea); color: #eaf4f7; }
.section--sea h1, .section--sea h2, .section--sea h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--coral-700);
  margin: 0 0 .9rem;
}
.section--sea .eyebrow { color: var(--gold); }
.script { font-family: var(--font-hand); color: var(--coral); font-weight: 400; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); }

/* fluid display type */
.h-xl { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* ---- buttons ---- */
.btn {
  --bg: var(--sea); --fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: 0 14px 26px -14px rgba(11,42,54,.55); }
.btn--coral { --bg: var(--coral); }
.btn--coral:hover { background: var(--coral-700); }
.btn--lagoon { --bg: var(--lagoon); }
.btn--lagoon:hover { background: var(--lagoon-700); }
.btn--ghost { --bg: transparent; --fg: var(--sea); border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--sea) 8%, transparent); }
.section--sea .btn--ghost,
.hero .btn--ghost { --fg: #fff; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand b { font-family: var(--font-display); font-weight: 600; color: var(--sea); font-size: 1.16rem; line-height: 1; letter-spacing: -.01em; }
.brand span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-weight: 600; padding: .5rem .8rem; border-radius: 999px; font-size: .98rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:not(.btn):hover { background: color-mix(in srgb, var(--sea) 8%, transparent); color: var(--sea); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--sea); background: color-mix(in srgb, var(--lagoon) 18%, transparent); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; }
.hamburger { display: none; }

@media (max-width: 900px) {
  .nav-cta.desktop-only { display: none; }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); background: var(--shell);
    border-radius: 12px; cursor: pointer; color: var(--sea);
  }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .25s ease;
  }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: .6rem 0 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; background: var(--sea); color: #eef6f8; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(3rem, 6vw, 5rem) 0 clamp(4.5rem, 8vw, 7rem);
}
.hero h1 { color: #fff; }
.hero .lede { color: #cfe6ee; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__figure {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border: 5px solid rgba(255,255,255,.9);
  transform: rotate(1.4deg);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.hero__badge {
  position: absolute; left: -14px; bottom: 22px; transform: rotate(-4deg);
  background: var(--gold); color: var(--ink); font-family: var(--font-hand);
  font-size: 1.15rem; padding: .5rem 1rem; border-radius: 10px; box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { transform: none; order: -1; max-width: 520px; }
}

/* ---- shoreline divider (signature) ---- */
.shoreline { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }
.shoreline--top { margin-bottom: -1px; }
.shoreline--flip { transform: scaleY(-1); margin-top: -1px; }

/* =========================================================================
   Cards & grids
   ========================================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__num {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: color-mix(in srgb, var(--lagoon) 16%, transparent); color: var(--sea);
  font-family: var(--font-display); font-weight: 600; margin-bottom: .8rem;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon { font-size: 1.7rem; line-height: 1; margin-bottom: .6rem; }

/* media + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* =========================================================================
   Feature / impact strip
   ========================================================================= */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; text-align: center; }
.impact .stat { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--coral); font-weight: 600; }
.section--sea .impact .stat { color: var(--gold); }
.impact .stat + p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.section--sea .impact .stat + p { color: #cfe6ee; }
@media (max-width: 560px) { .impact { grid-template-columns: 1fr; gap: 1.6rem; } }

/* progress bar (fundraising) */
.progress { background: var(--sand-2); border-radius: 999px; height: 20px; overflow: hidden; border: 1px solid var(--line); }
.section--sea .progress { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--gold)); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; margin-top: .7rem; }

/* =========================================================================
   Team
   ========================================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.member { text-align: center; }
.member__avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto .9rem; object-fit: cover;
  border: 4px solid var(--shell); box-shadow: var(--shadow-sm);
}
.member__mono {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--lagoon), var(--sea));
  color: #fff; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
}
.member h3 { font-size: 1.12rem; margin-bottom: .1rem; }
.member .role { color: var(--coral-700); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.member details { margin-top: .5rem; text-align: left; }
.member summary { cursor: pointer; color: var(--sea); font-weight: 700; list-style: none; text-align: center; }
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: " ↓"; }
.member details[open] summary::after { content: " ↑"; }
.member details p { font-size: .95rem; color: var(--ink-soft); margin-top: .6rem; }

/* =========================================================================
   Donation tiers
   ========================================================================= */
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.tier { text-align: center; display: flex; flex-direction: column; }
.tier .amt { font-family: var(--font-display); font-size: 1.9rem; color: var(--sea); font-weight: 600; }
.tier .per { color: var(--ink-soft); font-size: .85rem; margin-bottom: .6rem; }
.tier p { font-size: .9rem; color: var(--ink-soft); flex: 1; }

/* =========================================================================
   Timeline (New Build)
   ========================================================================= */
.timeline { position: relative; margin: 0; padding: 0 0 0 1.5rem; list-style: none; border-left: 2px dashed color-mix(in srgb, var(--lagoon) 55%, transparent); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 3px solid var(--sand); }
.timeline .date { font-family: var(--font-display); font-weight: 700; color: var(--sea); }

/* =========================================================================
   Wall of Heroes
   ========================================================================= */
.donor-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.donor {
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; display: flex; align-items: baseline; gap: .5rem; justify-content: space-between;
}
.donor .n { font-weight: 700; color: var(--ink); }
.donor .loc { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }

/* =========================================================================
   Forms
   ========================================================================= */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--shell); font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagoon) 25%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================================
   Emergency card + floating WhatsApp
   ========================================================================= */
.emergency {
  background: linear-gradient(120deg, var(--coral), var(--coral-700));
  color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; box-shadow: var(--shadow);
}
.emergency h3 { color: #fff; margin: 0; }
.emergency p { margin: 0; color: #ffe9e4; }
.emergency .btn { --bg: #fff; --fg: var(--coral-700); margin-left: auto; }
.emergency .btn:hover { background: #fff; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25D366; color: #073; font-weight: 800; text-decoration: none;
  padding: .7rem 1.05rem; border-radius: 999px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5);
}
.wa-float:hover { color: #052; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float .lbl { font-size: .95rem; }
@media (max-width: 560px) { .wa-float .lbl { display: none; } .wa-float { padding: .8rem; } }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--sea-700); color: #cfe1e8; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: #eaf4f7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 1rem; }
.footer-brand img { width: 52px; margin-bottom: .8rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #a9c6d0; max-width: 34ch; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-affil img { width: 64px; background: #fff; border-radius: 12px; padding: 8px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #9fbcc6; }

/* utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-block; background: color-mix(in srgb, var(--lagoon) 16%, transparent); color: var(--sea); font-weight: 700; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; }
.max-measure { max-width: 62ch; }
