/* ============================================================
   Cats For Life prototype design system
   Clean, modern, mobile-first. One brand color + one warm accent.
   ============================================================ */
:root {
  --brand: #0f766e;          /* deep teal */
  --brand-dark: #0b5852;
  --brand-tint: #e6f3f1;
  --accent: #f97316;         /* warm coral/amber (donate) */
  --accent-dark: #ea670c;
  --ink: #1c1917;            /* warm near-black */
  --body: #44403c;           /* warm gray text */
  --muted: #78716c;
  --line: #ece9e6;
  --bg: #ffffff;
  --bg-soft: #faf8f6;        /* warm off-white */
  --bg-warm: #fbf2ec;        /* faint coral wash */
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28,25,23,.04), 0 8px 24px rgba(28,25,23,.06);
  --shadow-lg: 0 12px 40px rgba(28,25,23,.12);
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--body);
  background: var(--bg); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.lede { font-size: 1.18rem; color: var(--body); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: .8rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; transition: .18s ease; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(249,115,22,.3); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--body); font-weight: 600; font-size: .96rem; padding: .5rem .8rem; border-radius: 8px; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-warm), #fff 78%); padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lede { margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: 16px;
  padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center;
}
.hero-badge .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); display: grid; place-items: center; font-size: 1.4rem; }
.hero-badge b { color: var(--ink); display: block; font-size: 1.05rem; }
.hero-badge small { color: var(--muted); }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- stats band ---------- */
.stats { position: relative; overflow: hidden; color: #fff; padding: clamp(6rem, 12vw, 9.5rem) 0; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); view-timeline-name: --statsband; view-timeline-axis: block; }
.stats::before {
  content: ""; position: absolute; inset: -60px 0; pointer-events: none;
  background: url("houston-skyline-grey.webp") center top / cover no-repeat;
  opacity: .28;
  -webkit-mask-image: linear-gradient(to bottom, #000 12%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 12%, transparent 80%);
  /* compositor-only parallax: no JS, no scroll listeners, no CWV impact */
  will-change: transform;
  animation-name: skylineDrift;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --statsband;
  animation-range: cover;
}
@keyframes skylineDrift {
  from { transform: translateY(-42px); }
  to   { transform: translateY(42px); }
}
@media (prefers-reduced-motion: reduce) {
  .stats::before { animation: none; transform: none; }
}
.stats .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; }

/* ---------- cards / feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--body); margin-bottom: 0; font-size: .98rem; }

/* ---------- cat grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: .2s ease; text-align: left;
  display: flex; flex-direction: column; padding: 0; font: inherit; color: inherit;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #ddd6cf; }
.cat-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.cat-card:hover .cat-photo img { transform: scale(1.05); }
.cat-info { padding: 1rem 1.1rem 1.2rem; }
.cat-info h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cat-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { font-size: .76rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.pill.brand { background: var(--brand-tint); color: var(--brand-dark); border-color: transparent; }
.pill.accent { background: var(--bg-warm); color: var(--accent-dark); border-color: transparent; }
.cat-card .heart { color: var(--accent); font-size: 1.1rem; }

/* ---------- filter bar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.chip { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--body); transition: .15s; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.count-note { color: var(--muted); font-size: .92rem; margin-left: auto; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,25,23,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; border-radius: 22px; max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-grid img { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.modal-body { padding: 2rem; }
.modal-body h2 { margin-bottom: .6rem; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.9); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); line-height: 1; }

/* ---------- donate strip ---------- */
.donate-strip { background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: clamp(2rem,5vw,3.2rem); text-align: center; }
.donate-strip h2 { color: #fff; }
.donate-strip p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 1.6rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding-top: 3.2rem; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.2rem; }
.step h3 { margin-bottom: .3rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- two-col content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature-list li { padding-left: 2rem; position: relative; margin-bottom: .8rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; background: var(--brand-tint); width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; top: .15rem; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.3rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand); margin-bottom: .6rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
/* application form */
.form-section { margin-bottom: 2.6rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section > h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.form-section .sec-note { color: var(--muted); margin: 0 0 1.4rem; font-size: .95rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.row-2of3 { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.req { color: var(--accent-dark); font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--ink); background: #fff; }
.check:hover { border-color: var(--brand); }
.check input { width: auto; }
.form-note-ok { background: var(--brand-tint); border: 1px solid var(--brand); color: var(--brand-dark); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; font-weight: 600; }
.proto-banner { background: var(--bg-warm); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: .9rem 1.2rem; color: var(--accent-dark); font-size: .92rem; font-weight: 600; margin-bottom: 2rem; }
@media (max-width: 640px) { .row-2, .row-3, .row-2of3, .check-grid { grid-template-columns: 1fr; } }

.contact-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; }
.info-row { display: flex; gap: .9rem; margin-bottom: 1.4rem; }
.info-row .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }
.info-row b { color: var(--ink); display: block; }

/* ---------- partner resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .8rem; }
.res { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.res b { color: var(--ink); }
.res span { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d7d3cf; padding: 3.5rem 0 2rem; margin-top: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; }
.site-footer a { color: #d7d3cf; display: block; padding: .25rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand small { color: #a8a29e; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--brand); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .86rem; color: #a8a29e; }
.proto-tag { background: var(--accent); color: #fff; font-weight: 700; padding: .15rem .6rem; border-radius: 6px; font-size: .75rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-cols { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; }
  .stats .wrap { grid-template-columns: repeat(2,1fr); gap: 2rem; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid img { max-height: 300px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem; gap: .2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; }
  .nav-toggle { display: block; }
  .nav .nav-cta .btn:not(.btn-accent) { display: none; }
  .grid-3, .steps, .stats .wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .count-note { width: 100%; margin: .5rem 0 0; }
}
