/* ==============================================================================
   KidsPrintables.online — Friendly Worksheet Theme
   Typography: Fredoka (Headings) & Nunito (Body)
   Mobile-First Architecture
   ============================================================================== */

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

:root {
  /* Color Palette */
  --bg-cream: #FFF8EC;
  --bg-paper: #FFFDF9;
  --bg-white: #FFFFFF;
  --bg-tint-yellow: #FFF9E6;
  --bg-tint-blue: #EDF7FA;
  --bg-tint-green: #E8FBF4;
  --bg-tint-red: #FFF0F1;

  --crayon-red: #FF5A5F;
  --crayon-red-hover: #E8454A;
  --sunshine-yellow: #FFD166;
  --sky-blue: #118AB2;
  --sky-blue-hover: #0D7091;
  --leaf-green: #06D6A0;
  --leaf-green-dark: #059A73;
  --ink-navy: #1B263B;
  --ink-muted: #53627A;
  --ink-light: #7E8E9F;
  
  --border-warm: #E9DCBF;
  --border-dark: #1B263B;
  --line-blue: rgba(17, 138, 178, 0.16);

  /* Elevation & Stickers */
  --shadow-sticker: 3px 3px 0px var(--ink-navy);
  --shadow-sticker-hover: 4px 5px 0px var(--ink-navy);
  --shadow-sticker-sm: 2px 2px 0px var(--ink-navy);
  --shadow-soft: 0 10px 25px -5px rgba(27, 38, 59, 0.08);

  /* Typography */
  --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --header-height: 72px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-navy);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  /* Worksheet ruled texture overlay */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 209, 102, 0.18) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(17, 138, 178, 0.12) 0%, transparent 25%),
    linear-gradient(to bottom, transparent 96%, rgba(233, 220, 191, 0.35) 96%);
  background-size: 100% 100%, 100% 100%, 100% 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 76px; /* Room for mobile sticky action bar on phones */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--crayon-red);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-navy);
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Hand-drawn Crayon Underline */
.crayon-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.crayon-underline::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -4px;
  width: 104%;
  height: 8px;
  background-color: var(--sunshine-yellow);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-0.8deg);
}

.crayon-underline.red::after {
  background-color: rgba(255, 90, 95, 0.35);
}

.crayon-underline.green::after {
  background-color: rgba(6, 214, 160, 0.35);
}

.crayon-underline.blue::after {
  background-color: rgba(17, 138, 178, 0.25);
}

/* Sticker Badges */
.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--bg-white);
  color: var(--ink-navy);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sticker-sm);
  transform: rotate(-1deg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sticker-badge.yellow {
  background-color: var(--sunshine-yellow);
}

.sticker-badge.red {
  background-color: var(--crayon-red);
  color: #fff;
}

.sticker-badge.green {
  background-color: var(--leaf-green);
}

.sticker-badge.blue {
  background-color: var(--sky-blue);
  color: #fff;
}

/* Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink-navy);
  cursor: pointer;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
  text-align: center;
  min-height: 48px;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sticker-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--ink-navy);
}

.btn-primary {
  background-color: var(--crayon-red);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--crayon-red-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--sunshine-yellow);
  color: var(--ink-navy);
}

.btn-secondary:hover {
  background-color: #f7c34b;
}

.btn-accent {
  background-color: var(--leaf-green);
  color: var(--ink-navy);
}

.btn-blue {
  background-color: var(--sky-blue);
  color: #FFFFFF;
}

.btn-blue:hover {
  background-color: var(--sky-blue-hover);
  color: #FFFFFF;
}

.btn-outline {
  background-color: var(--bg-white);
  color: var(--ink-navy);
}

.btn-outline:hover {
  background-color: var(--bg-tint-yellow);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  min-height: 38px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: var(--radius-lg);
}

.btn:disabled, .btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #E2E8F0 !important;
  color: #718096 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

/* Header & Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-warm);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 15px rgba(27, 38, 59, 0.06);
  border-bottom-color: var(--ink-navy);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-navy);
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-menu {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-navy);
  padding: 0.35rem 0.5rem;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--crayon-red);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 3px;
  background-color: var(--sunshine-yellow);
  border-radius: 2px;
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sticker-sm);
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--ink-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-cream);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-right: 2px solid var(--ink-navy);
  z-index: 999;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-navy);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px dashed var(--border-warm);
  display: block;
}

.mobile-nav-link.active {
  color: var(--crayon-red);
}

/* Cards & Worksheet Containers */
.card {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sticker);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sticker-hover);
}

.card.tilt-left {
  transform: rotate(-0.5deg);
}

.card.tilt-left:hover {
  transform: rotate(0deg) translateY(-4px);
}

.card.tilt-right {
  transform: rotate(0.5deg);
}

.card.tilt-right:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* Worksheet Grid Background for Highlights */
.worksheet-box {
  background-color: var(--bg-paper);
  border: 2px dashed var(--sky-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

/* Top Offers Strip (free-samples.html & offers.html) */
.offers-strip {
  background-color: var(--bg-tint-yellow);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sticker);
  margin-bottom: 2.5rem;
}

.offers-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.strip-offer-card {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hero Section */
.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-stats-banner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  box-shadow: var(--shadow-sticker-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--ink-navy);
}

.stat-item strong {
  color: var(--crayon-red);
  font-size: 1.15rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.category-card {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sticker-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sticker);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--ink-navy);
}

.category-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Preview Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sticker-sm);
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-img-wrap {
  aspect-ratio: 3/4;
  background-color: #F8F9FA;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--ink-navy);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  background-color: var(--bg-paper);
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step-card {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sticker);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background-color: var(--sunshine-yellow);
  border: 2px solid var(--ink-navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sticker-sm);
}

/* Age Guide Strip */
.age-guide-strip {
  background-color: var(--bg-tint-blue);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sticker);
  margin: 2rem 0;
}

.age-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.age-chip {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-sticker-sm);
}

/* Pricing / Offers Comparison */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.offer-card {
  background-color: var(--bg-white);
  border: 3px solid var(--ink-navy);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sticker);
  position: relative;
  display: flex;
  flex-direction: column;
}

.offer-card.featured {
  background-color: var(--bg-tint-yellow);
  border-color: var(--ink-navy);
  box-shadow: 5px 6px 0px var(--ink-navy);
}

.offer-badge-float {
  position: absolute;
  top: -15px;
  right: 20px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.25rem 0 1.5rem;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--crayon-red);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--ink-navy);
  line-height: 1;
}

.price-period {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.offer-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1rem;
}

.feature-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker);
  background-color: var(--bg-white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 580px;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-warm);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  background-color: var(--bg-tint-yellow);
  color: var(--ink-navy);
  border-bottom: 2px solid var(--ink-navy);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td strong {
  color: var(--ink-navy);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-navy);
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.25rem;
  color: var(--ink-muted);
}

.faq-item.open .faq-answer {
  max-height: 800px;
  padding-bottom: 1.25rem;
  transition: max-height 0.35s ease-in;
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sticker);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-navy);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-sm);
  background-color: var(--bg-paper);
  color: var(--ink-navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.2);
}

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

.honeypot-field {
  display: none !important;
  visibility: hidden !important;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink-navy);
  display: none;
  font-family: var(--font-heading);
}

.form-feedback.success {
  display: block;
  background-color: var(--bg-tint-green);
  color: var(--leaf-green-dark);
}

.form-feedback.error {
  display: block;
  background-color: var(--bg-tint-red);
  color: var(--crayon-red);
}

/* Legal Document Pages */
.legal-content {
  background-color: var(--bg-white);
  border: 2px solid var(--ink-navy);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-sticker);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--ink-navy);
  color: #E2E8F0;
  border-top: 3px solid var(--ink-navy);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #A0AEC0;
  font-size: 0.95rem;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--sunshine-yellow);
  margin-bottom: 0.85rem;
}

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

.footer-links a {
  color: #CBD5E0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--sunshine-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #A0AEC0;
}

/* Floating Doodle Decorative Elements */
.doodle-float {
  display: none;
}

@media (min-width: 1024px) {
  .doodle-float {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: gentle-float 4s ease-in-out infinite alternate;
  }
}

@keyframes gentle-float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus States */
:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 3px;
}

/* ==============================================================================
   Mobile Nav Backdrop
   ============================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(27, 38, 59, 0.55);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================================================================
   Mobile Sticky Bottom Action Bar (Thumb-Friendly for Phones)
   ============================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(255, 248, 236, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--ink-navy);
  box-shadow: 0 -4px 16px rgba(27, 38, 59, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  z-index: 990;
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 46px;
  padding: 0 0.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink-navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-sticker-sm);
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}

.mobile-bar-btn:active {
  transform: scale(0.96);
  filter: brightness(0.94);
}

.mobile-bar-btn.btn-sample {
  background-color: var(--sunshine-yellow);
  color: var(--ink-navy);
}

.mobile-bar-btn.btn-offer {
  background-color: var(--crayon-red);
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* ==============================================================================
   Mobile Table Swipe Hint Badge
   ============================================================================== */
.mobile-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--sky-blue);
  background-color: var(--bg-tint-blue);
  border: 1px dashed var(--sky-blue);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  margin: 0.75rem auto 1rem;
  text-align: center;
  width: fit-content;
}

@media (min-width: 768px) {
  .mobile-swipe-hint {
    display: none;
  }
}

/* ==============================================================================
   Smartphone-Specific Polish (<= 640px)
   ============================================================================== */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 1.95rem;
    line-height: 1.22;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.95rem 1.25rem;
  }

  /* 2x2 grid for stats on mobile phones */
  .hero-stats-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .hero-stats-banner > span {
    display: none;
  }

  .stat-item {
    text-align: center;
    font-size: 0.88rem;
  }

  .stat-item strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1.1;
    margin-bottom: 0.15rem;
  }

  /* Cards on phone */
  .card, .offer-card, .contact-form, .legal-content {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .price-amount {
    font-size: 2.75rem;
  }

  /* Form controls: 16px to prevent iOS auto-zoom */
  .form-control {
    font-size: 16px !important;
    padding: 0.85rem;
  }

  /* FAQ headers on mobile */
  .faq-question {
    font-size: 1.05rem;
    padding: 1rem;
  }

  /* Section padding */
  .section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
}

/* ==============================================================================
   Tablet & Desktop Media Queries (Progressive Enhancement)
   ============================================================================== */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.2rem; }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offers-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .contact-form, .legal-content {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.35rem; }
  
  .nav-menu {
    display: block;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

