:root {
  --ink: #123447;
  --blue: #174f6d;
  --blue-2: #2e6f8d;
  --sky: #d8ebf3;
  --pale-sky: #eff8fb;
  --orange: #e48735;
  --orange-dark: #c96922;
  --cream: #fff9ee;
  --white: #ffffff;
  --muted: #647985;
  --line: #d8e5e9;
  --green: #5d8f79;
  --shadow: 0 24px 60px rgba(23, 79, 109, 0.14);
  --shadow-soft: 0 12px 35px rgba(23, 79, 109, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "DM Sans", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.demo-banner { padding-block: 14px; background: var(--blue); color: white; font-size: .85rem; }
.demo-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-banner p { margin: 0; }
.demo-banner strong { display: block; color: #ffd6ad; }
.demo-tour-start { flex-shrink: 0; padding: 10px 16px; border: 1px solid #ffd6ad; border-radius: 10px; background: transparent; color: #ffd6ad; font-weight: 700; cursor: pointer; }
.demo-tour-start:hover, .demo-tour-start:focus-visible { background: white; color: var(--blue); }

.demo-tour[hidden] { display: none; }
.demo-tour { position: fixed; z-index: 100; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 300px; gap: 28px; width: min(calc(100% - 32px), 1050px); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 24px; border: 2px solid #6d28d9; border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 12px 65px rgba(18,52,71,.25); }
.demo-tour:focus { outline: none; }
.demo-tour-progress { margin: 0 0 8px; color: #6d28d9; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.demo-tour h2 { margin: 0 0 10px; font-size: 1.5rem; color: var(--blue); }
.demo-tour-copy > p:last-child { margin: 0; font-size: .9rem; }
.demo-tour-controls label { display: block; margin-bottom: 5px; font-size: .75rem; font-weight: 700; }
.demo-tour-controls select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.demo-tour-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.demo-tour-buttons button { min-height: 40px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--blue); font-weight: 700; cursor: pointer; }
.demo-tour-buttons .demo-tour-next { background: #6d28d9; border-color: #6d28d9; color: white; }
.demo-tour-buttons button:disabled { opacity: .45; cursor: default; }
.demo-tour-controls > p { margin: 10px 0 0; font-size: .7rem; color: var(--muted); }
body.demo-tour-active { padding-bottom: var(--demo-tour-space, 240px); }
.demo-tour-linked { outline: 2px solid #6d28d9; outline-offset: 4px; border-radius: 6px; }
.demo-tour-linked.demo-tour-current { outline: 4px solid #6d28d9; outline-offset: 6px; box-shadow: 0 0 0 6px white; }
body.demo-tour-active .reveal { opacity: 1; transform: none; transition: none; }
body.demo-tour-active .primary-nav.open { max-height: var(--demo-tour-nav-space, 300px); overflow-y: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(18,52,71,.08); backdrop-filter: blur(15px); }
.nav-wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue); font-family: "Nunito", sans-serif; text-transform: uppercase; font-size: .74rem; line-height: 1.05; letter-spacing: .08em; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand strong { font-size: 1.03rem; font-weight: 900; }
.primary-nav { display: flex; align-items: center; gap: 34px; font-size: .94rem; font-weight: 700; }
.primary-nav > a:not(.button) { position: relative; }
.primary-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s ease; }
.primary-nav > a:hover::after, .primary-nav > a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--blue); transition: .2s ease; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 24px; border: 2px solid var(--orange); border-radius: 999px; background: var(--orange); color: white; font-weight: 800; box-shadow: 0 10px 22px rgba(228,135,53,.22); cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--orange-dark); border-color: var(--orange-dark); box-shadow: 0 14px 28px rgba(201,105,34,.26); }
.button-small { min-height: 42px; padding: 8px 20px; }
.button-outline { background: transparent; color: var(--blue); border-color: var(--blue); box-shadow: none; }
.button-outline:hover, .button-outline:focus-visible { background: var(--blue); border-color: var(--blue); color: white; }
.button-light { background: white; border-color: white; color: var(--blue); box-shadow: none; }
.button-light:hover, .button-light:focus-visible { background: var(--cream); border-color: var(--cream); }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cream) 0%, #fff 55%, var(--pale-sky) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: radial-gradient(var(--blue-2) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 0 55%, black); }
.hero-grid { position: relative; z-index: 1; min-height: 710px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; padding-block: 80px 90px; }
.hero-copy { max-width: 590px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--orange-dark); font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: currentColor; }
.eyebrow.light { color: #ffd3a9; }
h1, h2, h3 { margin-top: 0; font-family: "Nunito", sans-serif; line-height: 1.08; }
h1 { max-width: 670px; margin-bottom: 24px; color: var(--blue); font-size: clamp(3.4rem, 6vw, 5.4rem); font-weight: 900; letter-spacing: -.045em; }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 570px; margin: 0 0 32px; color: #496773; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 800; }
.play-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--orange-dark); }
.hero-proof { display: flex; align-items: center; gap: 15px; margin-top: 34px; }
.hero-proof p { margin: 0; font-size: .82rem; line-height: 1.35; }
.hero-proof span { color: var(--muted); }
.avatar-stack { display: flex; }
.avatar-stack span { width: 37px; height: 37px; display: grid; place-items: center; margin-left: -9px; border: 3px solid white; border-radius: 50%; background: var(--blue); color: white; font-size: .63rem; font-weight: 800; }
.avatar-stack span:first-child { margin-left: 0; background: var(--orange); }
.avatar-stack span:last-child { background: var(--green); }
.hero-visual { position: relative; min-height: 545px; }
.hero-photo-frame { position: absolute; top: 15px; right: 20px; width: min(90%, 520px); aspect-ratio: .92; overflow: hidden; border: 12px solid white; border-radius: 48% 48% 28% 28% / 42% 42% 22% 22%; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(18,52,71,.18)); }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.logo-card, .status-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 17px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft); }
.logo-card { left: 0; top: 52px; transform: rotate(-3deg); }
.logo-card img { width: 70px; height: 70px; object-fit: contain; }
.logo-card p, .status-card p { margin: 0; font-size: .8rem; line-height: 1.35; }
.status-card { right: 0; bottom: 22px; }
.status-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: 1.3rem; }
.paw-dots { position: absolute; right: 0; top: 0; color: var(--orange); letter-spacing: 13px; font-size: 1.5rem; transform: rotate(20deg); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-blob-one { right: -90px; bottom: -190px; width: 450px; height: 450px; background: rgba(216,235,243,.65); }
.hero-blob-two { left: -180px; top: -260px; width: 400px; height: 400px; background: rgba(255,217,178,.28); }

.impact { background: var(--blue); color: white; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 33px; }
.impact-grid div { display: flex; flex-direction: column; align-items: center; padding: 4px 25px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.impact-grid div:last-child { border: 0; }
.impact-grid strong { font-family: "Nunito", sans-serif; color: #ffd2a6; font-size: 2.15rem; line-height: 1.05; }
.impact-grid span { margin-top: 5px; font-size: .78rem; opacity: .8; }

.pets-section { background: white; }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { max-width: 690px; margin-bottom: 0; color: var(--blue); font-size: clamp(2.3rem, 4.3vw, 3.7rem); font-weight: 900; letter-spacing: -.035em; }
.section-heading > p:last-child { max-width: 530px; color: var(--muted); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.split-heading > p { margin: 0 0 7px; }
.centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.centered > p:last-child { margin: 18px auto 0; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.story-section { overflow: hidden; background: var(--blue); color: white; }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 90px; }
.story-visual { position: relative; min-height: 560px; }
.story-photo-main { position: absolute; inset: 0 95px 35px 0; overflow: hidden; border: 8px solid rgba(255,255,255,.15); border-radius: 140px 30px 30px 30px; }
.story-photo-main img, .story-photo-small img { width: 100%; height: 100%; object-fit: cover; }
.story-photo-small { position: absolute; right: 0; bottom: 0; width: 210px; height: 250px; overflow: hidden; border: 8px solid var(--blue); border-radius: 30px 30px 100px 30px; }
.story-stamp { position: absolute; left: 12px; bottom: 0; width: 138px; height: 138px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 7px solid var(--blue); border-radius: 50%; background: var(--orange); text-align: center; }
.story-stamp strong { font-family: "Nunito", sans-serif; font-size: 2.3rem; line-height: .9; }
.story-stamp span { margin-top: 6px; font-size: .68rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; }
.story-copy h2 { margin-bottom: 24px; color: white; font-size: clamp(2.5rem, 4.7vw, 4rem); font-weight: 900; letter-spacing: -.04em; }
.story-copy .lead { color: white; font-size: 1.1rem; font-weight: 600; }
.story-copy > p:not(.eyebrow) { color: rgba(255,255,255,.74); }
.check-list { margin: 27px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; margin: 11px 0; }
.check-list span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); color: #ffd3a9; font-size: .75rem; }

.process-section { background: var(--cream); }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 60px 0 0; padding: 0; list-style: none; }
.process-grid::before { content: ""; position: absolute; top: 49px; left: 18%; right: 18%; border-top: 2px dashed #cbdde4; }
.process-grid li { position: relative; padding: 35px 31px 30px; border: 1px solid #eadfce; border-radius: var(--radius-md); background: white; text-align: center; box-shadow: 0 10px 30px rgba(96,70,34,.05); }
.step-number { position: absolute; right: 17px; top: 13px; color: #cadce4; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.05rem; }
.step-icon { position: relative; z-index: 1; width: 73px; height: 73px; display: grid; place-items: center; margin: 0 auto 23px; border-radius: 50%; background: var(--pale-sky); color: var(--blue); font-size: 2rem; }
.process-grid li:nth-child(2) .step-icon { background: #fff0df; color: var(--orange-dark); }
.process-grid h3 { margin-bottom: 9px; color: var(--blue); font-size: 1.3rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: .88rem; }

.involved-section { background: white; }
.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.involved-card { min-height: 335px; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; padding: 34px; overflow: hidden; border-radius: var(--radius-md); background: var(--blue); color: white; position: relative; }
.involved-card::before, .involved-card::after { content: ""; position: absolute; border-radius: 50%; opacity: .17; }
.involved-card::before { width: 210px; height: 210px; right: -60px; top: -65px; border: 35px solid white; }
.involved-card::after { width: 90px; height: 90px; right: 15px; top: 15px; background: white; }
.involved-card.foster { background: var(--orange); }
.involved-card.donate { background: var(--green); }
.involved-card > * { position: relative; z-index: 1; }
.card-kicker { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.involved-card h3 { margin: 18px 0 8px; font-size: 1.7rem; }
.involved-card p { margin: 0 0 24px; color: rgba(255,255,255,.8); font-size: .88rem; }
.involved-card a { font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.55); }

.testimonial-section { padding: 90px 0; background: var(--pale-sky); }
.testimonial-wrap { max-width: 900px; text-align: center; }
.quote-mark { height: 57px; color: var(--orange); font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
blockquote { margin: 12px auto 27px; color: var(--blue); font-family: "Nunito", sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.quote-person { display: flex; justify-content: center; align-items: center; gap: 12px; }
.quote-person > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: .74rem; font-weight: 800; }
.quote-person p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: left; }
.quote-person strong { color: var(--ink); }

.contact-section { background: var(--blue); color: white; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 90px; }
.contact-copy h2 { margin-bottom: 23px; color: white; font-size: clamp(2.7rem, 4.8vw, 4.2rem); font-weight: 900; letter-spacing: -.04em; }
.contact-copy > p:not(.eyebrow) { max-width: 530px; color: rgba(255,255,255,.73); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 28px; margin-top: 34px; }
.contact-details p { position: relative; margin: 0; padding-left: 39px; color: rgba(255,255,255,.72); font-size: .82rem; }
.contact-details span { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #ffd3a9; }
.contact-details strong { color: white; }
.portal-contact-card { display: grid; gap: 18px; padding: 38px; border-radius: var(--radius-lg); background: white; color: var(--ink); box-shadow: var(--shadow); }
.portal-contact-card h3 { margin: 0; color: var(--blue); font-size: 1.8rem; }
.portal-contact-card p { margin: 0; color: var(--muted); }
.portal-contact-card .button { justify-self: start; }

.site-footer { background: #0f3041; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.3fr; gap: 60px; padding-block: 65px 50px; }
.footer-brand img { width: 105px; margin-bottom: 16px; border-radius: 50%; background: white; }
.footer-brand p { margin: 0; color: #b8d2dd; font-family: "Nunito", sans-serif; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.footer-grid h2 { margin-bottom: 15px; color: #ffd3a9; font-size: .79rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand):not(.newsletter) a { display: block; margin: 9px 0; color: #c3d5dc; font-size: .86rem; }
.newsletter p { color: #a9c2cc; font-size: .8rem; }
.newsletter form { display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.newsletter input { min-width: 0; flex: 1; padding: 11px 15px; border: 0; background: transparent; color: white; outline: none; }
.newsletter button { width: 44px; border: 0; background: var(--orange); color: white; cursor: pointer; }
.newsletter-status { min-height: 1.2em; margin: 8px 0 0; color: #ffd3a9 !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8faab5; font-size: .7rem; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation-duration: .01ms !important; } }

@media (max-width: 960px) {
  .primary-nav { position: absolute; top: 84px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px 24px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow-soft); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; }
  .primary-nav .button { margin-top: 8px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; gap: 25px; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(100%, 650px); margin-inline: auto; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .story-visual { width: min(100%, 650px); }
  .footer-grid { grid-template-columns: 1.2fr .7fr .7fr; }
  .newsletter { grid-column: 1 / -1; max-width: 460px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .demo-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .demo-tour { grid-template-columns: 1fr; gap: 14px; bottom: 8px; width: calc(100% - 16px); padding: 16px; }
  .demo-tour h2 { font-size: 1.2rem; }
  .demo-tour-copy > p:last-child { font-size: .8rem; }
  .nav-wrap { height: 72px; }
  .brand img { width: 52px; height: 52px; }
  .primary-nav { top: 72px; }
  .hero-grid { min-height: auto; padding-block: 58px 70px; }
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-visual { min-height: 410px; }
  .hero-photo-frame { right: 0; width: 89%; border-width: 8px; }
  .logo-card { top: 20px; padding: 8px 10px; }
  .logo-card img { width: 50px; height: 50px; }
  .logo-card p { font-size: .65rem; }
  .status-card { bottom: 0; right: 3px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid div { border-bottom: 1px solid rgba(255,255,255,.18); }
  .impact-grid div:nth-child(2) { border-right: 0; }
  .impact-grid div:nth-child(3), .impact-grid div:nth-child(4) { border-bottom: 0; }
  .split-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .process-grid, .involved-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .story-visual { min-height: 450px; }
  .story-photo-main { right: 50px; }
  .story-photo-small { width: 150px; height: 190px; }
  .story-stamp { width: 110px; height: 110px; }
  .story-stamp strong { font-size: 1.8rem; }
  .contact-details { grid-template-columns: 1fr; }
  .portal-contact-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 30px; }
  .footer-brand, .newsletter { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .brand span { display: none; }
  .hero-proof { align-items: flex-start; }
  .hero-visual { min-height: 355px; }
  .story-photo-main { right: 20px; }
  .story-photo-small { display: none; }
}
