/* ============================================================
   STEEL SPROUTS CO. — Redesigned Stylesheet
   Theme: Warm, playful, parent+child friendly
   Palette: Soft sage + sunny yellow + warm cream + forest green
   Fonts: Nunito (rounded, playful body) + Playfair Display (display)
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.72rem,  0.68rem + 0.2vw,  0.85rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.15rem);
  --text-lg:   clamp(1.15rem,  1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.1rem  + 1.5vw,  2.4rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.6rem);
  --text-3xl:  clamp(2.4rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  /* ✨ Playful palette */
  --color-bg:             #fffdf7;
  --color-surface:        #ffffff;
  --color-surface-2:      #f9f8f2;
  --color-surface-warm:   #fff8ee;
  --color-divider:        #e8e4d9;
  --color-border:         #ddd9ce;

  --color-text:           #1f2416;
  --color-text-muted:     #6b6e5f;
  --color-text-faint:     #b0ad9e;
  --color-text-inverse:   #ffffff;

  /* Primary: forest green (trust, nature) */
  --color-primary:        #2d6b45;
  --color-primary-dark:   #1e4a2f;
  --color-primary-light:  #e6f2ec;
  --color-primary-mid:    #c2d9ca;

  /* Accent: sunny yellow (playful, child-friendly) */
  --color-sun:            #f5c842;
  --color-sun-light:      #fff8d6;
  --color-sun-dark:       #d4a800;

  /* Warm coral (warmth, parental) */
  --color-coral:          #f07b5a;
  --color-coral-light:    #fdeee9;

  /* Sky blue (fresh, clean) */
  --color-sky:            #5ba4cf;
  --color-sky-light:      #e8f4fb;

  /* Sage (organic, earthy) */
  --color-sage:           #7faa84;
  --color-sage-light:     #d9ecda;

  /* Radius — rounder for playful feel */
  --radius-sm:   0.5rem;
  --radius-md:   0.875rem;
  --radius-lg:   1.25rem;
  --radius-xl:   1.75rem;
  --radius-2xl:  2.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(31,36,22,0.07);
  --shadow-md:  0 6px 20px rgba(31,36,22,0.10);
  --shadow-lg:  0 16px 48px rgba(31,36,22,0.13);
  --shadow-pop: 0 4px 0px rgba(31,36,22,0.15);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms ease;

  /* Widths */
  --content-narrow:  640px;
  --content-default: 1060px;
  --content-wide:    1280px;

  /* Fonts */
  --font-display: 'Nunito', 'Helvetica Neue', sans-serif;
  --font-body:    'Nunito', 'Helvetica Neue', sans-serif;
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); text-wrap: balance; line-height: 1.2; font-weight: 800; }
p, li { text-wrap: pretty; }
a, button, [role="button"] { transition: all var(--transition-fast); }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--color-sun-light); color: var(--color-text); }
:focus-visible { outline: 3px solid var(--color-sun); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- LAYOUT ---- */
.section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.section-inner { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }
.section-inner-wide { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 800;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; border: 2.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary); color: var(--color-text-inverse);
  border-color: var(--color-primary); box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); box-shadow: 0 6px 0px rgba(31,36,22,0.18); }

.btn-sun {
  background: var(--color-sun); color: var(--color-text);
  border-color: var(--color-sun-dark); box-shadow: 0 4px 0px var(--color-sun-dark);
}
.btn-sun:hover { background: #f8d460; box-shadow: 0 6px 0px var(--color-sun-dark); }

.btn-ghost {
  background: transparent; color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }

.btn-product {
  background: var(--color-primary-light); color: var(--color-primary);
  border-color: var(--color-primary-mid); padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); font-weight: 800; margin-top: auto;
  box-shadow: none; align-self: flex-start;
}
.btn-product:hover { background: var(--color-primary); color: white; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-etsy {
  background: #f1641e; color: white;
  border-color: #c94d10; padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); font-weight: 800; margin-top: var(--space-1);
  box-shadow: 0 3px 0 #c94d10; align-self: flex-start;
}
.btn-etsy:hover { background: #d9551a; transform: translateY(-1px); box-shadow: 0 5px 0 #c94d10; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,247,0.95); backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--color-divider);
}
.header-inner {
  max-width: var(--content-wide); margin-inline: auto;
  padding-inline: var(--space-6); padding-block: var(--space-4);
  display: flex; align-items: center; gap: var(--space-6);
}
.logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--color-text); flex-shrink: 0;
}
.logo-wordmark {
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 900; color: var(--color-primary); letter-spacing: -0.01em;
}
.logo-tagline-text {
  font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted);
  font-style: italic;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-6); list-style: none; }
.site-nav a {
  text-decoration: none; color: var(--color-text-muted);
  font-size: var(--text-sm); font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}
.site-nav a:hover { color: var(--color-primary); background: var(--color-primary-light); }
.header-cta { margin-left: var(--space-4); }
.mobile-menu-btn { display: none; color: var(--color-text); padding: var(--space-2); border-radius: var(--radius-md); }
.mobile-menu-btn:hover { background: var(--color-primary-light); }
.mobile-nav { display: none; padding: var(--space-4) var(--space-6) var(--space-6); border-top: 2px solid var(--color-divider); background: var(--color-bg); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; }
.mobile-nav a { text-decoration: none; color: var(--color-text); font-weight: 700; font-size: var(--text-base); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); display: block; }
.mobile-nav a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.mobile-nav.open { display: block; }

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e8f5ed 0%, #fffdf0 50%, #fff3e8 100%);
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,200,66,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(91,164,207,0.10) 0%, transparent 50%);
  pointer-events: none;
}
/* Decorative blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; opacity: 0.5;
}
.hero-blob-1 { width: 350px; height: 350px; background: rgba(245,200,66,0.25); top: -80px; right: 5%; }
.hero-blob-2 { width: 250px; height: 250px; background: rgba(45,107,69,0.12); bottom: 0; left: 10%; }
.hero-blob-3 { width: 180px; height: 180px; background: rgba(240,123,90,0.15); top: 30%; right: 20%; }

.hero-inner {
  max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(var(--space-10), 6vw, var(--space-16)); position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-sun-light); border: 2px solid var(--color-sun);
  color: var(--color-sun-dark); border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4); font-size: var(--text-xs);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.hero-tagline-brand {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 800; font-style: italic; color: var(--color-primary);
  margin-bottom: var(--space-3); opacity: 0.9;
}
.hero-headline {
  font-size: clamp(1.6rem, 1rem + 2.8vw, 3.2rem); font-weight: 900; line-height: 1.1;
  color: var(--color-text); margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-headline em { color: var(--color-primary); font-style: normal; }
.hero-headline .wave { display: inline-block; }
.hero-sub {
  font-size: var(--text-base); color: var(--color-text-muted);
  max-width: 44ch; line-height: 1.75; margin-bottom: var(--space-8); font-weight: 500;
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.trust-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: white; border: 2px solid var(--color-primary-mid);
  color: var(--color-primary); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 800; box-shadow: var(--shadow-sm);
}

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack {
  position: relative; width: 360px; height: 400px;
}
.hero-card {
  position: absolute;
  background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: var(--space-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.hero-card-main {
  width: 280px; height: 320px; top: 40px; left: 40px; z-index: 3;
  border: 3px solid var(--color-primary-mid);
}
.hero-card-back-1 {
  width: 240px; height: 280px; top: 15px; left: 15px; z-index: 2;
  background: var(--color-primary-light); border: 3px solid var(--color-primary-mid);
  transform: rotate(-4deg);
}
.hero-card-back-2 {
  width: 220px; height: 260px; top: 55px; left: 70px; z-index: 1;
  background: var(--color-sun-light); border: 3px solid var(--color-sun);
  transform: rotate(5deg);
}
.hero-product-img {
  width: 140px; height: 140px; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}
.hero-card-label { font-weight: 900; font-size: var(--text-sm); color: var(--color-primary); text-align: center; }
.hero-card-sub { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; text-align: center; }
.hero-rating { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); font-weight: 800; color: var(--color-sun-dark); }
.hero-badge-float {
  position: absolute; z-index: 10;
  background: var(--color-sun); color: var(--color-text);
  border-radius: var(--radius-full); font-weight: 900; font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4); box-shadow: var(--shadow-md);
  border: 2px solid white;
  animation: float 3s ease-in-out infinite;
}
.hero-badge-float.b1 { top: -10px; right: 20px; }
.hero-badge-float.b2 { bottom: 10px; left: 0; animation-delay: 1.5s; background: var(--color-coral); color: white; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--color-primary); color: white;
  padding-block: var(--space-5);
}
.stats-bar-inner {
  max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6);
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: var(--space-6);
}
.stat-item { text-align: center; }
.stat-num { font-size: var(--text-xl); font-weight: 900; line-height: 1; color: var(--color-sun); }
.stat-lbl { font-size: var(--text-xs); font-weight: 700; opacity: 0.85; margin-top: var(--space-1); }

/* ---- ALERT BAND ---- */
.alert-band {
  background: linear-gradient(90deg, #fff3cd 0%, #fff8d6 100%);
  border-top: 2px solid var(--color-sun); border-bottom: 2px solid var(--color-sun);
  padding-block: var(--space-4);
}
.alert-band-inner {
  max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.alert-icon { font-size: 1.5rem; flex-shrink: 0; }
.alert-band-inner p { flex: 1; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.alert-band-inner a { color: var(--color-primary); font-weight: 800; text-decoration: underline; }

/* ---- CERTIFICATIONS ---- */
.certs-section {
  background: white; border-bottom: 2px solid var(--color-divider);
  padding-block: var(--space-8);
}
.certs-inner {
  max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6);
}
.certs-label {
  text-align: center; font-size: var(--text-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.certs-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4);
}
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2); border: 2px solid var(--color-border);
  border-radius: var(--radius-xl); min-width: 110px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.cert-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-icon { font-size: 1.75rem; line-height: 1; }
.cert-name { font-size: var(--text-xs); font-weight: 800; color: var(--color-text); line-height: 1.3; }
.cert-desc { font-size: 0.65rem; color: var(--color-text-muted); font-weight: 600; line-height: 1.3; }
.cert-badge.green  { border-color: var(--color-primary-mid); background: var(--color-primary-light); }
.cert-badge.yellow { border-color: var(--color-sun); background: var(--color-sun-light); }
.cert-badge.blue   { border-color: #b3d7f0; background: var(--color-sky-light); }
.cert-badge.coral  { border-color: #f5c4b4; background: var(--color-coral-light); }

/* ---- SHOP SECTION ---- */
.shop-section { background: var(--color-surface-2); position: relative; overflow: hidden; }
.shop-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-sun), var(--color-coral), var(--color-sky));
}
.section-header-playful { margin-bottom: var(--space-10); }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-primary-light); color: var(--color-primary);
  border-radius: var(--radius-full); padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: var(--space-4);
}
.section-title { font-size: var(--text-xl); font-weight: 900; color: var(--color-text); margin-bottom: var(--space-3); }
.section-sub { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 60ch; font-weight: 500; }
.section-sub a { color: var(--color-primary); font-weight: 700; }

/* ---- CATEGORY TABS ---- */
.category-tabs {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.tab-btn {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 800;
  color: var(--color-text-muted); background: white;
  border: 2px solid var(--color-border); cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.tab-btn.active {
  background: var(--color-primary); color: white;
  border-color: var(--color-primary); box-shadow: var(--shadow-pop);
  transform: translateY(-2px);
}
.tab-icon { font-size: 1.1rem; }
.tab-panel { display: none; animation: fadeIn 0.25s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

/* Show all button */
.show-more-wrap { text-align: center; margin-top: var(--space-8); }
.products-hidden { display: none !important; }

/* ---- PRODUCT CARD ---- */
.product-card {
  background: white; border: 2px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative; cursor: default;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(31,36,22,0.13);
  border-color: var(--color-primary-mid);
}
.product-card.featured { border-color: var(--color-primary); border-width: 2.5px; }
.product-card.featured::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary-light), transparent 60%);
  pointer-events: none; z-index: 0;
}
.product-card > * { position: relative; z-index: 1; }

.product-badge {
  position: absolute; top: var(--space-4); right: var(--space-4);
  background: var(--color-sun); color: var(--color-text);
  font-size: 0.65rem; font-weight: 900; padding: 3px 10px;
  border-radius: var(--radius-full); border: 1.5px solid var(--color-sun-dark);
  text-transform: uppercase; letter-spacing: 0.06em; z-index: 2;
}
.product-badge.etsy-badge { background: #f1641e; color: white; border-color: #c94d10; }

.product-img-wrap {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-2); border-radius: var(--radius-lg);
  overflow: hidden; flex-shrink: 0;
}
.product-img-wrap img {
  width: 100%; height: 150px; object-fit: contain; padding: var(--space-3);
  transition: transform 0.35s var(--transition);
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* Placeholder icon when no image */
.product-img-placeholder {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light); border-radius: var(--radius-lg);
  flex-shrink: 0; font-size: 3rem;
}

.product-platform {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--color-sky-light); color: var(--color-sky); border: 1px solid #b3d7f0;
}
.product-platform.etsy { background: #fff0ea; color: #f1641e; border-color: #f5c4b4; }

.product-brand { font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); }
.product-name { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; line-height: 1.3; color: var(--color-text); }
.product-desc { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; flex: 1; font-weight: 500; }

.product-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
}
.product-price { font-size: var(--text-base); font-weight: 900; color: var(--color-text); }
.product-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 800; color: var(--color-sun-dark);
}
.product-age {
  font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted);
  background: var(--color-surface-2); padding: 2px 8px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.product-certs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.cert-pill {
  font-size: 0.6rem; font-weight: 800; padding: 2px 7px;
  border-radius: var(--radius-full); border: 1px solid;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cert-pill.made-safe { background: #e6f2ec; color: #1e6640; border-color: #b0d8be; }
.cert-pill.bpa-free  { background: var(--color-sky-light); color: #2d6b9a; border-color: #b3d7f0; }
.cert-pill.plastic-free { background: #fff0ea; color: #d45a20; border-color: #f5c4b4; }
.cert-pill.fda        { background: #f0e8ff; color: #6b34c6; border-color: #c8b0f0; }
.cert-pill.dishwasher { background: var(--color-sun-light); color: var(--color-sun-dark); border-color: var(--color-sun); }

/* ---- WHY STEEL ---- */
.why-section { background: white; }
.why-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center;
}
.why-items { display: flex; flex-direction: column; gap: var(--space-5); }
.why-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface-2); border: 2px solid var(--color-divider);
  transition: all var(--transition);
}
.why-item:hover { border-color: var(--color-primary-mid); background: var(--color-primary-light); transform: translateX(4px); }
.why-icon-wrap {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 2px solid;
}
.why-icon-wrap.green  { background: var(--color-primary-light); border-color: var(--color-primary-mid); }
.why-icon-wrap.yellow { background: var(--color-sun-light); border-color: var(--color-sun); }
.why-icon-wrap.coral  { background: var(--color-coral-light); border-color: #f5c4b4; }
.why-icon-wrap.blue   { background: var(--color-sky-light); border-color: #b3d7f0; }
.why-item strong { display: block; font-weight: 900; font-size: var(--text-sm); margin-bottom: 4px; }
.why-item p { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; line-height: 1.6; margin: 0; }

/* Comparison card */
.comparison-card {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 2px solid var(--color-divider); box-shadow: var(--shadow-md);
}
.comparison-header {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--color-text); color: white;
}
.comparison-col-head {
  padding: var(--space-4); text-align: center;
  font-weight: 900; font-size: var(--text-sm);
}
.comparison-col-head.good { background: var(--color-primary); }
.comparison-col-head.bad  { background: #5a5f52; }
.comparison-body { display: grid; grid-template-columns: 1fr 1fr; }
.comp-col { padding: var(--space-5); }
.comp-col.good { background: var(--color-primary-light); }
.comp-col.bad  { background: var(--color-surface-2); }
.comp-col ul { display: flex; flex-direction: column; gap: var(--space-2); list-style: none; }
.comp-col li { font-size: var(--text-xs); font-weight: 700; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.comp-col.good li { color: var(--color-primary); background: white; }
.comp-col.bad li  { color: var(--color-text-muted); background: white; }

/* ---- SCIENCE / STATS ---- */
.science-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e4a2f 100%);
  color: white; position: relative; overflow: hidden;
}
.science-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,200,66,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.science-section .section-eyebrow { background: rgba(255,255,255,0.15); color: white; }
.science-section .section-title { color: white; }
.science-section .section-sub { color: rgba(255,255,255,0.8); max-width: 70ch; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin: var(--space-10) 0; }
.stat-card {
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl); padding: var(--space-6); text-align: center;
  transition: all var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.stat-big { font-size: var(--text-2xl); font-weight: 900; color: var(--color-sun); line-height: 1; margin-bottom: var(--space-3); }
.stat-desc { font-size: var(--text-xs); opacity: 0.82; line-height: 1.6; font-weight: 600; }
.science-note {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: var(--space-5);
  font-size: var(--text-xs); opacity: 0.82; line-height: 1.8; font-weight: 500;
}

/* ---- AGE FINDER ---- */
.age-section { background: var(--color-surface-warm); }
.age-card {
  background: white; border: 3px solid var(--color-sun);
  border-radius: var(--radius-2xl); padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.age-card::before {
  content: '🌟'; position: absolute; font-size: 8rem; opacity: 0.05;
  top: -20px; right: -20px; pointer-events: none;
}
.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.age-section .section-title { margin-bottom: var(--space-3); }
.age-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0; }
.age-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--space-3) var(--space-5);
  border: 2.5px solid var(--color-border); border-radius: var(--radius-lg);
  font-size: var(--text-xs); font-weight: 800; color: var(--color-text-muted);
  cursor: pointer; background: white; transition: all var(--transition);
  min-width: 90px;
}
.age-btn .age-emoji { font-size: 1.5rem; }
.age-btn:hover, .age-btn.active {
  border-color: var(--color-primary); color: var(--color-primary);
  background: var(--color-primary-light); transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.age-btn.active { box-shadow: var(--shadow-pop); }
.age-result {
  background: var(--color-primary-light); border: 2px solid var(--color-primary-mid);
  border-radius: var(--radius-lg); padding: var(--space-5);
  font-size: var(--text-sm); line-height: 1.75; font-weight: 500;
}
.age-result strong { color: var(--color-primary); font-weight: 900; }
.age-result a { color: var(--color-primary); font-weight: 800; }

/* ---- ABOUT ---- */
.about-section { background: white; }
.about-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-12); align-items: flex-start; }
.founder-card {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-sun-light));
  border: 3px solid var(--color-primary-mid); border-radius: var(--radius-2xl);
  padding: var(--space-8); text-align: center;
}
.founder-monogram {
  width: 100px; height: 100px; background: var(--color-primary);
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  margin: 0 auto var(--space-4); border: 4px solid white; box-shadow: var(--shadow-md);
}
.founder-name { font-weight: 900; font-size: var(--text-base); margin-bottom: 4px; }
.founder-title { font-size: var(--text-xs); color: var(--color-primary); font-weight: 700; margin-bottom: var(--space-4); }
.founder-badges { display: flex; flex-direction: column; gap: var(--space-2); }
.founder-badge {
  font-size: var(--text-xs); font-weight: 700;
  padding: var(--space-2) var(--space-3);
  background: white; border-radius: var(--radius-full);
  border: 1.5px solid var(--color-primary-mid); color: var(--color-primary);
}
.about-text .section-title { margin-bottom: var(--space-5); }
.about-text p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 60ch; font-weight: 500; }
.about-tagline {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 900; color: var(--color-primary);
  background: var(--color-primary-light); border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-6) 0;
}
.about-social { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 800; text-decoration: none;
  border: 2px solid; transition: all var(--transition);
}
.social-link.ig { border-color: #e1306c; color: #e1306c; background: #fff0f5; }
.social-link.ig:hover { background: #e1306c; color: white; transform: translateY(-2px); }
.social-link.pin { border-color: #e60023; color: #e60023; background: #fff0f0; }
.social-link.pin:hover { background: #e60023; color: white; transform: translateY(-2px); }

/* ---- EMAIL ---- */
.email-section { background: var(--color-surface-2); }
.email-card {
  max-width: 640px; margin-inline: auto; text-align: center;
  background: white; border: 3px solid var(--color-primary);
  border-radius: var(--radius-2xl); padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.email-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-sun), var(--color-coral));
}
.email-emoji { font-size: 3rem; margin-bottom: var(--space-4); display: block; }
.email-card h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.email-card > p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 44ch; margin-inline: auto; margin-bottom: var(--space-6); font-weight: 500; }
.email-form { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-4); }
.email-form input {
  flex: 1; min-width: 220px; padding: var(--space-3) var(--space-5);
  border: 2.5px solid var(--color-border); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; background: var(--color-surface-2);
}
.email-form input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px var(--color-primary-light); }
.email-note { font-size: var(--text-xs); color: var(--color-text-faint); font-weight: 600; }
.email-success {
  background: var(--color-primary-light); color: var(--color-primary);
  border-radius: var(--radius-lg); padding: var(--space-4);
  font-size: var(--text-sm); font-weight: 800; margin-top: var(--space-4);
}

/* ---- CHAT WIDGET ---- */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  height: 54px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white; border: 3px solid white;
  box-shadow: 0 6px 24px rgba(45,107,69,0.45);
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer; font-size: var(--text-sm); font-weight: 900;
  white-space: nowrap; letter-spacing: 0.01em;
  transition: all var(--transition);
  animation: pulse-fab 2.8s ease-in-out infinite;
}
.chat-fab-icon { font-size: 1.3rem; flex-shrink: 0; }
.chat-fab-text { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 900; }
.chat-fab-dot {
  width: 9px; height: 9px; background: var(--color-sun);
  border-radius: 50%; flex-shrink: 0;
  animation: blink 1.8s ease-in-out infinite;
}
.chat-fab:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(45,107,69,0.55);
}
@keyframes pulse-fab {
  0%,100% { box-shadow: 0 6px 24px rgba(45,107,69,0.45), 0 0 0 0 rgba(45,107,69,0.25); }
  50% { box-shadow: 0 6px 24px rgba(45,107,69,0.45), 0 0 0 10px rgba(45,107,69,0); }
}
/* Hide old label — no longer needed */
.chat-fab-label { display: none; }

.chat-window {
  position: fixed; bottom: 96px; right: 28px; z-index: 998;
  width: 380px; height: 560px;
  background: white; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg); border: 2.5px solid var(--color-primary-mid);
  display: flex; flex-direction: column;
  transform: scale(0.85) translateY(20px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header {
  background: var(--color-primary); color: white;
  padding: var(--space-4) var(--space-5); display: flex; align-items: center; gap: var(--space-3);
  flex-shrink: 0;
}
.chat-avatar {
  width: 40px; height: 40px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 2px solid rgba(255,255,255,0.4); flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 900; font-size: var(--text-sm); }
.chat-header-status { font-size: var(--text-xs); opacity: 0.8; display: flex; align-items: center; gap: 6px; }
.chat-status-dot { width: 8px; height: 8px; background: var(--color-sun); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.chat-close-btn { background: rgba(255,255,255,0.15); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.chat-close-btn:hover { background: rgba(255,255,255,0.3); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 9999px; }

.chat-msg {
  display: flex; gap: var(--space-2); align-items: flex-end; max-width: 88%;
}
.chat-msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  background: var(--color-primary-light); border: 1.5px solid var(--color-primary-mid);
}
.chat-msg.user .msg-avatar { background: var(--color-sun-light); border-color: var(--color-sun); }
.msg-bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl); font-size: var(--text-xs); font-weight: 500;
  line-height: 1.65; max-width: 100%;
}
.chat-msg.shailee .msg-bubble {
  background: var(--color-surface-2); color: var(--color-text);
  border: 1.5px solid var(--color-divider);
  border-bottom-left-radius: var(--radius-sm);
}
.chat-msg.user .msg-bubble {
  background: var(--color-primary); color: white;
  border-bottom-right-radius: var(--radius-sm);
}
.msg-bubble a { color: var(--color-primary); font-weight: 800; text-decoration: underline; }
.chat-msg.user .msg-bubble a { color: var(--color-sun); }
.msg-time { font-size: 0.6rem; color: var(--color-text-faint); font-weight: 600; align-self: flex-end; margin-bottom: 2px; }

/* Quick reply chips */
.quick-replies {
  padding: var(--space-3) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2);
  border-top: 1px solid var(--color-divider); flex-shrink: 0; background: var(--color-surface-2);
}
.quick-reply-chip {
  padding: 6px 14px; background: white; border: 2px solid var(--color-primary-mid);
  border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 800;
  color: var(--color-primary); cursor: pointer;
  transition: all var(--transition-fast);
}
.quick-reply-chip:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.chat-input-row {
  display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4);
  border-top: 2px solid var(--color-divider); flex-shrink: 0;
}
.chat-input {
  flex: 1; padding: var(--space-2) var(--space-4);
  border: 2px solid var(--color-border); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; background: var(--color-surface-2);
  resize: none; outline: none;
}
.chat-input:focus { border-color: var(--color-primary); background: white; }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-primary); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all var(--transition);
}
.chat-send-btn:hover { background: var(--color-primary-dark); transform: scale(1.1); }

/* Typing indicator */
.typing-indicator .msg-bubble {
  display: flex; align-items: center; gap: 4px; padding: var(--space-3) var(--space-4);
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted);
  animation: typing 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-text); color: var(--color-text-inverse);
  padding-block: var(--space-12) var(--space-8);
}
.footer-inner {
  max-width: var(--content-default); margin-inline: auto;
  padding-inline: var(--space-6); padding-bottom: var(--space-10);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: white; margin-bottom: var(--space-4); }
.footer-brand .logo-name { color: var(--color-sun); }
.footer-brand .logo-tagline-text { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: var(--text-xs); opacity: 0.6; line-height: 1.7; font-weight: 500; }
.footer-col-title { font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-sun); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; }
.footer-col a { font-size: var(--text-xs); opacity: 0.65; text-decoration: none; color: inherit; font-weight: 600; }
.footer-col a:hover { opacity: 1; color: var(--color-sun); }
.footer-bottom {
  max-width: var(--content-default); margin-inline: auto;
  padding: var(--space-6) var(--space-6) 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.footer-bottom p { font-size: var(--text-xs); opacity: 0.5; font-weight: 500; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-layout .founder-card { max-width: 320px; }
  .age-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1279px) {
  .site-nav, .header-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .stats-grid { grid-template-columns: 1fr; }
  .certs-grid { gap: var(--space-3); }
  .cert-badge { min-width: 90px; padding: var(--space-3) var(--space-4); }
  .footer-inner { grid-template-columns: 1fr; }
  .chat-window { width: calc(100vw - 40px); right: 20px; bottom: 96px; height: 480px; }
  .stats-bar-inner { justify-content: center; gap: var(--space-8); }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .email-form { flex-direction: column; }
}

/* ---- ANIMATIONS ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
  .fade-up:nth-child(2) { transition-delay: 0.08s; }
  .fade-up:nth-child(3) { transition-delay: 0.16s; }
  .fade-up:nth-child(4) { transition-delay: 0.24s; }
}

/* ============================================================
   MOBILE BUG FIXES (from QA April 2026)
   ============================================================ */

/* BUG-001: Category tabs stacking full-width — make horizontally scrollable */
@media (max-width: 640px) {
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
    gap: var(--space-2);
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: var(--space-2) var(--space-3);
  }
  .tab-btn .tab-icon { font-size: 0.9rem; }
}

/* BUG-002: Email form squeezing on narrow screens */
@media (max-width: 500px) {
  .email-form {
    flex-direction: column;
    align-items: stretch;
  }
  .email-form input { min-width: unset; width: 100%; }
  .email-form .btn { width: 100%; justify-content: center; }
  .sidebar-email-form .btn { width: 100%; justify-content: center; }
}

/* BUG-003: Chat FAB overlapping content on smallest screens */
@media (max-width: 420px) {
  .chat-fab {
    bottom: 14px;
    right: 10px;
    height: 46px;
    padding: 0 var(--space-3);
  }
  .chat-fab-text { font-size: 0.7rem; }
  .chat-fab-dot { display: none; }
}

/* BUG-006: Chat window width box-sizing fix on mobile */
@media (max-width: 768px) {
  .chat-window {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    box-sizing: border-box;
    height: 480px;
    bottom: 78px;
  }
}

/* BUG-007: Hamburger menu — slide-in animation */
.mobile-nav.open {
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero product emoji — replaces broken CDN image in hero card */
.hero-product-emoji {
  font-size: 5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  width: 100%;
}

/* Product image placeholder — make emoji larger and more visually appealing */
.product-img-placeholder {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface-2));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  font-size: 3.5rem;
  border: 2px solid var(--color-primary-mid);
}

/* ============================================================
   WHY STEEL & SCIENCE — Enhanced Advocacy Styles
   ============================================================ */

/* Netflix documentary callout (Why Steel section) */
.netflix-callout {
  display: flex; align-items: flex-start; gap: var(--space-4);
  background: #1a1a2e; border: 2px solid #e50914;
  border-radius: var(--radius-xl); padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-10);
}
.netflix-callout-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.netflix-callout-text { font-size: var(--text-sm); color: rgba(255,255,255,0.88); line-height: 1.7; font-weight: 500; }
.netflix-callout-text strong { color: white; }
.netflix-callout-text em { color: #e50914; font-style: italic; }
.netflix-callout-text a { color: #e50914; font-weight: 800; text-decoration: none; margin-left: var(--space-2); }
.netflix-callout-text a:hover { text-decoration: underline; }

/* Children-specific research block */
.science-children-block {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-xl); padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.science-children-title {
  font-size: var(--text-sm); font-weight: 900; color: var(--color-sun);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.science-children-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4);
}
.science-child-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.science-child-icon { font-size: 1.5rem; margin-bottom: var(--space-2); }
.science-child-label { font-size: var(--text-sm); font-weight: 900; color: white; margin-bottom: var(--space-2); }
.science-child-text { font-size: var(--text-xs); color: rgba(255,255,255,0.75); line-height: 1.7; font-weight: 500; margin-bottom: var(--space-3); }
.science-child-source {
  font-size: var(--text-xs); font-weight: 800; color: var(--color-sun);
  text-decoration: none; border-bottom: 1px solid rgba(245,200,66,0.4);
}
.science-child-source:hover { border-bottom-color: var(--color-sun); }

/* Netflix callout in science section */
.science-netflix-callout {
  display: grid; grid-template-columns: 1fr 200px;
  gap: var(--space-8); align-items: center;
  background: rgba(255,255,255,0.08); border: 2px solid #e50914;
  border-radius: var(--radius-xl); padding: var(--space-8);
  margin: var(--space-8) 0;
}
.science-netflix-tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: #e50914; color: white;
  font-size: var(--text-xs); font-weight: 900;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.06em;
}
.science-netflix-title { font-size: var(--text-xl); font-weight: 900; color: white; margin-bottom: var(--space-3); }
.science-netflix-sub { font-size: var(--text-sm); color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: var(--space-3); font-weight: 500; }
.science-netflix-quote {
  font-size: var(--text-sm); font-style: italic; color: rgba(255,255,255,0.7);
  border-left: 3px solid #e50914; padding-left: var(--space-4);
}
.science-netflix-right { text-align: center; }
.science-netflix-icon { font-size: 3.5rem; margin-bottom: var(--space-3); }
.science-netflix-stat { font-size: var(--text-xl); font-weight: 900; color: var(--color-sun); line-height: 1.1; }
.science-netflix-stat-desc { font-size: var(--text-xs); color: rgba(255,255,255,0.7); font-weight: 600; margin-top: var(--space-2); }

/* Science sources strip */
.science-sources {
  font-size: var(--text-xs); color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5);
  line-height: 1.8;
}
.science-sources strong { color: rgba(255,255,255,0.7); }
.science-sources a { color: rgba(255,255,255,0.55); text-decoration: underline; margin: 0 2px; }
.science-sources a:hover { color: var(--color-sun); }

@media (max-width: 768px) {
  .science-children-grid { grid-template-columns: 1fr; }
  .science-netflix-callout { grid-template-columns: 1fr; }
  .science-netflix-right { display: none; }
  .netflix-callout { flex-direction: column; }
}

/* ============================================================
   INSTITUTIONAL ENDORSEMENTS & AAP QUOTE
   ============================================================ */

/* Endorsements bar */
.endorsements-bar {
  margin-bottom: var(--space-10);
  background: white;
  border: 2px solid var(--color-primary-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.endorsements-label {
  font-size: var(--text-xs); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.endorsements-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
}
.endorsement-item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); background: var(--color-surface-2);
  border-radius: var(--radius-lg); border: 1.5px solid var(--color-border);
  text-decoration: none; color: var(--color-text);
  transition: all 0.2s ease;
}
.endorsement-item:hover {
  border-color: var(--color-primary); background: var(--color-primary-light);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.endorsement-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--color-primary); color: white;
  border-radius: var(--radius-md); display: flex; align-items: center;
  justify-content: center; font-size: 0.65rem; font-weight: 900;
  letter-spacing: 0.04em; text-align: center; line-height: 1.2;
}
.endorsement-text { font-size: var(--text-xs); line-height: 1.5; }
.endorsement-text strong { display: block; font-weight: 900; color: var(--color-primary); margin-bottom: 4px; }
.endorsement-text span { color: var(--color-text-muted); font-weight: 500; }

/* AAP quote card (inside science section on green background) */
.aap-quote-card {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  border-left: 5px solid var(--color-sun);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  margin-bottom: var(--space-6);
}
.aap-quote-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,0.15); color: var(--color-sun);
  font-size: var(--text-xs); font-weight: 900;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: var(--space-4);
}
.aap-quote {
  font-size: var(--text-base); font-style: italic; color: rgba(255,255,255,0.92);
  font-weight: 600; line-height: 1.75; margin-bottom: var(--space-4); border: none; padding: 0;
  background: none;
}
.aap-quote-link {
  font-size: var(--text-xs); font-weight: 800; color: var(--color-sun);
  text-decoration: none; border-bottom: 1px solid rgba(245,200,66,0.4);
}
.aap-quote-link:hover { border-bottom-color: var(--color-sun); }

@media (max-width: 900px) {
  .endorsements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .endorsements-grid { grid-template-columns: 1fr; }
}

/* Real logo images in endorsement bar */
.endorsement-logo-img {
  width: 80px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: white; border-radius: var(--radius-sm);
  padding: 4px; overflow: hidden;
}
.endorsement-logo-img img {
  max-width: 100%; max-height: 36px; width: auto;
  object-fit: contain; filter: saturate(0.8);
  transition: filter 0.2s ease;
}
.endorsement-item:hover .endorsement-logo-img img { filter: saturate(1); }

/* ─── USA PRODUCT BADGE ─────────────────────────────────────────────────────── */
.usa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #b91c1c;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 1.5px solid #fca5a5;
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 4px;
  margin-bottom: 2px;
  width: fit-content;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: 0 1px 3px rgba(185,28,28,0.08);
}

/* ─── ALL-AMERICAN SIP SECTION ───────────────────────────────────────────────── */
.all-american-section {
  margin: var(--space-12) 0 var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2.5px solid #e5e7eb;
  background: linear-gradient(160deg, #fffaf5 0%, #fff5f5 50%, #f5f5ff 100%);
}

.all-american-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-8) var(--space-6);
}

.all-american-flag-strip {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #b91c1c 0px, #b91c1c 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #1e3a8a 66.66%, #1e3a8a 100%
  );
  border-radius: 3px;
  margin: var(--space-3) 0;
}

.all-american-content {
  padding: var(--space-4) var(--space-6);
}

.all-american-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b91c1c;
  margin-bottom: var(--space-2);
}

.all-american-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #111;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.all-american-sub {
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.all-american-brands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 2px solid #f3f4f6;
}

.aa-brand-card {
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: background 0.2s ease;
  background: white;
}

.aa-brand-card:last-child { border-right: none; }
.aa-brand-card:hover { background: #fef9f0; }

.aa-brand-rank {
  font-size: 2rem;
  font-weight: 900;
  color: #f3f4f6;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.aa-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.01em;
}

.aa-brand-location {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aa-brand-story {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.55;
  flex: 1;
}

.aa-brand-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid #f3f4f6;
}

.aa-brand-link:hover { color: var(--color-primary-dark); text-decoration: none; }

.all-american-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  padding: var(--space-4) var(--space-8);
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
  line-height: 1.6;
  text-align: center;
}

/* Responsive: All-American brands */
@media (max-width: 1024px) {
  .all-american-brands {
    grid-template-columns: repeat(3, 1fr);
  }
  .aa-brand-card:nth-child(3) { border-right: none; }
}

@media (max-width: 640px) {
  .all-american-brands {
    grid-template-columns: 1fr;
  }
  .aa-brand-card { border-right: none; border-bottom: 1px solid #f3f4f6; }
  .all-american-header { padding: var(--space-6) var(--space-4) var(--space-4); }
  .all-american-disclaimer { padding: var(--space-4); }
}

/* ─── ENDORSEMENTS — CLEAN REDESIGN (no blue link bleed) ─────────────────── */
/* Override: endorsement-item is now a div, not an <a> */
div.endorsement-item {
  cursor: default;
}
div.endorsement-item:hover {
  transform: none;
  border-color: var(--color-border);
  background: var(--color-surface-2);
  box-shadow: none;
}
/* Title: use site's dark text, never browser-blue */
.endorsement-text strong {
  color: var(--color-text) !important;
  font-size: var(--text-xs);
}
/* Small source link — styled like a pill badge, not a raw hyperlink */
.endorsement-source-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  background: var(--color-primary-light, #f0fdf4);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--color-primary-mid, #bbf7d0);
  transition: background 0.15s ease, color 0.15s ease;
}
.endorsement-source-link:hover {
  background: var(--color-primary);
  color: white !important;
}
/* Netflix link — match site's dark/primary palette instead of red/blue */
.netflix-callout-text a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: white !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 3px 12px;
  border-radius: 20px;
  transition: background 0.15s ease;
  margin-left: 0;
}
.netflix-callout-text a:hover {
  background: rgba(255,255,255,0.28);
  text-decoration: none !important;
}

/* ============================================================
   CROSS-BROWSER RESPONSIVE OVERHAUL — April 2026 QA
   Fixes: nav wrapping, blank sections, fade-up on scroll,
   mobile tabs overflow, stats bar mobile, link colours,
   section spacing, Safari/Edge compat
   ============================================================ */

/* ── 1. NAV: stop wrapping on desktop — tighter font + gaps ── */
.site-nav ul { gap: var(--space-3); }
.site-nav a {
  font-size: 0.78rem;
  padding: var(--space-1) var(--space-2);
  white-space: nowrap;
}
.header-inner { gap: var(--space-3); }
.logo-tagline-text { display: none; } /* hide tagline in header on all sizes */

/* ── 2. "We earn a small commission" — match brand palette, no underline ── */
.section-sub a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  font-weight: 700;
  border-bottom: 1.5px dotted var(--color-primary-mid);
}
.section-sub a:hover {
  border-bottom-style: solid;
}

/* ── 3. FADE-UP: ensure cards are always visible without JS (Safari safe) ──
   Cards were invisible when IntersectionObserver didn't fire on load.
   Reset opacity to 1 for initial state; JS adds .visible to trigger animation. */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fallback: if JS hasn't run, show everything */
.no-js .fade-up, .fade-up:not(.animated-init) {
  opacity: 1 !important;
  transform: none !important;
}

/* ── 4. SECTION SPACING: reduce excessive whitespace between sections ── */
.section {
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
}

/* ── 5. HERO: show card visual on mid-size screens ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: flex; }
  .hero-card-stack { transform: scale(0.8); }
}

/* ── 6. MOBILE HERO: add bottom padding so trust pills aren't clipped ── */
@media (max-width: 767px) {
  .hero { padding-bottom: var(--space-8); }
  .hero-trust { flex-wrap: wrap; gap: var(--space-2); padding-bottom: var(--space-4); }
  .trust-pill { font-size: 0.72rem; padding: 4px 10px; }
}

/* ── 7. STATS BAR: 2×2 grid on mobile, full row on desktop ── */
@media (max-width: 640px) {
  .stats-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
    justify-items: center;
  }
  /* Last stat (100%) spans full width for visual balance */
  .stat-item:last-child { grid-column: 1 / -1; }
}

/* ── 8. CATEGORY TABS: horizontal scroll + proper sizing ── */
.category-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    gap: var(--space-2);
    /* Ensure full-width scroll area */
    margin-inline: calc(-1 * var(--space-4));
    padding-inline: var(--space-4);
  }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: var(--space-2) var(--space-3);
    min-width: max-content;
  }
}

/* ── 9. PRODUCT GRID: 3 cols on desktop, 2 on tablet, 1 on mobile ── */
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ── 10. PRODUCT CARDS: consistent height, prevent overflow ── */
.product-card { min-height: unset; }
.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* ── 11. ALERT BAND: fix wrapping on mobile ── */
@media (max-width: 640px) {
  .alert-band-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  .alert-band-inner a { display: block; margin-top: var(--space-1); }
}

/* ── 12. ALL-AMERICAN SECTION: 2-col on tablet ── */
@media (min-width: 641px) and (max-width: 1023px) {
  .all-american-brands {
    grid-template-columns: repeat(2, 1fr);
  }
  .aa-brand-card:nth-child(2) { border-right: 1px solid #f3f4f6; }
  .aa-brand-card:nth-child(even) { border-right: none; }
}

/* ── 13. SAFARI FLEXBOX FIXES ── */
/* Safari requires explicit flex-basis for some layouts */
.header-inner { flex-wrap: nowrap; }
.site-nav { flex-shrink: 1; min-width: 0; }
.logo { flex-shrink: 0; }

/* Safari: ensure sticky header background always filled */
.site-header {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── 14. CHAT FAB: safe area inset for notched phones (Safari) ── */
.chat-fab {
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  right: max(16px, env(safe-area-inset-right, 16px));
}
@media (max-width: 639px) {
  .chat-fab {
    height: 44px;
    padding: 0 14px;
    font-size: 0.78rem;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
  }
  .chat-fab-text { font-size: 0.72rem; }
}

/* ── 15. ENDORSEMENTS LOGO FIT ── */
.endorsement-logo {
  background: #f8f8f8;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.endorsement-logo img {
  display: block;
  max-width: 52px; max-height: 36px;
  width: auto; height: auto;
  object-fit: contain;
}

/* ── 16. FOOTER BOTTOM: prevent text overflow on small screens ── */
@media (max-width: 480px) {
  .footer-bottom p { word-break: break-word; }
  .footer-inner { gap: var(--space-8); }
}

/* ── 17. EDGE/IE: grid fallback ── */
@supports not (display: grid) {
  .product-grid { display: flex; flex-wrap: wrap; }
  .product-card { width: calc(33.33% - 1rem); }
}

/* ── ALL-AMERICAN shop links — match brand palette, no browser blue ── */
.aa-brand-link {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  font-weight: 700;
}
.aa-brand-link:hover {
  color: #b91c1c !important;
  text-decoration: none !important;
}

/* ── Reduce gap between All-American section and next content ── */
.all-american-section {
  margin-bottom: var(--space-6);
}

/* ── Reduce blank gap in shop section between tab panels ── */
.tab-panel { padding-top: var(--space-2); }

/* ── Tighten section padding slightly more on mobile ── */
@media (max-width: 640px) {
  .section { padding-block: clamp(var(--space-8), 5vw, var(--space-12)); }
  .section-header-playful { margin-bottom: var(--space-6); }
}

/* ── Mobile: hero eyebrow pill wrapping ── */
@media (max-width: 480px) {
  .hero-eyebrow { font-size: 0.65rem; padding: 5px 12px; }
}

/* removed conflicting nav rule */

/* ── HEADER SHOP NOW — sub-bar below nav, never competes with menu items ── */
.header-cta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  padding: 8px var(--space-6) 10px;
  border-top: 1px solid var(--color-border);
  background: rgba(255,253,247,0.97);
}
.header-cta-bar::before {
  content: 'Curated stainless-steel baby & kids gear — no plastic, no compromise.';
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}
.header-cta-bar .btn { font-size: 0.85rem; padding: 7px 22px; }
/* Hide sub-bar on mobile — Shop Now lives in the mobile menu instead */
@media (max-width: 1279px) {
  .header-cta-bar { display: none; }
}
/* Remove old inline header-cta positioning rules */
.header-inner .header-cta { display: none !important; }

/* ── SHOP NOW REMOVED — header is nav-only, no CTA button competing ── */
.header-cta-bar { display: none !important; }
.header-cta { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   POLAROID STACK HERO — fan-open on hover, animate on load
   ═══════════════════════════════════════════════════════════ */
.polaroid-stack {
  position: relative;
  width: 340px;
  height: 380px;
  margin: 0 auto;
  cursor: pointer;
}

.polaroid {
  position: absolute;
  width: 210px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  padding: 10px 10px 32px;
  transform-origin: center 90%;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              z-index 0s;
  will-change: transform;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f0;
  border-radius: 2px;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.polaroid-label {
  text-align: center;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  font-family: var(--font-display, sans-serif);
}

/* ── Stacked (initial) positions ── */
.polaroid.p1 { top: 40px; left: 30px; transform: rotate(-2deg); z-index: 6; }
.polaroid.p2 { top: 50px; left: 30px; transform: rotate(5deg);  z-index: 5; }
.polaroid.p3 { top: 45px; left: 30px; transform: rotate(-8deg); z-index: 4; }
.polaroid.p4 { top: 55px; left: 30px; transform: rotate(11deg); z-index: 3; }
.polaroid.p5 { top: 42px; left: 30px; transform: rotate(-14deg);z-index: 2; }
.polaroid.p6 { top: 48px; left: 30px; transform: rotate(18deg); z-index: 1; }

/* ── Fanned (hover) positions — contained spread ── */
.polaroid-stack:hover .p1 { transform: rotate(-30deg) translate(-90px, 20px);  z-index: 6; box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.polaroid-stack:hover .p2 { transform: rotate(-15deg) translate(-48px, -24px); z-index: 5; box-shadow: 0 12px 40px rgba(0,0,0,0.16); }
.polaroid-stack:hover .p3 { transform: rotate(0deg)   translate(0px, -36px);  z-index: 4; box-shadow: 0 16px 48px rgba(0,0,0,0.18); }
.polaroid-stack:hover .p4 { transform: rotate(15deg)  translate(48px, -24px); z-index: 3; box-shadow: 0 12px 40px rgba(0,0,0,0.16); }
.polaroid-stack:hover .p5 { transform: rotate(28deg)  translate(86px, 14px);  z-index: 2; box-shadow: 0 10px 32px rgba(0,0,0,0.14); }
.polaroid-stack:hover .p6 { transform: rotate(42deg)  translate(110px, 58px); z-index: 1; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* ── Page-load stagger animation ── */
@keyframes polaroid-drop-in {
  from { opacity: 0; transform: translateY(-40px) rotate(var(--rot, 0deg)); }
  to   { opacity: 1; }
}

.polaroid.p1 { --rot: -2deg;  animation: polaroid-drop-in 0.5s ease 0.1s both; }
.polaroid.p2 { --rot: 5deg;   animation: polaroid-drop-in 0.5s ease 0.2s both; }
.polaroid.p3 { --rot: -8deg;  animation: polaroid-drop-in 0.5s ease 0.3s both; }
.polaroid.p4 { --rot: 11deg;  animation: polaroid-drop-in 0.5s ease 0.4s both; }
.polaroid.p5 { --rot: -14deg; animation: polaroid-drop-in 0.5s ease 0.5s both; }
.polaroid.p6 { --rot: 18deg;  animation: polaroid-drop-in 0.5s ease 0.6s both; }

/* ── 51+ badge ── */
.polaroid-count-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-sun, #f5c842);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245,200,66,0.4);
  z-index: 10;
  pointer-events: none;
}

/* ── Hover hint text ── */
.polaroid-stack::after {
  content: 'Hover to explore';
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.7;
  pointer-events: none;
}

/* ── Mobile: show fanned by default, no hover needed ── */
@media (max-width: 767px) {
  .polaroid-stack {
    width: 280px;
    height: 300px;
  }
  .polaroid { width: 170px; }
  .polaroid.p1 { transform: rotate(-28deg) translate(-100px, 20px); }
  .polaroid.p2 { transform: rotate(-14deg) translate(-55px, -15px); }
  .polaroid.p3 { transform: rotate(0deg)   translate(0px, -30px); }
  .polaroid.p4 { transform: rotate(14deg)  translate(55px, -15px); }
  .polaroid.p5 { transform: rotate(26deg)  translate(95px, 15px); }
  .polaroid.p6 { display: none; }
  .polaroid-stack::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .polaroid { animation: none; }
  .polaroid-stack:hover .p1,
  .polaroid-stack:hover .p2,
  .polaroid-stack:hover .p3,
  .polaroid-stack:hover .p4,
  .polaroid-stack:hover .p5,
  .polaroid-stack:hover .p6 { transition: none; }
}

/* removed conflicting nav rule */

/* ═══════════════════════════════════════════
   NAV — CLEAN CONSOLIDATED RULES (final)
   All 9 items, no overlap, no conflicts
   ═══════════════════════════════════════════ */

/* Desktop: full nav, tight spacing */
@media (min-width: 1280px) {
  .site-nav { display: flex !important; }
  .site-nav ul { gap: 2px; }
  .site-nav a {
    font-size: 0.72rem;
    padding: 4px 7px;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  .mobile-menu-btn { display: none !important; }
}

/* Below 1280px: hamburger only */
@media (max-width: 1279px) {
  .site-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* Mobile nav open state — must override display:none */
.mobile-nav.open { display: block !important; }
