/* Pet storefront and admin use the same green, surface and motion palette. */
:root {
  --paper: #f3f7f5;
  --paper-deep: #e4f0e9;
  --surface: #fff;
  --ink: #192b28;
  --muted: #536760;
  --line: #dce8e2;
  --brand: #17624d;
  --brand-dark: #104d3b;
  --sage: #537866;
  --pet-tint: #e7f3ec;
  --pet-dark: #173e32;
  --pet-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 4px 22px rgb(25 56 44 / 6%);
}

html { scroll-padding-top: 144px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pet-font);
}

body :is(h1, h2, h3, h4) {
  font-family: var(--pet-font);
  font-weight: 650;
  letter-spacing: -.035em;
}

body :is(button, a, select, input, textarea, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.site-header {
  border-color: var(--line);
  background: #fbfdfc;
  backdrop-filter: none;
}

@supports (backdrop-filter: blur(14px)) {
  .site-header {
    background: rgb(251 253 252 / 89%);
    backdrop-filter: blur(14px) saturate(1.2);
  }
}

.site-header .nav-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  gap: 0;
}

.site-header .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.brand-symbol {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  color: white;
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
}

.brand-nameplate { display: grid; gap: 4px; }

.brand-nameplate .brand-mark {
  color: var(--ink);
  font: 750 20px/1 var(--pet-font);
  letter-spacing: -.05em;
}

.site-header .brand-symbol {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  font-size: 25px;
}

.site-header .brand-mark { font-size: 28px; }

.site-header .brand-tag,
.site-footer .brand-tag {
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.site-header .brand-tag { font-size: 12px; }

.announcement {
  background: var(--pet-tint);
  color: var(--brand-dark);
  font-size: 12px;
}

.site-header .nav-links {
  justify-content: center;
  gap: 5px;
  padding-block: 6px;
  color: var(--muted);
}

.site-header :is(.nav-links > a:not(.button), .nav-products summary) {
  min-height: 42px;
  align-content: center;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-header .nav-links > a:not(.button)::after { display: none; }

.site-header :is(.nav-links > a:not(.button):hover, .nav-products summary:hover) {
  background: var(--paper);
  color: var(--ink);
}

.site-header :is(.nav-links > a[aria-current="page"]:not(.button), .nav-products.is-active summary, .nav-products[open] summary) {
  background: var(--pet-tint);
  color: var(--brand);
}

.site-header .nav-links > .button {
  min-height: 42px;
  margin-left: 14px;
  padding-inline: 15px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.site-header .nav-links > .button[aria-current="page"] { background: var(--brand-dark); }

.site-header .nav-product-menu {
  top: calc(100% + 8px);
  left: 0;
  border-color: var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header .nav-resources .nav-product-menu { right: 0; left: auto; }
.site-header .nav-product-menu a { border-radius: 9px; }
.site-header .nav-product-menu a + a { border-color: var(--line); }
.site-header .nav-product-menu a small { color: var(--muted); }

.site-header .nav-product-menu a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--pet-tint);
  color: var(--brand);
}

.site-header .nav-toggle {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.nav-toggle-icon { position: relative; width: 17px; height: 10px; }
.nav-toggle-icon::before, .nav-toggle-icon::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-4px) rotate(-45deg); }

body .button, body .direct-inquiry button[type="submit"] {
  border-radius: var(--radius-md);
  background: var(--brand);
  color: white;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body .button:hover, body .direct-inquiry button[type="submit"]:hover {
  background: var(--brand-dark);
  box-shadow: none;
  transform: none;
}

body .button:active, body .direct-inquiry button[type="submit"]:active { transform: scale(.98); }
body .button.secondary { border-color: var(--line); background: var(--surface); color: var(--brand-dark); }
body .button.secondary:hover { border-color: var(--sage); background: var(--pet-tint); }
body :is(.overline, .eyebrow) { color: var(--brand); letter-spacing: .08em; }

body :is(.section.light, .commercial-tint, .buyer-core-page .buyer-tint, .company-scope, .pet-reading, .pet-reading-context) {
  background: var(--pet-tint);
  border-color: var(--line);
}

body :is(.section.dark, .commercial-process, .quote-panel) { background: var(--pet-dark); }
body :is(.section.dark, .commercial-process, .quote-panel) :is(.overline, .eyebrow) { color: #bfe0cf; }
body :is(.section.dark, .quote-panel) .button.secondary { color: white; border-color: #87ad9d; background: transparent; }
body :is(.section.dark, .quote-panel) .button.secondary:hover { color: var(--pet-dark); background: var(--surface); }

body :is(.info-card, .proof-image, .page-hero-media, .commercial-hero-photo img, .brand-card, .gallery-main, .image-dialog, .catalog-image, .hub-product-image img, .buyer-core-page .buyer-photo img, .quote-panel) {
  border-radius: var(--radius-lg);
}

body :is(.info-card, .buyer-core-page .buyer-route, .direct-inquiry, .inquiry-handoff, .commercial-intent, .pet-directory-item > a, .pet-collection-nav > a) {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

body :is(.commercial-intent:is(:hover, [aria-current="true"]), .pet-directory-item > a:hover, .pet-collection-nav > a:hover) {
  border-color: #b1cdbf;
  background: var(--pet-tint);
}

body :is(.commercial-page .direct-inquiry input, .commercial-page .direct-inquiry select, .commercial-page .direct-inquiry textarea) {
  border-color: #b8cec3;
  border-radius: var(--radius-md);
}

body .contact-form-section { scroll-margin-top: 0; }

body :is(.gallery-thumb, .core-option span) { border-color: var(--line); border-radius: 9px; }
body .core-option input:checked + span { border-color: var(--brand); background: var(--brand); color: white; }
body .zoom-label { border-radius: 9px; background: var(--surface); color: var(--brand-dark); }

.mattress-gallery-page .site-header { background: rgb(251 253 252 / 89%); }
.mattress-gallery-page .gallery-main { background: var(--paper); }
.mattress-gallery-page .gallery-thumb { background: var(--surface); color: var(--ink); }
.mattress-gallery-page .gallery-thumb[aria-pressed="true"] {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  background: var(--pet-tint);
  color: var(--brand-dark);
}
.mattress-gallery-page :is(.gallery-thumb, .gallery-main):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.mattress-gallery-page .product-gallery figcaption { color: var(--muted); }
.mattress-gallery-page .product-info { border-color: var(--line); }
.mattress-gallery-page .product-info h1 { font-family: var(--pet-font); font-weight: 700; }

body .faq-list details {
  margin-bottom: 9px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

body :is(.guide-toc, .guide-note, .article-aside, .article-cta, .hub-start-reading) {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: var(--pet-tint);
}

body .guide-answer { border-color: var(--brand); background: var(--pet-tint); }
body .guide-byline a { color: var(--brand-dark); }
body .guide-body { min-width: 0; }
body .pet-collection-switch > a { border-radius: 9px; }
body .pet-collection-switch > a[aria-current="page"] { border-color: var(--line); background: var(--pet-tint); color: var(--brand-dark); }
body .pet-reading-grid { gap: 12px; }
body .pet-reading-card { padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
body .pet-reading-card > p:last-child { padding-right: 0; }
body .site-footer { border-top: 1px solid var(--line); background: #edf4ef; }

@keyframes pet-menu-in {
  from { opacity: .6; transform: translateY(-4px); }
}

.site-header .nav-products[open] .nav-product-menu { animation: pet-menu-in 160ms ease both; }

@media (max-width: 1100px) {
  html { scroll-padding-top: 122px; }

  .site-header .brand-row { padding-block: 9px; }

  .site-header .brand-symbol {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .site-header .brand-mark { font-size: 24px; }

  .site-header .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    margin: 3px 0;
    padding-inline: 3px;
    border-color: transparent;
    background: transparent;
    color: var(--brand-dark);
    font: 620 14px/1 var(--pet-font);
  }

  .site-header .nav-links {
    top: calc(100% + 6px);
    max-height: calc(100dvh - 132px);
    justify-content: stretch;
    gap: 4px;
    padding: 10px;
    border-color: var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header .nav-links.open { animation: pet-menu-in 160ms ease both; }
  .site-header .nav-links > .button { margin: 5px 0 0; }
  .site-header .nav-product-menu { border-radius: 0; box-shadow: none; }
}

@media (max-width: 620px) {
  body .pet-reading-card > p:last-child { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body :is(.button, .direct-inquiry button[type="submit"], .nav-toggle-icon)::before,
  body :is(.button, .direct-inquiry button[type="submit"], .nav-toggle-icon)::after,
  body :is(.button, .direct-inquiry button[type="submit"], .nav-product-menu, .nav-links.open, .nav-products summary span) {
    animation: none;
    transition: none;
  }
  body .button:active, body .direct-inquiry button[type="submit"]:active { transform: none; }
}

.senzero-trust-band {
  padding-block: 18px 8px;
}
.senzero-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.senzero-trust-strip div { padding-inline: 10px; border-left: 1px solid var(--line); }
.senzero-trust-strip div:first-child { border-left: 0; padding-left: 0; }
.senzero-trust-strip dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin-bottom: 4px; }
.senzero-trust-strip dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 26px rgb(16 77 59 / 28%);
  border: 1px solid rgb(255 255 255 / 22%);
  transition: transform 160ms ease, background-color 160ms ease;
}
.wa-float:is(:hover, :focus-visible) { background: #188647; color: #fff; transform: translateY(-2px); }

@media (max-width: 960px) {
  .senzero-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .senzero-trust-strip div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .senzero-trust-strip { grid-template-columns: 1fr; }
  .senzero-trust-strip div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .senzero-trust-strip div:first-child { border-top: 0; padding-top: 0; }
  .wa-float { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 13px; }
}
