/* Doggi — doggi.app
   Static rebuild of the former Squarespace site. No build step. */

:root {
  --brand: #7196ff;          /* DoggiBlue (dark-mode value) — buttons, links, accents */
  --brand-dark: #4f73e0;     /* hover/pressed */
  --hero: #93cbff;           /* DoggiBlue (light-mode value) — hero background */
  --hero-ink: #10243f;       /* readable text on the light hero */
  --ink: #000;
  --ink-soft: #3a3d3f;
  --muted: #6b6f76;
  --line: #e7e9ef;
  --bg: #fff;
  --bg-soft: #f5f7ff;
  --radius: 20px;
  --header-h: 76px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
body.home { padding-top: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  transition: opacity .35s ease, transform .35s ease, background-color .35s ease;
}
.site-header.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--gutter);
}
.logo {
  font-family: var(--font-head); font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em; text-decoration: none;
}
/* Home: header sits on the hero blue with no seam */
body.home .site-header { background: transparent; }
body.home .site-header.is-solid { background: #fff; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; padding: 2px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
body.home .site-header:not(.is-solid) .logo,
body.home .site-header:not(.is-solid) .nav a { color: var(--hero-ink); }
.menu-btn {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 767px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 28px; padding-top: 48px; font-size: 22px;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav a { font-size: 22px; }
  .nav.open { transform: none; }
  body.home .site-header .nav { background: #fff; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 300px;
  border: 1px solid var(--brand); color: var(--brand); background: transparent;
  text-decoration: none; font-size: 16px; font-family: var(--font-body);
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--brand); color: #fff; }
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--brand); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero);
  min-height: 640px;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg span {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-bg span:nth-child(1) { width: 110vmax; height: 110vmax; left: -70vmax; top: -30vmax; }
.hero-bg span:nth-child(2) { width: 80vmax;  height: 80vmax;  left: -55vmax; top: -5vmax;  animation-duration: 28s; }
.hero-bg span:nth-child(3) { width: 70vmax;  height: 70vmax;  right: -40vmax; bottom: -55vmax; animation-duration: 25s; background: rgba(113, 150, 255, .22); }
.hero-bg span:nth-child(4) { width: 120vmax; height: 120vmax; right: -80vmax; top: -70vmax; animation-duration: 32s; background: rgba(255, 255, 255, .05); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.06); }
}
.hero .container { position: relative; }
.hero h1 { text-align: center; color: var(--hero-ink); font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.hero-copy { color: var(--hero-ink); font-size: 17px; max-width: 560px; text-align: center; margin: 0 auto; }
.hero-copy p { margin-bottom: 28px; }
.hero-phone { justify-self: center; width: min(280px, 70%); filter: drop-shadow(0 30px 40px rgba(20, 30, 90, .25)); }
.hero-phone img { transform: rotate(8deg); }
@media (max-width: 767px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 24px) 0 56px; }
  .hero h1 { margin-bottom: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-phone { width: min(260px, 70%); }
}

/* ---------- Home features ---------- */
.features { padding: 72px 0 40px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { text-align: center; }
.feature .blob {
  width: 100%; max-width: 220px; margin: 0 auto 20px;
  aspect-ratio: 3 / 4;
  clip-path: url(#blob);
  overflow: hidden;
}
.feature .blob img { width: 100%; height: 100%; object-fit: cover; }
.feature p { font-size: 14px; line-height: 1.55; max-width: 270px; margin: 0 auto; }
.features .cta { text-align: center; margin-top: 44px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 480px) { .features-grid { gap: 32px 16px; } .feature p { font-size: 13px; } }

/* ---------- Generic page layouts ---------- */
.page { padding: 64px 0 96px; }
.page-title { font-size: clamp(32px, 4vw, 48px); }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.split .lede { font-size: 17px; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; gap: 16px; } }

.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.service-logo { width: 170px; margin: 0 auto 32px; border-radius: var(--radius); }
.service h2 { font-size: 26px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; margin-top: 32px; }
.faq-grid h3 { font-size: 19px; margin-bottom: 10px; }
.faq-grid p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Legal */
.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal .effective { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal h3 { font-size: 17px; margin-top: 22px; margin-bottom: 6px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal li p { margin: 0; }
.legal a { color: var(--brand-dark); }

/* ---------- Footer ---------- */
.marquee {
  overflow: hidden; padding: 28px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
}
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 40s linear infinite;
  font-family: var(--font-head); font-weight: 500; font-size: 24px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee-track span { padding-right: 0.4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-footer .container {
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) auto;
  align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 40px;
  font-size: 13px;
}
/* pages without the marquee (privacy policy, terms) get a plain divider instead */
.site-footer:first-child .container { padding-top: 40px; margin-top: 48px; border-top: 1px solid var(--line); }
.site-footer a.flink { color: var(--brand); text-align: center; }
.social { display: flex; gap: 10px; justify-content: flex-end; }
.social a {
  width: 28px; height: 28px; border-radius: 50%; background: #000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.social svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 767px) {
  .site-footer .container { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .social { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
