/* Sonshine Acres Corgis
   Warm farmhouse palette pulled from the watercolor logo and the old site's deep red. */

:root {
  --cream: #f8f2e7;
  --paper: #fffdf8;
  --sand: #efe4d0;
  --line: #e3d6bf;
  --ink: #2f291f;
  --muted: #6c6152;
  --red: #8e1b12;
  --red-dark: #6a120b;
  --rust: #b0612a;
  --rust-soft: #f3e1cf;
  --sage: #47683f;
  --sage-soft: #e1ecd9;
  --amber: #8a5a07;
  --amber-soft: #f7e7c4;

  --font-head: "Alegreya", Georgia, "Times New Roman", serif;
  --font-body: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(47, 41, 31, .06), 0 8px 24px rgba(47, 41, 31, .08);
  --shadow-lg: 0 2px 4px rgba(47, 41, 31, .06), 0 18px 40px rgba(47, 41, 31, .14);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-paper { background: var(--paper); }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--rust);
}
.lead { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: #fff; text-decoration: none;
  font: 700 1rem/1 var(--font-body); letter-spacing: .01em; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--red); }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--red-dark); }
.btn-small { padding: 10px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span { font: 800 1.35rem/1.05 var(--font-head); }
.brand em { font-style: normal; color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap;
}
.site-nav .btn { white-space: nowrap; }
.site-nav li a:hover { background: var(--sand); color: var(--ink); }
.site-nav li a[aria-current="page"] { color: var(--red); background: var(--rust-soft); }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
  .site-nav .btn { align-self: flex-start; }
}
@media (max-width: 420px) { .brand span { font-size: 1.15rem; } .brand img { width: 44px; height: 44px; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 22, 14, .72) 0%, rgba(30, 22, 14, .35) 55%, rgba(30, 22, 14, .1) 100%),
              linear-gradient(0deg, rgba(30, 22, 14, .55) 0%, rgba(30, 22, 14, 0) 45%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 110px); max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero .eyebrow { color: #f6cf9f; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #fbf1e3; max-width: 34ch; }
.hero .btn-row { margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero .btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  font-weight: 600; font-size: .95rem;
}
.hero-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8fd17f; box-shadow: 0 0 0 4px rgba(143, 209, 127, .25); }

/* Page header for inner pages */
.page-head { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.page-head p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }
.crumb { display: inline-flex; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; text-decoration: none; }

/* ── Split (image + text) ─────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split-reverse .split-media { order: 2; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.facts strong { display: block; font: 800 1.6rem/1.1 var(--font-head); color: var(--red); }
.facts span { font-size: .9rem; color: var(--muted); font-weight: 600; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-media .badge { position: absolute; top: 14px; left: 14px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-role { font: 700 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.card-price { font: 800 1.35rem/1 var(--font-head); color: var(--ink); }
.card-link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--red); }
.parent-card .card-media { aspect-ratio: 1 / 1; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font: 700 .82rem/1 var(--font-body); letter-spacing: .02em; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-available { background: var(--sage-soft); color: var(--sage); }
.badge-reserved { background: var(--amber-soft); color: var(--amber); }
.badge-sold { background: var(--rust-soft); color: var(--red); }

.empty {
  max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 48px);
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius);
}
.empty p { color: var(--muted); }

/* ── Steps (adoption) ─────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 30px 24px 26px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 50%; background: var(--red); color: #fff; font: 800 1.3rem/1 var(--font-head);
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.reviews { columns: 2 340px; column-gap: 24px; }
.review {
  break-inside: avoid; margin: 0 0 24px; padding: 28px 28px 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.review::before { content: "\201C"; display: block; height: 36px; font: 800 4.5rem/1 var(--font-head); color: var(--rust); }
.review blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.review figcaption { font-weight: 700; color: var(--red); }
.stars { color: #c98a1b; letter-spacing: 2px; margin-bottom: 6px; }

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: var(--sand); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(20, 15, 10, .92); padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 8px; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ── Detail pages (puppy / parent) ────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-photos .main-photo { padding: 0; border: 0; width: 100%; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-lg); background: var(--sand); }
.detail-photos .main-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--sand); }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin-bottom: .2em; }
.detail-sub { font: italic 600 1.1rem/1.4 var(--font-head); color: var(--muted); margin-bottom: 14px; }
.detail-price { font: 800 2rem/1 var(--font-head); margin: 14px 0 18px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 22px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.specs dt { font-weight: 700; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.detail-info .btn-row { margin-top: 22px; }
.sub-gallery { margin-top: clamp(40px, 6vw, 64px); }
.sub-gallery h2 { font-size: 1.7rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

.prose { max-width: 720px; }
.prose p, .prose li { font-size: 1.1rem; }
.callout {
  padding: 20px 22px; border-radius: var(--radius-sm); background: var(--rust-soft); border-left: 5px solid var(--rust);
}
.callout p:last-child { margin: 0; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.field .hint { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font: 500 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 4px rgba(176, 97, 42, .18); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choice-row label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600;
}
.choice-row input { accent-color: var(--red); }
.choice-row label:has(input:checked) { border-color: var(--red); background: var(--rust-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--red); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 1.1rem; }
.contact-list .ico {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--rust-soft); color: var(--red);
}
.contact-list svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ── Band (call to action) ────────────────────────────────────────────────── */
.band { background: var(--red); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { margin: 0; color: #f7dcd4; font-size: 1.1rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: #2a241b; color: #d9cdb8; padding-top: 64px; margin-top: 0; }
.site-footer a { color: #f1e4cf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 10px; }
.footer-name { font: 800 1.4rem/1.1 var(--font-head); color: #fff; margin-bottom: 6px; }
.footer-heading { font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #c9a27a; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
