/* ============================================================
   Saint Francis Rescue & Sanctuary — design system
   Editorial desert-sanctuary: pine green, bone paper, antique gold, clay.
   ============================================================ */

:root {
  /* palette */
  --pine:       #1f3a2e;   /* primary deep green */
  --pine-700:   #16291f;
  --pine-900:   #0e1c15;
  --moss:       #3c5a45;
  --sage:       #7f9b84;
  --clay:       #b5623a;   /* desert terracotta accent */
  --clay-soft:  #c9764d;
  --gold:       #c9a24b;   /* antique gold */
  --gold-soft:  #ddc07f;
  --bone:       #f4efe6;   /* paper background */
  --bone-2:     #ece4d6;
  --cream:      #fbf8f1;
  --ink:        #23211c;   /* body text */
  --ink-soft:   #545047;
  --muted:      #6c675c;
  --line:       #ddd3c2;
  --white:      #ffffff;

  --shadow-sm: 0 1px 2px rgba(35,33,28,.06), 0 2px 8px rgba(35,33,28,.05);
  --shadow-md: 0 8px 24px rgba(35,33,28,.10), 0 2px 6px rgba(35,33,28,.06);
  --shadow-lg: 0 24px 60px rgba(20,35,27,.18), 0 6px 18px rgba(35,33,28,.10);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* paper grain atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; line-height: 1.06; letter-spacing: -.015em; color: var(--pine); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.serif-italic { font-style: italic; font-family: var(--display); color: var(--clay); }
.eyebrow {
  font-family: var(--body); font-weight: 700;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--moss); max-width: 60ch; }
p { color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; color: var(--ink); }
.legal-content h1 { margin-bottom: .5rem; font-size: clamp(2.2rem, 4vw, 2.8rem); }
.legal-content .last-updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; display: block; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--pine); }
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--ink); line-height: 1.7; margin-bottom: .75rem; }
.legal-content ul { margin-left: 1.5rem; }
.legal-content a { color: var(--clay); font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .7rem; }
.divider-gold { width: 56px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.4rem 0; }
.center .divider-gold { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 100px;
  font-weight: 650; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; }
.btn-primary { background: var(--pine); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--pine-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--pine-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-clay { background: var(--clay); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-clay:hover { background: var(--clay-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--pine); background: transparent; }
.btn-ghost:hover { border-color: var(--pine); background: rgba(31,58,46,.04); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.12); color: var(--cream); border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .86rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- top announcement + nav ---------- */
.announce {
  background: var(--pine-900); color: var(--gold-soft);
  font-size: .82rem; letter-spacing: .04em; text-align: center;
  padding: .5rem 1rem;
}
.announce a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,230,.82);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
header.nav.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(244,239,230,.94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; background: var(--bone); padding: 4px; box-shadow: var(--shadow-sm); }
.brand-text { line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--pine); display: block; letter-spacing: -.01em; }
.brand-text span { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 8px; font-weight: 550; font-size: .96rem;
  color: var(--ink); transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover { color: var(--pine); background: rgba(31,58,46,.05); }
.nav-links a.active { color: var(--pine); }
.nav-links a.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--gold); border-radius: 2px; }

/* dropdown nav */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; cursor: pointer; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 1000; margin-top: .5rem;
  border: 1px solid var(--line);
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: .75rem 1rem; color: var(--ink);
  border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--bone-2); color: var(--clay); }

.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--pine); }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn:not(.btn-gold) { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 1rem 1.3rem 1.4rem; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links.open a:last-child { border-bottom: none; }
  
  /* Mobile dropdown menu */
  .nav-dropdown-menu {
    position: static; opacity: 0; visibility: hidden; pointer-events: none;
    height: 0; overflow: hidden; min-width: auto;
    background: var(--bone-2); border: none; border-radius: 0; box-shadow: none;
    margin: 0; transform: none; transition: opacity .2s, visibility .2s, height .2s;
  }
  .nav-dropdown-menu.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    height: auto; transform: none;
  }
  .nav-dropdown-menu a {
    padding: .6rem .6rem .6rem 2rem; border-bottom: 1px solid var(--bone);
    font-size: .95rem;
  }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: var(--cream); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 24s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.12) translate(-1.5%, -1.5%); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,28,21,.82) 0%, rgba(14,28,21,.5) 42%, rgba(14,28,21,.12) 75%),
    linear-gradient(0deg, rgba(14,28,21,.7) 0%, rgba(14,28,21,0) 45%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(3rem, 7vw, 6rem); padding-top: 6rem; max-width: 720px; }
.hero h1 { color: var(--cream); }
.hero .lead { color: rgba(251,248,241,.9); margin-top: 1.3rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-badges { position: relative; z-index: 2; display: flex; gap: 1.4rem; flex-wrap: wrap; padding: 1.1rem 0 1.5rem; }
.hero-badge { font-size: .8rem; letter-spacing: .04em; color: rgba(251,248,241,.78); display: flex; align-items: center; gap: .45rem; }
.hero-badge svg { width: 16px; height: 16px; stroke: var(--gold-soft); }

/* sub page hero (compact) */
.pagehead { position: relative; color: var(--cream); overflow: hidden; }
.pagehead-bg { position: absolute; inset: 0; z-index: 0; }
.pagehead-bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,21,.86), rgba(14,28,21,.55) 70%, rgba(14,28,21,.35)); }
.pagehead-inner { position: relative; z-index: 2; padding: clamp(4.5rem,10vw,7rem) 0 clamp(3rem,6vw,4.5rem); max-width: 720px; }
.pagehead h1 { color: var(--cream); }
.pagehead .lead { color: rgba(251,248,241,.88); margin-top: 1rem; }
.pagehead .eyebrow { color: var(--gold-soft); }
.pagehead .eyebrow::before { background: var(--gold-soft); }
.crumb { font-size: .8rem; color: rgba(251,248,241,.6); margin-bottom: 1rem; letter-spacing: .03em; }
.crumb a:hover { color: var(--gold-soft); }

/* ---------- stats band ---------- */
.stats { background: var(--pine); color: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1rem .5rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(221,192,127,.28); }
.stat .num { font-family: var(--display); font-weight: 560; font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--gold-soft); line-height: 1; letter-spacing: -.02em; }
.stat .label { font-size: .82rem; letter-spacing: .04em; color: rgba(251,248,241,.75); margin-top: .6rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat + .stat::before { display: none; } .stat { border-top: 1px solid rgba(221,192,127,.16); } .stat:nth-child(-n+2){border-top:none;} }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bone-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { color: var(--pine); }
.card-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }

/* badges / tags */
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 100px; display: inline-flex; align-items: center; gap: .35rem; }
.tag-available { background: #e6efe6; color: #2f6b3c; }
.tag-fostered  { background: #fdf0e2; color: #b5623a; }
.tag-adopted   { background: #ece9f0; color: #6b5f7a; }
.tag-foster    { background: var(--clay); color: var(--cream); }
.tag-featured  { background: var(--gold); color: var(--pine-900); }
.media-tags { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .86rem; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: .3rem; }

/* feature / value cards */
.feature { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; position: relative; overflow: hidden; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(31,58,46,.07); margin-bottom: 1.1rem; }
.feature .ic svg { width: 26px; height: 26px; stroke: var(--pine); }
.feature h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .98rem; }

/* numbered process steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.4rem 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--gold); width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* split / editorial */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: 0; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.media-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(201,162,75,.35); border-radius: var(--radius-lg); pointer-events: none; }
.dropcap::first-letter { font-family: var(--display); font-size: 3.6em; line-height: .8; float: left; padding: .08em .12em 0 0; color: var(--clay); font-weight: 600; }

/* section tones */
.tone-cream { background: var(--cream); }
.tone-bone2 { background: var(--bone-2); }
.tone-pine { background: var(--pine); color: var(--cream); }
.tone-pine h1, .tone-pine h2, .tone-pine h3 { color: var(--cream); }
.tone-pine .lead { color: rgba(251,248,241,.82); }
.tone-pine .eyebrow { color: var(--gold-soft); }
.tone-pine .eyebrow::before { background: var(--gold-soft); }

/* timeline */
.timeline { position: relative; margin-left: 1rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.tl-item { position: relative; padding: 0 0 2.2rem 2.4rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--gold); }
.tl-item .yr { font-family: var(--display); font-weight: 600; color: var(--clay); font-size: 1.05rem; letter-spacing: .02em; }
.tl-item h3 { font-size: 1.25rem; margin: .15rem 0 .4rem; }
.tl-item p { color: var(--muted); max-width: 56ch; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 650; color: var(--pine); letter-spacing: .01em; }
.field .req { color: var(--clay); }
.input, .select, .textarea {
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .8rem .95rem; font-size: 1rem; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(60,90,69,.14); }
.textarea { resize: vertical; min-height: 130px; }
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: .85rem 1.1rem; border-radius: 10px; font-size: .92rem; margin-bottom: 1rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6efe6; color: #2f6b3c; border: 1px solid #bcd6bf; }
.form-status.err { background: #fbe6df; color: #a23a1c; border: 1px solid #eebfae; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- ways to give ---------- */
.give-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; }
@media (max-width: 860px) { .give-grid { grid-template-columns: 1fr; } }
.give-primary { background: linear-gradient(155deg, var(--pine), var(--pine-700)); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.8rem,4vw,2.6rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.give-primary::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(201,162,75,.25), transparent 70%); }
.give-primary h3 { color: var(--cream); font-size: 1.7rem; }
.give-primary p { color: rgba(251,248,241,.85); margin: .6rem 0 1.4rem; }
.give-list { display: grid; gap: .9rem; }
.give-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), border-color .25s; }
.give-item:hover { transform: translateX(3px); border-color: var(--gold-soft); }
.give-item .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(181,98,58,.1); display: flex; align-items: center; justify-content: center; }
.give-item .ic svg { width: 20px; height: 20px; stroke: var(--clay); }
.give-item strong { color: var(--pine); display: block; font-size: 1.02rem; }
.give-item span { font-size: .88rem; color: var(--muted); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filter-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .5rem 1rem; border-radius: 100px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--muted); background: var(--cream); transition: all .2s; }
.chip:hover { border-color: var(--moss); color: var(--pine); }
.chip.active { background: var(--pine); color: var(--cream); border-color: var(--pine); }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(14,28,21,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1.2rem; opacity: 0; transition: opacity .25s; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: var(--cream); border-radius: var(--radius-lg); max-width: 880px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .3s var(--ease); }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: sticky; top: 0; float: right; margin: .8rem .8rem -2.5rem 0; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 20px; height: 20px; stroke: var(--ink); }
.modal-detail { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .modal-detail { grid-template-columns: 1fr; } }
.modal-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.modal-thumbs { display: flex; gap: .5rem; padding: .7rem; flex-wrap: wrap; }
.modal-thumbs img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.modal-thumbs img.active { border-color: var(--gold); }
.modal-info { padding: clamp(1.4rem, 3vw, 2.2rem); }

/* ---------- footer ---------- */
footer.site {
  background: var(--pine-900); color: rgba(251,248,241,.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.foot-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: var(--bone); padding: 4px; }
.foot-brand strong { font-family: var(--display); color: var(--cream); font-size: 1.15rem; }
footer.site h4 { color: var(--gold-soft); font-family: var(--body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
footer.site a { color: rgba(251,248,241,.78); transition: color .2s; font-size: .95rem; }
footer.site a:hover { color: var(--gold-soft); }
.foot-links { display: grid; gap: .6rem; }
.foot-contact p { color: rgba(251,248,241,.7); font-size: .92rem; margin-bottom: .3rem; }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(221,192,127,.3); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.socials a:hover svg { stroke: var(--pine-900); }
.socials svg { width: 18px; height: 18px; stroke: var(--gold-soft); }
.foot-bottom { border-top: 1px solid rgba(221,192,127,.16); margin-top: 2.6rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(251,248,241,.5); }
.foot-bottom .badge501 { color: var(--gold-soft); }

/* ---------- empty / loading states ---------- */
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); grid-column: 1 / -1; }
.empty svg { width: 48px; height: 48px; stroke: var(--sage); margin: 0 auto 1rem; }
.skeleton { background: linear-gradient(100deg, var(--bone-2) 30%, var(--bone) 50%, var(--bone-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--cream); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* scroll progress */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--clay)); z-index: 300; transition: width .1s linear; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* utility */
.tac { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; } .gap { gap: 1rem; } .wrap-flex { flex-wrap: wrap; }
.price { font-family: var(--display); color: var(--pine); font-weight: 600; }
.maxnarrow { max-width: 740px; }

/* ---- Content / legal / press pages ---- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2.2rem 0 .6rem; color: var(--pine); }
.prose h3 { font-family: var(--display); font-size: 1.18rem; margin: 1.6rem 0 .4rem; color: var(--ink); }
.prose p { color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.75; }
.prose ul { margin: 0 0 1.1rem 1.1rem; padding: 0; color: var(--ink-soft); line-height: 1.7; }
.prose li { margin: 0 0 .4rem; }
.prose a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--pine); }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.fact dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.fact dd { margin: 0; font-family: var(--display); font-size: 1.15rem; color: var(--pine); }
.angle { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.angle h3 { margin-top: 0; }
.angle .hook { color: var(--muted); font-style: italic; }
.foot-legal { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.foot-legal a { color: rgba(251,248,241,.6); font-size: .82rem; }
.foot-legal a:hover { color: var(--gold-soft); }
.foot-credit { color: rgba(251,248,241,.55); font-size: .82rem; }
.foot-credit a { color: rgba(251,248,241,.78); text-decoration: none; font-weight: 600; }
.foot-credit a:hover { color: var(--gold-soft); }

/* ---- FAQ accordion ---- */
.faq-list { display: grid; gap: .7rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-family: var(--display); font-size: 1.08rem; color: var(--pine); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--clay); }
.faq-a { padding: 0 1.3rem 1.2rem; }
.faq-a p { margin: 0; color: var(--ink-soft); line-height: 1.7; }

/* ---- 404 illustration ---- */
.lost-illo { width: 230px; max-width: 70%; height: auto; margin: 0 auto; display: block; }
.lost-illo .tail { transform-origin: 168px 138px; animation: wag 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .lost-illo .tail { animation: none; } }
@keyframes wag { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-12deg); } }

/* ============================================================
   Responsive polish — mobile & small tablet refinements
   ============================================================ */

/* Footer bottom: tidy stacking & centering on phones */
@media (max-width: 640px) {
  .foot-bottom { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: .7rem; }
  .foot-legal { justify-content: center; }
  .foot-credit { text-align: center; }
}

/* Phones: CTAs become comfortable full-width tap targets */
@media (max-width: 520px) {
  h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .hero-cta, .hero-cta.center { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section .hero-cta { align-items: center; }
  .section .hero-cta .btn { width: auto; min-width: 0; }
  .lead { font-size: 1.05rem; }
  .wrap { width: min(100% - 2rem, var(--maxw)); }
  .pagehead-inner { padding-top: clamp(3.5rem, 16vw, 5rem); }
}

/* Very small phones: keep section CTAs from overflowing side-by-side */
@media (max-width: 380px) {
  .section .hero-cta { flex-direction: column; align-items: stretch; }
  .section .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { padding: .8rem 1.2rem; font-size: .94rem; }
}

/* Tablet: a touch more breathing room between hamburger breakpoint and desktop */
@media (min-width: 941px) and (max-width: 1100px) {
  .nav-links a { padding: .5rem .6rem; font-size: .9rem; }
  .nav-inner { gap: 1rem; }
}

/* Landscape phones: don't let the hero eat the whole short screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: 4.5rem; padding-bottom: 2.5rem; }
}
