/* ============================================================================
   Salvaged Souls Pet Rescue — styles.css
   ----------------------------------------------------------------------------
   WANT TO RETHEME? Change the colors in the :root block below and they update
   everywhere. (Most everyday changes are text/images in content.js, not here.)
============================================================================ */

@import url("fonts.css");

:root {
  /* Brand colors (from the design) */
  --green:        #5f7a3f;
  --green-dark:   #4a6130;
  --green-soft:   #7d9657;
  --green-text:   #4f6a33;   /* darker green for SMALL text/links (WCAG AA on cream) */
  --heart:        #c5342b;   /* red heart accent (matches the heart logo) */

  --cream:        #faf8f1;   /* page background           */
  --cream-2:      #f1efe5;   /* alternate section / cards */
  --card:         #ffffff;

  --ink:          #322f29;   /* main text   */
  --muted:        #6f6a5f;   /* soft text   */
  --line:         #dcd7c8;   /* hairlines   */

  --footer-bg:    #2a2a25;
  --footer-ink:   #cbc6b8;
  --footer-line:  #44443d;

  /* Typography - self-hosted Sora, then Spectral, then current fallbacks. */
  --font-display: "Sora", "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "Sora", "Spectral", Aptos, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(40, 38, 30, 0.10);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto lets images keep their proportions when width is constrained,
   so the width/height attributes (added for no-layout-shift) don't distort. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

em.accent { color: var(--green); font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Accessibility: visible focus + skip link */
:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- buttons & links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .7rem 1.3rem; border-radius: var(--radius);
  background: var(--green); color: #fff !important;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .85rem; color: var(--green-text); font-family: var(--font-body);
}
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform .2s ease; }
.text-link.center { justify-content: center; }

/* Decorative heart divider */
.divider, .pet-card-divider {
  display: flex; align-items: center; justify-content: flex-start;
  gap: .75rem; margin: 1.1rem 0;
}
.divider span, .pet-card-divider span {
  height: 1px; width: 64px; background: currentColor; opacity: .5;
}
.divider i, .pet-card-divider i { color: var(--green); font-style: normal; }
.pet-card-divider { justify-content: center; }
.pet-card-divider span { width: 40px; }

/* ========================================================================= */
/*  HEADER / NAV                                                             */
/* ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 241, 0.97);
  box-shadow: 0 2px 14px rgba(40, 38, 30, 0.10);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .85rem; padding-bottom: .85rem;
}

.brand { display: flex; align-items: center; gap: .65rem; color: #fff; }
.brand-logo { width: 38px; height: 38px; }
.brand-name {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: .04em; line-height: 1;
}
.brand-tagline {
  display: block; font-size: .68rem; letter-spacing: .35em;
  text-transform: uppercase; margin-top: .25rem; opacity: .85;
}
/* Logo is light over the hero, dark once header turns solid */
.site-header.scrolled .brand { color: var(--ink); }

.primary-nav { display: flex; align-items: center; gap: 1.8rem; }
.primary-nav > ul {
  display: flex; align-items: center; gap: 1.8rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  color: #fff; text-transform: uppercase; letter-spacing: .08em;
  font-size: .82rem;
}
.site-header.scrolled .primary-nav a { color: var(--ink); }
.primary-nav a:hover { color: var(--green-soft); }
.site-header.scrolled .primary-nav a:hover { color: var(--green); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ========================================================================= */
/*  HERO                                                                     */
/* ========================================================================= */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(35,30,22,.72) 0%, rgba(35,30,22,.38) 45%, rgba(35,30,22,.10) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 5rem; }
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  max-width: 13ch;
}
.hero-title em.accent { color: var(--green-soft); }
.hero .divider { color: #fff; }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 30ch; opacity: .95; margin: 0;
}

/* ========================================================================= */
/*  ABOUT + FEATURED PET                                                     */
/* ========================================================================= */
.about { background: var(--cream-2); }
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.about-photo { min-height: 280px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text { padding: 2.5rem 1.25rem; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 12ch; margin-bottom: 1rem;
}
.about-body { color: var(--muted); max-width: 38ch; margin: 0 0 1.4rem; }

/* Featured pet card */
.pet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  margin: 0 1.25rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.pet-badge {
  color: var(--green-text); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 600; margin: 0;
}
.pet-card-body {
  display: flex; align-items: center; gap: 1.25rem; text-align: left;
  justify-content: center;
}
.pet-photo {
  width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--cream-2); flex: none;
}
.pet-name { font-size: 2rem; display: flex; align-items: center; gap: .5rem; }
.pet-heart { color: var(--green); font-size: 1.2rem; }
.pet-meta { margin: .1rem 0; color: var(--muted); font-size: .95rem; }
.pet-quote {
  font-style: italic; color: var(--ink);
  border-top: 1px solid var(--line); padding-top: 1rem; margin: 1.2rem 0 .6rem;
}
.pet-waiting { color: var(--muted); font-size: .95rem; margin: 0 0 1.2rem; }
.btn-pet { background: var(--green); }

/* ========================================================================= */
/*  STORIES GALLERY                                                          */
/* ========================================================================= */
.stories { background: var(--cream); padding: 3rem 0 3.5rem; text-align: center; }
.stories-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  max-width: 24ch; margin: 0 auto .9rem;
}
.stories-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.8rem;
}
.story-tile { margin: 0; overflow: hidden; border-radius: var(--radius); }
.story-tile img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s ease;
}
.story-tile:hover img { transform: scale(1.05); }

/* ========================================================================= */
/*  SPONSORS                                                                 */
/* ========================================================================= */
.sponsors { background: var(--cream-2); padding: 2.5rem 0 3rem; }
.sponsors-inner { text-align: center; }
.sponsors-heading {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  font-weight: 600; color: var(--ink); margin: 0 0 1.6rem;
}
.sponsors-heading span { color: var(--green); }
.sponsors-marquee { overflow: hidden; width: 100%; }
.sponsors-track {
  display: flex; align-items: center; width: max-content; will-change: transform;
}
/* main.js measures one sponsor set, duplicates it, and injects a pixel keyframe
   so the right-to-left scroll loops seamlessly in Safari, Chrome, and mobile. */
.sponsor {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 176px; min-height: 86px; margin: 0 .85rem; padding: .75rem 1rem;
  background: rgba(255,255,255,.72); border: 1px solid rgba(220,215,200,.75);
  border-radius: var(--radius); box-shadow: 0 4px 14px rgba(40,38,30,.05);
}
.sponsor img {
  max-width: 140px; max-height: 58px; width: auto; height: auto;
  object-fit: contain; opacity: .96;
}
.sponsor-name {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--muted); letter-spacing: .02em;
}
a.sponsor:hover { border-color: var(--green-soft); background: #fff; }
a.sponsor:hover .sponsor-name { color: var(--green); }

/* ========================================================================= */
/*  FOOTER                                                                   */
/* ========================================================================= */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.footer-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; text-align: center;
  padding-top: 2.2rem; padding-bottom: 1.6rem;
}
.footer-motto {
  font-family: var(--font-display); font-size: 1.25rem; color: #f3f1e8;
  display: flex; align-items: center; gap: .6rem; margin: 0;
}
.footer-heart { color: var(--green-soft); font-size: 1.4rem; }
.footer-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.footer-nav a {
  color: var(--footer-ink); text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem;
}
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: .9rem; }
.social {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--footer-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--footer-ink); font-family: var(--font-display); font-size: 1.1rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer-legal {
  border-top: 1px solid var(--footer-line);
  padding-top: 1rem; padding-bottom: 1.4rem;
  text-align: center; font-size: .78rem; color: #a8a293; /* WCAG AA on footer bg */
}
.footer-legal-line { margin: 0; }
.footer-legal-line + .footer-legal-line { margin-top: .3rem; }
.footer-ein { letter-spacing: .04em; }

/* ========================================================================= */
/*  RESPONSIVE — TABLET & DESKTOP                                            */
/* ========================================================================= */
@media (min-width: 720px) {
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
  .pet-card { max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 940px) {
  .about-grid {
    grid-template-columns: 1.05fr 1.1fr 1.15fr;
    align-items: stretch;
  }
  .about-photo { min-height: 100%; }
  .about-text { padding: 3.5rem 2.5rem; align-self: center; }
  .pet-card { margin: 2.5rem 1.5rem; align-self: center; }
}

/* ========================================================================= */
/*  RESPONSIVE — MOBILE NAV (small screens)                                  */
/* ========================================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 320px);
    background: rgba(42, 42, 37, 0.98);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 1.2rem; padding: 5.5rem 2rem 2rem;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,.25);
  }
  .primary-nav > ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .primary-nav a,
  .site-header.scrolled .primary-nav a { color: #f3f1e8; font-size: 1rem; }
  .nav-open .primary-nav { transform: translateX(0); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* keep the burger visible when the dark menu is open over a solid header */
  .site-header.scrolled.nav-open .nav-toggle span { background: #fff; }
  .btn-donate { margin-top: .5rem; }
}

/* On phones the headline spans full width, so use a stronger top-to-bottom
   overlay to keep hero text readable over ANY photo that gets dropped in. */
@media (max-width: 720px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(35,30,22,.55) 0%, rgba(35,30,22,.42) 50%, rgba(35,30,22,.72) 100%);
  }
  .hero-content { padding-top: 4rem; }
}

/* Active menu item (current page) */
.primary-nav a.active { color: var(--green-soft); }
.site-header.scrolled .primary-nav a.active { color: var(--green); }

/* ========================================================================= */
/*  INNER PAGES (Our Origin, etc.)                                           */
/* ========================================================================= */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.12; margin: 0;
}
.section-sub { color: var(--muted); margin: .6rem auto 0; max-width: 46ch; }
.center { text-align: center; }
.divider.center { justify-content: center; }

/* Inner pages have a solid header, so push content below the fixed bar. */
.page-banner {
  background: var(--cream-2);
  padding: clamp(6.5rem, 12vw, 8.5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.page-title { font-size: clamp(2.4rem, 6vw, 4rem); }
.lead { font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--ink); margin: .4rem 0 0; }

/* Founder story */
.story-section { background: var(--cream); }
.founder-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.founder { margin: 0; }
.founder-photo {
  width: 100%; aspect-ratio: 7 / 8; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.founder-caption { margin-top: .9rem; text-align: center; }
.founder-name {
  display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1;
}
.founder-role {
  display: block; color: var(--green-text); text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; margin-top: .2rem;
}
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1rem; color: var(--ink); }
.prose-lead { font-size: 1.2rem; }
.pullquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--green); color: var(--green-dark);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25;
}

/* Team */
.team-section { background: var(--cream-2); }
.team-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem);
}
.team-card { text-align: center; }
.team-photo {
  width: 100%; max-width: 200px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; margin: 0 auto .9rem; border: 4px solid var(--card);
  box-shadow: var(--shadow);
}
.team-photo--jessica { object-position: center 15%; }
.team-photo--theresa { object-position: center 10%; }
.team-name { font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.team-role {
  color: var(--green-text); text-transform: uppercase;
  letter-spacing: .14em; font-size: .76rem; margin: .2rem 0 0;
}

/* Mission */
.mission-section { background: #eef1e5; }
.mission-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.mission-inner p { color: var(--ink); margin: 0 0 1.1rem; }
.mission-highlight {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem); color: var(--green-dark);
  line-height: 1.3; margin: 1.4rem 0;
}
.tax-note { font-size: .9rem; color: var(--muted); }
.mission-inner .btn { margin-top: 1rem; }

@media (min-width: 820px) {
  .founder-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .founder { position: sticky; top: 6rem; }
  .founder-caption { text-align: left; }
}
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================================================= */
/*  NEWS & EVENTS                                                            */
/* ========================================================================= */
.events-group { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.events-group:last-child { margin-bottom: 0; }
.events-group .section-heading { margin-bottom: 1.4rem; }
.event-list { display: grid; gap: 1rem; max-width: 820px; }

.event-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
  box-shadow: 0 4px 18px rgba(40, 38, 30, .05);
}
.event-date {
  flex: none; width: 64px; text-align: center; align-self: flex-start;
  background: #eef1e5; border-radius: var(--radius); padding: .5rem 0;
}
.event-month {
  display: block; color: var(--green-dark); font-weight: 600;
  font-size: .72rem; letter-spacing: .1em;
}
.event-day {
  display: block; font-family: var(--font-display); line-height: 1;
  font-size: 1.9rem; color: var(--ink);
}
.event-body { flex: 1; min-width: 0; }
.pill {
  display: inline-block; background: var(--green); color: #fff;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .65rem; border-radius: 100px; margin-bottom: .5rem;
}
.pill.is-fundraiser { background: #856017; }
.pill.is-news { background: #4a4a42; }
.event-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem); line-height: 1.15; margin: 0 0 .25rem;
}
.event-when, .event-loc { color: var(--muted); font-size: .92rem; margin: .15rem 0; }
.event-loc .ico { color: var(--green-text); vertical-align: -2px; margin-right: .1rem; }
.event-media { margin: .8rem 0; }
.event-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); }
.event-desc { margin: .6rem 0 .8rem; color: var(--ink); }
.events-empty { color: var(--muted); font-style: italic; margin: 0; }

@media (max-width: 520px) {
  .event-card { padding: 1rem; gap: .85rem; }
  .event-date { width: 54px; }
  .event-day { font-size: 1.6rem; }
}

/* ========================================================================= */
/*  DROPDOWN MENU (e.g. "Engage")                                            */
/* ========================================================================= */
.has-dropdown { position: relative; }
.nav-parent {
  background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  display: inline-flex; align-items: center; gap: .35rem; padding: 0;
}
.site-header.scrolled .nav-parent { color: var(--ink); }
.nav-parent:hover { color: var(--green-soft); }
.site-header.scrolled .nav-parent:hover { color: var(--green); }
.has-dropdown.is-active > .nav-parent { color: var(--green-soft); }
.site-header.scrolled .has-dropdown.is-active > .nav-parent { color: var(--green); }
.caret { font-size: .6em; transition: transform .2s ease; }
.has-dropdown.open .caret { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none; margin: 0; padding: .4rem 0;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.dropdown-menu a {
  display: block; padding: .55rem 1.2rem; white-space: nowrap;
  color: var(--ink) !important; text-transform: none; letter-spacing: 0;
  font-size: .98rem; font-family: var(--font-body);
}
.dropdown-menu a:hover { background: var(--cream-2); color: var(--green-dark) !important; }
.dropdown-menu a.active { color: var(--green) !important; }
.has-dropdown.open > .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
@media (min-width: 861px) {
  .has-dropdown:hover > .dropdown-menu,
  .has-dropdown:focus-within > .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
  /* Invisible "bridge" filling the space between the button and the menu so
     moving the cursor down never leaves the hover area. Without it, Chrome
     rapidly re-evaluates :hover and the menu flickers in and out. */
  .has-dropdown > .dropdown-menu::before {
    content: ""; position: absolute; left: 0; right: 0;
    bottom: 100%; height: 12px;
  }
}
/* In the mobile slide-in panel the dropdown becomes an inline accordion. */
@media (max-width: 860px) {
  .has-dropdown { width: 100%; }
  .nav-parent,
  .site-header.scrolled .nav-parent {
    color: #f3f1e8; font-size: 1rem; width: 100%; justify-content: space-between;
  }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; width: 100%; background: transparent;
    border: 0; box-shadow: none; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .has-dropdown.open > .dropdown-menu { max-height: 560px; transform: none; }
  .dropdown-menu a { color: #cfcabb !important; padding: .6rem 0 .6rem 1rem; }
  .dropdown-menu a:hover { background: transparent; color: #fff !important; }
}

/* ========================================================================= */
/*  ENGAGE PAGES (Volunteer / Foster / Support) — shared blocks             */
/* ========================================================================= */
.page-intro { max-width: 62ch; margin: 0 auto; text-align: center; font-size: 1.1rem; }

.cols-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.help-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
@media (min-width: 720px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: 0 4px 18px rgba(40, 38, 30, .05);
}
.info-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0 0 .5rem;
}
.info-card p { margin: 0; color: var(--ink); }
.info-card ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.info-card li { margin: .3rem 0; }
.info-card .text-link { margin-top: .7rem; }

.steps {
  counter-reset: step; list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; gap: 1rem; max-width: 680px;
}
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; min-height: 2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem;
}
.steps strong {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}

.cta-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.btn-outline { background: transparent; color: var(--green-dark) !important; border: 1px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff !important; }

/* ========================================================================= */
/*  CONTACT PAGE + FORM                                                      */
/* ========================================================================= */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

.contact-info h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 0 0 .6rem;
}
.contact-info p { color: var(--ink); margin: 0 0 1rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; color: var(--green-text); word-break: break-word;
}
.contact-email .ico { color: var(--green); }
.contact-note { color: var(--muted); font-size: .92rem; }

/* The form card */
.form-container { max-width: 920px; }
.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 4px 18px rgba(40, 38, 30, .05);
}
.field { margin-bottom: 1.1rem; }
.field label,
.choice-field legend {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: .9rem; margin-bottom: .35rem; color: var(--ink);
}
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(95, 122, 63, .18);
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: .2rem; }

/* Two short fields side-by-side on wider screens (used on longer forms). */
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .field-row-thirds { grid-template-columns: 1.3fr .7fr .8fr; } }

/* Longer adoption application sections */
.application-form { text-align: left; }
.application-form textarea { min-height: 115px; }
.form-section-group {
  padding: clamp(1.2rem, 3vw, 1.8rem) 0;
  border-top: 1px solid var(--line);
}
.form-section-group:first-of-type { border-top: 0; padding-top: 0; }
.form-section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem); line-height: 1.2;
  margin: 0 0 1rem; color: var(--green-text);
}
.form-help {
  margin: -.35rem 0 1rem; color: var(--muted);
  font-size: .86rem; line-height: 1.45;
}
.choice-field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.choice-field legend { padding: 0; }
.choice-grid { display: grid; gap: .55rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .choice-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice {
  display: flex; align-items: flex-start; gap: .55rem;
  min-height: 44px; padding: .7rem .75rem;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
}
.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: auto; min-width: 1rem; height: 1rem; margin: .2rem 0 0;
  padding: 0; border: 0; box-shadow: none; accent-color: var(--green);
}
.choice:focus-within {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(95, 122, 63, .18);
}
.choice span { display: block; font-weight: 500; line-height: 1.35; }
.agreement-field .choice { background: #fff; }
.field-error {
  margin: .55rem 0 0; color: #8a3b2e; font-size: .86rem; display: none;
}
.choice-field.is-error .field-error { display: block; }
.choice-field.is-error .choice { border-color: #d59b8e; }

/* Honeypot: off-screen so people never see it, but bots still fill it. */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius);
  font-size: .95rem; display: none;
}
.form-status.success {
  display: block; background: #eef1e5; color: var(--green-dark); border: 1px solid #cdd8bf;
}
.form-status.error {
  display: block; background: #f7ece8; color: #8a3b2e; border: 1px solid #e6cabf;
}

/* ========================================================================= */
/*  AVAILABLE COMPANIONS (adoptable dogs)                                    */
/* ========================================================================= */
.companions-section { background: var(--cream); }
.companion-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .companion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .companion-grid { grid-template-columns: repeat(3, 1fr); } }

.companion-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(40, 38, 30, .05);
}
.companion-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; display: block; }
.companion-photo-link { display: block; overflow: hidden; }
.companion-photo-link img { transition: transform .4s ease; }
.companion-photo-link:hover img { transform: scale(1.04); }
.companion-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.companion-body .pill { align-self: flex-start; }
.companion-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  margin: .5rem 0 .1rem;
}
.companion-meta { color: var(--muted); font-size: .92rem; margin: 0 0 .6rem; }
.companion-bio { color: var(--ink); margin: 0 0 1.1rem; flex: 1; }
.companion-card .btn { width: 100%; justify-content: center; }
.companions-empty { color: var(--muted); font-style: italic; }

/* Status pill colors (reused on the companions page) */
.pill.is-pending { background: #856017; }
.pill.is-adopted { background: #4a4a42; }

/* ========================================================================= */
/*  GIVE PAGE                                                                */
/* ========================================================================= */
.impact-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.6rem auto 0; max-width: 680px; }
@media (min-width: 640px) { .impact-row { grid-template-columns: repeat(3, 1fr); } }
.impact-item { text-align: center; }
.impact-amount { display: block; font-family: var(--font-display); color: var(--green); font-size: 1.7rem; line-height: 1; }
.impact-text { color: var(--muted); font-size: .92rem; }

.give-box {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: 0 4px 18px rgba(40, 38, 30, .05);
}
.give-heading {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0 0 1.3rem;
}
.give-methods { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.1rem; }
@media (min-width: 900px) { .give-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.give-method-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  text-align: center; padding: 1.5rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream);
}
.give-method-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0; }
.give-method-note { color: var(--muted); font-size: .9rem; margin: 0; word-break: break-word; }
.give-method-card .btn {
  width: 100%; justify-content: center; margin-top: .2rem;
  font-size: .8rem; letter-spacing: .03em; padding-left: .7rem; padding-right: .7rem;
}
.give-qr { width: 100%; max-width: 170px; height: auto; aspect-ratio: 1 / 1; border-radius: var(--radius); }
.zelle-email {
  width: 100%; margin: 0; padding: .55rem .5rem; white-space: nowrap;
  overflow-wrap: normal; word-break: normal;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-size: .68rem; letter-spacing: -.01em;
}
.give-note { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }

/* ========================================================================= */
/*  COMPANION DETAIL PAGE (one dog + photo gallery)                          */
/* ========================================================================= */
.companion-detail-section { padding-top: clamp(6rem, 11vw, 7.5rem); }
.back-link { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.3rem; }

.companion-detail { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 820px) { .companion-detail { grid-template-columns: 1.05fr 1fr; align-items: start; } }

.detail-main {
  display: block; margin: 0 auto;
  max-width: 100%; max-height: 70vh; width: auto; height: auto; /* full aspect ratio, no crop */
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.detail-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.detail-thumb {
  width: 74px; height: 74px; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px solid transparent; border-radius: var(--radius); background: none;
  transition: border-color .15s ease;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.detail-thumb.active { border-color: var(--green); }
.detail-thumb:hover { border-color: var(--green-soft); }

.detail-info { align-self: start; }
.detail-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: .5rem 0 .2rem;
}
.detail-meta { color: var(--muted); margin: 0 0 1.1rem; }
.detail-bio { color: var(--ink); margin: 0 0 1.6rem; }

/* ========================================================================= */
/*  THE COMPANION JOURNAL                                                    */
/* ========================================================================= */
.journal-list { max-width: 760px; }
.journal-post { padding: clamp(1.6rem, 4vw, 2.4rem) 0; border-bottom: 1px solid var(--line); }
.journal-post:first-child { padding-top: 0; }
.journal-post:last-child { border-bottom: 0; padding-bottom: 0; }
.journal-media { margin-bottom: 1.1rem; }
.journal-media img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.journal-date {
  color: var(--muted); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 .3rem;
}
.journal-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; margin: 0 0 .6rem;
}
.journal-text { color: var(--ink); margin: 0 0 .8rem; }

/* Privacy note under the forms */
.form-privacy {
  margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; line-height: 1.5;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .story-tile:hover img { transform: none; }
  .companion-photo-link:hover img { transform: none; }
  /* No marquee: show one static, centered, wrapped row of sponsors. */
  .sponsors-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .sponsors-track [aria-hidden="true"] { display: none; }
}
