/* ============================================
   OneKidHood — Global Styles
   Two homes. One childhood.
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --forest: #2C4A3E;
  --forest-dark: #1E352B;
  --forest-light: #3A6355;
  --cream: #FAF6F0;
  --cream-dark: #F0E9DE;
  --gold: #C8A45A;
  --gold-muted: #B8944A;
  --gold-light: #E8D5A0;
  --charcoal: #2B2B2B;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --border: #E0D8CC;

  /* Typography */
  --font-serif: 'Lora', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--gold-muted);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-dark);
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: var(--space-xs);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-xl) 0;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--forest-dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: var(--gold-muted);
  border-color: var(--gold-muted);
  color: var(--white);
}

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

.btn--secondary:hover {
  background-color: var(--cream);
  color: var(--forest-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn--outline:hover {
  background-color: var(--forest);
  color: var(--cream);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest-dark);
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__logo span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--forest);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--forest-dark);
  transition: all var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background-color: var(--cream);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.15rem;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

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

/* --- Hero --- */
.hero {
  padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
  background-color: var(--forest-dark);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 164, 90, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: var(--space-md);
  position: relative;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: rgba(250, 246, 240, 0.85);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero .btn-group {
  justify-content: center;
}

/* --- Sections --- */
.section--cream {
  background-color: var(--cream);
}

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

.section--forest {
  background-color: var(--forest-dark);
  color: var(--cream);
}

.section--forest h2,
.section--forest h3 {
  color: var(--cream);
}

.section--forest p {
  color: rgba(250, 246, 240, 0.85);
}

/* --- Reality Section --- */
.reality-text {
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text);
}

/* --- Quote Block --- */
.quote-block {
  background-color: var(--forest-dark);
  color: var(--cream);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 8px;
  margin: var(--space-lg) auto;
  max-width: 700px;
  position: relative;
  text-align: center;
}

.quote-block::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  position: absolute;
  top: -10px;
  left: 20px;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
}

.quote-block p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

/* --- Playbook Card --- */
.playbook-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.playbook-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.playbook-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.playbook-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.playbook-card__desc {
  color: var(--text-light);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: var(--space-sm);
}

.playbook-card__price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: var(--space-sm);
}

/* --- Feature List --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background-color: rgba(200, 164, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.section--forest .feature-item__icon {
  background-color: rgba(200, 164, 90, 0.2);
}

.feature-item h4 {
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.section--forest .feature-item p {
  color: rgba(250, 246, 240, 0.7);
}

.section--forest .feature-item h4 {
  color: var(--cream);
}

/* --- Email Signup --- */
.signup-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  margin: var(--space-md) auto 0;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.signup-form input[type="email"]:focus {
  border-color: var(--gold);
}

.signup-form .btn {
  white-space: nowrap;
}

.section--forest .signup-form input[type="email"] {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cream);
}

.section--forest .signup-form input[type="email"]::placeholder {
  color: rgba(250, 246, 240, 0.5);
}

.section--forest .signup-form input[type="email"]:focus {
  border-color: var(--gold);
}

/* --- Pillars --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.pillar {
  text-align: center;
  padding: var(--space-md);
}

.pillar__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Blog Cards --- */
.blog-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  background-color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__image span {
  font-size: 3rem;
}

.blog-card__content {
  padding: var(--space-md);
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card__content h3 {
  margin-bottom: var(--space-xs);
}

.blog-card__content h3 a {
  color: var(--forest-dark);
}

.blog-card__content h3 a:hover {
  color: var(--gold-muted);
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.blog-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-muted);
}

.blog-card__link:hover {
  color: var(--forest);
}

/* --- Blog Post --- */
.post-header {
  padding: calc(var(--space-2xl) + 60px) 0 var(--space-lg);
  background-color: var(--forest-dark);
  color: var(--cream);
  text-align: center;
}

.post-header h1 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.post-header__meta {
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.7);
}

.post-content {
  padding: var(--space-xl) 0;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.post-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.post-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-content ul,
.post-content ol {
  margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
}

.post-content li {
  list-style: disc;
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content ol li {
  list-style: decimal;
}

.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background-color: var(--white);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-light);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--forest-dark);
  color: rgba(250, 246, 240, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand .nav__logo {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer__links h4 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a {
  color: rgba(250, 246, 240, 0.6);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__social a {
  color: rgba(250, 246, 240, 0.6);
  font-size: 1.2rem;
  margin-left: var(--space-sm);
}

.footer__social a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* --- Page Header (non-home pages) --- */
.page-header {
  padding: calc(var(--space-2xl) + 60px) 0 var(--space-lg);
  background-color: var(--forest-dark);
  color: var(--cream);
  text-align: center;
}

.page-header h1 {
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: rgba(250, 246, 240, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Animations (subtle) --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .nav__toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
