/* Brain Healthy Home and Garden — Site Styles
   A service of EB Research LLC
   Visual identity: HumanSpace brand */

:root {
  --teal: #5BC2B7;
  --blue: #4A6FA5;
  --purple: #4D3B82;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --text: #1A2B3C;
  --text-muted: #5A6B7C;
  --border: #E5E8EB;
  --shadow: 0 2px 12px rgba(26, 43, 60, 0.06);
  --shadow-lg: 0 8px 32px rgba(26, 43, 60, 0.10);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-lead { font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 auto; }

h2 { font-size: 36px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }

/* Navigation */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand-text { line-height: 1.2; }
.nav-brand-text .tagline { color: var(--text-muted); font-size: 13px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--purple); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 59, 130, 0.25);
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; }
.hero h1 {
  font-size: 56px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 22px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Three-column grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* Cards */
.card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--blue); margin-bottom: 16px; }
.card p { color: var(--text-muted); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* Pathway grid */
.pathway-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pathway-card {
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}
.pathway-card h4 { color: var(--blue); margin-bottom: 8px; }
.pathway-card .evidence {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 24px 0; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 600; color: var(--text); }
tr:last-child td { border-bottom: none; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  position: relative;
}
.price-card.featured { border-color: var(--purple); box-shadow: var(--shadow-lg); }
.price-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  padding: 6px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.price-card h3 { font-size: 24px; margin-bottom: 8px; color: var(--text); }
.price-card .price-tagline { color: var(--text-muted); margin-bottom: 16px; }
.price-card .price { font-size: 48px; font-weight: 700; color: var(--purple); margin: 8px 0 24px; }
.price-card ul { list-style: none; margin: 24px 0; }
.price-card ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
}
.price-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 18px;
}

/* About / bios */
.bios { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.bio { padding: 32px; background: white; border-radius: 16px; box-shadow: var(--shadow); }
.bio-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.bio-title { color: var(--blue); font-weight: 500; margin-bottom: 20px; font-size: 15px; }
.bio p { color: var(--text-muted); }

/* FAQ */
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--blue); }
.faq-a { color: var(--text-muted); }

/* Use cases (For Your Family) */
.usecase {
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.usecase h3 { color: var(--purple); }
.usecase .trigger {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 64px 32px;
  text-align: center;
  border-radius: 16px;
  margin: 64px 0;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 32px; font-size: 18px; }
.cta-banner .btn-primary {
  background: white;
  color: var(--purple);
}
.cta-banner .btn-primary:hover { background: rgba(255, 255, 255, 0.95); color: var(--purple); }

/* Footer */
footer {
  background: var(--text);
  color: white;
  padding: 48px 0 24px;
  margin-top: 0;
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
footer p { color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6; }
footer a { color: rgba(255, 255, 255, 0.9); }
footer a:hover { color: var(--teal); }
footer .footer-brand { max-width: 360px; }
footer .footer-links ul { list-style: none; }
footer .footer-links li { margin-bottom: 8px; font-size: 14px; }
footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Banner-photo sections (HumanSpace.family deck style) */
.banner-photo {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Hero carousel crossfade */
.hero-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}
.hero-carousel .carousel-slide.active { opacity: 1; }
.hero-carousel .banner-overlay { position: relative; z-index: 2; }
.banner-photo-tall { min-height: 680px; }
.banner-overlay {
  background: linear-gradient(180deg, rgba(74, 111, 165, 0.95) 0%, rgba(74, 111, 165, 0.85) 60%, rgba(74, 111, 165, 0) 100%);
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 56px 0 0;
  min-height: 220px;
}
.banner-overlay h1, .banner-overlay h2 {
  color: white;
  max-width: 820px;
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.banner-overlay p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  max-width: 720px;
  margin-bottom: 12px;
}
.banner-overlay .privacy-whisper {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
}
.banner-overlay .btn-primary {
  background: white;
  color: var(--purple);
  margin-top: 16px;
}
.banner-overlay .btn-primary:hover { background: rgba(255, 255, 255, 0.95); color: var(--purple); }
.banner-overlay-bottom {
  background: linear-gradient(0deg, rgba(77, 59, 130, 0.95) 0%, rgba(77, 59, 130, 0.85) 60%, rgba(77, 59, 130, 0) 100%);
  align-items: flex-end;
  padding: 0 0 56px;
  min-height: 240px;
}
.banner-overlay-bottom h2, .banner-overlay-bottom p {
  color: white;
}

/* Photo placeholder (visible when image missing) */
.banner-photo::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  z-index: 0;
  text-align: center;
  max-width: 80%;
}
.banner-photo > * { position: relative; z-index: 1; }

/* Value blocks (4-up) */
.value-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-block {
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.value-block h3 {
  font-size: 18px;
  color: var(--purple);
  margin-bottom: 12px;
}
.value-block p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Promise list (privacy + integrity) */
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.promise-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.promise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.promise-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.promise-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Founder quote */
.founder-quote {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--purple);
}
.founder-quote p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}
.founder-quote .attrib {
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .pathway-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .value-blocks { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; }
  .banner-overlay h1, .banner-overlay h2 { font-size: 32px; }
  .banner-photo { min-height: 480px; }
}
@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 18px; }
  .grid-3, .grid-2, .grid-4, .steps, .pricing-grid, .bios { grid-template-columns: 1fr; }
  h2 { font-size: 28px; }
  .section { padding: 56px 0; }
  footer .container { flex-direction: column; }

  /* Mobile nav: hamburger + dropdown panel */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 16px;
    box-shadow: 0 8px 24px rgba(26, 43, 60, 0.08);
    border-bottom: 1px solid var(--border);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 17px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.btn-primary {
    margin-top: 12px;
    text-align: center;
    padding: 14px 28px;
  }
}
