/* =====================================================================
   Black Cats & Old Dogs Animal Rescue
   Static site stylesheet — warm, friendly, responsive (desktop + mobile)
   Design vibe: tidy 2019 nonprofit site.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --teal:        #1f7a6d;
  --teal-dark:   #155e54;
  --coral:       #ef6f4c;
  --coral-dark:  #d85735;
  --gold:        #f4a93b;
  --ink:         #2d2a32;
  --body:        #45424b;
  --muted:       #6f6b75;
  --cream:       #fbf7f0;
  --cream-alt:   #f2ece1;
  --line:        #e6ddcf;
  --white:       #ffffff;
  --shadow:      0 8px 24px rgba(45, 42, 50, 0.10);
  --shadow-sm:   0 3px 10px rgba(45, 42, 50, 0.08);
  --radius:      10px;
  --maxw:        1120px;
  --head: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --text: "Open Sans", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--alt { background: var(--cream-alt); }
.section--teal { background: var(--teal); color: #eafbf7; }
.section--teal h2, .section--teal h3 { color: #fff; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--teal .lead { color: #cdeee8; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--coral);
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-accent  { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(239,111,76,.35); }
.btn-accent:hover  { background: var(--coral-dark); color: #fff; }
.btn-teal    { background: var(--teal); color: #fff; }
.btn-teal:hover    { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline-ink { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline-ink:hover { background: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
}
.brand .brand-name {
  font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); line-height: 1.1;
}
.brand .brand-name span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--coral); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); padding: 9px 14px; border-radius: 6px;
}
.nav-links a:hover { background: var(--cream-alt); text-decoration: none; color: var(--teal-dark); }
.nav-links a.active { color: var(--teal); }
.nav-links .btn { padding: 9px 20px; font-size: 0.9rem; color:#fff; }
.nav-links .btn:hover { color:#fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 26px; height: 3px; background: var(--ink);
  border-radius: 3px; transition: .2s;
}
.nav-toggle span::before { transform: translateY(-8px); }
.nav-toggle span::after  { transform: translateY(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(21,94,84,.72), rgba(45,42,50,.75)),
              var(--hero-img, var(--teal)) center/cover no-repeat;
  padding: 110px 0 120px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 0.4em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero p { font-size: 1.3rem; max-width: 640px; margin: 0 auto 1.8em; color: #f4efe8; }
.hero .btn-row { justify-content: center; }

/* page banner (smaller hero for inner pages) */
.page-banner {
  color: #fff; text-align: center; padding: 64px 0;
  background: linear-gradient(rgba(31,122,109,.85), rgba(21,94,84,.9)),
              var(--hero-img, var(--teal)) center/cover no-repeat;
}
.page-banner h1 { color: #fff; margin-bottom: .25em; }
.page-banner p { color: #e6f5f1; margin: 0 auto; max-width: 620px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-body { padding: 24px; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* reusable icon circle */
.icon-circle {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cream-alt); color: var(--teal);
}
.icon-circle svg { width: 32px; height: 32px; }

/* feature (icon) card */
.feature { text-align: center; padding: 32px 24px; }
.feature .icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cream-alt); color: var(--teal);
}
.feature .icon svg { width: 32px; height: 32px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split.reverse .split-text { order: 2; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat .label { color: #d7f0eb; font-size: 0.98rem; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold);
}
.quote p { font-style: italic; color: var(--body); }
.quote .who { font-family: var(--head); font-weight: 600; color: var(--ink); font-style: normal; margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .team-photo {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 2rem; box-shadow: var(--shadow-sm);
}
.team-card h3 { margin-bottom: 0; font-size: 1.1rem; }
.team-card .role { color: var(--coral); font-family: var(--head); font-weight: 600; font-size: 0.9rem; }
.team-card .role a { color: inherit; text-decoration: none; }
.team-card .role a:hover { text-decoration: underline; }

/* ---------- Info / contact rows ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-list .ic {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream-alt); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.info-list .ic svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-family: var(--head); color: var(--ink); }

/* callout box */
.callout {
  background: var(--white); border-left: 5px solid var(--coral);
  border-radius: 8px; padding: 22px 26px; box-shadow: var(--shadow-sm); margin: 0 0 1.2em;
}
.callout :last-child { margin-bottom: 0; }

/* numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  position: relative; padding: 4px 0 22px 64px; margin: 0;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li h3 { margin-bottom: .2em; }
.steps li p { margin-bottom: 0; color: var(--muted); }

/* simple FAQ */
.faq details {
  background: var(--white); border-radius: 8px; box-shadow: var(--shadow-sm);
  padding: 18px 22px; margin-bottom: 14px;
}
.faq summary {
  font-family: var(--head); font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--coral); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 14px 0 0; color: var(--body); }

/* form */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--head); font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--text); font-size: 1rem; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9d4; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid a { color: #cfc9d4; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand .brand-name { font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.social { display: flex; gap: 12px; margin-top: 6px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social a:hover { background: var(--coral); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  text-align: center; font-size: 0.88rem; color: #9a94a3;
}
.footer-bottom p { margin: 0 0 .3em; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1em; }
.tag {
  display: inline-block; background: var(--cream-alt); color: var(--teal-dark);
  font-family: var(--head); font-weight: 600; font-size: 0.75rem; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 50px; text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 6px; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-text { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .hero { padding: 80px 0 90px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; text-align: center; }
}
