/* ============ Andy's Dog Care — marketing site ============
   Warm storybook: the booking app's cream + terracotta palette
   (Fredoka & Karla) as a small multi-page website. Every CTA
   funnels to the booking app at https://andy.tutobot.com/. */

:root {
  --cream: #FDF3E3;
  --cream-deep: #F6E7CE;
  --ink: #3B2E25;
  --ink-soft: #7A6A5C;
  --terra: #E8743B;
  --terra-deep: #C95A26;
  --sage: #7FA678;
  --card: #FFFBF4;
  --radius: 22px;
  --shadow: 0 6px 24px rgba(75, 50, 25, 0.10);
  --shadow-lift: 0 14px 40px rgba(75, 50, 25, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x on <html> too: iOS Safari ignores it on <body> alone, which let
   rotated hero polaroids/stickers open a horizontal scroll on mobile. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% -5%, #FAE3C0 0%, transparent 45%),
    radial-gradient(circle at -10% 30%, #FBEAD3 0%, transparent 40%),
    var(--cream);
  overflow-x: clip;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--terra-deep); }

/* Giant ambient paw, same wink as the booking app */
.paw-bg {
  position: fixed;
  font-size: 340px;
  opacity: 0.045;
  top: -70px;
  right: -80px;
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* ---------- header & nav ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* vertical only — the shorthand would clobber .wrap's horizontal padding */
  padding-top: 18px;
  padding-bottom: 6px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-badge {
  width: 46px; height: 46px;
  background: var(--terra);
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 24px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.logo-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.05;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}
.nav > a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
.nav > a:hover { color: var(--terra-deep); }
.nav > a.active { color: var(--terra-deep); border-bottom: 2.5px solid var(--terra); padding-bottom: 2px; }
.top-cta {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--terra-deep);
  border: 2px solid var(--terra);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav > a.top-cta { color: var(--terra-deep); }
.top-cta:hover { background: var(--terra); color: #fff !important; }

/* ---------- hero (home) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 72px;
}
.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--terra-deep);
  position: relative;
  white-space: nowrap;
}
/* hand-drawn underline squiggle */
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 20 2, 40 6 T 78 5 T 118 6' fill='none' stroke='%23E8743B' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-sub {
  margin: 20px 0 28px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-sub strong { color: var(--ink); }

.big-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--terra), var(--terra-deep));
  border-radius: 999px;
  padding: 17px 34px;
  box-shadow: 0 10px 26px rgba(201, 90, 38, 0.35);
  transition: transform .18s, box-shadow .18s;
}
.big-cta .paw { transition: transform .3s; }
.big-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201, 90, 38, 0.42); }
.big-cta:hover .paw { transform: rotate(-14deg) scale(1.15); }
.big-cta:active { transform: translateY(0); }

.hero-hint { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  background: var(--card);
  border: 1.5px solid var(--cream-deep);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(75, 50, 25, 0.06);
  white-space: nowrap;
}
.chip .star { color: var(--terra); }

/* polaroid cluster */
.hero-photos {
  position: relative;
  height: 480px;
}
.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  transition: transform .25s;
}
.polaroid img {
  border-radius: 8px;
  object-fit: cover;
}
.polaroid figcaption {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 8px;
}
.polaroid:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 5; }
.p1 { width: 240px; top: 4%; left: 4%; transform: rotate(-7deg); z-index: 2; }
.p1 img { height: 270px; width: 220px; }
.p2 { width: 210px; top: 34%; right: 2%; transform: rotate(5deg); z-index: 3; }
.p2 img { height: 230px; width: 190px; }
.p3 { width: 190px; bottom: 0; left: 18%; transform: rotate(3deg); z-index: 1; }
.p3 img { height: 200px; width: 170px; }
.hero-sticker {
  position: absolute;
  top: -6px; right: 12%;
  z-index: 4;
  background: var(--sage);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  border-radius: 50%;
  width: 118px; height: 118px;
  display: grid;
  place-items: center;
  padding: 10px;
  transform: rotate(9deg);
  box-shadow: var(--shadow);
}

/* ---------- wavy divider ---------- */
.wave { display: block; width: 100%; height: 44px; }

/* ---------- sections ---------- */
section { position: relative; }
.band { background: var(--cream-deep); }

.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 42px;
}
.sec-kicker {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--terra-deep);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
}
.sec-head h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin-top: 8px;
}
.sec-head p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }

/* services */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-bottom: 64px;
}
.service {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  border-top: 6px solid var(--terra);
}
.service.walks { border-top-color: var(--sage); }
.service-emoji { font-size: 40px; }
.service h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 26px;
  margin: 10px 0 4px;
}
.service .lead { color: var(--terra-deep); font-weight: 700; }
.service.walks .lead { color: var(--sage); }
.service p { margin-top: 10px; color: var(--ink-soft); }
.service .more { display: inline-block; margin-top: 14px; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 15px; }
.addons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.addons span {
  background: var(--cream);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 12px;
}

/* steps (home how-it-works) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 26px;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
}
.step-num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.step h3 { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.steps-hint { text-align: center; color: var(--ink-soft); font-size: 15px; padding-bottom: 60px; }

/* about */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}
.about-photo { position: relative; justify-self: center; }
.about-photo img {
  width: 240px; height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lift);
}
.about-photo::after {
  content: "🐾";
  position: absolute;
  bottom: 4px; right: 4px;
  background: var(--terra);
  border-radius: 50%;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: var(--shadow);
}
.about h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 16px;
}
.about p { color: var(--ink-soft); margin-bottom: 12px; max-width: 62ch; }
.about p strong { color: var(--ink); }
.about .signoff { font-family: 'Fredoka', sans-serif; color: var(--ink); font-size: 18px; }

/* photo marquee */
.marquee-sec { padding: 56px 0 64px; overflow: hidden; }
.marquee {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: drift 55s linear infinite;
  padding-block: 8px;
}
.marquee:hover { animation-play-state: paused; }
.marquee img {
  width: 190px; height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
}
.marquee img:nth-child(odd) { transform: rotate(-2deg); }
.marquee img:nth-child(even) { transform: rotate(2deg); }
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* reviews */
.reviews-sec { padding: 64px 0 30px; }
.reviews {
  columns: 3;
  column-gap: 24px;
}
.review {
  break-inside: avoid;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 20px;
  margin-bottom: 24px;
}
.review .stars { color: var(--terra); letter-spacing: 2px; font-size: 15px; }
.review blockquote {
  margin: 10px 0 14px;
  font-size: 15.5px;
  color: var(--ink);
}
.review figcaption { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }
.reviews-more { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 6px 0 60px; }
.reviews-more a { font-weight: 700; }

/* area */
.area-sec { padding: 64px 0; }
.towns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.towns span {
  background: var(--card);
  border: 1.5px solid var(--cream-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 700;
}
.area-note { text-align: center; color: var(--ink-soft); font-size: 15px; margin-top: 20px; }

/* final CTA */
.cta-panel {
  background: linear-gradient(160deg, var(--terra), var(--terra-deep));
  border-radius: 28px;
  color: #fff;
  text-align: center;
  padding: 60px 30px;
  margin: 10px 0 70px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(201, 90, 38, 0.35);
}
.cta-panel::before, .cta-panel::after {
  content: "🐾";
  position: absolute;
  font-size: 150px;
  opacity: 0.14;
}
.cta-panel::before { top: -34px; left: -14px; transform: rotate(-20deg); }
.cta-panel::after { bottom: -40px; right: -10px; transform: rotate(16deg); }
.cta-panel h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
}
.cta-panel p { margin: 12px auto 28px; max-width: 46ch; opacity: 0.92; font-size: 17px; }
.cta-panel .big-cta {
  background: #fff;
  color: var(--terra-deep);
  box-shadow: 0 10px 26px rgba(60, 25, 5, 0.28);
}

/* ---------- subpages ---------- */
.page-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 22px 30px;
  position: relative;
  z-index: 1;
}
.page-head .page-emoji { font-size: 46px; }
.page-head h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  margin-top: 8px;
}
.page-head p { color: var(--ink-soft); font-size: 18px; margin-top: 12px; }

.article-col {
  max-width: 740px;
  margin: 0 auto;
  padding: 6px 22px 30px;
  position: relative;
  z-index: 1;
}
.acard {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 22px;
}
.acard h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 8px;
}
.acard p { color: var(--ink-soft); margin-top: 8px; }
.acard p strong, .acard li strong { color: var(--ink); }
.acard a { color: var(--terra-deep); font-weight: 700; }
.tips { margin: 6px 0 0; padding-left: 1.25rem; }
.tips li { margin-bottom: 10px; }
.tips li::marker { content: "🐾  "; }
.steps-ol { margin: 6px 0 0; padding-left: 1.4rem; }
.steps-ol li { margin-bottom: 10px; }
.steps-ol li strong { font-family: 'Fredoka', sans-serif; font-weight: 600; }
.faq dt { font-family: 'Fredoka', sans-serif; font-weight: 600; margin-top: 16px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); }
.article-updated { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* guides grid */
.guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.guide-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.guide-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.guide-emoji { font-size: 26px; line-height: 1.2; }
.guide-text { display: flex; flex-direction: column; gap: 3px; }
.guide-text strong { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 16.5px; }
.guide-text small { color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }

/* footer */
.footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 0 22px 46px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.footer a { color: inherit; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.footer-nav a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--terra-deep); }
.footer .bone { margin-top: 10px; }

/* sticky mobile CTA (home only) */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 243, 227, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--cream-deep);
  z-index: 50;
  display: none;
  transform: translateY(110%);
  transition: transform .3s;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .big-cta {
  width: 100%;
  justify-content: center;
  font-size: 18px;
  padding: 14px 20px;
}

/* scroll reveal (JS adds .in when visible; no-JS = visible) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .big-cta, .polaroid { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .top { flex-direction: column; gap: 12px; padding-bottom: 4px; }
  /* width: 100% so the row wraps inside the page padding — the column
     container's centered items otherwise size to max-content and overflow. */
  .nav { justify-content: center; gap: 8px 16px; width: 100%; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 30px 0 54px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .hero-photos { height: 400px; max-width: 440px; margin: 0 auto; width: 100%; }
  .p1 { width: 196px; left: 0; } .p1 img { height: 210px; width: 176px; }
  .p2 { width: 176px; right: 0; } .p2 img { height: 186px; width: 156px; }
  .p3 { width: 160px; left: 24%; } .p3 img { height: 160px; width: 140px; }
  .hero-sticker { width: 100px; height: 100px; font-size: 13px; right: 6%; }
  .services, .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .about p { margin-inline: auto; }
  .reviews { columns: 1; }
  .guides { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  /* the home page has the sticky bar, so its header pill is redundant there */
  .home .nav .top-cta { display: none; }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .reviews { columns: 2; }
}
