/* ============================================================
   NewIdeas.net — Global Stylesheet
   Dr. Douglas Cowan, Psy.D., MFT
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --warm-white:   #FEFCF8;
  --off-white:    #F5F1EB;
  --stone-50:     #FAFAF9;
  --stone-100:    #F0EBE3;
  --stone-200:    #E3DBD1;
  --stone-300:    #D4C9BC;
  --stone-400:    #A8A29E;
  --stone-500:    #78716C;
  --stone-600:    #57534E;
  --stone-700:    #44403C;
  --stone-800:    #292524;
  --stone-900:    #1C1917;

  /* ADHD — amber/orange */
  --adhd-50:  #FFF7ED;
  --adhd-100: #FFEDD5;
  --adhd-200: #FED7AA;
  --adhd-400: #FB923C;
  --adhd-500: #F97316;
  --adhd-600: #EA6C0A;
  --adhd-700: #C2570A;

  /* Anxiety — teal */
  --anxiety-50:  #F0FDFA;
  --anxiety-100: #CCFBF1;
  --anxiety-400: #2DD4BF;
  --anxiety-500: #14B8A6;
  --anxiety-600: #0D9488;
  --anxiety-700: #0F766E;

  /* Character colors */
  --tigger-bg: #FFF7ED; --tigger-bd: #FED7AA; --tigger: #EA6C0A; --tigger-dk: #9A3412;
  --pooh-bg:   #FEFCE8; --pooh-bd:   #FEF08A; --pooh:   #CA8A04; --pooh-dk:   #713F12;
  --rabbit-bg: #F0FDF4; --rabbit-bd: #BBF7D0; --rabbit: #16A34A; --rabbit-dk: #14532D;
  --piglet-bg: #FFF1F2; --piglet-bd: #FECDD3; --piglet: #E11D48; --piglet-dk: #881337;
  --eeyore-bg: #F5F3FF; --eeyore-bd: #DDD6FE; --eeyore: #7C3AED; --eeyore-dk: #4C1D95;

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

  /* Spacing */
  --max-w: 1100px;
  --max-w-text: 720px;
  --section-pad: 80px 24px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

/* ── Base ── */
html { font-family: var(--font); background: var(--warm-white); color: var(--stone-900); scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; }
p { line-height: 1.75; }

/* ── Layout Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section-sm { padding: 48px 24px; }
.center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── Eyebrow / Labels ── */
.eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone-500); margin-bottom: 14px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.badge-adhd   { background: var(--adhd-100);    color: var(--adhd-700); border: 1px solid var(--adhd-200); }
.badge-anxiety { background: var(--anxiety-100); color: var(--anxiety-700); border: 1px solid var(--anxiety-500)30; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700; line-height: 1;
  padding: 14px 28px; border-radius: var(--r-md); border: none;
  cursor: pointer; text-decoration: none; transition: all 0.18s ease;
}
.btn-dark  { background: var(--stone-900); color: #fff; }
.btn-dark:hover  { background: var(--stone-700); transform: translateY(-1px); }
.btn-adhd  { background: var(--adhd-600); color: #fff; }
.btn-adhd:hover  { background: var(--adhd-700); transform: translateY(-1px); }
.btn-anxiety { background: var(--anxiety-600); color: #fff; }
.btn-anxiety:hover { background: var(--anxiety-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--stone-700); border: 2px solid var(--stone-300); }
.btn-outline:hover { background: var(--stone-100); border-color: var(--stone-400); }
.btn-lg { font-size: 1.05rem; padding: 18px 36px; border-radius: var(--r-lg); }
.btn-sm { font-size: 0.8rem; padding: 10px 18px; }

/* ── Cards ── */
.card {
  background: #fff; border: 1.5px solid var(--stone-200);
  border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Section heading ── */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--stone-600); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--stone-200); margin: 0; }

/* ── Quote block ── */
.pull-quote {
  border-left: 4px solid var(--adhd-500); padding: 4px 0 4px 24px;
  font-size: 1.1rem; font-weight: 600; font-style: italic;
  line-height: 1.65; color: var(--stone-700);
  margin: 28px 0;
}

/* ── Disclaimer ── */
.disclaimer {
  background: var(--off-white); border: 1px solid var(--stone-200);
  border-radius: var(--r-md); padding: 18px 24px;
  font-size: 0.78rem; color: var(--stone-500); line-height: 1.65;
  text-align: center; margin-top: 32px;
}

/* ── Hero ── */
.hero {
  padding: 72px 24px 80px; text-align: center;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 22px; }
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--stone-600);
  max-width: 540px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 56px 24px 60px;
  border-bottom: 1px solid var(--stone-200);
  background: var(--off-white);
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero-lead {
  font-size: 1.1rem; color: var(--stone-600); line-height: 1.7;
  max-width: 560px;
}

/* ── Content prose ── */
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p  { margin-bottom: 18px; color: var(--stone-700); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.prose li { display: flex; gap: 12px; font-size: 0.98rem; line-height: 1.65; color: var(--stone-700); }
.prose li::before { content: '→'; color: var(--adhd-500); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.prose .section-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone-400); margin-bottom: 14px; display: block;
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--off-white); border-top: 1px solid var(--stone-200);
  padding: 24px; display: flex; align-items: center;
  justify-content: center; gap: 36px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--stone-600); opacity: 0.8;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--stone-900); color: #fff;
  padding: 64px 24px; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.btn-white { background: #fff; color: var(--stone-900); }
.btn-white:hover { background: var(--off-white); transform: translateY(-1px); }

/* ── Product cards ── */
.product-card {
  background: #fff; border: 1.5px solid var(--stone-200);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--stone-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.product-tag {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--adhd-600);
}
.product-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.product-desc { font-size: 0.92rem; color: var(--stone-600); line-height: 1.6; flex: 1; }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--stone-900); }

/* ── Footer ── */
footer {
  background: var(--stone-900); color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-brand .logo span { color: var(--adhd-500); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-bottom a:hover { color: #fff; }

/* ── Site Header / Nav ── */
#site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(254,252,248,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-200);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--stone-900); text-decoration: none; flex-shrink: 0; }
.logo span { color: var(--adhd-600); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 0.88rem; font-weight: 600; color: var(--stone-700);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--stone-100); color: var(--stone-900); }
.nav-link.active { color: var(--adhd-600); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1.5px solid var(--stone-200);
  border-radius: var(--r-md); min-width: 200px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 300;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 10px 14px; font-size: 0.88rem; font-weight: 600;
  color: var(--stone-700); border-radius: var(--r-sm); transition: background 0.12s, color 0.12s;
}
.dropdown a:hover { background: var(--stone-100); color: var(--adhd-600); }
.nav-cta { margin-left: 8px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Mobile nav ── */
.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--stone-900);
}
.mobile-menu-btn svg { width: 22px; height: 22px; }
.mobile-nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: #fff; padding: 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform 0.28s ease;
}
.mobile-nav-drawer.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-end; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--stone-600);
  padding: 4px; margin-bottom: 16px;
}
.mobile-nav-link {
  display: block; padding: 12px 8px; font-size: 1rem; font-weight: 600;
  color: var(--stone-700); border-bottom: 1px solid var(--stone-100);
  transition: color 0.15s;
}
.mobile-nav-link:hover { color: var(--adhd-600); }
.mobile-nav-section {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--stone-400);
  padding: 16px 8px 6px;
}
.mobile-nav-sub {
  display: block; padding: 10px 16px; font-size: 0.9rem; font-weight: 500;
  color: var(--stone-600); transition: color 0.15s;
}
.mobile-nav-sub:hover { color: var(--adhd-600); }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.4s ease both; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 56px 20px; }
  .hero { padding: 48px 20px 60px; }
  .page-hero { padding: 40px 20px 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .card { padding: 24px; }
  .trust-bar { gap: 20px; padding: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
