/* ==========================================================================
   Little Steps Readers - Master Stylesheet
   Architecture: Clean, Modular, Touch-Ergonomic, Responsive SPA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --navy: #103353;
  --navy-dark: #0b2238;
  --navy-light: #1c4b75;
  --navy-glass: rgba(16, 51, 83, 0.85);

  --pink: #ff596e;
  --pink-hover: #f0485f;
  --pink-light: #fff0f2;
  --pink-shadow: rgba(255, 89, 110, 0.35);

  --yellow: #ffc60a;
  --yellow-hover: #eab400;
  --yellow-light: #fff9e6;

  --green: #42b382;
  --green-hover: #379d71;
  --green-light: #eaf8f1;

  --blue: #29b4d6;
  --blue-hover: #1fa2c2;
  --blue-light: #e7f7fb;

  --orange: #f28b24;
  --orange-light: #fef3e9;

  --cream: #fffaf2;
  --cream-card: #fcf6eb;
  --cream-alt: #f7f1e5;
  --card-border: #ede4d4;

  --text-main: #103353;
  --text-muted: #5e7285;
  --text-light: #8fa0b0;
  --white: #ffffff;

  --font-family: 'Nunito', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 3px 10px rgba(16, 51, 83, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 51, 83, 0.08);
  --shadow-lg: 0 16px 36px rgba(16, 51, 83, 0.12);
  --shadow-card-hover: 0 12px 28px rgba(16, 51, 83, 0.1);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Base, Reset & Touch Ergonomics --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #fffefa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

section[id] {
  scroll-margin-top: 96px;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a, button, [role="button"], input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Visually hidden honeypot field for bot filtering */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1, .hero-heading {
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 0.85rem;
}

.rainbow {
  background: linear-gradient(90deg, #42b382 0%, #ffc60a 35%, #ff596e 70%, #29b4d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stars-decor {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--yellow);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
}

/* --- Buttons & CTAs (Fitts's Law >= 48px Height + Tactile Active Feedback) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 28px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.btn-pink {
  background-color: var(--pink);
  color: var(--white);
  box-shadow: 0 4px 16px var(--pink-shadow);
}

.btn-yellow {
  background-color: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(255, 198, 10, 0.4);
}

.btn-icon-right svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* --- Global Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f2eee7;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding: 10px 2px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--yellow);
  border-radius: var(--radius-full);
}

/* Header Utilities / Icons (>= 44x44px Touch Targets) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.tool-btn:active,
.mobile-menu-toggle:active,
.social-icon-btn:active,
.category-card:active {
  transform: scale(0.95);
}

.tool-btn .icon-svg,
.tool-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  background-color: var(--pink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--radius-full);
  color: var(--navy);
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg,
.mobile-menu-toggle .icon-svg {
  width: 26px;
  height: 26px;
}

/* --- Hero Layout (Home, About, Shop) --- */
.hero-section {
  padding: 50px 0 60px;
  background: #ffffff;
  overflow: hidden;
}

.hero-section--alt {
  background: #fffdf8;
  border-top: 1px solid #f3ece0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  padding-right: 15px;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 490px;
  margin-bottom: 1.75rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layered Hero Scenes (Home, About, Shop) */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.hero-fg-layer {
  position: absolute;
  height: auto;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 12px 24px rgba(16, 51, 83, 0.12));
}

/* Home: Girl leaning on books in front of warm circle, sun & green hill */
.hero-scene--home .hero-bg-layer {
  border-radius: var(--radius-lg);
}

.hero-scene--home .hero-fg-layer {
  width: 86%;
  bottom: 0;
  left: 45%;
  transform: translateX(-50%);
}

/* About Us: Boy reading yellow book framed by warm circular backdrop */
.hero-scene--about .hero-fg-layer {
  width: 90%;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
}

/* Shop: Read/Learn/Explore/Grow stack centered inside doodle ring */
.hero-scene--shop .hero-fg-layer {
  width: 62%;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Benefit Bar (Home & Shop) --- */
.benefit-bar {
  background-color: #f1f9f6;
  border-top: 1px solid #e1efe8;
  border-bottom: 1px solid #e1efe8;
  padding: 36px 0;
}

.benefit-bar-alt {
  background-color: #fcf6eb;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px;
  position: relative;
}

.benefit-card + .benefit-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #d6e8df;
}

.benefit-bar-alt .benefit-card + .benefit-card::before {
  background-color: #e6dac6;
}

.benefit-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: var(--transition);
}

.benefit-icon-blue { background-color: #e1f5fb; color: #29b4d6; }
.benefit-icon-green { background-color: #e2f6ec; color: #42b382; }
.benefit-icon-purple { background-color: #ede9fe; color: #7c3aed; }
.benefit-icon-pink { background-color: #ffe6e9; color: #ff596e; }
.benefit-icon-yellow { background-color: #fff4d1; color: #eab400; }

.benefit-icon-wrap svg,
.benefit-icon-wrap .icon-svg {
  width: 28px;
  height: 28px;
}

.benefit-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 3px;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- About Us Section: Value Cards --- */
.values-band {
  background-color: #eef8fc;
  border-top: 1px solid #dcedf5;
  border-bottom: 1px solid #dcedf5;
  padding: 64px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background-color: var(--white);
  border: 1px solid #dcebf2;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value-icon-circle svg,
.value-icon-circle .icon-svg {
  width: 30px;
  height: 30px;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* --- Shop Categories Grid --- */
#shop-categories {
  padding-bottom: 136px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.category-card {
  background-color: var(--cream-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 16px 24px;
  min-height: 180px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.category-icon-bubble {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

.category-icon-bubble svg,
.category-icon-bubble .icon-svg {
  width: 44px;
  height: 44px;
}

.category-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.category-card .category-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Category bubble tint variations */
.cat-bg-1 { background-color: #fde8db; color: #b45309; }
.cat-bg-2 { background-color: #fde2e4; color: #e11d48; }
.cat-bg-3 { background-color: #e0f2fe; color: #0284c7; }
.cat-bg-4 { background-color: #fef3c7; color: #d97706; }
.cat-bg-5 { background-color: #dcfce7; color: #16a34a; }
.cat-bg-6 { background-color: #ffedd5; color: #ea580c; }
.cat-bg-7 { background-color: #d1fae5; color: #059669; }
.cat-bg-8 { background-color: #ffe4e6; color: #e11d48; }
.cat-bg-9 { background-color: #fef08a; color: #ca8a04; }
.cat-bg-10 { background-color: #fce7f3; color: #db2777; }

/* --- Resources Section Cards --- */
.resources-section {
  background-color: #ffffff;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  text-align: left;
}

.resource-card {
  background-color: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.resource-thumb {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background-color: #fdf6ec;
  padding: 10px 16px 4px;
}

.resource-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-body h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.resource-body p {
  font-size: 0.98rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--pink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}

/* --- Contact Section Layout --- */
.contact-section {
  background-color: #fffaf2;
  border-top: 1px solid var(--card-border);
  padding-bottom: 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  margin-top: 40px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px 22px;
  background-color: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg,
.contact-info-icon .icon-svg {
  width: 22px;
  height: 22px;
}

.contact-info-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 800;
  word-break: break-word;
}

.contact-info-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-card {
  background-color: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.contact-plane-decor {
  position: absolute;
  top: -30px;
  right: 20px;
  width: 70px;
  height: auto;
  pointer-events: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid #dce2e8;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--navy);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  margin-top: 8px;
}

/* --- Global Smooth Flowing Wave Footer --- */
.site-footer {
  margin-top: -72px;
  background-color: transparent;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.footer-wave {
  width: 100%;
  height: 72px;
  display: block;
  margin-bottom: -1px;
  pointer-events: none;
}

.footer-main {
  background-color: var(--navy);
  padding: 44px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.25fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 28px;
}

.footer-logo {
  height: 66px;
  width: auto;
  margin-bottom: 14px;
  object-fit: contain;
  align-self: flex-start;
}

.footer-tagline {
  color: #dbe7f2;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  color: #c9d8e5;
  font-size: 0.96rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  transition: var(--transition);
}

/* Social icons (>= 44x44px Touch Targets) */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  margin-left: -8px;
}

.social-icon-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-full);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icon-btn svg,
.social-icon-btn .icon-svg {
  width: 21px;
  height: 21px;
}

/* Joined Flush Newsletter Bar */
.newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: none;
  background-color: transparent;
  color: var(--navy);
  font-size: 0.95rem;
}

.newsletter-input:focus {
  outline: none;
  background-color: #ffffff;
}

.newsletter-btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 800;
  background-color: var(--yellow);
  color: var(--navy);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

/* Our Promise + Sparkling Book Side-by-Side */
.footer-promise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promise-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.promise-heart {
  width: 26px;
  height: 26px;
  color: var(--pink);
  flex-shrink: 0;
  margin-top: 3px;
}

.promise-heart svg {
  fill: var(--pink);
  stroke: var(--pink);
}

.promise-text {
  color: #dbe7f2;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.footer-decor-book {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
}

/* Copyright Bar */
.footer-bottom {
  background-color: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.88rem;
  color: #9ab0c4;
}

.footer-bottom p {
  color: #9ab0c4;
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* --- Dialog / Modals --- */
dialog {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  position: fixed;
  inset: 0;
  margin: auto;
  background-color: #ffffff;
}

#dialog-body {
  padding: 36px 28px 30px;
}

dialog::backdrop {
  background-color: rgba(16, 51, 83, 0.65);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.dialog-content h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  padding-right: 28px;
}

.dialog-content p {
  margin-bottom: 20px;
}

/* Toast alert notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  max-width: min(420px, calc(100vw - 32px));
  background-color: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2000;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- Pointer Hover Guards (Prevents Sticky Hover States on Touchscreens) --- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn-pink:hover {
    background-color: var(--pink-hover);
    box-shadow: 0 6px 20px var(--pink-shadow);
  }

  .btn-yellow:hover {
    background-color: var(--yellow-hover);
    box-shadow: 0 6px 20px rgba(255, 198, 10, 0.5);
  }

  .btn:hover .btn-icon-right svg {
    transform: translateX(3px);
  }

  .nav-link:hover {
    color: var(--pink);
  }

  .tool-btn:hover,
  .mobile-menu-toggle:hover {
    background-color: var(--cream-alt);
    color: var(--pink);
  }

  .benefit-card:hover .benefit-icon-wrap {
    transform: scale(1.08);
  }

  .value-card:hover,
  .category-card:hover,
  .resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--yellow);
    background-color: var(--white);
  }

  .category-card:hover .category-icon-bubble {
    transform: scale(1.1);
  }

  .resource-link:hover {
    color: var(--pink-hover);
    gap: 10px;
  }

  .contact-info-item:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-sm);
  }

  .footer-link:hover {
    color: var(--yellow);
    padding-left: 4px;
  }

  .social-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--yellow);
    transform: translateY(-2px);
  }

  .newsletter-btn:hover {
    background-color: var(--yellow-hover);
  }

  .dialog-close:hover {
    background-color: var(--cream-alt);
    color: var(--pink);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-scene {
    max-width: 400px;
    margin: 0 auto;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-col + .footer-col {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 80px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-section {
    padding: 34px 0 46px;
  }

  .header-container {
    height: 76px;
    padding: 0 16px;
  }

  .brand-logo img {
    height: 40px;
  }

  .header-tools {
    gap: 2px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 1.08rem;
    border-radius: var(--radius-sm);
  }

  .nav-link.active {
    background-color: var(--yellow-light);
  }

  .nav-link.active::after {
    display: none;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .benefit-card + .benefit-card::before {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-card {
    padding: 22px 12px 18px;
    min-height: 164px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  /* 16px minimum prevents iOS Safari viewport auto-zoom on focus */
  .form-input, .form-select, .form-textarea, .newsletter-input {
    font-size: 16px;
  }

  .contact-section,
  #shop-categories {
    padding-bottom: 96px;
  }

  .site-footer {
    margin-top: -44px;
  }

  .footer-wave {
    height: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-link {
    min-height: 44px;
  }

  .toast-notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    max-width: 320px;
  }

  .newsletter-form {
    flex-direction: column;
    background: transparent;
    gap: 10px;
    box-shadow: none;
  }

  .newsletter-input {
    background-color: var(--white);
    border-radius: var(--radius-sm);
  }

  .newsletter-btn {
    border-radius: var(--radius-sm);
    width: 100%;
  }
}

@media (max-width: 380px) {
  .header-container {
    padding: 0 8px;
  }

  .brand-logo img {
    height: 30px;
  }

  .header-tools {
    gap: 0;
  }

  .tool-btn {
    padding: 8px;
  }
}
