/* ===========================================================================
   TidyPup — playful-but-clean dog grooming theme
   Signature motif: soap bubbles + soft rounded blobs. Warm cream + sudsy teal.
   =========================================================================== */

:root {
  --paper: #FBF6EE;
  --cream-2: #FFFDF9;
  --mint: #E6F3EF;
  --blush: #FCEBE2;
  --ink: #2E2B27;
  --ink-soft: #6C6459;
  --teal: #1FA491;
  --teal-deep: #0E7C72;
  --coral: #F4794F;
  --coral-deep: #E15E33;
  --sun: #FFC94D;
  --line: #EAE0D2;
  --shadow: 0 18px 40px -18px rgba(46, 43, 39, 0.28);
  --shadow-sm: 0 6px 18px -10px rgba(46, 43, 39, 0.35);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --maxw: 1120px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }

a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--coral-deep);
  margin: 0 0 12px;
}

.section { padding: 96px 0; position: relative; }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section-lead { color: var(--ink-soft); max-width: 52ch; margin: 14px 0 0; font-size: 1.08rem; }
.band-mint { background: var(--mint); }
.band-blush { background: var(--blush); }
.band-teal { background: var(--teal-deep); color: var(--cream-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(225,94,51,.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--teal-deep); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav-links a:hover { color: var(--teal-deep); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; color: var(--ink); }

/* ---- Hero ---- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
.hero h1 .accent { color: var(--teal-deep); }
.hero .loc { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; color: var(--coral-deep); background: #fff; padding: 6px 15px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 22px; font-size: .95rem; }
.hero p.sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }
.hero-photo .badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: var(--r-md);
  padding: 14px 18px; box-shadow: var(--shadow); font-family: var(--font-display); font-weight: 700; line-height: 1.15;
}
.hero-photo .badge span { display: block; font-size: .8rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; }
.hero-photo .badge b { font-size: 1.4rem; color: var(--teal-deep); }

/* floating bubbles */
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffffff, rgba(31,164,145,.16) 60%, rgba(31,164,145,.05)); box-shadow: inset 0 0 8px rgba(255,255,255,.9); pointer-events: none; }
.bubble::after { content:""; position:absolute; top:16%; left:20%; width:26%; height:26%; border-radius:50%; background:rgba(255,255,255,.85); }
.hero .b1 { width: 90px; height: 90px; top: 30px; right: 40%; animation: float 7s ease-in-out infinite; }
.hero .b2 { width: 46px; height: 46px; top: 130px; right: 8%; animation: float 5.5s ease-in-out infinite; }
.hero .b3 { width: 28px; height: 28px; bottom: 60px; left: 44%; animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---- Services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.svc-card {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--teal-deep); margin-bottom: 16px; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.28rem; margin-bottom: 6px; }
.svc-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---- Prices ---- */
.price-note { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: #5a3d00; font-family: var(--font-display); font-weight: 600; padding: 7px 16px; border-radius: 999px; font-size: .92rem; margin-top: 16px; }
.price-table { margin-top: 36px; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-head { background: var(--teal-deep); color: #fff; font-family: var(--font-display); font-weight: 600; }
.price-row > div { padding: 16px 20px; }
.price-row .svc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.price-head .svc-name { color: #fff; }
.price-row .cell { text-align: center; font-weight: 700; color: var(--teal-deep); font-size: 1.05rem; }
.price-head .cell { color: #fff; font-weight: 600; }
.price-body .price-row:nth-child(even) { background: #fbf8f2; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---- Find Us ---- */
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.info-card { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--mint); color: var(--teal-deep); }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 2px; }
.info-row p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.info-row .hours-line { display: flex; justify-content: space-between; gap: 12px; }
.info-row .hours-line span:first-child { font-weight: 700; color: var(--ink); }
/* decorative, non-specific map */
.map-deco { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 300px; position: relative; background: #dceee9; }
.map-deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-deco .pin-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; padding: 10px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); color: var(--coral-deep); text-align: center; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-blurb h2 { color: #fff; }
.contact-blurb p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.contact-blurb .paw-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-blurb .paw-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: rgba(255,255,255,.92); }
.contact-blurb .paw-list svg { flex: none; width: 22px; height: 22px; color: var(--sun); margin-top: 3px; }
.form-card { background: var(--cream-2); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .req { color: var(--coral-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,164,145,.15); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 4px; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; display: none; }
.form-msg.err { display: block; background: #fdeae4; color: var(--coral-deep); border: 1px solid #f6c3ae; }
.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.show { display: block; }
.form-success .tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--teal-deep); }
.form-success .tick svg { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); margin: 0 auto; max-width: 34ch; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: #d9d2c7; padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer .brand b { color: var(--sun); }
.footer-tag { max-width: 34ch; margin: 14px 0 0; color: #a9a196; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #d9d2c7; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--sun); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #46403a; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #8f887d; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; max-width: 460px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .find-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 22px; gap: 4px;
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .28s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .section { padding: 68px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .price-row > div { padding: 12px 10px; font-size: .92rem; }
  .price-row .svc-name { font-size: .95rem; }
  .hero-photo .badge { left: 8px; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wrap { padding: 0 18px; }
  .price-row .cell { font-size: .92rem; }
}
