/* ================================================================
   HEALING ROOTS FERTILITY — Shared CSS
   Used by all pages in hrf-pages. Single source of design truth.
   ================================================================ */

:root {
  --green: #5c8607;
  --green-hover: #70a309;
  --charcoal: #343f1e;
  --near-black: #050505;
  --cream: #fdfaf1;
  --sage: #e3e9d8;
  --overlay-dark: rgba(53, 64, 31, 0.55);
  --focus-blue: #046BD2;
  --rule: rgba(53, 64, 31, 0.12);
  --rose: #b87b7b; /* logo accent only */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Lexend', system-ui, sans-serif;
  color: var(--charcoal);
  font-weight: 600;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.4; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); text-decoration: underline; }

/* ========== LAYOUT WRAPPERS ========== */
/* Each section: full-width bg, internal container caps content width */
.section {
  width: 100%;
  padding: 80px 32px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .section { padding: 56px 22px; }
}

.bg-cream { background: var(--cream); }
.bg-sage { background: var(--sage); }
.bg-white { background: #ffffff; }

/* Narrow-column page wrapper (used by lead-magnet / focused opt-in pages) */
.page {
  max-width: 640px;
  margin: 0 auto;
  background: var(--cream);
}
/* Inside .page, sections fill the column instead of viewport */
.page .section,
.page .hero {
  padding: 56px 28px;
}
.page .hero { min-height: 460px; padding: 80px 28px; }
.page .container,
.page .container-narrow { max-width: 100%; }

/* ========== INTRO PARAGRAPHS BLOCK (used on lead-magnet pages) ========== */
.intro p { margin-bottom: 1.1em; }
.intro em {
  font-style: italic;
  font-weight: 500;
  color: var(--charcoal);
}

/* ========== SAGE HEADING (centered emphasis section) ========== */
.sage-heading {
  background: var(--sage);
  padding: 56px 28px;
}
.sage-heading-inner {
  max-width: 720px;
  margin: 0 auto;
}
.sage-heading h2 { margin: 0; }

/* ========== DARK OVERLAY SECTION (charcoal, copy + image) ========== */
.dark-section {
  background: rgba(53, 64, 31, 0.82);
  color: var(--cream);
  padding: 56px 28px;
}
.dark-section .container { max-width: 1000px; }
.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.dark-copy p {
  color: var(--cream);
  margin-bottom: 1em;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}
.dark-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}
.page .dark-grid { grid-template-columns: 1fr; gap: 24px; }
@media (max-width: 760px) {
  .dark-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== CONFIRMATION/UTILITY PAGE LAYOUT (thank-you, welcome, etc.) ========== */
.confirmation {
  padding: 80px 28px 40px;
  text-align: center;
}
.confirmation-inner {
  max-width: 600px;
  margin: 0 auto;
}
.confirmation h1 {
  margin-bottom: 24px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
.confirmation p { margin-bottom: 1.1em; text-align: left; }
.confirmation .signature {
  margin-top: 28px;
  font-style: italic;
  color: rgba(53, 64, 31, 0.78);
  text-align: left;
}
.confirmation-cta {
  display: inline-block;
  margin-top: 18px;
}

/* ========== SALES PAGE LAYOUT (long-form copy) ========== */
.sales-section {
  width: 100%;
  padding: 64px 28px;
}
.sales-section .container { max-width: 760px; }
.sales-section h2 {
  margin-bottom: 18px;
}
.sales-section p { margin-bottom: 1.1em; }
.sales-section ul {
  margin: 0 0 24px;
  padding-left: 22px;
}
.sales-section ul li { margin-bottom: 12px; line-height: 1.55; }
.sales-pricing {
  text-align: center;
  background: var(--sage);
  padding: 64px 28px;
}
.sales-price {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  line-height: 1;
}
.sales-price-small {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 500;
}

/* ========== ELIGIBILITY LIST (booking page) ========== */
.eligibility-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.eligibility-list li {
  padding: 12px 0 12px 36px;
  position: relative;
  font-size: 1.05rem;
}
.eligibility-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-hover);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fdfaf1'%3E%3Cpath d='M13.5 4.5l-7 7-3-3 1-1 2 2 6-6z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--green-hover);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream);
}
.btn-light:hover {
  background: rgba(253, 250, 241, 0.18);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
}

/* ========== SITE HEADER (optional — non-conversion pages only) ========== */
.site-header {
  background: var(--cream);
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
}
.site-nav a:hover { color: var(--green-hover); text-decoration: none; }

/* ========== HERO ========== */
/* Full-bleed image hero with overlay + content */
.hero {
  position: relative;
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 32px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(53, 64, 31, 0.55) 0%,
    rgba(53, 64, 31, 0.30) 55%,
    rgba(53, 64, 31, 0.10) 100%
  );
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  max-width: 600px;
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .hero { min-height: 520px; padding: 80px 22px; }
  .hero h1 { margin-bottom: 22px; }
  .hero::before {
    background: rgba(53, 64, 31, 0.5);
  }
}

/* ========== TWO-COLUMN SECTION (image + text) ========== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.two-col-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.two-col-image.no-radius img { border-radius: 0; }
.two-col-copy h2 { margin-top: 0; }
@media (max-width: 760px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 32px; }
  /* On mobile, image-right blocks should still appear after text for natural reading order */
  .two-col-grid.image-right .two-col-image { order: 1; }
}

/* ========== HOPE + CAUSES (combined sage section) ========== */
.hope-causes {
  text-align: center;
}
.hope-causes h2 {
  max-width: 760px;
  margin: 0 auto 24px;
}
.hope-body {
  max-width: 760px;
  margin: 0 auto 28px;
}
.cause-list {
  list-style: decimal inside;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 480px;
  text-align: left;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--charcoal);
}
.cause-list li {
  padding: 6px 0;
}
.causes-outro {
  max-width: 760px;
  margin: 0 auto 28px;
}
.causes-outro em { font-style: italic; }

/* ========== VALUE PROP (text left, image right) ========== */
.valueprop-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.valueprop-grid h2 { margin-top: 0; }
.valueprop-grid .valueprop-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .valueprop-grid { grid-template-columns: 1fr; gap: 32px; }
  .valueprop-grid .valueprop-image { order: 1; }
}

/* ========== 3-PHASE GRID ========== */
.phase-section { text-align: center; }
.phase-header {
  max-width: 800px;
  margin: 0 auto 44px;
}
.phase-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.phase-header h2 { margin-bottom: 16px; }
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.phase-card {
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 1px 2px rgba(53, 64, 31, 0.06);
}
.phase-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sage);
}
.phase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phase-card-body { padding: 22px 22px 24px; }
.phase-card-body h4 { margin: 0 0 8px; }
.phase-card-body p { font-size: 0.95rem; color: var(--charcoal); margin: 0; }

@media (max-width: 760px) {
  .phase-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ========== TAGLINE ========== */
.tagline-section {
  text-align: center;
  padding: 80px 32px 96px;
  background: var(--cream);
  position: relative;
}
.tagline-section::before,
.tagline-section::after {
  content: "";
  display: block;
  max-width: 1100px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto;
}
.tagline-section::before { margin-bottom: 60px; }
.tagline-section::after { margin-top: 60px; }
.tagline-stack {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0;
}
.tagline-stack span { display: block; }
.tagline-dots {
  margin-top: 22px;
  font-size: 1.5rem;
  letter-spacing: 0.6em;
  color: rgba(53, 64, 31, 0.45);
  line-height: 1;
}

/* ========== OPT-IN ========== */
.optin {
  text-align: center;
}
.optin-inner {
  max-width: 560px;
  margin: 0 auto;
}
.optin h2 { margin-bottom: 14px; }
.optin-sub {
  margin-bottom: 26px;
  font-size: 1rem;
}

#form {
  padding: 6px 0 0;
  background-color: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0 auto;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
#form input[type="text"],
#form input[type="email"],
#form button[type="submit"] {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 120%;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
}
#form input[type="text"]:focus { border-color: var(--green-hover); }
#form button[type="submit"] {
  width: 50%;
  background-color: var(--green-hover);
  color: #ffffff;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  padding: 14px 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.18s ease;
}
#form button[type="submit"]:hover {
  background-color: var(--green);
  transform: translateY(-1px);
}
#email {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}
#form input[style] { display: none; }
#form ::placeholder {
  color: #666;
  font-family: inherit;
  font-size: 16px;
}
.optin-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(53, 64, 31, 0.65);
  margin-top: 14px;
}

/* ========== SITE FOOTER (shared) ========== */
.site-footer {
  background: var(--cream);
  padding: 56px 32px 32px;
  border-top: 1px solid var(--rule);
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.site-footer-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.site-footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  color: rgba(53, 64, 31, 0.78);
  font-size: 0.95rem;
  margin: 0;
}
.site-footer-links h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(53, 64, 31, 0.7);
  margin: 0 0 12px;
}
.site-footer-links ul { list-style: none; padding: 0; margin: 0; }
.site-footer-links li { margin-bottom: 8px; }
.site-footer-links a { font-size: 0.95rem; color: var(--charcoal); }

.site-footer-disclaimer {
  margin: 22px 0 14px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(53, 64, 31, 0.7);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer-bottom {
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.social { display: flex; gap: 18px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--charcoal);
  transition: color 0.18s ease;
}
.social a:hover { color: var(--green-hover); }
.social svg { width: 20px; height: 20px; }
.site-footer-legal {
  font-size: 0.8rem;
  color: rgba(53, 64, 31, 0.65);
}
.site-footer-legal p { margin: 0 0 4px; }
.site-footer-legal a { color: rgba(53, 64, 31, 0.78); margin: 0 6px; }

@media (max-width: 720px) {
  .site-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer-bottom { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .social { justify-content: center; }
}
