/* ============================================================
   Teeny Tiny Puppy Tails — shared styles
   Edit colors and fonts here once; every page updates.
   ============================================================ */

:root {
  --cream: #FAF3EA;
  --card: #FFFCF7;
  --ink: #3A2A21;
  --ink-soft: #6F5A4D;
  --chestnut: #B65A2E;        /* dachshund red — buttons & accents */
  --chestnut-dk: #98491F;     /* button hover */
  --tan: #D89B5A;             /* warm highlight / eyebrows */
  --line: #ECDCCB;            /* soft divider lines */
  --choc: #2E211A;            /* deep footer / strong text */
  --shadow: 0 14px 34px rgba(58, 42, 33, 0.08);
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.4em;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--chestnut); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "Nunito Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--chestnut);
  margin: 0 0 0.9em;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 44ch; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--chestnut); color: #fff; }
.btn-primary:hover { background: var(--chestnut-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--chestnut); border-color: var(--chestnut); }
.btn-ghost:hover { background: var(--chestnut); color: #fff; }
.btn-lg { font-size: 1.1rem; padding: 1em 1.8em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 46px; height: 26px; color: var(--chestnut); }
.brand .small { display: block; font-family: "Nunito Sans", sans-serif; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); font-weight: 700; line-height: 1; }
.brand .name { line-height: 1.05; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--chestnut); text-decoration: none; }
.nav-links a.active { color: var(--chestnut); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.25em; }
.hero .lead { margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Dachshund divider (signature) ---------- */
.divider { display: flex; align-items: center; gap: 18px; color: var(--tan); max-width: 760px; margin: 0 auto; padding: 8px 24px; }
.divider .line { flex: 1; height: 1px; background: var(--line); }
.divider svg { width: 84px; height: 42px; color: var(--tan); flex: none; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-4px); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 0.3em; }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chestnut); background: #F6E6D8; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.card p { font-size: 0.98rem; }

/* ---------- Photo placeholders ---------- */
.photo {
  background: linear-gradient(135deg, #F4E5D4, #EFD9C2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--tan); text-align: center; aspect-ratio: 4 / 3; gap: 8px; padding: 16px;
}
.photo svg { width: 64px; height: 34px; opacity: 0.8; }
.photo span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: #B98A5C; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.round { border-radius: 50%; aspect-ratio: 1; width: 150px; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { text-align: center; }
.feature .dot { width: 52px; height: 52px; border-radius: 50%; background: #F6E6D8; color: var(--chestnut); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.feature .dot svg { width: 26px; height: 26px; }
.feature h3 { font-family: "Nunito Sans", sans-serif; font-weight: 700; font-size: 1.02rem; }
.feature p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Tinted band ---------- */
.band { background: var(--choc); color: #F4E7DB; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #E4D2C2; }
.band a:not(.btn) { color: var(--tan); }
.cta-band { text-align: center; padding: 80px 0; }
.cta-band .lead { margin: 0 auto 28px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; max-width: 760px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num { counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--chestnut); color: #fff; font-family: "Fraunces", serif; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 0.2em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Editable note ---------- */
.note {
  border-left: 4px solid var(--tan);
  background: #FBEEDF;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  color: #7A5A38;
  margin: 0 0 24px;
}
.note strong { color: #6B4D2E; }

/* ---------- Prose pages (about / guarantee / contract) ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

/* ---------- Reviews ---------- */
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.review .stars { color: var(--tan); letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; font-family: "Fraunces", serif; font-size: 1.15rem; line-height: 1.45; }
.review cite { font-style: normal; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--choc); color: #D9C7B8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.site-footer h4 { font-family: "Nunito Sans", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--tan); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D9C7B8; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand svg { width: 64px; height: 34px; color: var(--tan); margin-bottom: 10px; }
.footer-brand p { font-size: 0.92rem; color: #B7A393; max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; color: #97836f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Accessibility ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

/* gentle load-in */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
