/* =========================================================
   Woof & Wash — design tokens
   Palette: warm cream base, coral primary, fresh teal accent.
   Type: Baloo 2 (display, used sparingly) + Nunito Sans (body/UI).
   ========================================================= */

:root {
  /* color */
  --color-bg: #fff8ec;
  --color-bg-tint: #fcefdd;
  --color-surface: #ffffff;
  --color-border: #f0e1cc;

  --color-text: #2b2118;
  --color-text-muted: #6b5d4f;

  /* #c9471a passes >=4.5:1 both as white-on-fill (buttons) and as text on
     --color-bg / --color-surface (price tags, links, icon text) -- one
     token safely covers both roles. */
  --color-primary: #c9471a;
  --color-primary-hover: #a83b15;
  --color-primary-tint: #fdeae2;

  /* Same split for the teal accent: --color-accent-text is darkened for
     text use, --color-accent stays bright for tints/icon fills only. */
  --color-accent: #2a9d8f;
  --color-accent-text: #20796e;
  --color-accent-tint: #dceeea;

  --color-ink: #241a12;

  /* type */
  --font-display: "Baloo 2", "Segoe UI Rounded", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --wrap: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(43, 33, 24, 0.06);
  --shadow-md: 0 12px 30px rgba(43, 33, 24, 0.1);
  --shadow-lg: 0 24px 60px rgba(43, 33, 24, 0.16);

  color-scheme: light;
}

/* =========================================================
   Reset
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.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: absolute;
  left: 1em;
  top: -3.5em;
  background: var(--color-ink);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5em;
}

/* =========================================================
   Type helpers
   ========================================================= */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 0.6em;
}
.eyebrow--inverse { color: #ffffff; }

h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.2rem; }

.section-sub, .hero__sub, .cta-band__sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.9em 1.6em;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn--onlight { background: #fff; color: var(--color-primary); }
.btn--onlight:hover { background: #fff6f1; }

.btn--ghost-onlight { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--ghost-onlight:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn--sm { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn--lg { padding: 1em 1.9em; font-size: 1.05rem; }

.hero__link {
  display: inline-block;
  margin: 0.9em 0 1.8em;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__link:hover { color: var(--color-primary); }
/* Solid white, no opacity/tint: both fail WCAG contrast against the
   cta-band gradient at this weight/size -- see README design notes.
   Differentiated from body text by the underline instead. */
.hero__link--onlight { color: #ffffff; margin-top: 1.2em; margin-bottom: 0; }
.hero__link--onlight:hover { text-decoration-color: transparent; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  padding-block: 0.9em;
}

.brand { display: flex; align-items: center; gap: 0.5em; text-decoration: none; }
.brand__mark { font-size: 1.5rem; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); }

.site-nav ul { display: flex; gap: 1.8em; }
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding-block: 0.3em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.site-header__cta { display: flex; align-items: center; gap: 0.75em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.nav-toggle__bar { width: 18px; height: 2px; background: var(--color-ink); margin-inline: auto; transition: transform 0.2s ease, opacity 0.2s ease; }

/* =========================================================
   Hero
   ========================================================= */

.hero { padding-block: clamp(2.5em, 6vw, 5em) clamp(3em, 7vw, 6em); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2em, 5vw, 4em);
}

.hero__sub { font-size: 1.15rem; margin-bottom: 1.6em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1em; margin-bottom: 2.2em; }
.hero__actions--center { justify-content: center; }

.trust-bar { display: flex; flex-wrap: wrap; gap: 1.8em; }
.trust-bar li { display: flex; flex-direction: column; }
.trust-bar strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-ink); }
.trust-bar span { font-size: 0.82rem; color: var(--color-text-muted); }

.hero__art { position: relative; }
.hero__blob {
  position: absolute;
  inset: -8% -12%;
  background: var(--color-accent-tint);
  border-radius: 62% 38% 55% 45% / 48% 45% 55% 52%;
  z-index: 0;
}

.photo-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, var(--color-accent-tint), var(--color-primary-tint));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.photo-frame--hero { aspect-ratio: 4 / 5; }
.photo-frame__inner {
  padding: 1.5em;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.photo-frame__icon { font-size: 2.4rem; display: block; margin-bottom: 0.4em; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.stat-chip {
  position: absolute;
  z-index: 2;
  left: -1.2em;
  bottom: -1.2em;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.9em 1.3em;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.stat-chip::before { content: "🐾"; font-size: 1.2rem; }

/* =========================================================
   Sections (shared)
   ========================================================= */

/* Anchor-nav targets land exactly at the viewport top by default, which
   would tuck the section's top content behind the sticky header (~72-74px
   tall). This applies to every #id the nav links / "Book here" location
   scroll target, at every breakpoint. */
section[id] { scroll-margin-top: 88px; }

.section { padding-block: clamp(3.5em, 7vw, 6em); }
.section--tinted { background: var(--color-bg-tint); }
.section-head { max-width: 62ch; margin-bottom: 2.5em; }

/* =========================================================
   Services
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  font-size: 1.6rem;
  width: 3em; height: 3em;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-tint);
  border-radius: var(--radius-sm);
  margin-bottom: 1em;
}
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1em; }
.service-card__price { font-weight: 800; color: var(--color-primary); font-size: 0.95rem; }

/* =========================================================
   Locations
   ========================================================= */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5em;
}
.location-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2em;
  box-shadow: var(--shadow-sm);
}
.location-card h3 { display: flex; align-items: center; gap: 0.5em; }
.location-card h3::before { content: "📍"; }
.location-card__address { color: var(--color-text-muted); margin-bottom: 1em; }
.location-card__hours { margin-bottom: 1.4em; }
.location-card__hours li { display: flex; justify-content: space-between; padding-block: 0.3em; border-bottom: 1px dashed var(--color-border); font-size: 0.92rem; }
.location-card__hours li:last-child { border-bottom: none; }
.location-card__actions { display: flex; flex-wrap: wrap; gap: 0.7em; }

/* =========================================================
   About
   ========================================================= */

.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3em; align-items: start; }
.about__story p { font-size: 1.05rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4em; }
.team-card { text-align: center; }
.team-card .photo-frame { aspect-ratio: 1; border-radius: var(--radius-pill); margin-bottom: 1em; box-shadow: var(--shadow-sm); }
.team-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.15em; }
.team-card__role { color: var(--color-accent-text); font-weight: 700; font-size: 0.82rem; margin-bottom: 0.5em; }
.team-card__bio { color: var(--color-text-muted); font-size: 0.9rem; }

/* =========================================================
   Gallery + before/after slider (signature element)
   ========================================================= */

.ba-slider { max-width: 640px; margin: 0 auto 3em; }
.ba-slider__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.ba-slider__img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.ba-slider__img--after { background: linear-gradient(155deg, var(--color-accent-tint), #eaf7f4); }
.ba-slider__img--before {
  background: linear-gradient(155deg, #efe6da, #e3d6c4);
  clip-path: inset(0 50% 0 0);
}
.ba-slider__img img { width: 100%; height: 100%; object-fit: cover; }
.ba-slider__img .photo-frame__inner { padding: 1em; }
.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: flex; align-items: center; justify-content: center;
}
.ba-slider__handle-grip {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  color: var(--color-primary);
}
.ba-slider__tag {
  position: absolute;
  top: 1em;
  background: rgba(36, 26, 18, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-pill);
}
.ba-slider__tag--before { left: 1em; }
.ba-slider__tag--after { right: 1em; }
.ba-slider__caption { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; margin-top: 1em; margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2em;
}
.gallery-grid .photo-frame { aspect-ratio: 1; border-radius: var(--radius-md); }

/* =========================================================
   Reviews
   ========================================================= */

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5em; }
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8em;
}
.review-card__stars { color: var(--color-primary); letter-spacing: 0.15em; margin-bottom: 0.8em; }
.review-card__quote { font-size: 1rem; margin-bottom: 1.2em; }
.review-card__author { font-weight: 800; font-size: 0.9rem; }
.review-card__pet { color: var(--color-text-muted); font-size: 0.85rem; }

/* =========================================================
   CTA band / contact
   ========================================================= */

.cta-band {
  /* Both gradient stops must keep white text at >=4.5:1 -- a lighter
     second stop here will silently break contrast on the sub-heading. */
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  padding-block: clamp(3.5em, 7vw, 6em);
}
.cta-band__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band__sub { color: #ffffff; margin-inline: auto; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer { background: var(--color-ink); color: #d9cdbf; padding-top: 3em; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__brand { display: flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 700; color: #fff; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.4em; }
.site-footer__nav a { text-decoration: none; font-size: 0.9rem; color: #d9cdbf; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__socials { display: flex; gap: 0.8em; }
.site-footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: #fff;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  justify-content: space-between;
  padding-block: 1.4em 2em;
  font-size: 0.8rem;
  color: #a99a89;
}
.site-footer__bottom p { margin: 0; }

/* =========================================================
   Forms
   ========================================================= */

label {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 1.1em;
}

input, select, textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent-text);
  box-shadow: 0 0 0 3px var(--color-accent-tint);
}
textarea { resize: vertical; min-height: 4.5em; }

.form-row { display: flex; gap: 1em; flex-wrap: wrap; }
.form-row > label { flex: 1 1 160px; min-width: 0; }

.alert {
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.2em;
}
.alert-error { background: #fdeae2; color: #8a2a0f; border: 1px solid #f3c4ac; }

/* Honeypot -- present in the DOM and technically fillable (so naive bots
   that fill every field still trip it), but invisible and unreachable by
   keyboard for real users. */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =========================================================
   Booking modal
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 26, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  z-index: 1000;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.2em;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { margin-bottom: 0.3em; }
.modal-sub { color: var(--color-text-muted); margin-bottom: 1.5em; }

.modal-close {
  position: absolute;
  top: 1.1em; right: 1.1em;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-tint);
  color: var(--color-text);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--color-primary-tint); }

.modal-actions { display: flex; justify-content: flex-end; gap: 0.8em; margin-top: 0.5em; }

/* =========================================================
   Scroll reveal
   ========================================================= */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: 0.12s; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .about__inner { grid-template-columns: 1fr; }
  .stat-chip { left: 1em; }
}

/* The full desktop header (logo + 6 nav links + 2 buttons) genuinely
   doesn't fit below ~1000px -- tested empirically, it wraps the brand name
   across multiple lines anywhere from ~761px up depending on exact content
   width and font metrics at load time. This covers the whole tablet range
   (iPad portrait at 768/810/820px included), not just phones, with margin
   for the brief fallback-font window before web fonts finish loading. */
@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 400px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5em 1.5em 1.5em; }
  .site-nav a { display: block; padding-block: 0.8em; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-header__cta .btn--sm { display: none; }
}

@media (max-width: 520px) {
  .hero__actions, .hero__actions--center { flex-direction: column; align-items: stretch; }
  .btn--lg { width: 100%; }
}
