/* Road Home Rescue — site-wide styles.
   Warm, hopeful, senior-friendly: big type, high contrast, WCAG AA. */

:root {
  --brand: #803aad;        /* purple from the existing brand */
  --brand-dark: #5c2a7d;
  --brand-deep: #3d1c54;   /* footer / dark surfaces */
  --cta: #cf1608;          /* donate red (AA-adjusted from #e21909) */
  --cta-dark: #a81106;
  --ink: #241a2c;
  --muted: #5c5464;
  --paper: #faf7f2;        /* warm cream */
  --card: #ffffff;
  --line: #e5ddd2;
  --focus: #1666c9;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: "Jost", "DM Sans", Arial, sans-serif;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-deep); color: #fff; padding: 12px 20px; z-index: 100;
  border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============ Header ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: 1160px; margin: 0 auto;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 56px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  font-family: "Jost", Arial, sans-serif;
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 10px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: #f3ecf8; color: var(--brand-dark); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); background: #f3ecf8; }
.site-nav a.nav-donate {
  background: var(--cta); color: #fff; padding: 10px 22px; margin-left: 6px;
}
.site-nav a.nav-donate:hover { background: var(--cta-dark); color: #fff; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font: inherit; font-family: "Jost", Arial, sans-serif; font-weight: 600;
  cursor: pointer; color: var(--ink); min-height: 44px;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
    box-shadow: 0 14px 28px rgba(36, 26, 44, .12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.15rem; padding: 14px; }
  .site-nav a.nav-donate { margin: 8px 0 0; justify-content: center; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Jost", Arial, sans-serif; font-weight: 600; font-size: 1.15rem;
  padding: 14px 30px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; min-height: 48px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(128, 58, 173, .3); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(207, 22, 8, .28); }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn-ghost:hover { background: #f3ecf8; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 700; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q 25 0 50 5 T 100 3' fill='none' stroke='%23e21909' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero .lede { font-size: 1.3rem; color: var(--muted); margin: 0 0 30px; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-photos img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  box-shadow: 0 14px 30px rgba(36, 26, 44, .18);
}
.hero-photos img:nth-child(1) { border-radius: 28px 28px 28px 90px; aspect-ratio: 3/4; }
.hero-photos img:nth-child(2) { border-radius: 90px 28px 28px 28px; aspect-ratio: 3/4; margin-top: 34px; }

@media (max-width: 820px) {
  .hero { padding: 44px 0 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .hero .lede { max-width: none; }
  .hero-photos { max-width: 480px; }
}

/* Paw watermark */
.paw-bg { position: absolute; opacity: .05; pointer-events: none; user-select: none; }

/* ============ Sections ============ */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 10px; }
.kicker {
  font-family: "Jost", Arial, sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .95rem; color: var(--brand); margin: 0 0 8px;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 14px rgba(36, 26, 44, .05);
}
.card .icon { font-size: 2rem; line-height: 1; }
.card h3 { margin: 0; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.card .card-link { margin-top: auto; padding-top: 10px; font-weight: 600; }

/* Stats band */
.stats-band { background: var(--brand-deep); color: #fff; padding: 44px 0; }
.stats-band .container { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; text-align: center; }
.stat .num { font-family: "Jost", Arial, sans-serif; font-weight: 700; font-size: 2.6rem; display: block; }
.stat .label { color: #d9c9ea; font-size: 1.05rem; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.photo-strip img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; display: block;
}
.photo-strip img:nth-child(even) { border-radius: 18px 60px 18px 18px; }
.photo-strip img:nth-child(odd) { border-radius: 60px 18px 18px 60px; }
@media (max-width: 820px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* Prose pages */
.prose { max-width: 720px; }
.prose p { margin: 0 0 1.2em; }
.prose .lead { font-size: 1.3rem; color: var(--ink); }

.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin: 0 0 10px; }
.page-head .sub { color: var(--muted); font-size: 1.25rem; margin: 0; max-width: 60ch; }

/* Callout */
.callout {
  background: #f3ecf8; border: 1px solid #e0cfee; border-left: 6px solid var(--brand);
  border-radius: 14px; padding: 20px 24px; margin: 26px 0;
}
.callout p { margin: 0; }

/* Big link panel (adopt page) */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; margin: 30px 0; text-align: center;
  box-shadow: 0 10px 30px rgba(36, 26, 44, .08);
}
.panel h2 { margin-top: 0; }

/* ============ Footer ============ */
.site-footer { background: var(--brand-deep); color: #e8ddf2; margin-top: 72px; }
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 52px 0 36px;
}
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h2 { color: #fff; font-size: 1.2rem; margin: 0 0 12px; }
.site-footer p { margin: 0 0 10px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d9c9ea; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 14px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .18); padding: 20px 0 26px;
  font-size: .95rem; color: #cbb8dd;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
