/* ==========================================================================
   Bio Safe, Pet Litter Maxx
   Design system: "The Earthy Curator"  ·  Manrope + Public Sans
   ========================================================================== */

/* ---------- Self-hosted fonts (latin subset, variable weight) ----------
   Both families are OFL licensed, so self-hosting is permitted. Serving them
   from our own origin removes a render-blocking third-party round trip and
   avoids sending visitor IPs to Google.
   ---------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/public-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/public-sans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream:      #fef9f1;
  --cream-2:    #fffdf8;
  --sand:       #f5f0e8;
  --mist:       #eef0e6;
  --sage:       #436147;
  --sage-dark:  #2f4633;
  --sage-deep:  #1f3226;
  --sage-tint:  #dbe4d3;
  --charcoal:   #2D2D2D;
  --gray:       #5a544b;
  --gray-2:     #6f695f;
  --amber:      #795900;
  --gold:       #e9b949;
  --red:        #af2020;
  --on-dark:    #cfdbd0;
  --on-dark-2:  #dce5da;
  --shadow-sm:  0 12px 32px rgba(45,45,45,.06);
  --shadow-md:  0 12px 32px rgba(45,45,45,.10);
  --shadow-lg:  0 24px 60px rgba(45,45,45,.14);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Focus visibility ----------
   Keyboard users previously had no visible focus anywhere except form fields. */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible, .section--sage :focus-visible { outline-color: var(--cream); }

/* Skip link: off-screen until focused. */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100; background: var(--sage); color: var(--cream);
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 0 0 10px 10px; transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Public Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
}

p { margin: 0; }

a { color: var(--sage); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--sage-dark); }

/* height:auto is required now that every <img> carries width/height attributes:
   the attributes act as presentational hints and would otherwise beat the
   aspect-ratio rules in .gallery and the inline crops. More specific rules
   (.hero-bg) still win. */
img { display: block; max-width: 100%; height: auto; }

/* WebP wrappers must not become the grid/flex item themselves, or the gallery
   and .split layouts would size the <picture> instead of the <img>.
   display:contents also promotes <source> to a layout box, which would double
   the number of grid items, so hide it explicitly. */
picture { display: contents; }
picture > source { display: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 32px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 14px;
}

.section-title { font-size: clamp(28px, 3.4vw, 36px); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-block; background: var(--sage-tint); color: var(--sage-dark);
  padding: 7px 16px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage); color: var(--cream); box-shadow: 0 12px 32px rgba(67,97,71,.28); }
.btn-primary:hover { background: var(--sage-dark); color: var(--cream); }
.btn-soft { background: rgba(45,45,45,.08); color: var(--charcoal); }
.btn-soft:hover { background: rgba(45,45,45,.16); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--cream); width: 100%; justify-content: center; }
.btn-dark:hover { background: var(--sage); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--sage-dark); font-weight: 800; }
.btn-cream:hover { background: #f0e9dd; color: var(--sage-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(254,249,241,.78); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav { display: flex; justify-content: space-between; align-items: center;
       gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Brand lockup (leaf sprig + shield + BIO SAFE / PLM) ---------- */
.logo { display: block; width: auto; height: 50px; }
.foot-brand .logo { height: 44px; }
.nav-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
             font-size: 13.5px; font-weight: 600; }
.nav-links a { color: var(--gray); }
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a.active { color: var(--sage-dark); font-weight: 700; }
.nav-cta { background: var(--sage); color: var(--cream) !important; padding: 10px 20px;
           border-radius: 10px; font-family: 'Manrope', sans-serif; font-weight: 700; }
.nav-cta:hover { background: var(--sage-dark); }

/* Hamburger toggle, hidden on desktop, shown on mobile */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin: -6px -8px -6px 0;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--charcoal); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--cream2 { background: var(--cream-2); }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }
.section--sage { background: var(--sage); }
.section--tint-i { background: #eef0e6; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
         gap: 56px; align-items: center; }
.center { text-align: center; }
.measure { max-width: 520px; margin-inline: auto; color: var(--gray-2); font-size: 15px; }

.rounded-img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); }
.card {
  background: var(--cream-2); border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,45,45,.12), rgba(45,45,45,0) 30%); }
.hero-inner { position: relative; display: flex; align-items: flex-end;
  min-height: 640px; padding: 170px 0 56px; }
.hero-card {
  max-width: 540px; background: rgba(254,249,241,.84);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; padding: 36px 38px; box-shadow: 0 24px 60px rgba(45,45,45,.18);
}
.hero-card h1 { font-size: clamp(30px, 4.2vw, 42px); margin-bottom: 14px; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
          text-transform: uppercase; color: #726b60; margin: 0 0 10px; }

/* ---------- Trust strip ---------- */
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 44px;
  padding: 24px 32px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sage); max-width: var(--wrap); margin: 0 auto; }

/* ---------- Feature/benefit lists ---------- */
.checks { display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px; font-weight: 500; }
.checks div { display: flex; gap: 10px; }
.checks .tick { color: var(--sage); font-weight: 700; }

/* ---------- Steps ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step-num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px;
  color: var(--amber); letter-spacing: .08em; margin: 0 0 10px; }
.step-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; margin: 0 0 10px; }

/* ---------- "Who it's for" audience ---------- */
.audience { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px 48px; }
.audience figure { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.audience .disc { width: 104px; height: 104px; border-radius: 50%; background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.audience .disc .audience-icon { width: 48px; height: 48px; color: var(--sage); }
.audience figcaption { font-weight: 700; font-size: 14px; }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-body { color: var(--gray); font-size: 15px; line-height: 1.75; }
.legal-body h2 { font-size: 22px; margin: 36px 0 12px; color: var(--charcoal); }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; color: var(--charcoal); }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px;
  box-shadow: 0 12px 32px rgba(45,45,45,.08); }

/* ---------- Ingredients "never use" panel ---------- */
.panel-dark { background: var(--sage-dark); border-radius: 24px; padding: 44px 42px; color: #e8ede4; }
.panel-dark h3 { font-size: 24px; margin-bottom: 28px; }
.nevers { display: flex; flex-direction: column; gap: 18px; font-size: 15px; font-weight: 600; }
.nevers div { display: flex; gap: 14px; align-items: center; }
.nevers .x { color: #e0a4a4; }

/* ---------- Why Bio Safe cards ---------- */
.why-card { background: var(--cream); border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.why-card .mono { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.why-card h3 { font-size: 19px; }
.why-card p { font-size: 14px; color: var(--gray); flex: 1; }
.why-card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sage); }

/* ---------- Contact / forms ---------- */
.form { background: var(--cream-2); border-radius: 24px; padding: 40px 38px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray-2); }
.field input, .field select, .field textarea {
  font-family: 'Public Sans', sans-serif; background: var(--sand); border: none;
  border-bottom: 2px solid #d8d2c6; border-radius: 10px 10px 4px 4px; padding: 13px 14px;
  font-size: 14.5px; color: var(--charcoal); outline: none; transition: border-color .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--sage); }
.form-status { margin: 0; font-size: 13.5px; color: var(--sage); font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--sage-dark); }
.form-status.is-error { color: var(--red); }

/* Honeypot: off-screen for bots, gone for everyone else (including screen readers). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-card { background: var(--cream-2); border-radius: 20px; padding: 30px 32px;
  box-shadow: var(--shadow-sm); max-width: 420px; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-weight: 600; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq { background: var(--cream); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 22px 26px; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 16.5px; color: var(--charcoal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sage); font-size: 20px; flex: none; }
.faq[open] summary::after { content: '\2212'; }
.faq p { padding: 0 26px 24px; font-size: 14.5px; color: var(--gray); line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-deep); color: var(--on-dark); padding: 44px 0; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 28px; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.foot-col .h { font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-dark-2); }
.foot-link { color: var(--on-dark); }
.foot-link:hover { color: var(--cream); }
.foot-bottom { max-width: var(--wrap); margin: 32px auto 0; padding: 20px 32px 0;
  font-size: 11.5px; color: #9aab9a; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; }
.footer-slim .foot-top { align-items: center; }

/* ---------- Sub-page hero ---------- */
.page-hero { padding: 160px 0 72px; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 52px); }

/* ---------- Mobile nav (hamburger) ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: flex; }

  /* While the menu is open the header must be opaque and scrollable on short
     screens, otherwise the hero shows straight through the links. */
  .site-header.nav-open {
    background: var(--cream);
    box-shadow: 0 18px 40px rgba(45,45,45,.16);
    max-height: 100dvh;
    overflow-y: auto;
  }
  body.nav-locked { overflow: hidden; }
  .nav-links {
    display: none; order: 3; flex-basis: 100%; width: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 0 6px; margin-top: 8px;
    border-top: 1px solid rgba(45,45,45,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; font-size: 15px; border-radius: 8px; }
  .nav-links a:hover { background: rgba(67,97,71,.08); }
  .nav-links a.nav-cta { text-align: center; margin-top: 8px; padding: 13px 20px; }
  .nav-links a.nav-cta:hover { background: var(--sage-dark); }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  .logo { height: 40px; }
  .foot-brand .logo { height: 38px; }
  .section { padding: 60px 0; }
  .split { gap: 36px; }
  .hero-card { padding: 28px 24px; }

  /* Touch targets. Footer links were 21px and the contact lines 24px tall,
     under the 24px WCAG minimum and well under the 44px comfortable size. */
  .foot-col { gap: 2px; }
  .foot-link, .contact-lines a {
    display: flex; align-items: center; min-height: 44px;
  }
  .foot-bottom { flex-direction: column; gap: 10px; text-align: center; justify-content: center; }
  .foot-bottom span { display: block; }
  .footer-slim .foot-top { align-items: flex-start; }
  .footer-slim .foot-top > div { gap: 0 !important; flex-direction: column; }

  /* Form labels read small on a phone. */
  .field { font-size: 12px; }

  /* Flex-wrapping the trust strip left a ragged 3/2/1 stack. A two-up grid
     keeps the six claims aligned. */
  .trust {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px 16px; padding: 22px 20px; font-size: 11px;
  }
  .trust span { text-align: left; }
}
