/* Paws & Palms Grooming — Cape Coral, FL
   Design system tokens ported from the approved wireframe set
   (Dog Grooming Wireframes, direction 2b + 3a–3d). */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  /* Accent ramp is WCAG-checked: base clears 4.5:1 on both white and --color-bg
     (base 5.18/4.64, hover 7.20/6.44, active 9.09/8.14 measured). Do not lighten. */
  --color-accent: #007699;
  --color-accent-2: #d6006c;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-accent-600: #005f7a;
  --color-accent-700: #004f66;
  --color-accent-100: #e9f8ff;

  --text-secondary: color-mix(in srgb, var(--color-text) 68%, transparent);

  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-heading-weight: 600;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-6: 30px;
  --space-8: 40px;

  /* Section rhythm — separate scale from --space-8, which also does grid-gap and
     page-edge-padding duty. Default is the gap between ordinary neighboring
     sections; lg marks a deliberate chapter break (after a hero, before a
     closing CTA) so the two read as different weights, not one repeated value. */
  --space-section: 88px;
  --space-section-lg: 128px;

  --radius-md: 10px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-700); }
img { display: block; max-width: 100%; }

.text-muted { color: var(--text-secondary); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-text); color: var(--color-bg);
  padding: 10px 16px; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  min-height: 44px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); min-height: auto; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn[aria-pressed="true"] { background: var(--color-accent); color: #fff; }
.btn-block { width: 100%; }

/* — forms — */
.field { display: grid; gap: 5px; font-size: 15px; }
.field > label { color: var(--text-secondary); }
.input {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit;
  font-size: 15px; color: var(--color-text); caret-color: var(--color-accent);
  background: #fff;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.input::placeholder { color: color-mix(in srgb, var(--color-text) 65%, transparent); opacity: 1; }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 100px; resize: vertical; }

/* — halftone photo placeholder — */
.halftone {
  position: relative; overflow: hidden; background: var(--color-surface);
}
.halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.22) 30%, transparent 32%);
  background-size: 3px 3px; mix-blend-mode: multiply;
}
.ph {
  height: 100%; width: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--space-3);
  color: var(--text-secondary);
  font-size: 13px; line-height: 1.5;
}
.ph::before {
  content: "◐"; display: block; font-size: 22px; margin-bottom: 6px;
  color: color-mix(in srgb, var(--color-text) 35%, transparent);
}

/* — nav — */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; margin-right: auto; text-decoration: none; color: var(--color-text);
}
.site-nav .nav-links { display: flex; align-items: center; gap: var(--space-4); }
.site-nav a.nav-link { color: inherit; text-decoration: none; font-size: 15px; }
.site-nav a.nav-link:hover,
.site-nav a.nav-link[aria-current="page"] { color: var(--color-accent); }
.nav-phone { font-size: 15px; white-space: nowrap; color: inherit; text-decoration: none; }

/* — footer — */
.site-footer {
  padding: var(--space-8) var(--space-4) calc(var(--space-8) + 56px);
  border-top: 1px solid var(--color-divider);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6);
  font-size: 15px; line-height: 1.8;
}
.site-footer .foot-brand { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--color-accent); }

/* — mobile sticky action bar — */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--color-text); color: var(--color-bg);
}
.mobile-bar ul { list-style: none; margin: 0; padding: 0; display: flex; }
.mobile-bar li { flex: 1; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 12px; color: inherit; text-decoration: none;
  font-size: 12px; letter-spacing: 0.02em; min-height: 44px; justify-content: center;
}
.mobile-bar li + li { border-left: 1px solid color-mix(in srgb, var(--color-bg) 20%, transparent); }

/* — doodles (paw prints, bubbles) — playful accents, decorative only — */
.doodle { position: absolute; pointer-events: none; z-index: 0; }
.doodle circle, .doodle path { fill: none; stroke: var(--color-accent); stroke-width: 1.6; }
.doodle.doodle-2 circle, .doodle.doodle-2 path { stroke: var(--color-accent-2); }

/* — icon-circle feature row (About "why us") — */
.feat-row { display: grid; gap: var(--space-6); }
.feat { display: flex; flex-direction: column; gap: 10px; }
.feat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--color-accent); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.feat-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 19px; margin: 0; }
.feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

/* — tiered pricing cards (Services) — */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: stretch; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--color-divider);
  border-radius: 18px; padding: var(--space-6) var(--space-4) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2); box-shadow: var(--shadow-sm);
}
.price-card--featured { border: 2px solid var(--color-accent-2); box-shadow: var(--shadow-md); }
.price-badge {
  position: absolute; top: -13px; left: var(--space-4);
  background: var(--color-accent-2); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.price-card h2 { font-size: 24px; margin: 0; }
.price-card p.price-body { margin: 0; font-size: 15px; line-height: 1.6; flex: 1; }
.price-tag { font-family: var(--font-heading); font-size: 24px; margin-top: var(--space-2); }
.price-detail { margin: 4px 0 var(--space-3); font-size: 14px; color: var(--text-secondary); }
.paw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.paw-list li { position: relative; padding-left: 22px; }
.paw-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: var(--color-accent); border-radius: 50%;
}

/* — circular "explore" links (Home) — */
.explore-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); text-align: center; }
.explore-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.explore-circle {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 4px solid #fff; outline: 1px solid var(--color-divider);
}
.explore-item h3 { font-size: 17px; margin: 0; }
.explore-item a { font-size: 14px; }

/* — FAQ accordion (Home) — */
.faq { border-top: 1px solid var(--color-divider); }
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) 0; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--color-accent); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease;
}
.faq-icon svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin: 0 0 var(--space-3); font-size: 16px; line-height: 1.65; max-width: 42em; color: var(--text-secondary); }

/* — overlapping info card (Contact) — */
.hero-band { background: var(--color-accent-100); border-radius: 0 0 48px 48px; position: relative; overflow: hidden; }
.info-overlap {
  position: relative; z-index: 2; margin: -56px var(--space-8) 0;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-4);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
}
.info-overlap .feat-icon { width: 44px; height: 44px; border-color: var(--color-accent-2); color: var(--color-accent-2); }
.info-overlap .feat-icon svg { width: 20px; height: 20px; }
.info-overlap .feat h3 { font-size: 15px; letter-spacing: 0.01em; }
.info-overlap .feat p { font-size: 14px; }

/* — photo-collage hero (Home) — */
.collage-wrap { position: relative; max-width: 560px; margin: 0 auto; padding: 16px 14% 20% 0; }
.collage-main { border-radius: 24px; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.collage-sub {
  border-radius: 20px; aspect-ratio: 1 / 1; width: 58%;
  position: absolute; left: 0; bottom: 4%;
  box-shadow: var(--shadow-md); border: 5px solid var(--color-bg);
}
.collage-circle {
  border-radius: 50%; aspect-ratio: 1 / 1; width: 36%;
  position: absolute; right: 10%; bottom: -8%;
  box-shadow: var(--shadow-md); border: 5px solid var(--color-bg);
}
.collage-sub .ph, .collage-circle .ph { font-size: 11px; padding: 6px; }
.collage-sub .ph::before, .collage-circle .ph::before { font-size: 16px; margin-bottom: 3px; }

@media (max-width: 780px) {
  :root {
    --space-section: 56px;
    --space-section-lg: 80px;
  }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .site-nav .nav-links { display: none; }
  .site-nav .nav-phone { display: none; }
  .mobile-bar { display: block; }
  .stack-mobile { display: flex !important; flex-direction: column !important; }
  .grid-mobile-1 { grid-template-columns: 1fr !important; }
  .grid-mobile-2 { grid-template-columns: 1fr 1fr !important; }
  .pad-mobile { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
  .feat-row.grid-mobile-1 { gap: var(--space-4); }
  .info-overlap { margin: -40px var(--space-4) 0; padding: var(--space-4); }
  .collage-wrap { max-width: 340px; padding: 10px 20% 22% 0; margin: 0 auto var(--space-4); }
  .doodle { display: none; }
}
