:root {
  --rust: #b7410e;
  --rust-dark: #93340b;
  --amber: #e9a319;
  --cream: #fdf6ec;
  --cream-deep: #f7ead8;
  --ink: #3e2c23;
  --ink-soft: #6f5b50;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(62, 44, 35, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(183, 65, 14, 0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 700;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo em { color: var(--rust); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rust); }
.nav-cta {
  background: var(--rust); color: var(--white) !important;
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--rust-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, #fff3e0 0%, #ffe0c2 55%, #ffd3ad 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: center; padding-top: 72px; padding-bottom: 120px;
}
.badge {
  display: inline-block; background: var(--white); color: var(--rust);
  font-weight: 800; font-size: 0.85rem; padding: 7px 16px; border-radius: 999px;
  box-shadow: var(--shadow); margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 18px; }
.accent { color: var(--rust); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit; transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--rust); color: var(--white); box-shadow: 0 8px 22px rgba(183, 65, 14, 0.35); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: var(--white); color: var(--rust); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--cream-deep); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero-circle {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff, #ffe7cd 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px rgba(183, 65, 14, 0.25), inset 0 0 0 10px rgba(255, 255, 255, 0.55);
  animation: bob 5s ease-in-out infinite;
}
.hero-dog { font-size: 9rem; filter: drop-shadow(0 10px 14px rgba(62, 44, 35, 0.25)); }
.float-paw, .float-ball, .float-bone { position: absolute; font-size: 1.9rem; opacity: 0.85; animation: bob 4s ease-in-out infinite; }
.p1 { top: 4%; left: 8%; transform: rotate(-20deg); animation-delay: 0.4s; }
.p2 { bottom: 8%; left: 2%; font-size: 1.4rem; transform: rotate(15deg); animation-delay: 1.1s; }
.p3 { top: 12%; right: 4%; font-size: 1.5rem; transform: rotate(30deg); animation-delay: 1.8s; }
.float-ball { bottom: 2%; right: 14%; animation-delay: 0.8s; }
.float-bone { top: 46%; right: -2%; font-size: 2.2rem; animation-delay: 1.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-deep); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--ink-soft); margin-bottom: 48px; font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--amber);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(62, 44, 35, 0.16); }
.card-icon { font-size: 3rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--rust); }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Caretakers ---------- */
.caretakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 auto; }
.caretaker {
  background: var(--white); border-radius: var(--radius); padding: 38px 30px;
  box-shadow: var(--shadow); text-align: center;
}
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(145deg, #ffe0c2, #ffd3ad);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  box-shadow: inset 0 0 0 4px var(--white), 0 6px 18px rgba(183, 65, 14, 0.2);
}
.caretaker h3 { font-size: 1.35rem; }
.role { display: block; color: var(--rust); font-weight: 800; font-size: 0.9rem; margin: 6px 0 14px; }
.caretaker p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-bottom: 56px; }
.loading, .empty-note { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-style: italic; }
.t-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  border-left: 4px solid var(--rust);
}
.t-stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 2px; }
.t-desc { color: var(--ink); font-size: 0.98rem; flex: 1; }
.t-meta { color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; }
.t-meta .pup { color: var(--rust); }

/* ---------- Form ---------- */
.form-wrap {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 640px; margin: 0 auto; padding: 38px 34px;
  border-top: 4px solid var(--rust);
}
.form-title { font-size: 1.4rem; margin-bottom: 22px; text-align: center; }
form label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 16px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 2px solid var(--cream-deep); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); transition: border-color 0.2s;
  resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--amber); background: var(--white); }
.stars-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.stars-label { font-weight: 800; font-size: 0.92rem; }
.star-picker { display: flex; gap: 4px; }
.star {
  background: none; border: none; font-size: 1.9rem; cursor: pointer;
  color: #ddcfc2; transition: color 0.15s, transform 0.15s; padding: 2px;
}
.star:hover { transform: scale(1.15); }
.star.active { color: var(--amber); }
.form-msg { margin-top: 14px; font-weight: 700; text-align: center; min-height: 1.4em; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #c62828; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #e8ddd5; padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-logo { color: var(--white); margin-bottom: 12px; }
.footer-logo em { color: var(--amber); }
.footer p { font-size: 0.95rem; }
.footer-contact p { margin-bottom: 6px; font-weight: 700; }
.footer a { color: var(--amber); text-decoration: none; }
.footer-note { text-align: center; font-size: 0.85rem; opacity: 0.7; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 96px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 260px; }
  .hero-circle { width: 220px; height: 220px; }
  .hero-dog { font-size: 7rem; }
  .cards, .caretakers, .form-row { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; }
}
