/* ============================================================
   Paws & Claws — Design System
   Palette sampled from the brand photo: a deep ocean blue worn by
   66% of the image, with a bright yellow accent and violet
   secondary accent pulled directly from its pixels.
   ============================================================ */

:root {
  /* Palette — sampled from the brand photo */
  --paper:        #f7f8f8;
  --paper-2:      #eef0f2;
  --paper-3:      #e1e7ea;
  --ocean:        #084868;
  --ocean-600:    #073b55;
  --ocean-700:    #053147;
  --ocean-300:    #60b3dc;
  --ocean-100:    #e5f0f6;
  --ink:          #052f44;
  --ink-soft:     #175371;
  --yellow:       #f8f808;
  --yellow-600:   #c1c106;
  --yellow-100:   #fefedc;
  --violet:       #2808d8;
  --violet-600:   #1d069c;
  --violet-100:   #e5e0fa;
  --line:         #d0d8dd;
  --white:        #ffffff;
  --danger:       #ba1e2a;
  --danger-soft:  #f8e2e4;
  --ok:           #0e7a56;
  --ok-soft:      #def0e9;
  --warn:         #925e0a;
  --warn-soft:    #faebc8;

  /* Typography */
  --font-display: "Fredoka", "Quicksand", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Quicksand", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(5,47,68,.06), 0 2px 8px rgba(5,47,68,.05);
  --sh-2: 0 4px 12px rgba(5,47,68,.08), 0 12px 28px rgba(5,47,68,.07);
  --sh-3: 0 10px 24px rgba(5,47,68,.12), 0 28px 60px rgba(5,47,68,.12);

  /* Layout */
  --nav-h: 74px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .4em; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow-100); }

/* --------------------------- Utilities --------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill); font-weight: 700;
  font-size: 1rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow); color: var(--ink); box-shadow: 0 6px 16px rgba(8,72,104,.22);
}
.btn-primary:hover { background: var(--yellow-600); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(8,72,104,.28); }
.btn-teal { background: var(--ocean); color: var(--white); box-shadow: 0 6px 16px rgba(8,72,104,.28); }
.btn-teal:hover { background: var(--ocean-600); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ocean); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ocean-300); transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Pills / tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--ocean-100); color: var(--ocean);
}
.tag--gold { background: var(--yellow-100); color: var(--yellow-600); }

/* Cards */
.card {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  border: 1px solid var(--line); transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { max-width: 64ch; margin-bottom: 44px; }
.center .sec-head { margin-inline: auto; }

/* Grids */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ----------------------------- Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  background: rgba(247,248,248,.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav {
  display: flex; align-items: center; gap: 20px;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ocean); }
.brand-mark { width: 42px; height: 42px; flex: none; }
/* Brand photo as the header/footer mark. It is a full-colour photo, so
   it sits in a rounded tile with a hairline ring to read as an icon. */
.brand-img {
  width: 42px; height: 42px; object-fit: cover; object-position: center;
  border-radius: 28%; border: 1.5px solid rgba(8,72,104,.22);
  background: var(--ocean);
}
.footer-mark { border-color: rgba(255,255,255,.45); }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow-600); font-weight: 700; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: .96rem;
  color: var(--ink-soft); transition: color .16s, background .16s;
}
.nav-links a:hover { color: var(--ocean); background: var(--ocean-100); }
.nav-links a.active { color: var(--ocean); background: var(--ocean-100); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line);
  transition: border-color .16s, box-shadow .16s;
}
.cart-btn:hover { border-color: var(--ocean-300); box-shadow: var(--sh-1); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--yellow); color: var(--ink);
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--paper);
}
.cart-count[data-empty="true"] { display: none; }

.member-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  border-radius: var(--r-pill); background: linear-gradient(135deg, var(--yellow), var(--yellow-600));
  font-weight: 800; font-size: .82rem; color: var(--ocean);
}
.member-chip svg { width: 15px; height: 15px; }
.guest-actions { display: inline-flex; align-items: center; gap: 8px; }
.nav-login { padding: 8px 10px; color: var(--ink-soft); font-weight: 700; font-size: .86rem; }
.nav-login:hover { color: var(--ocean); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); place-items: center; }
.burger span { display: block; width: 19px; height: 2px; background: var(--ocean); border-radius: 2px; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ocean); border-radius: 2px; transition: .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px;
    box-shadow: var(--sh-2); gap: 6px; margin-left: 0;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; pointer-events: none;
    transform: translateY(-8px); transition: transform .18s ease, opacity .18s ease; z-index: 99;
  }
  body.menu-open .nav-links { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 16px; min-height: 48px; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav-links .btn { margin-top: 8px; }
  .guest-actions { width: 100%; justify-content: flex-end; }
}

/* ----------------------------- Footer ---------------------------- */
.site-footer { background: var(--ocean-600); color: var(--ocean-100); padding: 64px 0 26px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer p, .site-footer li { color: var(--ocean-300); font-size: .94rem; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 12px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: .18s; }
.socials a:hover { background: var(--yellow); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: var(--ocean-300); }

/* --------------------------- Toast / Modal ----------------------- */
.toast-stack { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 460px; }
.toast {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 14px 18px; border-radius: var(--r-md); background: var(--ocean); color: #fff;
  box-shadow: var(--sh-3); font-weight: 600; font-size: .95rem;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.err { background: var(--danger); }
.toast svg { width: 19px; height: 19px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

.modal-backdrop {
  visibility: hidden;
  position: fixed; inset: 0; z-index: 300; background: rgba(5,47,68,.5);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.modal-backdrop.open { visibility: visible; opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper); border-radius: var(--r-xl); width: 100%; max-width: 520px;
  box-shadow: var(--sh-3); max-height: 90vh; overflow-y: auto;
  transform: translateY(16px) scale(.97); transition: transform .26s cubic-bezier(.2,.9,.3,1.1);
}
.modal-backdrop.open .modal { transform: none; }
.modal-pad { padding: clamp(24px, 4vw, 38px); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--sh-1); }
.modal-close svg { width: 16px; height: 16px; }
.modal-shell { position: relative; }

/* ----------------------------- Forms ----------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--white); border: 2px solid var(--line);
  transition: border-color .16s, box-shadow .16s;
}
.input:focus { outline: none; border-color: var(--ocean-300); box-shadow: 0 0 0 4px rgba(96,179,220,.22); }
.input::placeholder { color: var(--ink-soft); opacity: 1; }
textarea.input { resize: vertical; min-height: 110px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err-msg { display: block; color: var(--danger); font-size: .8rem; font-weight: 600; margin-top: 5px; }
.err-msg:empty { display: none; }

/* Password strength + reveal */
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.pw-toggle svg { width: 17px; height: 17px; }
.pw-meter { height: 6px; border-radius: 6px; background: var(--paper-3); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--danger); transition: width .3s ease, background .3s ease; }

.checkrow { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--ink-soft); }
.checkrow input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--yellow); flex: none; }

/* ------------------------ Reveal animation ----------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Shared keyboard navigation and catalog search. */
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10000; padding: 12px 18px; background: var(--ocean); color: white; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.shop-search { margin-bottom: 20px; }
.shop-search label { display: block; font-weight: 700; margin-bottom: 10px; }
.shop-search input { width: 100%; }

.shop-filter-toggle { display: none; }
@media (max-width: 900px) {
  .shop-filter-toggle { display: inline-flex; }
  .shop-filters h3 { display: none; }
  .shop-filters:not(.filters-open) .filter-group { display: none; }
  .shop-filters { position: static; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .site-header { background: var(--paper); backdrop-filter: none; }
  .modal-backdrop { backdrop-filter: none; }
  .nav { gap: 8px; }
  .brand { font-size: 1rem; gap: 7px; white-space: nowrap; }
  .brand-img { width: 34px; height: 34px; }
  .nav-actions { gap: 6px; margin-left: auto; }
  #memberZone { display: none; }
  .nav-bell, .cart-btn, .burger { width: 40px; height: 40px; flex-shrink: 0; }
  section { padding-block: 48px; }
  .sec-head { margin-bottom: 26px; }
  .btn { white-space: normal; text-align: center; min-height: 44px; }
  .input, select.input, textarea.input, select { font-size: 16px; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 20px 20px 12px 12px; }
  .modal-pad { padding: 24px 18px; }
}

@media (hover: none) {
  .card:hover, .product-card:hover, .pet-card:hover,
  .btn:hover, .add-btn:hover { transform: none; }
}

.nav-links .btn-teal { color: var(--white); }
.product-card .badge-tag { left: auto; }

[hidden] { display: none !important; }
/* Keep static editorial fallbacks off the production screen until CMS data arrives. */
:root:not(.cms-ready) [data-cms],
:root:not(.cms-ready) #heroTitle,
:root:not(.cms-ready) .hero-tagline,
:root:not(.cms-ready) [data-cms-date] { visibility: hidden; }
:root:not(.cms-ready) .hero--hub [data-cms],
:root:not(.cms-ready) .hero--hub #heroTitle,
:root:not(.cms-ready) .hero--hub .hero-tagline { visibility: visible; }
:root:not(.cms-ready) [data-cms-feature-date] { visibility: hidden; }
:root:not(.cms-ready) .brand span,
:root:not(.cms-ready) .footer-brand { visibility: hidden; }
