/*
 * styles.css — Bugs Bunny
 * A warm, literary design system for a Dallas-based personal finance author.
 * Built from design-direction.md — every section art-directed.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Palette */
  --color-primary: #4A3728;       /* Walnut */
  --color-primary-dark: #2E2118;  /* Espresso */
  --color-primary-light: #8B7355; /* Saddle */
  --color-secondary: #C4956A;     /* Dallas Amber */
  --color-accent: #2D6A4F;        /* Growth Green */
  --color-accent-dark: #245C43;   /* Growth Green hover */
  --color-bg: #FAF6F1;            /* Parchment */
  --color-surface: #F0EBE3;       /* Linen */
  --color-text: #1A1612;          /* Inkwell */
  --color-text-secondary: #6B5E52;/* Faded Walnut */
  --color-text-on-primary: #FAF6F1; /* Parchment */
  --color-border: #DDD5CA;        /* Warm Sand */

  /* Typography */
  --font-primary: 'Fraunces', Georgia, serif;
  --font-secondary: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-size-base: 17px;

  /* Spacing */
  --spacing-base: 8px;
  --max-content: 1200px;
  --max-text: 65ch;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  padding-bottom: 42px;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--color-accent-dark);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.15;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Typography Hierarchy
   ============================================================ */
.display-heading {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 500;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.2;
}

h4 {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.lead {
  font-family: var(--font-secondary);
  font-size: 20px;
  line-height: 1.6;
}

.body-text {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  max-width: var(--max-text);
}

.small-text {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.caption-text {
  font-family: var(--font-secondary);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.emphasis-word {
  font-style: italic;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-primary);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.5;
  border-left: 4px solid var(--color-secondary);
  padding-left: 24px;
  margin: 40px 0;
  color: var(--color-text);
}

/* Chapter-mark ornament */
.chapter-mark {
  display: block;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 48px;
  color: var(--color-secondary);
  opacity: 0.4;
  transform: rotate(12deg);
  margin: 60px auto;
  line-height: 1;
  user-select: none;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--color-secondary);
}

.site-nav__wordmark {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 20px;
  color: var(--color-text-on-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav__wordmark:hover {
  color: var(--color-text-on-primary);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__link {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-on-primary);
  opacity: 0.8;
  text-decoration: none;
  position: relative;
  transition: opacity 200ms ease;
  padding: 4px 0;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 250ms ease;
}

.site-nav__link:hover {
  opacity: 1;
  color: var(--color-text-on-primary);
}

.site-nav__link:hover::after {
  width: 100%;
}

.site-nav__link.active {
  opacity: 1;
  color: var(--color-accent);
}

.site-nav__link.active:hover {
  color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-on-primary);
  margin: 5px 0;
  transition: transform 300ms ease, opacity 200ms ease;
}

.nav-toggle.open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
}

/* ============================================================
   Hero — Home (Split Panel)
   ============================================================ */
.hero-home {
  min-height: 100vh;
  display: flex;
  position: relative;
  background: var(--color-primary);
}

.hero-home__text-panel {
  width: 55%;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 10vw;
  position: relative;
  min-width: 0;
}

.hero-home__heading {
  color: var(--color-text-on-primary);
  margin-bottom: 24px;
}

.hero-home__subtext {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--color-text-on-primary);
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-home__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 200ms ease;
}

.hero-home__cta:hover {
  gap: 12px;
  color: var(--color-accent);
}

.hero-home__cta i {
  font-size: 18px;
  transition: transform 200ms ease;
}

.hero-home__cta:hover i {
  transform: translateX(4px);
}

/* Green gutter line — direct child of hero flex container */
.hero-home__gutter {
  width: 1px;
  flex-shrink: 0;
  background: var(--color-accent);
  align-self: stretch;
  z-index: 2;
}

.hero-home__image-panel {
  width: 45%;
  position: relative;
  overflow: hidden;
}

.hero-home__image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   Book Introduction
   ============================================================ */
.book-intro {
  background: var(--color-surface);
  padding: 120px clamp(24px, 4vw, 48px);
}

.book-intro__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 5%;
  align-items: start;
}

.book-intro__image-wrap {
  padding-top: 80px;
}

.book-intro__image-wrap img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.book-intro__text {
  min-width: 0;
}

.book-intro__text h2 {
  margin-bottom: 20px;
}

.book-intro__text .lead {
  margin-bottom: 20px;
  color: var(--color-text);
}

.book-intro__text .body-text {
  margin-bottom: 24px;
}

/* ============================================================
   Financial Philosophy
   ============================================================ */
.philosophy {
  background: var(--color-bg);
  padding: 120px clamp(24px, 4vw, 48px);
}

.philosophy__inner {
  max-width: 900px;
  margin: 0 auto;
}

.philosophy__heading {
  text-align: center;
  margin-bottom: 80px;
}

.principle {
  position: relative;
  padding-left: 40px;
  margin-bottom: 0;
}

.principle__stem {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transition: height 800ms ease-out;
}

.principle.in-view .principle__stem {
  height: 100%;
}

.principle h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 26px);
  margin-bottom: 12px;
  color: var(--color-text);
}

.principle .body-text {
  color: var(--color-text-secondary);
}

.philosophy .chapter-mark {
  margin: 60px auto;
}

/* ============================================================
   Dallas Section
   ============================================================ */
.dallas {
  position: relative;
  padding: 160px clamp(24px, 4vw, 48px);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dallas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 33, 24, 0.55);
  z-index: 1;
}

.dallas__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.dallas__content h2 {
  color: var(--color-text-on-primary);
  margin-bottom: 20px;
}

.dallas__rule {
  width: 80px;
  height: 2px;
  background: var(--color-secondary);
  margin: 0 auto 24px;
}

.dallas__content p {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--color-text-on-primary);
  opacity: 0.9;
  line-height: 1.7;
}

/* ============================================================
   CTA — Get the Book
   ============================================================ */
.cta-book {
  background: var(--color-bg);
  padding: 100px clamp(24px, 4vw, 48px) 0;
}

.cta-book__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 40px;
  align-items: end;
}

.cta-book__text {
  padding-bottom: 100px;
  min-width: 0;
}

.cta-book__text h2 {
  margin-bottom: 16px;
}

.cta-book__text .body-text {
  margin-bottom: 32px;
}

.cta-book__image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cta-book__image img {
  max-width: 380px;
  width: 100%;
  height: auto;
}

/* CTA Button (shared) */
.btn-cta {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-on-primary);
  background: var(--color-accent);
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, box-shadow 200ms ease;
  line-height: 1.2;
}

.btn-cta:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
  color: var(--color-text-on-primary);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-primary-dark);
  padding: 80px clamp(24px, 4vw, 48px) 40px;
}

.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__wordmark {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-on-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.site-footer__tagline {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--color-text-on-primary);
  opacity: 0.6;
  line-height: 1.5;
}

.site-footer__nav-heading {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-on-primary);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  font-family: var(--font-secondary);
  font-size: 15px;
  color: var(--color-text-on-primary);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 200ms ease, color 200ms ease;
}

.site-footer__link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.site-footer__contact-item {
  font-family: var(--font-secondary);
  font-size: 15px;
  color: var(--color-text-on-primary);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.site-footer__contact-item i {
  font-size: 16px;
  opacity: 0.8;
}

.site-footer__bottom {
  max-width: var(--max-content);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 241, 0.1);
}

.site-footer__copyright {
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--color-text-on-primary);
  opacity: 0.5;
}

/* ============================================================
   Book Page — Hero
   ============================================================ */
.hero-book {
  background: var(--color-bg);
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(24px, 4vw, 48px) 80px;
  text-align: center;
}

.hero-book__image {
  max-width: 720px;
  width: 100%;
  margin-bottom: 48px;
  box-shadow: 0 24px 48px rgba(26, 22, 18, 0.12);
  border-radius: 4px;
}

.hero-book h1 {
  margin-bottom: 16px;
}

.hero-book__subtitle {
  font-family: var(--font-secondary);
  font-size: 20px;
  color: var(--color-text-secondary);
}

/* ============================================================
   Book Page — What's Inside (Table of Contents)
   ============================================================ */
.whats-inside {
  background: var(--color-surface);
  padding: 120px clamp(24px, 4vw, 48px);
}

.whats-inside__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.whats-inside__text {
  padding-left: 10vw;
  min-width: 0;
}

.whats-inside__text h2 {
  margin-bottom: 40px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.toc-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.toc-item__number {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
  min-width: 32px;
}

.toc-item__content {
  min-width: 0;
}

.toc-item__title {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.toc-item__desc {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.whats-inside__image-wrap {
  padding-top: 80px;
}

.whats-inside__image-wrap img {
  width: 100%;
  border-radius: 8px;
}

/* ============================================================
   Book Page — Who This Book Is For
   ============================================================ */
.who-for {
  background: var(--color-bg);
  padding: 100px clamp(24px, 4vw, 48px) 80px;
}

.who-for__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
}

.who-for__text {
  max-width: 700px;
  margin: 0 auto 40px;
}

.who-for__text h2 {
  margin-bottom: 20px;
}

.who-for__text .lead {
  text-align: left;
  color: var(--color-text);
}

.who-for__image img {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  border-radius: 12px;
}

/* ============================================================
   Book Page — Buy CTA
   ============================================================ */
.buy-cta {
  background: var(--color-surface);
  padding: 80px clamp(24px, 4vw, 48px);
  text-align: center;
}

.buy-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.buy-cta h3 {
  margin-bottom: 16px;
}

.buy-cta .body-text {
  margin-bottom: 32px;
  color: var(--color-text-secondary);
}

/* ============================================================
   About Page — Hero
   ============================================================ */
.hero-about {
  background: var(--color-bg);
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: stretch;
}

.hero-about__image-wrap {
  overflow: hidden;
}

.hero-about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(32px, 5vw, 80px);
  min-width: 0;
}

.hero-about__text h1 {
  margin-bottom: 24px;
}

.hero-about__text .lead {
  color: var(--color-text);
  max-width: var(--max-text);
}

/* ============================================================
   About Page — Origin Story
   ============================================================ */
.origin-story {
  background: var(--color-primary-dark);
  padding: 120px clamp(24px, 4vw, 48px);
}

.origin-story__inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.origin-story h2 {
  color: var(--color-text-on-primary);
  margin-bottom: 32px;
}

.origin-story .body-text {
  color: var(--color-text-on-primary);
  opacity: 0.9;
  margin-bottom: 24px;
}

.origin-story .pull-quote {
  color: var(--color-text-on-primary);
}

.origin-story__inset-image {
  float: right;
  width: 280px;
  margin: 0 0 24px 24px;
  border-radius: 8px;
}

/* ============================================================
   About Page — Dallas Connection
   ============================================================ */
.dallas-connection {
  background: var(--color-bg);
  padding: 100px clamp(24px, 4vw, 48px);
}

.dallas-connection__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: center;
}

.dallas-connection__text {
  min-width: 0;
}

.dallas-connection__text h2 {
  margin-bottom: 16px;
}

.dallas-connection__text .body-text {
  color: var(--color-text);
}

.dallas-connection__image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26, 22, 18, 0.08);
}

/* ============================================================
   About Page — Mission
   ============================================================ */
.mission {
  background: var(--color-surface);
  padding: 100px clamp(24px, 4vw, 48px);
  text-align: center;
}

.mission__inner {
  max-width: 600px;
  margin: 0 auto;
}

.mission__statement {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.5;
  color: var(--color-text);
}

/* ============================================================
   Resources Page — Hero
   ============================================================ */
.hero-resources {
  background: var(--color-bg);
  padding: 100px clamp(24px, 4vw, 48px) 80px;
  position: relative;
}

.hero-resources__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
}

.hero-resources__accent-image {
  position: absolute;
  top: -40px;
  right: 0;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 22, 18, 0.08);
}

.hero-resources__text {
  max-width: 600px;
  padding-top: 40px;
}

.hero-resources__text h1 {
  margin-bottom: 16px;
}

.hero-resources__text .lead {
  color: var(--color-text);
}

/* ============================================================
   Resources Page — Financial Tips
   ============================================================ */
.financial-tips {
  background: var(--color-surface);
  padding: 100px clamp(24px, 4vw, 48px);
}

.financial-tips__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.financial-tips__heading {
  margin-bottom: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.tip-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.tip-block h3 {
  margin-bottom: 12px;
}

.tip-block .body-text {
  color: var(--color-text-secondary);
}

.tips-grid__image-break {
  grid-column: 1 / -1;
  padding: 24px 0;
}

.tips-grid__image-break img {
  width: 100%;
  border-radius: 8px;
}

/* ============================================================
   Resources Page — Further Reading
   ============================================================ */
.further-reading {
  background: var(--color-bg);
  padding: 100px clamp(24px, 4vw, 48px);
}

.further-reading__inner {
  max-width: 700px;
  margin: 0 auto;
}

.further-reading__image {
  max-width: 500px;
  margin: 0 auto 48px;
  border-radius: 8px;
}

.further-reading h2 {
  margin-bottom: 40px;
}

.reading-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.reading-item {
  padding-left: 0;
}

.reading-item__title {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.reading-item__desc {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--color-text-secondary);
  padding-left: 24px;
  line-height: 1.5;
}

/* ============================================================
   Contact Page — Hero
   ============================================================ */
.hero-contact {
  position: relative;
  padding: 140px clamp(24px, 4vw, 48px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 33, 24, 0.50);
  z-index: 1;
}

.hero-contact__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
}

.hero-contact__content h1 {
  color: var(--color-text-on-primary);
  margin-bottom: 20px;
}

.hero-contact__rule {
  width: 80px;
  height: 2px;
  background: var(--color-secondary);
  margin: 0 auto 20px;
}

.hero-contact__content .lead {
  color: var(--color-text-on-primary);
  opacity: 0.85;
}

/* ============================================================
   Contact Form Section
   ============================================================ */
.contact-section {
  background: var(--color-bg);
  padding: 100px clamp(24px, 4vw, 48px);
}

.contact-section__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.contact-form {
  max-width: 560px;
}

.contact-form h2 {
  margin-bottom: 8px;
}

.contact-form__intro {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

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

.contact-section__image img {
  width: 100%;
  border-radius: 8px;
  margin-top: 40px;
}

/* ============================================================
   Contact Page — Back to Book CTA
   ============================================================ */
.back-to-book {
  background: var(--color-surface);
  padding: 80px clamp(24px, 4vw, 48px);
  text-align: center;
}

.back-to-book__inner {
  max-width: 480px;
  margin: 0 auto;
}

.back-to-book__image {
  width: 240px;
  margin: 0 auto 32px;
}

.back-to-book .body-text {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

.back-to-book__link {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-to-book__link:hover {
  color: var(--color-accent-dark);
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
  min-height: calc(100vh - 64px - 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 80px clamp(24px, 4vw, 48px);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(80px, 15vw, 160px);
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  margin-bottom: 16px;
}

.error-page .body-text {
  margin-bottom: 32px;
  color: var(--color-text-secondary);
}

/* ============================================================
   Utility Classes
   ============================================================ */
.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;
}

/* ============================================================
   Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Hero home: 60/40 split on tablet */
  .hero-home__text-panel {
    width: 60%;
    padding: 60px 40px 60px 6vw;
  }

  .hero-home__image-panel {
    width: 40%;
  }

  /* About hero */
  .hero-about {
    grid-template-columns: 40% 1fr;
  }

  /* What's inside */
  .whats-inside__text {
    padding-left: 0;
  }

  .whats-inside__inner {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  /* Resources hero accent image */
  .hero-resources__accent-image {
    width: 220px;
  }
}

/* ============================================================
   Responsive — Tablet / Small (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .site-nav {
    height: 56px;
  }

  /* Hamburger visible */
  .nav-toggle {
    display: block;
  }

  .site-nav__links {
    display: none;
  }

  /* Mobile nav overlay */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .mobile-nav-overlay.open {
    display: flex;
  }

  .mobile-nav-overlay a {
    font-family: var(--font-primary);
    font-size: clamp(28px, 6vw, 36px);
    color: var(--color-text-on-primary);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 200ms ease;
  }

  .mobile-nav-overlay a:hover {
    opacity: 1;
    color: var(--color-text-on-primary);
  }

  /* Hero home: stack — image on top, gutter, text below */
  .hero-home {
    flex-direction: column;
    min-height: auto;
  }

  .hero-home__image-panel {
    width: 100%;
    height: 50vh;
    order: 0;
  }

  .hero-home__gutter {
    width: 100%;
    height: 1px;
    order: 1;
  }

  .hero-home__text-panel {
    width: 100%;
    padding: 60px clamp(24px, 6vw, 48px);
    order: 2;
  }

  /* Book intro */
  .book-intro {
    padding: 80px clamp(24px, 4vw, 48px);
  }

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

  .book-intro__image-wrap {
    padding-top: 0;
    order: -1;
  }

  .book-intro__image-wrap img {
    max-width: 400px;
  }

  .book-intro__text {
    margin-top: 40px;
  }

  /* Philosophy */
  .philosophy {
    padding: 80px clamp(24px, 4vw, 48px);
  }

  .philosophy__heading {
    margin-bottom: 48px;
  }

  .philosophy .chapter-mark {
    margin: 40px auto;
  }

  /* Dallas */
  .dallas {
    padding: 100px clamp(24px, 4vw, 48px);
    background-attachment: scroll;
  }

  /* CTA Book */
  .cta-book {
    padding: 80px clamp(24px, 4vw, 48px) 0;
  }

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

  .cta-book__text {
    padding-bottom: 40px;
  }

  .cta-book__image {
    justify-content: center;
  }

  .cta-book__image img {
    max-width: 300px;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Book page hero */
  .hero-book {
    padding: 80px clamp(24px, 4vw, 48px) 60px;
    min-height: auto;
  }

  /* What's inside */
  .whats-inside {
    padding: 80px clamp(24px, 4vw, 48px);
  }

  .whats-inside__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .whats-inside__image-wrap {
    padding-top: 0;
    order: -1;
  }

  .whats-inside__image-wrap img {
    max-width: 350px;
  }

  /* Who for */
  .who-for {
    padding: 80px clamp(24px, 4vw, 48px) 60px;
  }

  /* About hero */
  .hero-about {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-about__image-wrap {
    height: 50vh;
    order: -1;
  }

  .hero-about__text {
    padding: 60px clamp(24px, 6vw, 48px);
  }

  /* Origin story */
  .origin-story {
    padding: 80px clamp(24px, 4vw, 48px);
  }

  .origin-story__inset-image {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 24px;
    display: block;
  }

  /* Dallas connection */
  .dallas-connection__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Resources hero */
  .hero-resources__accent-image {
    position: static;
    width: 200px;
    margin-bottom: 24px;
  }

  /* Tips grid */
  .tips-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-section__image {
    order: -1;
  }

  .contact-section__image img {
    max-width: 280px;
    margin: 0 auto;
  }

  /* Contact hero */
  .hero-contact {
    padding: 100px clamp(24px, 4vw, 48px);
    background-attachment: scroll;
  }
}

/* ============================================================
   Responsive — Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-home__image-panel {
    height: 40vh;
  }

  .hero-home__text-panel {
    padding: 40px 24px;
  }

  .display-heading {
    font-size: clamp(32px, 10vw, 40px);
  }

  .hero-book__image {
    max-width: 100%;
  }

  .hero-about__image-wrap {
    height: 40vh;
  }

  .pull-quote {
    font-size: 18px;
    padding-left: 16px;
  }

  .chapter-mark {
    font-size: 36px;
    margin: 40px auto;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  .back-to-book__image {
    width: 180px;
  }
}
