/* ============================================================
   MarrowMind — Shared Stylesheet
   Brand: Lavender primary, Sage accent, warm neutral scale
   ============================================================ */

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

:root {
  --lavender-900: #2D2652;
  --lavender-700: #5B4FCF;
  --lavender-500: #7B6EE8;
  --lavender-300: #B0A8F5;
  --lavender-100: #EAE8FD;
  --lavender-50:  #F5F4FE;

  --sage-700:     #4A8572;
  --sage-500:     #6BAF97;
  --sage-300:     #A8D5C5;
  --sage-50:      #F0FAF6;

  --neutral-900:  #1A1A2E;
  --neutral-700:  #3D3D5C;
  --neutral-500:  #6B6B8A;
  --neutral-300:  #B8B8CC;
  --neutral-100:  #EFEFF7;
  --neutral-50:   #FAFAFA;
  --neutral-400:  #9292AA;

  --white:        #FFFFFF;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(123,110,232,0.12);
  --shadow-lg:    0 8px 40px rgba(123,110,232,0.18);

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Georgia', 'Times New Roman', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--neutral-50);
  color: var(--neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--neutral-700); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--lavender-700); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--lavender-500); }
strong { color: var(--neutral-900); font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide { max-width: 1100px; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lavender-100);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--lavender-700);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav__logo span { color: var(--sage-500); }
.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav__links a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover {
  background: var(--lavender-100);
  color: var(--lavender-700);
  text-decoration: none;
}
.nav__links .active {
  background: var(--lavender-100);
  color: var(--lavender-700);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--lavender-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--lavender-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--lavender-700);
  border: 2px solid var(--lavender-300);
}
.btn--outline:hover {
  background: var(--lavender-100);
  border-color: var(--lavender-500);
  text-decoration: none;
}
.btn--sage {
  background: var(--sage-500);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(107,175,151,0.25);
}
.btn--sage:hover {
  background: var(--sage-700);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--lavender-900) 0%, var(--lavender-700) 55%, var(--sage-700) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2.25rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--lavender-100);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--lavender-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card__icon--sage { background: var(--sage-50); }

/* --- Section Utilities --- */
.section { padding: 5rem 1.5rem; }
.section--alt { background: var(--lavender-50); }
.section--sage { background: var(--sage-50); }
.section__header { text-align: center; margin-bottom: 3rem; }
.section__header p { max-width: 540px; margin: 0.75rem auto 0; font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* --- Legal Pages (privacy, terms) --- */
.legal-hero {
  background: linear-gradient(135deg, var(--lavender-900) 0%, var(--lavender-700) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.legal-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.legal-hero p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 0.5rem; }

.legal-body {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}
.legal-body h2 {
  font-size: 1.25rem;
  color: var(--lavender-700);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--lavender-100);
}
.legal-body h3 {
  font-size: 1rem;
  color: var(--neutral-900);
  margin: 1.5rem 0 0.4rem;
}
.legal-body ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--neutral-700);
}
.legal-body li { margin-bottom: 0.4rem; }
.legal-body .highlight-box {
  background: var(--lavender-50);
  border-left: 4px solid var(--lavender-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.legal-body .highlight-box--sage {
  background: var(--sage-50);
  border-left-color: var(--sage-500);
}
.legal-body .highlight-box p { margin: 0; font-size: 0.95rem; }
.legal-body a { word-break: break-word; }

/* --- Support / Contact --- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--lavender-100);
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender-500);
  margin-bottom: 0.5rem;
}
.contact-card__email {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lavender-700);
  word-break: break-all;
}
.contact-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--lavender-900);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.footer__logo span { color: var(--sage-300); }
.footer__tagline { font-size: 0.85rem; margin-bottom: 1.5rem; }
.footer__links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  list-style: none;
}
.footer__links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
}
.footer__links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.footer__business {
  margin: 0.5rem auto 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.footer__business p { color: rgba(255,255,255,0.5); margin: 0; }
.footer__business a { color: rgba(255,255,255,0.55); }
.footer__business a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer__copy { font-size: 0.8rem; }

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge--lavender { background: var(--lavender-100); color: var(--lavender-700); }
.badge--sage     { background: var(--sage-50);      color: var(--sage-700); }
.badge--coming   { background: #FFF3E0; color: #E65100; }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--lavender-100); margin: 2.5rem 0; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem 4rem; }
  .section { padding: 3rem 1rem; }
  .nav__links { gap: 0; }
  .nav__links a { padding: 0.35rem 0.6rem; font-size: 0.82rem; }
  .legal-body { margin-top: 2rem; }
  .contact-card { padding: 1.75rem; }
}

@media print {
  .nav, .hero__actions, .btn, .footer { display: none; }
  body { background: white; color: black; }
}
