:root {
  --ink: #092f37;
  --deep: #063b47;
  --teal: #087f83;
  --sea: #46b8ae;
  --foam: #eef9f7;
  --sand: #f4ead8;
  --cream: #fffdf7;
  --white: #ffffff;
  --muted: #567078;
  --line: rgba(9,47,55,.14);
  --shadow: 0 24px 60px rgba(9,47,55,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 1rem; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { height: 84px; padding: 0 clamp(1.25rem,5vw,5rem); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,247,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .75rem; line-height: 1.1; }
.brand strong { display: block; font-family: "Fraunces", serif; font-size: 1.25rem; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--deep); color: white; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.brand-mark span { font-family: "Fraunces", serif; font-size: .95rem; position: relative; z-index: 1; }
.brand-mark i { position: absolute; width: 60px; height: 20px; border-radius: 50%; background: var(--sea); bottom: -10px; transform: rotate(-9deg); }
nav { display: flex; align-items: center; gap: clamp(1rem,2.4vw,2rem); }
nav a, .staff-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; border: 0; background: transparent; cursor: pointer; padding: .5rem 0; }
nav a:hover, .staff-link:hover { color: var(--teal); }
.staff-link { color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; padding: .55rem 1rem; }
.menu-button { display: none; border: 1px solid var(--line); background: white; border-radius: .5rem; padding: .55rem .8rem; color: var(--ink); }
.hero { min-height: min(760px, calc(100vh - 84px)); position: relative; display: flex; align-items: center; overflow: hidden; background: var(--deep); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { background: linear-gradient(90deg, rgba(5,42,51,.94) 0%, rgba(5,42,51,.76) 38%, rgba(5,42,51,.14) 67%, rgba(5,42,51,.06) 100%); }
.hero-copy { position: relative; z-index: 1; color: white; max-width: 720px; padding: clamp(4rem,9vw,8rem) clamp(1.25rem,7vw,7rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: #8fe4dc; }
h1, h2, h3 { font-family: "Fraunces", serif; line-height: 1.06; margin-top: 0; }
h1 { font-size: clamp(3rem,7vw,6.7rem); letter-spacing: -.045em; margin-bottom: 1.5rem; max-width: 790px; }
h2 { font-size: clamp(2.4rem,5vw,4.3rem); letter-spacing: -.035em; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1.05rem,1.8vw,1.35rem); max-width: 580px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.button { border-radius: 999px; min-height: 48px; padding: .75rem 1.35rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid transparent; font-weight: 700; cursor: pointer; }
.button-primary { background: var(--sea); color: #042c34; }
.button-primary:hover { background: #71d4ca; }
.button-ghost { border-color: rgba(255,255,255,.5); color: white; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.concept-note { position: absolute; z-index: 2; right: 1rem; bottom: .75rem; color: rgba(255,255,255,.72); font-size: .75rem; margin: 0; }
.section { padding: clamp(5rem,10vw,9rem) clamp(1.25rem,7vw,7rem); }
.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; max-width: 1250px; margin: 0 auto 3rem; }
.section-heading h2 { max-width: 650px; margin-bottom: 0; }
.section-heading > p { max-width: 470px; color: var(--muted); margin: 0 0 .5rem; }
.animals { background: var(--cream); }
.pet-card { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); background: white; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow); }
.pet-photo-wrap { min-height: 470px; position: relative; overflow: hidden; }
.pet-photo-wrap img { width: 100%; height: 100%; position: absolute; object-fit: cover; transition: transform .5s ease; }
.pet-card:hover .pet-photo-wrap img { transform: scale(1.02); }
.status-pill { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); padding: .42rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pet-gallery { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; gap: .55rem; justify-content: center; }
.gallery-thumb { width: 66px; height: 66px; padding: 3px; border: 2px solid transparent; border-radius: .72rem; background: rgba(255,255,255,.88); cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.gallery-thumb.active { border-color: var(--sea); }
.gallery-thumb img { position: static; width: 100%; height: 100%; object-fit: cover; border-radius: .45rem; transition: none; }
.pet-card:hover .gallery-thumb img { transform: none; }
.pet-content { padding: clamp(2rem,5vw,4.5rem); display: flex; flex-direction: column; justify-content: center; }
.pet-title-row { display: flex; justify-content: space-between; gap: 1rem; }
.pet-title-row h3 { font-size: clamp(2.2rem,4vw,3.5rem); margin-bottom: .8rem; }
.heart { font-size: 2.2rem; color: var(--teal); }
.pet-facts { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem; color: var(--muted); font-size: .86rem; }
.pet-facts li + li::before { content: "·"; margin: 0 .65rem; }
.pet-content > p { color: var(--muted); }
.health-notes { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.health-notes span { padding: .4rem .68rem; border-radius: 999px; background: var(--foam); color: var(--deep); font-size: .76rem; font-weight: 700; }
.text-link { color: var(--teal); font-weight: 700; text-decoration: none; margin-top: 1rem; }
.phone-demo { max-width: 720px; width: 100%; margin: 2.5rem auto 0; background: var(--foam); color: var(--ink); border: 1px solid rgba(8,127,131,.25); border-radius: 1rem; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; text-align: left; cursor: pointer; }
.phone-demo:hover { border-color: var(--teal); transform: translateY(-1px); }
.phone-demo small { display: block; color: var(--muted); }
.phone-demo-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: white; font-size: 1.5rem; }
.mission { background: var(--deep); color: white; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); column-gap: 7vw; }
.mission .eyebrow { color: #8fe4dc; }
.mission-copy { max-width: 710px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.care-grid { grid-column: 1 / -1; margin-top: 4rem; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.18); }
.care-grid > div { padding: 2rem 2rem 0 0; }
.care-grid > div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 2rem; }
.care-grid span { color: #8fe4dc; font-size: .8rem; letter-spacing: .12em; }
.care-grid h3 { font-size: 1.5rem; margin: 1rem 0 .6rem; }
.care-grid p { color: rgba(255,255,255,.68); margin: 0; }
.adopt { background: var(--sand); }
.adopt-card { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(3rem,8vw,8rem); }
.adopt-card > div > p:last-child { color: var(--muted); max-width: 450px; }
.adopt ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(9,47,55,.2); }
.adopt li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(9,47,55,.2); }
.adopt li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: white; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.adopt li strong { font-size: 1.05rem; }
.adopt li p { margin: .25rem 0 0; color: var(--muted); }
.help { background: var(--cream); display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(3rem,8vw,8rem); align-items: start; }
.help-copy p:last-child { color: var(--muted); max-width: 520px; }
.help-actions { border-top: 1px solid var(--line); }
.help-actions a { padding: 1.3rem .25rem; text-decoration: none; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.help-actions a:hover strong { color: var(--teal); }
.help-actions span { color: var(--muted); font-size: .9rem; text-align: right; }
footer { background: #032b34; color: white; padding: 3rem clamp(1.25rem,7vw,7rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-brand small { color: rgba(255,255,255,.6); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.25rem; color: rgba(255,255,255,.76); }
.footer-contact a { text-decoration: none; }
footer > p { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; margin: 0; color: rgba(255,255,255,.55); font-size: .78rem; }
.admin-dialog { width: min(92vw,620px); max-height: 92vh; border: 0; border-radius: 1.35rem; padding: 0; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.admin-dialog::backdrop { background: rgba(3,43,52,.72); backdrop-filter: blur(5px); }
.admin-panel { padding: clamp(1.5rem,5vw,3rem); }
.admin-heading { display: flex; justify-content: space-between; align-items: start; }
.admin-heading h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.close-button { background: var(--foam); border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: var(--ink); font-size: 1.5rem; }
.demo-warning { background: var(--sand); border-radius: .8rem; padding: .8rem 1rem; font-size: .86rem; }
.admin-panel label { display: block; font-weight: 700; margin-top: 1rem; }
.admin-panel input, .admin-panel textarea { width: 100%; display: block; margin-top: .4rem; border: 1px solid rgba(9,47,55,.25); border-radius: .7rem; padding: .8rem .9rem; background: white; color: var(--ink); }
.admin-panel textarea { resize: vertical; }
.admin-panel input:focus, .admin-panel textarea:focus { outline: 3px solid rgba(70,184,174,.3); border-color: var(--teal); }
.admin-submit { width: 100%; margin-top: 1.5rem; border: 0; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%,150%); background: var(--ink); color: white; border-radius: 999px; padding: .75rem 1.1rem; box-shadow: var(--shadow); transition: transform .3s ease; }
.toast.show { transform: translate(-50%,0); }
@media (max-width: 850px) {
  .site-header { height: 72px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); padding: 1rem 1.25rem 1.5rem; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .staff-link { text-align: left; width: fit-content; }
  .hero { min-height: 690px; align-items: end; }
  .hero-image { object-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,42,51,.96) 0%, rgba(5,42,51,.76) 52%, rgba(5,42,51,.12) 100%); }
  .hero-copy { padding-top: 18rem; }
  h1 { font-size: clamp(3rem,13vw,4.6rem); }
  .section-heading, .mission, .adopt-card, .help { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .pet-card { grid-template-columns: 1fr; }
  .pet-photo-wrap { min-height: 360px; }
  .gallery-thumb { width: 58px; height: 58px; }
  .care-grid { grid-template-columns: 1fr; }
  .care-grid > div, .care-grid > div + div { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding: 1.5rem 0; }
  .adopt ol, .help-actions { margin-top: 3rem; }
  footer { grid-template-columns: 1fr; }
  .footer-contact { justify-content: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .brand small { display: none; }
  .hero-actions .button { width: 100%; }
  .pet-photo-wrap { min-height: 280px; }
  .pet-content { padding: 1.5rem; }
  .help-actions a { flex-direction: column; }
  .help-actions span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
