/* ============================================
   Mountain View Nootropics — stylesheet
   ============================================ */

:root {
  --cream: #f8f4ea;
  --cream-dark: #efe6d3;
  --paper: #fffdf8;
  --forest: #2c3b2a;
  --forest-light: #47614a;
  --sage: #8a9a7e;
  --sage-light: #c9d3b9;
  --sage-pale: #eef1e6;
  --terracotta: #bd7c4d;
  --terracotta-dark: #9a5f35;
  --ink: #24281f;
  --ink-soft: #4b5245;
  --line: rgba(44, 59, 42, 0.12);
  --shadow: 0 20px 40px -24px rgba(44, 59, 42, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-w: 1160px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--terracotta-dark);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(44, 59, 42, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(44, 59, 42, 0.6);
}

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

.btn-ghost:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-word {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--forest);
  line-height: 1.1;
}

.brand-word span {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

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

.hero-lede {
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust div {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--forest);
}

.hero-trust span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #e7ecd9 0%, #f8f4ea 60%);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

/* ---------- Section shells ---------- */

section {
  padding: 92px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

/* ---------- Philosophy ---------- */

.philosophy {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.pillar {
  padding: 8px 4px;
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--forest-light);
}

.pillar h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Ingredients ---------- */

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

.ingredient-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ingredient-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--terracotta-dark);
}

.ingredient-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.ingredient-card p {
  font-size: 0.92rem;
  margin: 0;
}

.ingredient-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* ---------- Focus areas ---------- */

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

.focus .section-head h2,
.focus .eyebrow {
  color: var(--cream);
}

.focus .eyebrow::before {
  background: var(--sage-light);
}

.focus .section-head p {
  color: rgba(248, 244, 234, 0.78);
}

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

.focus-card {
  background: rgba(248, 244, 234, 0.06);
  border: 1px solid rgba(248, 244, 234, 0.14);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.focus-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 18px;
}

.focus-card h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.focus-card p {
  color: rgba(248, 244, 234, 0.72);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- How to order ---------- */

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

.step {
  display: flex;
  gap: 18px;
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  font-family: "Fraunces", serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.92rem;
  margin: 0;
}

.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.order-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.order-card p {
  font-size: 0.95rem;
}

.order-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--sage-pale);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 22px 0 26px;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.98rem;
  word-break: break-all;
}

.order-email button {
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--forest);
}

.order-email button:hover {
  background: var(--cream);
}

.order-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-size: 1.06rem;
  color: var(--forest);
  font-weight: 600;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--forest);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question .plus::before {
  width: 14px;
  height: 2px;
}

.faq-question .plus::after {
  width: 2px;
  height: 14px;
  transition: opacity 0.2s ease;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 4px 22px;
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--terracotta);
  color: var(--cream);
  text-align: center;
  padding: 72px 0;
}

.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(248, 244, 234, 0.88);
  max-width: 50ch;
  margin: 0 auto 30px;
}

.cta-banner .btn-primary {
  background: var(--forest);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest);
  color: rgba(248, 244, 234, 0.75);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(248, 244, 234, 0.14);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand-word {
  font-family: "Fraunces", serif;
  color: var(--cream);
  font-weight: 600;
  font-size: 1.02rem;
}

.footer-contact a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.7;
  max-width: 900px;
  color: rgba(248, 244, 234, 0.55);
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(248, 244, 234, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    aspect-ratio: 16 / 10;
  }
  .pillar-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .ingredient-grid {
    grid-template-columns: 1fr 1fr;
  }
  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }
  .order-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
  .header-actions .btn-primary.btn-sm {
    display: none;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .ingredient-grid {
    grid-template-columns: 1fr;
  }
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-trust {
    gap: 20px;
  }
  .order-card {
    padding: 30px 24px;
  }
  .order-email {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
  }
}
