/* ================================================================
   MARSHA GRAY MSW — Brand Stylesheet
   marshagraymsw.com | © Marsha Gray MSW / MNYG Collective
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================================
   1. CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* Blues */
  --ice: #E6F1FB;
  --sky-blue: #B5D4F4;
  --bright-blue: #378ADD;
  --deep-blue: #185FA5;
  --navy: #0C447C;

  /* Earthy */
  --frost: #F5F0E8;
  --linen: #E8DDD0;
  --warm-sand: #C4A882;
  --clay: #A67C5B;
  --deep-bark: #7D5A3C;

  /* Accents */
  --sage: #8B9E7A;
  --sea-moss: #5D8A7A;
  --slate-blue: #4A7FA5;
  --terracotta: #C9956C;
  --oat: #D4C4A8;

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --text-inverse: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-py: 80px;
  --container-max: 1160px;
  --gap: 24px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(12, 68, 124, 0.07);
  --shadow-md: 0 4px 20px rgba(12, 68, 124, 0.11);
  --shadow-lg: 0 8px 40px rgba(12, 68, 124, 0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--bright-blue);
}

ul { list-style: none; }

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

/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }
h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

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

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 1.5rem 0;
}

/* ================================================================
   4. LAYOUT & UTILITIES
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background-color: var(--frost);
}

.section-linen {
  background-color: var(--linen);
}

.section-ice {
  background-color: var(--ice);
}

.section-navy {
  background-color: var(--navy);
  color: var(--text-inverse);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: var(--gap); }

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

.mt-sm { margin-top: 12px; }
.mt-md { margin-top: var(--gap); }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: var(--gap); }
.mb-lg { margin-bottom: 48px; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--terracotta);
  margin: 1rem auto 1.75rem;
  border-radius: 2px;
}

.divider-left {
  margin: 1rem 0 1.75rem;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-blue { background: var(--ice); color: var(--deep-blue); }
.tag-sage { background: rgba(139,158,122,0.15); color: var(--sea-moss); }
.tag-terra { background: rgba(201,149,108,0.15); color: var(--clay); }
.tag-sand { background: var(--linen); color: var(--deep-bark); }

/* ================================================================
   5. NAVIGATION
   ================================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--linen);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--deep-blue); }

.nav-logo span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--clay);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep-blue);
  background: var(--ice);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--linen);
}

.nav-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--clay);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.nav-social a:hover {
  background: var(--ice);
  color: var(--deep-blue);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--linen);
  padding: 16px 24px 20px;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--frost);
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1rem;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--deep-blue); }

.nav-mobile-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--linen);
}

.nav-mobile-social a {
  border: none !important;
  padding: 0 !important;
  font-size: 1.1rem;
  color: var(--clay);
}

/* ================================================================
   6. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--deep-blue);
  color: #fff;
  border-color: var(--deep-blue);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--deep-blue);
}

.btn-secondary:hover {
  background: var(--deep-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-terra {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.btn-terra:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   7. PAGE HERO (Inner Pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--frost) 0%, var(--ice) 60%, var(--sky-blue) 100%);
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(181,212,244,0.25);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(201,149,108,0.1);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 0.5rem; }

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0.75rem auto 0;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--clay); }
.breadcrumb a:hover { color: var(--deep-blue); }

/* ================================================================
   8. HOME HERO
   ================================================================ */
.home-hero {
  background: linear-gradient(135deg, #fff 0%, var(--frost) 40%, var(--ice) 100%);
  padding: 80px 0 90px;
  overflow: hidden;
  position: relative;
}

.home-hero::before {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.hero-text .eyebrow { margin-bottom: 0.75rem; }

.hero-text h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.hero-text h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-text .lead {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-credentials {
  margin-top: 2.5rem;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-cred-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
}

.hero-cred-item i {
  color: var(--sage);
  font-size: 0.9rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding-top: 6px;
}

.hero-photo {
  width: 100%;
  max-width: 590px;
  height: 545px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ================================================================
   WORKSHEET FEATURE SECTION
   ================================================================ */
.worksheet-feature {
  background: #ffffff;
}

.worksheet-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.worksheet-feature-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

.worksheet-feature-content .lead {
  margin: 1.25rem 0 2rem;
}

.hero-book-stack {
  position: relative;
  width: 280px;
  height: 360px;
}

.hero-book {
  position: absolute;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

.hero-book-1 {
  width: 200px;
  height: 280px;
  background: linear-gradient(160deg, var(--deep-blue), var(--navy));
  top: 20px;
  left: 10px;
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero-book-2 {
  width: 190px;
  height: 270px;
  background: linear-gradient(160deg, var(--terracotta), var(--clay));
  top: 30px;
  right: 10px;
  transform: rotate(3deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero-book span {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
}

/* ================================================================
   9. CARDS
   ================================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

/* Book Card */
.book-card { }

.book-card-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--linen), var(--warm-sand));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.book-card-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.book-card-cover.cover-blue { background: linear-gradient(160deg, var(--deep-blue), var(--navy)); }
.book-card-cover.cover-blue::before { background: var(--bright-blue); }

.book-card-cover.cover-terra { background: linear-gradient(160deg, var(--clay), var(--deep-bark)); }
.book-card-cover.cover-terra::before { background: var(--terracotta); }

.book-card-cover.cover-sage { background: linear-gradient(160deg, var(--sea-moss), var(--sage)); }
.book-card-cover.cover-sage::before { background: var(--sage); }

/* Real book cover — paperback style, no colored frame */
.book-card-cover.cover-real {
  background: #fff;
  padding: 0;
  box-shadow:
    -3px 3px 8px rgba(0,0,0,0.10),
    6px 10px 24px rgba(0,0,0,0.22);
  border-radius: 2px 5px 5px 2px;
}
.book-card-cover.cover-real::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: auto;
  width: 6px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.18), transparent);
  z-index: 1;
}
.book-card-cover.cover-real img {
  object-fit: contain !important;
  border-radius: 0 4px 4px 0;
}

.book-card-cover-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.85);
}

.book-card-cover-placeholder .book-title-preview {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.book-card-cover-placeholder .book-author-preview {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Image placeholder label - hidden in real version */
.img-placeholder-note {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.book-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 14px;
}

.book-card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Blog Card */
.blog-card { }

.blog-card-cat-bar {
  height: 4px;
}

.blog-card-cat-bar.cat-mental { background: var(--bright-blue); }
.blog-card-cat-bar.cat-parents { background: var(--sage); }
.blog-card-cat-bar.cat-teens { background: var(--terracotta); }
.blog-card-cat-bar.cat-counselors { background: var(--sea-moss); }

.blog-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.blog-card-meta .tag { padding: 2px 10px; font-size: 0.7rem; }

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--deep-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition);
}

.read-more:hover { gap: 10px; color: var(--bright-blue); }

/* Service Card */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--terracotta);
  transition: all var(--transition);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--ice);
  color: var(--deep-blue);
}

/* ================================================================
   10. FORMS & INPUTS
   ================================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 7px;
  color: var(--text-primary);
}

.form-group .required { color: var(--terracotta); }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--linen);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.12);
}

.form-control::placeholder { color: #aaa; }

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A67C5B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-inline {
  display: flex;
  gap: 12px;
}

.form-inline .form-control { flex: 1; }

/* ================================================================
   11. HOME PAGE SECTIONS
   ================================================================ */

/* About Teaser */
.about-teaser-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--warm-sand), var(--oat));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(125,90,60,0.6);
  font-size: 4rem;
}

.about-photo-label {
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  margin-top: 8px;
  color: rgba(125,90,60,0.5);
}

.credentials-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ice);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cred-badge i { color: var(--bright-blue); font-size: 0.75rem; }

/* Audience Callout */
.audience-card {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.audience-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.audience-icon.icon-counselors { background: var(--ice); color: var(--deep-blue); }
.audience-icon.icon-parents { background: rgba(139,158,122,0.15); color: var(--sea-moss); }
.audience-icon.icon-teens { background: rgba(201,149,108,0.15); color: var(--terracotta); }

.audience-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.audience-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Newsletter Strip */
.newsletter-strip {
  background: linear-gradient(135deg, var(--navy), var(--deep-blue));
  color: #fff;
  padding: 64px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-text h2 { color: #fff; margin-bottom: 0.75rem; }
.newsletter-text p { color: rgba(255,255,255,0.8); font-size: 1rem; }

.newsletter-form-wrap {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.newsletter-form-wrap h4 {
  color: #fff;
  margin-bottom: 4px;
}

.newsletter-form-wrap p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.newsletter-form-wrap .form-control {
  background: rgba(255,255,255,0.95);
  border-color: transparent;
  margin-bottom: 12px;
}

.mailerlite-placeholder {
  background: rgba(255,255,255,0.07);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.mailerlite-placeholder i { display: block; font-size: 1.5rem; margin-bottom: 8px; opacity: 0.7; }

/* Mailerlite placeholder in light sections */
.mailerlite-placeholder-light {
  background: var(--ice);
  border: 2px dashed var(--sky-blue);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--slate-blue);
  font-size: 0.875rem;
}

.mailerlite-placeholder-light i { display: block; font-size: 1.5rem; margin-bottom: 8px; color: var(--bright-blue); }

/* ================================================================
   12. ABOUT PAGE
   ================================================================ */
.bio-section {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.bio-photo {
  position: sticky;
  top: 90px;
}

.bio-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--warm-sand), var(--oat));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(125,90,60,0.5);
  font-size: 4rem;
  position: relative;
}

.bio-photo-caption {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-light);
  margin-top: 10px;
  font-style: italic;
}

.bio-content h2 { margin-bottom: 1rem; }
.bio-content h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.bio-content p { color: var(--text-secondary); line-height: 1.8; }

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 1.5rem;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--frost);
  border-radius: var(--radius);
}

.cred-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-blue);
  font-size: 0.9rem;
}

.cred-item-text h5 { font-size: 0.875rem; color: var(--navy); }
.cred-item-text p { font-size: 0.8rem; color: var(--text-light); margin: 2px 0 0; }

.trust-bar {
  background: var(--navy);
  padding: 40px 0;
  color: #fff;
}

.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}

.trust-item .num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--sky-blue);
  display: block;
}

.trust-item .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================================================
   13. BOOKS PAGE
   ================================================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.upwork-section {
  background: linear-gradient(135deg, var(--frost), var(--ice));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.upwork-section h2 { margin-bottom: 0.75rem; }
.upwork-section p { color: var(--text-secondary); margin-bottom: 0; }

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

.sample-slot {
  aspect-ratio: 3/4;
  background: var(--frost);
  border: 2px dashed var(--oat);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--warm-sand);
  transition: all var(--transition);
  cursor: pointer;
}

.sample-slot:hover {
  border-color: var(--bright-blue);
  background: var(--ice);
  color: var(--deep-blue);
}

.sample-slot i { font-size: 2rem; margin-bottom: 10px; }
.sample-slot p { font-size: 0.8rem; }

/* ================================================================
   14. DOWNLOADS PAGE
   ================================================================ */
.downloads-hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.downloads-hero-visual {
  background: linear-gradient(160deg, var(--deep-blue), var(--navy));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #fff;
}

.resource-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.downloads-hero-visual h3 {
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.downloads-hero-visual p {
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
}

.downloads-hero-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.downloads-hero-form h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.downloads-hero-form .lead { font-size: 0.95rem; margin-bottom: 1.5rem; }

.success-message {
  display: none;
  background: rgba(93,138,122,0.12);
  border: 1.5px solid var(--sea-moss);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--sea-moss);
}

.success-message.visible { display: block; }
.success-message i { font-size: 1.75rem; display: block; margin-bottom: 8px; }

/* ================================================================
   15. BLOG PAGE
   ================================================================ */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cat-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--linen);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.cat-btn:hover, .cat-btn.active {
  border-color: var(--deep-blue);
  background: var(--deep-blue);
  color: #fff;
}

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

.blog-banner {
  background: linear-gradient(135deg, var(--linen), var(--frost));
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 60px;
}

.blog-banner h3 { margin-bottom: 0.5rem; }
.blog-banner p { color: var(--text-secondary); margin-bottom: 0; }

/* ================================================================
   16. CONTACT PAGE
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}

.contact-sidebar {}

.contact-info-card {
  background: var(--frost);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.contact-info-card h4 { margin-bottom: 16px; }

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--linen);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.contact-link-item:last-child { border-bottom: none; }
.contact-link-item:hover { color: var(--deep-blue); }

.contact-link-item i {
  width: 28px;
  color: var(--clay);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.formspree-note {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--slate-blue);
  margin-bottom: 20px;
  border-left: 3px solid var(--bright-blue);
}

/* ================================================================
   17. FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-brand .logo-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-sand);
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--bright-blue);
  color: #fff;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--sky-blue); }

.footer-email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-email-link:hover { color: var(--sky-blue); }
.footer-email-link i { color: var(--warm-sand); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--sky-blue); }

/* ================================================================
   18. BLOG POST PAGE
   ================================================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.post-content { max-width: 720px; }

.post-header { margin-bottom: 32px; }
.post-header .tag { margin-bottom: 12px; }
.post-header h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 12px; }
.post-header .post-meta {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-body { font-size: 1rem; line-height: 1.85; }
.post-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.post-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.post-body p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--text-secondary); }
.post-body li { margin-bottom: 0.5rem; }

.post-sidebar { position: sticky; top: 90px; }

.sidebar-widget {
  background: var(--frost);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-widget h4 { margin-bottom: 12px; font-size: 1rem; }

/* ================================================================
   19. UTILITIES
   ================================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--deep-blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus { top: 0; }

/* ================================================================
   20. RESPONSIVE — TABLET (max 900px)
   ================================================================ */
@media (max-width: 900px) {
  :root { --section-py: 60px; }

  .nav-links, .nav-social { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-credentials { justify-content: center; }
  .hero-image { padding-top: 0; }
  .hero-photo { height: 300px; max-width: 100%; }
  .hero-book-stack { width: 240px; height: 300px; }
  .hero-book-1 { width: 170px; height: 240px; }
  .hero-book-2 { width: 162px; height: 230px; }

  .worksheet-feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .worksheet-feature-image { order: -1; }
  .worksheet-feature-photo { height: 280px; }

  .about-teaser-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 280px; margin: 0 auto; }

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

  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }

  .bio-section { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 260px; margin: 0 auto; }
  .bio-photo-frame { margin: 0 auto; }

  .downloads-hero-card { grid-template-columns: 1fr; }
  .downloads-hero-visual { padding: 32px; }

  .contact-layout { grid-template-columns: 1fr; }

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

  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }

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

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

  .upwork-section { grid-template-columns: 1fr; gap: 20px; }

  .trust-bar-inner { gap: 16px; }
}

/* ================================================================
   21. RESPONSIVE — MOBILE (max 600px)
   ================================================================ */
@media (max-width: 600px) {
  :root { --section-py: 48px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .samples-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-inline { flex-direction: column; }

  .trust-bar-inner { justify-content: center; gap: 24px; }

  .home-hero { padding: 56px 0 64px; }
  .home-hero::before { display: none; }

  .section-header { margin-bottom: 2rem; }

  .contact-form-card { padding: 24px; }
  .upwork-section { padding: 28px; }
  .blog-banner { padding: 24px; }

  .newsletter-form-wrap { padding: 20px; }

  .downloads-hero-form { padding: 24px; }

  .hero-book-stack { width: 200px; height: 260px; }
  .hero-book-1 { width: 145px; height: 200px; }
  .hero-book-2 { width: 138px; height: 195px; }
}

/* ================================================================
   EXTENDED STYLES — SEO REBUILD
   ================================================================ */

/* grid-4 tablet breakpoint */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Topic / problem hub card */
.topic-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--deep-blue);
  text-decoration: none;
}
.topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.topic-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--navy);
  line-height: 1.3;
}
.topic-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Free worksheet strip (homepage + elsewhere) */
.worksheet-strip {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}
.worksheet-strip .eyebrow { color: var(--warm-sand); }
.worksheet-strip h2 { color: #fff; margin-bottom: 16px; }
.worksheet-strip p.lead {
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 32px;
}
.worksheet-strip small {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  margin-top: 12px;
}

/* Blog preview cards (homepage) */
.blog-preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.blog-preview-card:hover { box-shadow: var(--shadow-md); }
.blog-preview-card-accent { height: 5px; }
.blog-preview-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-preview-meta {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.blog-preview-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--navy);
  flex: 1;
}
.blog-preview-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.read-more:hover { color: var(--bright-blue); }

/* Worksheet cards (downloads page) */
.worksheet-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease;
}
.worksheet-card:hover { box-shadow: var(--shadow-md); }
.worksheet-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.worksheet-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; }
.worksheet-card p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

/* Individual book landing page */
.book-landing-hero { padding: 64px 0 56px; background: linear-gradient(160deg, var(--frost), var(--ice)); }
.book-landing-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) {
  .book-landing-inner { grid-template-columns: 1fr; gap: 32px; }
  .book-cover-sticky { position: static; max-width: 220px; margin: 0 auto; }
}
.book-cover-sticky { position: sticky; top: 100px; }
.book-cover-sticky img {
  width: 100%;
  border-radius: 3px 7px 7px 3px;
  box-shadow: -4px 4px 14px rgba(0,0,0,0.12), 8px 10px 28px rgba(0,0,0,0.22);
}
.book-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.book-meta-badge {
  background: var(--linen);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.82rem;
}
.book-meta-badge .label { color: var(--text-light); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 2px; }
.book-meta-badge .value { color: var(--navy); font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.checklist li:last-child { border-bottom: none; }
.checklist li i { color: var(--sage); margin-top: 3px; flex-shrink: 0; }
.related-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .related-books { grid-template-columns: 1fr; } }
.related-book-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s;
}
.related-book-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.related-book-card img { width: 54px; border-radius: 2px 4px 4px 2px; box-shadow: 2px 3px 8px rgba(0,0,0,0.18); flex-shrink: 0; }
.related-book-card h5 { font-size: 0.88rem; color: var(--navy); margin-bottom: 3px; }
.related-book-card p { font-size: 0.77rem; color: var(--text-secondary); margin: 0; }
