/*
  Marketing-scale styles for the Mycelium single-page site.
  Reuses design-system.css tokens only (var(--grove) etc).
  Never hardcode a hex value in this file.
*/

/* ============================================================
   BASE OVERRIDES — marketing type scale, not dashboard scale
   ============================================================ */
body {
  font-size: 17px;
}

h1, h2, h3 {
  letter-spacing: -0.015em;
}

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

.section {
  padding: 136px 0;
  border-top: var(--border-light);
}

.section-alt {
  background: var(--linen);
}

.section-heading-accent {
  color: var(--grove);
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* Anchor targets sit below the sticky nav */
section[id] {
  scroll-margin-top: 84px;
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--grove);
  text-decoration: none;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .nav-inner .btn-cta {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* ============================================================
   BUTTONS — marketing scale, distinct from dashboard .btn-primary
   ============================================================ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--grove);
  color: var(--parchment);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  box-shadow: 0 12px 24px -8px rgba(26, 61, 42, 0.45);
  transform: translateY(-2px);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px -4px rgba(26, 61, 42, 0.4);
}

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--parchment);
  color: var(--espresso);
  border: 1px solid var(--espresso);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.15s;
  white-space: nowrap;
}

.btn-cta-ghost:hover {
  background: var(--linen);
  box-shadow: 0 12px 24px -10px rgba(44, 36, 25, 0.35);
  transform: translateY(-2px);
}

.btn-cta-ghost:active {
  transform: translateY(0);
}

.btn-cta-on-grove {
  background: var(--grain);
  color: var(--grove);
}

.btn-cta-on-grove:hover {
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 160px;
  padding-bottom: 120px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  max-width: 980px;
  margin: 0 auto 24px;
  line-height: 1.1;
}

.hero-subline {
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--driftwood);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 72px;
  }
}

/* ============================================================
   PROBLEM
   ============================================================ */
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.problem-item {
  background: var(--parchment);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.problem-item:hover {
  box-shadow: 0 16px 32px -16px rgba(44, 36, 25, 0.25);
  transform: translateY(-3px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grove);
  color: var(--parchment);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-icon svg {
  width: 24px;
  height: 24px;
}

.problem-item h3 {
  font-size: 18px;
  color: var(--grove);
  margin-bottom: 10px;
}

.problem-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--driftwood);
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-item {
  background: var(--parchment);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-item:hover {
  box-shadow: 0 16px 32px -16px rgba(44, 36, 25, 0.25);
  transform: translateY(-3px);
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

.service-num {
  color: var(--grove);
}

.service-problem {
  font-size: 16px;
  line-height: 1.7;
  color: var(--driftwood);
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.5;
}

.service-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--grove);
  margin-top: 2px;
}

.service-check svg {
  width: 100%;
  height: 100%;
}

.service-outcome {
  color: var(--grove);
  font-weight: 500;
  font-size: 16px;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GET STARTED / CAPTURE
   ============================================================ */
.capture-section {
  text-align: center;
}

.capture-copy {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--driftwood);
  font-size: 16px;
}

.capture-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.capture-form input[type="email"] {
  flex: 1 1 240px;
}

.capture-success {
  color: var(--grove);
  font-weight: 500;
  font-size: 17px;
}

/* ============================================================
   MISSION
   ============================================================ */
.mission-section {
  text-align: center;
}

.mission-copy {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
}

.mission-copy p + p {
  margin-top: 18px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--grove);
  padding: 96px 0;
  text-align: center;
  border-top: var(--border-light);
}

.final-cta h2 {
  color: var(--parchment);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--grain);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 48px 0;
  text-align: center;
  border-top: var(--border-light);
}

.site-footer .wordmark {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--driftwood);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-contact {
  font-size: 14px;
}

.footer-contact a {
  color: var(--espresso);
}

.footer-copyright {
  margin-top: 20px;
  font-size: 12px;
  color: var(--driftwood);
}
