/* ============================================================
   Paw Sisters — base: fonts, reset, primitives
   ============================================================ */

/* ---- Fonts (self-hosted woff2) ---- */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/ReadexPro-ExtraLight.woff2') format('woff2');
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/ReadexPro-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ReadexPro-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ReadexPro-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ReadexPro-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ReadexPro-Bold.woff2') format('woff2');
}
/* Fredoka — variable (wght 300-700), latin + latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/Fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2013-2014,
    U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/Fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
img {
  border-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Headings ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--navy);
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
p {
  text-wrap: pretty;
}

/* ---- The site frame: one white container on a tinted canvas ---- */
.frame {
  /* soft brand aura: a few very large, gently-faded cyan/blue washes anchored
     off the frame corners so only their smooth interior shows (no visible arc,
     no banding). The tint flows through every light section; navy stages sit
     opaque on top. Colors stay in the cyan-blue family (no purple). */
  background:
    radial-gradient(
      75rem 62rem at 112% -8%,
      rgba(30, 164, 214, 0.16),
      rgba(30, 164, 214, 0.05) 34%,
      transparent 66%
    ),
    radial-gradient(
      70rem 60rem at -14% 34%,
      rgba(74, 129, 196, 0.13),
      rgba(74, 129, 196, 0.04) 36%,
      transparent 68%
    ),
    radial-gradient(
      74rem 62rem at 114% 72%,
      rgba(30, 164, 214, 0.13),
      rgba(30, 164, 214, 0.04) 36%,
      transparent 68%
    ),
    radial-gradient(
      68rem 58rem at -12% 112%,
      rgba(74, 129, 196, 0.12),
      transparent 64%
    ),
    var(--surface);
  border-radius: var(--frame-radius);
  margin-inline: var(--frame-gap);
  margin-block-start: var(--frame-top);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-frame);
  overflow: clip; /* NOT a scroll container, so the sticky header still works */
  position: relative;
  isolation: isolate;
}
/* keep header / content / footer above the decorative aura + shapes */
.frame > header,
.frame > main,
.frame > footer {
  position: relative;
  z-index: 1;
}
/* re-add the header's trimmed top + bottom space above page content, so the
   header shrinks (10% top + 10% bottom) but the hero/first section stays put */
.frame > main {
  padding-top: calc(2 * var(--header-trim));
}
@media (max-width: 600px) {
  .frame {
    margin: 0;
    border-radius: 0;
    border-inline: none;
  }
}

/* ---- Playful decorative layer: mixed pet shapes, varied sizes, in the edges ---- */
.frame__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  border-radius: inherit;
  pointer-events: none;
}
.frame__decor .deco {
  position: absolute;
  animation: deco-float 13s ease-in-out infinite;
}
/* paw prints — three clearly different sizes */
.frame__decor .pw {
  height: auto;
}
.frame__decor .pw--lg {
  --rot: -18deg;
  width: 3.6rem;
  top: 14%;
  left: 2.5%;
  color: rgba(30, 164, 214, 0.15);
  animation-duration: 12s;
}
.frame__decor .pw--md {
  --rot: 20deg;
  width: 2.5rem;
  top: 48%;
  left: 3.5%;
  color: rgba(74, 129, 196, 0.15);
  animation-duration: 14s;
  animation-delay: -6s;
}
.frame__decor .pw--sm {
  --rot: 12deg;
  width: 1.9rem;
  top: 29%;
  right: 4.5%;
  color: rgba(30, 164, 214, 0.14);
  animation-duration: 11s;
  animation-delay: -3s;
}
.frame__decor .pw--xs {
  --rot: -10deg;
  width: 1.35rem;
  top: 83%;
  right: 10%;
  color: rgba(74, 129, 196, 0.16);
  animation-duration: 10s;
  animation-delay: -1s;
}
/* bone + heart — pet-clinic character */
.frame__decor .bone {
  --rot: 8deg;
  width: 2.9rem;
  height: auto;
  top: 71%;
  left: 3%;
  color: rgba(30, 164, 214, 0.14);
  animation-duration: 15s;
  animation-delay: -4s;
}
.frame__decor .heart {
  --rot: -6deg;
  width: 1.7rem;
  height: auto;
  top: 90%;
  left: 8%;
  color: rgba(74, 129, 196, 0.16);
  animation-duration: 9s;
  animation-delay: -7s;
}
/* outline rings + dots — light geometric sparkle */
.frame__decor .ring {
  border-radius: 50%;
  border: 2px solid rgba(30, 164, 214, 0.16);
}
.frame__decor .ring--lg {
  width: 5rem;
  height: 5rem;
  top: 23%;
  left: 9%;
  animation-duration: 16s;
}
.frame__decor .ring--sm {
  width: 2.6rem;
  height: 2.6rem;
  top: 62%;
  right: 8%;
  border-color: rgba(74, 129, 196, 0.18);
  animation-duration: 12s;
  animation-delay: -5s;
}
.frame__decor .dot {
  border-radius: 50%;
  background: rgba(30, 164, 214, 0.2);
}
.frame__decor .dot--1 {
  width: 0.7rem;
  height: 0.7rem;
  top: 40%;
  right: 12%;
  animation-duration: 8s;
}
.frame__decor .dot--2 {
  width: 0.5rem;
  height: 0.5rem;
  top: 78%;
  left: 13%;
  background: rgba(74, 129, 196, 0.22);
  animation-duration: 10s;
  animation-delay: -3s;
}
/* soft blurred colour orbs for depth (cyan/blue only) */
.frame__decor .orb {
  border-radius: 50%;
  filter: blur(44px);
  animation: float-soft 18s ease-in-out infinite;
}
.frame__decor .orb--1 {
  width: 15rem;
  height: 15rem;
  top: 40%;
  left: -6rem;
  background: radial-gradient(circle, rgba(53, 182, 228, 0.16), transparent 70%);
}
.frame__decor .orb--2 {
  width: 13rem;
  height: 13rem;
  top: 82%;
  right: -5rem;
  background: radial-gradient(circle, rgba(74, 129, 196, 0.15), transparent 70%);
  animation-duration: 22s;
  animation-delay: -6s;
}
/* hand-drawn doodles from the original site — brand-tinted silhouettes that
   peek in from the frame edges + sit behind sections for a playful feel */
.frame__decor .shp {
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.frame__decor .shp--arrow {
  --rot: -6deg;
  width: 11rem;
  height: 7.5rem;
  top: 34%;
  left: 2%;
  background: rgba(74, 129, 196, 0.28);
  -webkit-mask-image: url('/decor/arrow.svg');
  mask-image: url('/decor/arrow.svg');
  animation-duration: 15s;
}
.frame__decor .shp--bird {
  --rot: 6deg;
  width: 9rem;
  height: 9rem;
  top: 43%;
  right: 2.5%;
  background: rgba(30, 164, 214, 0.26);
  -webkit-mask-image: url('/decor/shape-6.svg');
  mask-image: url('/decor/shape-6.svg');
  animation-duration: 13s;
  animation-delay: -4s;
}
.frame__decor .shp--hand {
  --rot: -12deg;
  width: 4rem;
  height: 8rem;
  top: 55%;
  left: 3%;
  background: rgba(4, 39, 64, 0.22);
  -webkit-mask-image: url('/decor/pet-hand.svg');
  mask-image: url('/decor/pet-hand.svg');
  animation-duration: 16s;
  animation-delay: -2s;
}
.frame__decor .shp--paw2 {
  --rot: 14deg;
  width: 5.5rem;
  height: 5.5rem;
  top: 62%;
  right: 3%;
  background: rgba(128, 80, 176, 0.26);
  -webkit-mask-image: url('/decor/pet-paw.svg');
  mask-image: url('/decor/pet-paw.svg');
  animation-duration: 12s;
  animation-delay: -5s;
}
.frame__decor .shp--s5 {
  --rot: 10deg;
  width: 6rem;
  height: 7rem;
  top: 73%;
  right: 2%;
  background: rgba(74, 129, 196, 0.24);
  -webkit-mask-image: url('/decor/shape-5.svg');
  mask-image: url('/decor/shape-5.svg');
  animation-duration: 17s;
  animation-delay: -8s;
}
.frame__decor .shp--s7 {
  --rot: -8deg;
  width: 7rem;
  height: 5rem;
  top: 81%;
  left: 3%;
  background: rgba(30, 164, 214, 0.26);
  -webkit-mask-image: url('/decor/shape-7.svg');
  mask-image: url('/decor/shape-7.svg');
  animation-duration: 14s;
  animation-delay: -3s;
}
.frame__decor .shp--s8 {
  --rot: 16deg;
  width: 5.5rem;
  height: 5rem;
  top: 90%;
  right: 3%;
  background: rgba(128, 80, 176, 0.24);
  -webkit-mask-image: url('/decor/shape-8.svg');
  mask-image: url('/decor/shape-8.svg');
  animation-duration: 11s;
  animation-delay: -6s;
}
.frame__decor .shp--dog {
  --rot: -6deg;
  width: 4.6rem;
  height: 5.2rem;
  top: 70%;
  left: 5%;
  background: rgba(74, 129, 196, 0.26);
  -webkit-mask-image: url('/decor/dog.svg');
  mask-image: url('/decor/dog.svg');
  animation-duration: 13s;
  animation-delay: -1s;
}
@keyframes deco-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--rot, 0deg));
  }
}
@media (max-width: 600px) {
  /* thin the decor on phones so it stays airy, not busy */
  .frame__decor .pw--sm,
  .frame__decor .ring--sm,
  .frame__decor .dot--1,
  .frame__decor .orb,
  .frame__decor .shp--bird,
  .frame__decor .shp--s5,
  .frame__decor .shp--paw2,
  .frame__decor .shp--dog {
    display: none;
  }
}

/* ---- Layout primitives ---- */
.container {
  inline-size: min(100% - var(--pad-inline) * 2, var(--content-max));
  margin-inline: auto;
}
.container-wide {
  inline-size: min(100% - var(--pad-inline) * 2, var(--content-wide));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-gap);
}
.measure {
  max-inline-size: var(--measure);
}

/* ---- Kicker (uppercase label + pulsing dot) ---- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--blue);
}
.kicker::before {
  content: '';
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(30, 164, 214, 0.5);
  animation: kicker-pulse 2.6s var(--ease) infinite;
}
.kicker--light {
  color: var(--on-dark-2);
}

/* accent word inside display headings */
.accent {
  color: var(--cyan);
  font-style: italic;
  font-weight: 500;
}
.on-dark .accent {
  color: var(--cyan-bright);
}
/* SAFEGUARD: headings on any navy stage are always light — never navy-on-navy.
   Applies site-wide so new pages can't reintroduce the low-contrast bug. */
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark h5 {
  color: #fff;
}
/* the colored period */
.period {
  color: var(--cyan);
}

/* ---- Buttons (one size site-wide) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: var(--btn-py) var(--btn-px);
  font-size: var(--btn-fs);
  font-weight: var(--btn-weight);
  line-height: 1;
  border-radius: var(--btn-radius);
  transition:
    transform var(--dur-hover) var(--ease),
    box-shadow var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
  will-change: transform;
}
.btn svg {
  inline-size: 1.1em;
  block-size: 1.1em;
}
/* primary: deep navy + white (brand ink, no purple) */
.btn--primary,
.btn--navy {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 32px -18px rgba(4, 39, 64, 0.6);
}
.btn--primary:hover,
.btn--navy:hover {
  background: var(--navy-2);
  box-shadow: 0 20px 44px -20px rgba(4, 39, 64, 0.62);
}
/* ghost / outline on light */
.btn--ghost {
  color: var(--navy);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
/* glass ghost on dark */
.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
}
/* white on dark */
.btn--white {
  color: var(--navy);
  background: #fff;
}
/* SAFEGUARD: a ghost button on any navy stage becomes light glass, never
   navy-on-navy. Keeps secondary CTAs visible on every dark section site-wide. */
.on-dark .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.on-dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn:active {
    transform: translateY(0);
  }
}

/* ---- Utilities ---- */
.grad-text {
  /* used sparingly, never on long body copy */
  background: var(--brand-gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* Mobile typography — smaller default body copy on phones (client preference).
   Desktop/tablet keep the fluid --step-0 scale. */
@media (max-width: 560px) {
  body {
    font-size: 0.875rem; /* 14px */
  }
}
