/*
Theme Name: Digital Schoolhouse Studio
Theme URI: https://digitalschoolhousestudio.com
Author: Digital Schoolhouse Studio
Author URI: https://digitalschoolhousestudio.com
Description: Custom WordPress theme for Digital Schoolhouse Studio — educational resource hub for PreK-8 teachers, parents, and homeschoolers. Built from the Stitch design system with full Gutenberg block support.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://digitalschoolhousestudio.com/license
Text Domain: dsh-studio
Tags: education, e-commerce, gutenberg, full-site-editing, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — DSH Studio Design System
   ============================================================ */
:root {
  /* Brand Colors */
  --dsh-navy:         #1B4F72;
  --dsh-coral:        #F08050;
  --dsh-yellow:       #F9E04B;
  --dsh-teal:         #D6EAF8;
  --dsh-white:        #FFFFFF;
  --dsh-gray:         #333333;
  --dsh-light-gray:   #F2F4F5;

  /* Stitch Design System Tokens */
  --color-primary:              #9e4217;
  --color-primary-container:    #F08050;
  --color-secondary:            #326286;
  --color-secondary-container:  #a5d4fd;
  --color-tertiary:             #6c5e00;
  --color-tertiary-fixed:       #fce34e;
  --color-surface:              #f7fafc;
  --color-surface-low:          #f1f4f6;
  --color-surface-container:    #ebeef0;
  --color-on-surface:           #181c1e;
  --color-on-surface-variant:   #56423b;
  --color-outline:              #897269;
  --color-outline-variant:      #ddc1b7;
  --color-background:           #f7fafc;
  --color-error:                #ba1a1a;

  /* Typography */
  --font-heading:   'Lexend', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;
  --font-logo:      'Montserrat', sans-serif;

  /* Font Sizes */
  --text-h1:        3rem;      /* 48px */
  --text-h2:        2rem;      /* 32px */
  --text-h3:        1.5rem;    /* 24px */
  --text-body-lg:   1.125rem;  /* 18px */
  --text-body-md:   1rem;      /* 16px */
  --text-label:     0.875rem;  /* 14px */

  /* Spacing (8px base grid) */
  --space-xs:     4px;
  --space-sm:     12px;
  --space-md:     24px;
  --space-lg:     48px;
  --space-xl:     80px;
  --space-gutter: 24px;
  --space-margin: 32px;

  /* Border Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(27,79,114,0.08);
  --shadow-md:   0 4px 12px rgba(27,79,114,0.12);
  --shadow-lg:   0 8px 32px rgba(27,79,114,0.16);
  --shadow-xl:   0 16px 48px rgba(27,79,114,0.20);

  /* Transitions */
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  line-height: 1.6;
  color: var(--color-on-surface);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dsh-navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--dsh-coral); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dsh-navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: var(--text-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.125rem; font-weight: 700; }
p  { margin-bottom: 1rem; color: var(--color-on-surface-variant); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-margin);
}
.section { padding: var(--space-xl) 0; }
.section--teal { background-color: var(--color-surface-low); }
.section--navy { background-color: var(--dsh-navy); }
.section--white { background-color: var(--dsh-white); }

/* Grid */
.grid { display: grid; gap: var(--space-gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

/* Flex */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dsh-coral);
  color: var(--dsh-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: #d86d40;
  color: var(--dsh-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--dsh-navy);
  border-color: var(--dsh-navy);
}
.btn-secondary:hover {
  background: rgba(50,98,134,0.05);
  color: var(--dsh-navy);
}
.btn-soft {
  background: var(--dsh-teal);
  color: var(--dsh-navy);
}
.btn-soft:hover { background: #b8d8f0; color: var(--dsh-navy); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-label); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* Platform Buttons */
.btn-tpt   { background: #ff4444; color: white; }
.btn-etsy  { background: #f56400; color: white; }
.btn-direct{ background: var(--dsh-navy); color: white; }
.btn-tpt:hover   { background: #dd2222; color: white; }
.btn-etsy:hover  { background: #d45400; color: white; }
.btn-direct:hover{ background: #163d5a; color: white; }

/* ============================================================
   COMPONENTS — CARDS
   ============================================================ */
.card {
  background: var(--dsh-white);
  border: 1px solid var(--dsh-teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--dsh-coral);
  transform: translateY(-2px);
}
.card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__body  { padding: var(--space-md); }
.card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-tertiary-fixed);
  color: #3e3600;
}
.card__badge--free   { background: #d5f5e3; color: #1e8449; }
.card__badge--new    { background: var(--dsh-yellow); color: var(--dsh-gray); }
.card__price {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--dsh-coral);
  font-weight: 700;
}
.card__price--original {
  font-size: var(--text-label);
  color: #aaa;
  text-decoration: line-through;
}
.card__actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-sm); }

/* ============================================================
   COMPONENTS — TAGS / CHIPS
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-label);
  font-weight: 600;
  font-family: var(--font-body);
}
.tag--yellow  { background: var(--dsh-yellow); color: var(--dsh-gray); }
.tag--teal    { background: var(--dsh-teal); color: var(--dsh-navy); }
.tag--coral   { background: var(--dsh-coral); color: var(--dsh-white); }
.tag--navy    { background: var(--dsh-navy); color: var(--dsh-white); }

/* ============================================================
   COMPONENTS — FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--dsh-navy);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  background: var(--dsh-white);
  color: var(--color-on-surface);
  transition: var(--transition);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--dsh-navy);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(27,79,114,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--dsh-white);
  border-bottom: 1px solid var(--dsh-teal);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-margin);
  max-width: 1280px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}
.site-logo img { height: 48px; width: auto; }
.site-logo__text {
  font-family: var(--font-logo);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dsh-navy);
  line-height: 1.2;
}
.site-logo__text span { color: var(--dsh-coral); }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: var(--space-gutter); }
.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dsh-navy);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--dsh-coral);
  border-bottom-color: var(--dsh-coral);
}
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--dsh-navy);
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dsh-navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--dsh-white);
  border-top: 1px solid var(--dsh-teal);
  padding: var(--space-md) var(--space-margin);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dsh-navy);
  border-bottom: 1px solid var(--dsh-teal);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dsh-teal);
  padding-top: var(--space-xl);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: 0 var(--space-margin) var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
}
.site-footer__brand p {
  font-size: 0.875rem;
  color: #4a5568;
  margin-top: var(--space-sm);
}
.site-footer__title {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dsh-navy);
  margin-bottom: var(--space-sm);
}
.site-footer ul li { margin-bottom: var(--space-xs); }
.site-footer ul li a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: #4a5568;
}
.site-footer ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--dsh-coral);
  text-decoration-thickness: 2px;
  color: var(--dsh-navy);
}
.site-footer__bottom {
  border-top: 1px solid rgba(27,79,114,0.15);
  padding: 1.5rem var(--space-margin);
  text-align: center;
  font-size: 0.75rem;
  color: #718096;
}
.social-links { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--dsh-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dsh-navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 1.1rem;
}
.social-link:hover {
  background: var(--dsh-coral);
  color: var(--dsh-white);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--color-surface-low);
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-margin);
}
.hero__content { display: flex; flex-direction: column; gap: var(--space-md); }
.hero__eyebrow {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--color-secondary-container);
  color: #2b5c80;
  border-radius: var(--radius-full);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--dsh-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__title span { color: var(--dsh-coral); }
.hero__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-on-surface-variant);
  max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__image-wrap {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--dsh-white);
  position: relative;
  background: white;
}
.hero__image-wrap img { width: 100%; height: auto; display: block; object-fit: contain; background: white; border-radius: 2rem; }
.hero__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--dsh-white);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-secondary-container);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.hero__badge-icon {
  width: 48px;
  height: 48px;
  background: var(--color-tertiary-fixed);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.hero__badge p { margin: 0; font-size: 0.75rem; color: #718096; }
.hero__badge strong { font-size: 0.875rem; color: var(--dsh-navy); display: block; }
.hero__badge span { display: block; font-size: 0.72rem; color: #718096; margin-top: 0.1rem; }

/* ============================================================
   GRADE LEVEL SECTION
   ============================================================ */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-gutter);
}
.grade-card {
  background: var(--dsh-white);
  border: 1px solid var(--dsh-teal);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.grade-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--dsh-coral);
  transform: translateY(-3px);
}
.grade-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-surface-low);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
}
.grade-card:hover .grade-card__icon { transform: scale(1.1); }
.grade-card h3 { font-size: var(--text-body-md); margin: 0 0 var(--space-xs); }
.grade-card p  { font-size: 0.75rem; color: #718096; margin: 0; }

/* ============================================================
   RESOURCE / PRODUCT CARDS
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-gutter);
}
.resource-card { /* extends .card */ }
.resource-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}
.resource-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6c5e00;
}
.resource-card__title {
  font-size: var(--text-h3);
  margin: var(--space-xs) 0;
  color: var(--dsh-navy);
}
.resource-card__desc {
  font-size: var(--text-body-md);
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-sm);
}
.resource-card__pricing { display: flex; align-items: center; gap: var(--space-sm); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: var(--space-lg); }
.section-header h2 { margin-bottom: var(--space-xs); }
.section-header p { color: var(--color-on-surface-variant); font-size: var(--text-body-lg); }
.section-header--left { text-align: left; }

/* ============================================================
   CTA NEWSLETTER SECTION
   ============================================================ */
.cta-section { padding: var(--space-xl) 0; }
.cta-box {
  background: var(--dsh-navy);
  color: var(--dsh-white);
  border-radius: 2rem;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.cta-box h2 { color: var(--dsh-white); font-size: var(--text-h1); }
.cta-box p  { color: rgba(255,255,255,0.9); font-size: var(--text-body-lg); max-width: 480px; }
.cta-box__form { display: flex; gap: var(--space-xs); max-width: 480px; }
.cta-box__form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-size: var(--text-body-md);
  color: var(--dsh-gray);
}
.cta-box__form input:focus { outline: none; box-shadow: 0 0 0 3px var(--dsh-coral); }
.cta-box__decor {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
}
.cta-box__decor--1 { width: 256px; height: 256px; top: -128px; right: -64px; }
.cta-box__decor--2 { width: 128px; height: 128px; bottom: -64px; left: -32px; }

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */

/* About */
.about-hero {
  background: var(--dsh-navy);
  color: var(--dsh-white);
  padding: var(--space-xl) 0;
  text-align: center;
}
.about-hero h1 { color: var(--dsh-white); }
.about-hero p  { color: rgba(255,255,255,0.85); font-size: var(--text-body-lg); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--dsh-teal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-wrap { max-width: 820px; margin: 0 auto; }

.faq-category {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 3rem 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dsh-navy);
}
.faq-category::before {
  content: '';
  width: 5px;
  height: 22px;
  background: var(--dsh-coral);
  border-radius: 3px;
  flex-shrink: 0;
}
.faq-category::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, rgba(27,79,114,0.15), transparent);
  border-radius: 2px;
}

.faq-item {
  border: 1.5px solid var(--dsh-teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--dsh-white);
}
.faq-item:hover {
  border-color: rgba(240,128,80,0.4);
  box-shadow: var(--shadow-sm);
}
.faq-item.is-open {
  border-color: var(--dsh-coral);
  box-shadow: 0 4px 16px rgba(240,128,80,0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: var(--dsh-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dsh-navy);
  transition: background 0.2s;
  user-select: none;
  line-height: 1.4;
}
.faq-question:hover { background: var(--color-surface-low); }
.faq-item.is-open .faq-question {
  background: var(--dsh-teal);
  color: var(--dsh-navy);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--dsh-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.25s ease, background 0.2s;
  color: var(--dsh-navy);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--dsh-coral);
  color: white;
}

.faq-answer {
  display: none;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--dsh-white);
  color: var(--color-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.75;
  border-top: 1.5px solid var(--dsh-teal);
}
.faq-answer p { margin: 0; }
.faq-item.is-open .faq-answer { display: block; }

/* FAQ Stats strip */
.faq-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 820px;
  padding: 0 2rem;
}
.faq-stat {
  background: var(--dsh-white);
  border: 1.5px solid var(--dsh-teal);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 140px;
}
.faq-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--dsh-coral);
  margin-bottom: 0.2rem;
}
.faq-stat span {
  font-size: 0.8rem;
  color: #718096;
}

/* FAQ CTA box */
.faq-cta {
  background: var(--dsh-navy);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.faq-cta::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(240,128,80,0.12);
  border-radius: 50%;
  top: -80px; right: -60px;
}
.faq-cta h3 {
  color: var(--dsh-white);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.faq-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.faq-cta .btn { position: relative; z-index: 1; }

/* ============================================================
   COMING SOON OVERLAY (for hidden pages)
   ============================================================ */
.coming-soon-banner {
  background: var(--dsh-navy);
  color: var(--dsh-white);
  text-align: center;
  padding: var(--space-xl) var(--space-margin);
}
.coming-soon-banner h1 { color: var(--dsh-white); font-size: clamp(2rem, 5vw, 3.5rem); }
.coming-soon-banner p  { color: rgba(255,255,255,0.85); font-size: var(--text-body-lg); max-width: 600px; margin: var(--space-md) auto; }
.coming-soon-banner .badge {
  display: inline-block;
  background: var(--dsh-coral);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

/* ============================================================
   GUTENBERG BLOCK EDITOR OVERRIDES
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-quote {
  border-left: 4px solid var(--dsh-coral);
  padding-left: var(--space-md);
  font-style: italic;
  color: var(--dsh-navy);
}
.wp-block-pullquote { border-color: var(--dsh-coral); }
.wp-block-button__link {
  background: var(--dsh-coral) !important;
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-heading) !important;
}
.wp-block-cover { border-radius: var(--radius-lg); }
.wp-block-separator { border-color: var(--dsh-teal); }

/* ============================================================
   SINGLE POST / PAGE CONTENT
   ============================================================ */
.entry-content h2,
.entry-content h3 { margin: 2rem 0 1rem; }
.entry-content ul,
.entry-content ol { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content ul li,
.entry-content ol li { margin-bottom: 0.5rem; color: var(--color-on-surface-variant); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: var(--text-label);
  color: var(--color-on-surface-variant);
  padding: var(--space-sm) 0;
}
.breadcrumbs a { color: var(--dsh-navy); }
.breadcrumbs a:hover { color: var(--dsh-coral); }
.breadcrumbs span { margin: 0 var(--space-xs); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-xl);
}
.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--dsh-teal);
  color: var(--dsh-navy);
  transition: var(--transition);
}
.pagination a:hover,
.pagination .current {
  background: var(--dsh-coral);
  color: white;
  border-color: var(--dsh-coral);
}

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.notice {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.notice--info    { background: var(--dsh-teal); color: var(--dsh-navy); border-left: 4px solid var(--dsh-navy); }
.notice--success { background: #d5f5e3; color: #1e8449; border-left: 4px solid #1e8449; }
.notice--warning { background: #fef9e7; color: #7d6608; border-left: 4px solid var(--dsh-yellow); }
.notice--error   { background: #ffdad6; color: #93000a; border-left: 4px solid #ba1a1a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grade-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image-wrap { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --text-h1: 2rem; --text-h2: 1.5rem; }

  /* ── Header mobile fixes ── */
  .site-header__inner {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .site-logo img { height: 36px; }
  .site-logo__text { font-size: 0.875rem; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  /* Hide Browse Resources button on mobile — hamburger handles nav */
  .header-actions .btn { display: none; }
  /* Show hamburger only */
  .header-actions { gap: 0; }

  /* ── About page mobile fixes ── */
  .about-story-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .about-story-grid h2 {
    font-size: 1.6rem !important;
  }

  /* ── General layout ── */
  .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-box__form { flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
}

@media (max-width: 480px) {
  :root { --space-xl: 48px; --space-lg: 32px; }
  .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 1rem; }

  /* Extra small — header */
  .site-logo__text { display: none; } /* logo image only on very small screens */
  .site-header__inner { padding: 0.6rem 1rem; }
}



/* ── NAV DROPDOWN ───────────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}
.nav-dropdown__arrow {
    font-size: 0.65rem;
    transition: transform 0.2s;
    display: inline-block;
}
.nav-dropdown.is-open .nav-dropdown__arrow { transform: rotate(180deg); }

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1.5px solid var(--dsh-teal);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(27,79,114,0.15);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 200;
    animation: dropdownIn 0.15s ease;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

/* Arrow pointer */
.nav-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 12px;
    background: white;
    border-left: 1.5px solid var(--dsh-teal);
    border-top: 1.5px solid var(--dsh-teal);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown__menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dsh-navy);
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: none !important;
}
.nav-dropdown__menu a:hover {
    background: var(--color-surface-low);
    color: var(--dsh-coral);
}
.nav-dropdown__icon { font-size: 1rem; width: 1.5rem; text-align: center; }

/* TPT Store nav link */
.nav-tpt-link {
    background: var(--dsh-coral) !important;
    color: white !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 9999px !important;
    font-size: 0.8rem !important;
    border-bottom: none !important;
}
.nav-tpt-link:hover {
    background: #d86d40 !important;
    color: white !important;
    border-bottom: none !important;
}

/* ── CATEGORY TILES (replaces grade tiles) ──────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.category-card {
    background: white;
    border: 1.5px solid var(--dsh-teal);
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(27,79,114,0.06);
    display: block;
}
.category-card:hover {
    border-color: var(--dsh-coral);
    box-shadow: 0 8px 24px rgba(27,79,114,0.12);
    transform: translateY(-3px);
    color: var(--dsh-navy);
}
.category-card__icon {
    width: 56px; height: 56px;
    background: var(--color-surface-low);
    border-radius: 50%;
    margin: 0 auto 0.85rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}
.category-card:hover .category-card__icon { transform: scale(1.15); }
.category-card h3 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--dsh-navy);
    margin: 0 0 0.2rem;
}
.category-card p {
    font-size: 0.72rem;
    color: #718096;
    margin: 0;
}

@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-dropdown__menu { left: 0; transform: none; }
    .nav-dropdown__menu::before { left: 2rem; }
}

/* Resources parent page grid */
.resources-parent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .resources-parent-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LEGAL PAGES (Privacy, Terms, Accessibility) ────────── */
.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dsh-navy);
    margin: 2.5rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--dsh-teal);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    font-size: .95rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.25rem;
}
.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.legal-content ul li {
    font-size: .95rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: .4rem;
}
.legal-content a {
    color: var(--dsh-coral);
    text-decoration: underline;
    text-decoration-color: rgba(240,128,80,0.4);
}
.legal-content a:hover { text-decoration-color: var(--dsh-coral); }
.legal-content strong { color: var(--dsh-navy); }


/* ── Values grid mobile ── */
@media (max-width: 768px) {
  .values-grid-mobile {
    grid-template-columns: 1fr !important;
  }
  /* Show Browse Resources inside mobile nav instead */
  .mobile-nav .btn-primary-mobile {
    display: inline-flex;
    margin-top: 0.75rem;
    background: var(--dsh-coral);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .menu-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--dsh-coral);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--dsh-coral);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 999;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { top: 0; }

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --dsh-navy: #000080;
    --dsh-coral: #cc3300;
    --color-on-surface-variant: #333;
  }
}

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