/* ─────────────────────────────────────────────
   Kaitlynn's Dog Walking — design system
   Type: Caprasimo (display) + Nunito (body) + Caveat (hand)
   ───────────────────────────────────────────── */

:root {
  /* palette is set dynamically from JS via --c-* vars */
  --c-bg: #FFF4E4;
  --c-bg-soft: #FFE9CC;
  --c-card: #FFFFFF;
  --c-ink: #1B2240;
  --c-ink-soft: #4A547A;
  --c-primary: #F77A2E;     /* orange */
  --c-primary-dark: #D85F18;
  --c-accent: #4F9BD8;      /* blue */
  --c-accent-dark: #2E72B0;
  --c-tertiary: #FFD4A8;    /* peach highlight */
  --c-line: rgba(27, 34, 64, 0.12);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --ff-display: "Caprasimo", Georgia, serif;
  --ff-body: "Nunito", system-ui, -apple-system, sans-serif;
  --ff-hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.005em;
}

/* ─── layout ─── */
.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

section {
  padding: 96px 0;
  position: relative;
}

/* ─── topnav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--c-bg) 78%, transparent);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-links a:hover { background: var(--c-bg-soft); }
.nav-cta {
  background: var(--c-ink);
  color: var(--c-bg) !important;
  padding: 10px 18px !important;
}
.nav-cta:hover { background: var(--c-primary) !important; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── hero ─── */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BC07A;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2BC07A 25%, transparent);
}
.hero h1 {
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.98;
  margin-bottom: 18px;
}
.hero h1 .wag {
  color: var(--c-primary);
  position: relative;
  display: inline-block;
}
.hero h1 .wag::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 25 2, 50 7 T 100 7 T 150 7 T 198 7' fill='none' stroke='%23F77A2E' stroke-width='3' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.hero p.lede {
  font-size: 20px;
  color: var(--c-ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  padding: 16px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: 0 6px 0 var(--c-primary-dark), 0 14px 26px -8px color-mix(in srgb, var(--c-primary) 50%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--c-primary-dark); }
.btn-ghost {
  background: var(--c-card);
  color: var(--c-ink);
  border: 1.5px solid var(--c-line);
}
.btn-ghost:hover { background: var(--c-bg-soft); }

/* ─── hero photo card ─── */
.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-tertiary);
  box-shadow: 0 30px 60px -20px rgba(27,34,64,.25);
  transform: rotate(2deg);
}
.hero-photo .photo-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: white;
  color: var(--c-ink);
  font-family: var(--ff-hand);
  font-size: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(-3deg);
  z-index: 2;
}
.hero-photo .photo-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--c-accent);
  color: white;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--ff-display);
  font-size: 20px;
  line-height: 1;
  transform: rotate(-8deg);
  border: 6px solid var(--c-bg);
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.hero-photo .photo-badge small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  opacity: 0.85;
}

/* placeholder pattern */
.placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(27,34,64,.06) 14px 15px),
    linear-gradient(180deg, var(--c-tertiary), color-mix(in srgb, var(--c-primary) 30%, var(--c-tertiary)));
  display: grid;
  place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: rgba(27,34,64,.55);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
}

/* floating decorations */
.hero-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}
.hero-deco.paw1 { top: 10%; left: 8%; transform: rotate(-18deg); }
.hero-deco.paw2 { bottom: 8%; left: 38%; transform: rotate(22deg); }

/* ─── section headers ─── */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .kicker {
  font-family: var(--ff-hand);
  font-size: 28px;
  color: var(--c-primary);
  line-height: 1;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-top: 8px;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--c-ink-soft);
  font-size: 18px;
}

/* ─── services ─── */
.services {
  background: var(--c-bg-soft);
  border-radius: var(--r-xl);
  padding: 88px 24px;
  margin: 0 24px;
}
@media (max-width: 720px) { .services { margin: 0 12px; padding: 64px 16px; } }
.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  border: 1px solid var(--c-line);
}
.service-card.featured {
  background: var(--c-ink);
  color: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.service-card.featured .price { color: var(--c-primary); }
.service-card .ribbon {
  position: absolute;
  top: 24px; right: -8px;
  background: var(--c-primary);
  color: white;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
  transform: rotate(4deg);
  box-shadow: 0 6px 12px -4px rgba(0,0,0,.3);
}
.service-card h3 {
  font-size: 32px;
  margin-bottom: 8px;
}
.service-card .price {
  font-family: var(--ff-display);
  font-size: 56px;
  line-height: 1;
  color: var(--c-primary);
  margin: 12px 0 22px;
}
.service-card .price small {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink-soft);
  margin-left: 6px;
}
.service-card.featured .price small { color: color-mix(in srgb, var(--c-bg) 80%, transparent); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}
.feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ─── about ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  background: var(--c-accent);
  overflow: hidden;
  position: relative;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -20px rgba(27,34,64,.25);
}
.about-photo .placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.18) 14px 15px),
    linear-gradient(180deg, var(--c-accent), var(--c-accent-dark));
  color: rgba(255,255,255,.85);
}
.about h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 18px;
}
.about p { margin: 0 0 16px; font-size: 18px; color: var(--c-ink-soft); }
.about .stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.about .stat {
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  padding: 18px 22px;
  min-width: 130px;
}
.about .stat .n {
  font-family: var(--ff-display);
  font-size: 36px;
  color: var(--c-primary);
  line-height: 1;
}
.about .stat .l {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 160px;
}
.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--c-tertiary);
  position: relative;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item .placeholder {
  background:
    repeating-linear-gradient(var(--g-angle, 45deg), transparent 0 14px, rgba(27,34,64,.08) 14px 15px),
    var(--g-bg, linear-gradient(180deg, var(--c-tertiary), var(--c-primary)));
}

/* span shorthands */
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 6; }
.g-half { grid-column: span 6; }
.g-third { grid-column: span 4; }
.g-quarter { grid-column: span 3; }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .g-tall, .g-wide, .g-half, .g-third { grid-column: span 6; grid-row: auto; }
}

/* ─── lightbox ─── */
.lb {
  position: fixed; inset: 0;
  background: rgba(15, 19, 36, 0.88);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 32px;
  animation: fadeIn 0.18s ease;
}
.lb-inner {
  max-width: min(900px, 90vw);
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--c-bg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 20px;
  z-index: 2;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: white;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 24px;
  font-weight: 900;
}
.lb-arrow.prev { left: 24px; }
.lb-arrow.next { right: 24px; }
.lb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
  color: white;
  font-family: var(--ff-hand);
  font-size: 26px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── FAQ ─── */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 19px;
  color: var(--c-ink);
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  display: grid; place-items: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
  background: var(--c-primary);
  color: white;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--c-ink-soft);
}
.faq-a-inner { padding: 0 24px 22px; font-size: 17px; }

/* ─── contact ─── */
.contact-card {
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card .deco-paw {
  position: absolute;
  opacity: 0.08;
}
.contact-card .deco-paw.tl { top: 8%; left: 6%; transform: rotate(-14deg); }
.contact-card .deco-paw.br { bottom: 8%; right: 6%; transform: rotate(20deg); }
.contact-card h2 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 12px;
}
.contact-card .phone {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--c-primary);
  text-decoration: none;
  display: inline-block;
  margin: 20px 0 28px;
  letter-spacing: 0.02em;
}
.contact-card p { color: color-mix(in srgb, var(--c-bg) 75%, transparent); font-size: 18px; max-width: 480px; margin: 0 auto; }

/* ─── footer ─── */
footer {
  padding: 48px 0 64px;
  text-align: center;
  color: var(--c-ink-soft);
  font-size: 14px;
}
footer .heart { color: var(--c-primary); }

/* ─── reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* squiggle divider */
.squiggle {
  display: block;
  width: 120px;
  height: 16px;
  margin: 0 auto 12px;
  color: var(--c-primary);
}
