/* Warm House Dog — styles */
:root {
  --night: #0b1624;
  --night-2: #12233a;
  --night-3: #1b3150;
  --snow: #f7f4ef;
  --snow-2: #ece6dc;
  --ink: #1d2433;
  --muted: #5b6475;
  --warm: #f4a23c;
  --warm-2: #e36a2e;
  --heart: #f28ca5;
  --ice: #b9d4ec;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 22, 36, .45);
  --max: 1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--snow); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--warm-2); }
a:hover { color: var(--night-3); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--warm-2); margin-bottom: .8em; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--night); color: var(--snow); }
.section--dark .eyebrow { color: var(--warm); }
.section--dark a { color: var(--warm); }
.section--cream { background: var(--snow-2); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 720px; }
.section--dark .lead { color: #c9d3e0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--warm); color: var(--night); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.6em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn--warm { background: linear-gradient(135deg, var(--warm), var(--warm-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(227, 106, 46, .7); }
.btn--warm:hover { color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.btn--outline { border-color: var(--night-3); color: var(--night-3); background: transparent; }
.btn--outline:hover { background: var(--night-3); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled, .site-header.is-solid { background: rgba(11, 22, 36, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px -12px rgba(0,0,0,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #e6ecf3; text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--warm); }
.nav-links .btn { padding: .6em 1.2em; min-height: 42px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: 8px 20px 24px; transform: translateY(-120%); transition: transform .25s ease; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links .btn { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--night) url("../img/night-sky.jpg") center/cover no-repeat; overflow: hidden; padding: 120px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,36,.35) 0%, rgba(11,22,36,.55) 55%, var(--night) 100%); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(244,162,60,.35), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--warm); }
.hero .lead { color: #d8e1ec; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(185, 212, 236, .14); border: 1px solid rgba(185,212,236,.35); color: var(--ice); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 28px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-card img { border-radius: 16px; margin-bottom: 18px; }
.hero-card .price { font-family: var(--font-head); font-size: 2.6rem; color: var(--warm); line-height: 1; }
.hero-card p { color: #d8e1ec; margin: .4em 0 1.2em; font-size: .98rem; }
.hero-card .btn { width: 100%; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { max-width: 440px; } }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.stat { background: var(--night-2); padding: 26px 22px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--warm); line-height: 1.1; }
.stat span { color: #c9d3e0; font-size: .95rem; }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Letter */
.letter { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.letter-photo { position: relative; }
.letter-photo img { border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.letter-photo figcaption { position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; }
.letter-photo figcaption strong { font-family: var(--font-head); font-size: 1.1rem; display: block; }
.letter blockquote { margin: 0; font-size: 1.08rem; }
.letter .signature { font-family: var(--font-head); font-style: italic; font-size: 1.35rem; color: var(--night-3); margin-top: 1.2em; }
@media (max-width: 880px) { .letter { grid-template-columns: 1fr; } .letter-photo { max-width: 520px; } }

/* Urgency */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.cold-list li::before { background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1624' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 3v18M4.2 7.5l15.6 9M4.2 16.5l15.6-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.callout { background: var(--night-2); border-left: 4px solid var(--warm); border-radius: 12px; padding: 20px 24px; font-size: 1.08rem; }
.callout strong { color: var(--warm); }
.data-cards { display: grid; gap: 14px; }
.data-card { display: flex; gap: 18px; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px 22px; }
.data-card strong { font-family: var(--font-head); font-size: 2rem; color: var(--ice); min-width: 118px; line-height: 1; }
.data-card span { color: #d0d9e5; }
.source-note { font-size: .82rem; color: #8e9bb0; margin-top: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 48px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 14px; position: relative; background: var(--night-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* Solution */
.solution-img { border-radius: 22px; background: #000; box-shadow: var(--shadow); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.feature { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 6px 24px -16px rgba(11,22,36,.35); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff1e0; color: var(--warm-2); margin-bottom: 10px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 .2em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Goal / progress */
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.goal { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: 0 10px 30px -20px rgba(11,22,36,.4); }
.goal strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--night-3); line-height: 1.1; }
.goal span { color: var(--muted); }
@media (max-width: 720px) { .goal-grid { grid-template-columns: 1fr; } }
.note { font-size: .95rem; color: var(--muted); }

/* Donate */
.donate-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .donate-wrap { grid-template-columns: 1fr; } }
.tiers { display: grid; gap: 12px; margin: 24px 0; }
.tier { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.tier:hover { border-color: var(--warm); background: rgba(244,162,60,.1); color: #fff; }
.tier strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--warm); }
.tier span { color: #d0d9e5; }
.donate-embed { background: #fff; border-radius: 22px; padding: 18px; display: flex; justify-content: center; min-height: 300px; }
.donate-embed iframe { width: 100%; max-width: 500px; min-width: 250px; border: 0; }
.alt-pay { margin-top: 18px; font-size: .95rem; color: #c9d3e0; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000 center/cover no-repeat; box-shadow: var(--shadow); }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); color: #fff; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px; font: 600 1rem var(--font-body); text-align: left; }
.yt .play { width: 64px; height: 64px; border-radius: 50%; background: var(--warm-2); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cards (help/transparency) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards, .cards--3 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px -22px rgba(11,22,36,.45); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--night-2); color: var(--warm); margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Final appeal */
.appeal { position: relative; overflow: hidden; background: var(--night) url("../img/dog-frosted-fur.jpg") center 30%/cover no-repeat; color: #fff; text-align: center; }
.appeal::before { content: ""; position: absolute; inset: 0; background: rgba(11,22,36,.78); }
.appeal .container { position: relative; }
.appeal .lines { font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35; margin-bottom: 1em; }
.appeal .lines span { display: block; }
.appeal .tag { color: var(--warm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }

/* Page hero (sub pages) */
.page-hero { background: var(--night) url("../img/night-sky.jpg") center/cover no-repeat; color: #fff; padding: 150px 0 80px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,36,.4), var(--night)); }
.page-hero .container { position: relative; }
.page-hero .lead { color: #d8e1ec; }

.quote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; font-style: italic; color: var(--night-3); border-left: 4px solid var(--heart); padding-left: 24px; margin: 0; }

/* Footer */
.site-footer { background: #070f19; color: #b8c3d2; padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.site-footer a { color: #e6ecf3; text-decoration: none; }
.site-footer a:hover { color: var(--warm); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem; color: #7f8ca0; }
.heart { color: var(--heart); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Button colors inside dark sections (override .section--dark a) */
.section--dark .btn--warm, .section--dark .btn--warm:hover,
.section--dark .btn--ghost, .section--dark .btn--ghost:hover,
.appeal .btn--warm, .appeal .btn--ghost { color: #fff; }
.section--dark .tier, .section--dark .tier:hover { color: #fff; }
.gallery img.pos-bottom { object-position: center 75%; }
