/* =========================================================================
   First Light Fertility Nutrition — design system
   "Light & life": dawn warmth, sage growth, luminous restraint.
   Self-contained. System fonts only. No external dependencies.
   ========================================================================= */

:root {
  /* Palette */
  --bg-primary: #FBF5EB;
  --bg-secondary: #F4E8D6;
  --surface: #FFFDF8;
  --text-primary: #33291F;
  --text-muted: #6E6154;
  --accent-primary: #5E7357;   /* sage — growth/life */
  --accent-primary-dark: #4A5C44;
  --accent-warm: #C67A38;      /* apricot/gold — light */
  --accent-soft: #F7D8B4;
  --border: #E7D8C1;

  /* Type */
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --measure: 62ch;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(51, 41, 31, .04), 0 12px 32px -18px rgba(51, 41, 31, .18);
  --shadow-lift: 0 2px 6px rgba(51, 41, 31, .06), 0 20px 48px -22px rgba(51, 41, 31, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-primary-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; color: var(--text-primary); margin: 0 0 .5em; letter-spacing: .1px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

::selection { background: var(--accent-soft); color: var(--text-primary); }
:focus-visible { outline: 3px solid var(--accent-primary); outline-offset: 3px; border-radius: 4px; }

/* --- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 0 0 .9rem;
}
.lede { font-size: 1.12rem; color: var(--text-muted); max-width: var(--measure); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.center { text-align: center; margin-inline: auto; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(94, 115, 87, .8); }
.btn-primary:hover { background: var(--accent-primary-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(94, 115, 87, .9); }
.btn-ghost { background: transparent; color: var(--accent-primary-dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-primary); transform: translateY(-2px); }
.btn-warm { background: var(--accent-warm); color: #fff; box-shadow: 0 10px 22px -12px rgba(198, 122, 56, .8); }
.btn-warm:hover { background: #b06a2c; transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* --- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-primary); font-family: var(--font-heading); font-size: 1.18rem; font-weight: 600; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-warm); font-weight: 600; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: .98rem; transition: color .18s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-primary-dark); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; color: var(--text-primary); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1.2rem;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: .85rem 0; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: .8rem 0 0; }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
}

/* --- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before { /* dawn gradient wash */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 82% 108%, rgba(247, 216, 180, .95) 0%, rgba(247, 216, 180, .35) 34%, rgba(247, 216, 180, 0) 60%),
    radial-gradient(60% 55% at 78% 92%, rgba(198, 122, 56, .22) 0%, rgba(198, 122, 56, 0) 70%),
    linear-gradient(180deg, var(--bg-primary) 40%, #FCEFDD 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero-copy { max-width: 40rem; }
.hero-copy h1 { margin-bottom: .55em; }
.hero-copy .subhead { font-size: 1.18rem; color: var(--text-muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-trust { margin-top: 2.2rem; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); opacity: .7; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(94, 115, 87, .14)); }
.hero-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); z-index: 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 300px; }
  .hero-copy .subhead { max-width: none; }
}

/* --- Mission & Vision -------------------------------------------------- */
.band { background: var(--bg-secondary); }
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 3vw, 1.8rem); }
.mv-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.mv-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-warm)); opacity: .85; }
.mv-icon { width: 46px; height: 46px; margin-bottom: 1rem; }
.mv-card h3 { font-size: 1.5rem; }
.mv-card p { color: var(--text-muted); margin-bottom: 0; }
@media (max-width: 720px) { .mv-grid { grid-template-columns: 1fr; } }

/* --- Credentials & About ---------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; }
.medallion { width: 100%; max-width: 320px; margin-inline: auto; }
.about-copy p { color: var(--text-muted); }
.about-copy p.intro { color: var(--text-primary); font-size: 1.1rem; }
.cred-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.cred-list li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; color: var(--text-primary); font-size: .98rem; }
.cred-list .leaf { width: 20px; height: 20px; margin-top: 3px; flex: none; color: var(--accent-primary); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .medallion { max-width: 220px; } }

/* --- Blog teaser / index cards ---------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.1rem, 2.6vw, 1.6rem); }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.4rem; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-soft); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent-primary) 40%, var(--border)); }
.post-card .glyph { width: 30px; height: 30px; color: var(--accent-primary); margin-bottom: .9rem; }
.post-card .date { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.post-card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 1rem; }
.post-card .more { margin-top: auto; color: var(--accent-warm); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
.post-card:hover .more { gap: .6rem; }
.blog-cta { margin-top: 2.4rem; }

/* --- Contact & Scheduling --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text-primary);
  background: var(--bg-primary); border: 1.5px solid var(--border); border-radius: 12px; padding: .8rem .9rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(94, 115, 87, .16); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .88rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.consent input { margin-top: .25rem; accent-color: var(--accent-primary); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--text-muted); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--accent-primary) 14%, var(--surface)); color: var(--accent-primary-dark); border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border)); }
.form-status.err { background: #fbece3; color: #9a4a1e; border: 1px solid #e6c7ad; }
button[disabled] { opacity: .6; cursor: progress; }

.schedule-panel {
  background: linear-gradient(165deg, var(--accent-soft), #FCEFDD);
  border: 1px solid color-mix(in srgb, var(--accent-warm) 30%, var(--border));
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.4rem); position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.schedule-panel .sun { width: 56px; height: 56px; margin-bottom: 1rem; }
.schedule-panel h3 { font-size: 1.45rem; }
.schedule-panel p { color: #6b4a2a; font-size: .98rem; }
.schedule-panel .btn { margin-top: .6rem; }
.schedule-panel .reassure { font-style: italic; font-size: .92rem; margin-top: 1rem; margin-bottom: 0; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .schedule-panel { order: -1; }
}

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--text-primary); color: #EDE3D5; border-top: 1px solid #4a3d2f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; padding-block: clamp(2.6rem, 5vw, 3.6rem); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--accent-soft); }
.footer-tag { color: #c9bcab; font-size: .95rem; max-width: 26ch; margin-top: .8rem; }
.footer-col h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--accent-soft); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: #EDE3D5; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { font-style: italic; font-size: .85rem; color: #b3a794; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #4a3d2f; padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #b3a794; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* --- Blog index page --------------------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--bg-primary), #FCEFDD); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-block: clamp(3rem, 7vw, 4.5rem); }
.page-hero h1 { margin-bottom: .4em; }

/* --- Single post ------------------------------------------------------- */
.article { max-width: 46rem; margin-inline: auto; }
.article .back { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-muted); text-decoration: none; font-size: .9rem; margin-bottom: 1.6rem; }
.article .back:hover { color: var(--accent-primary-dark); }
.article .date { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-warm); font-weight: 600; margin-bottom: .6rem; }
.article-body { font-size: 1.08rem; }
.article-body h2 { margin-top: 2rem; font-size: 1.7rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote { margin: 1.4em 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--accent-soft); color: var(--text-muted); font-style: italic; }
.article-body code { background: var(--bg-secondary); padding: .12em .4em; border-radius: 6px; font-size: .92em; }
.article-body a { color: var(--accent-primary-dark); }
.article-footer { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.loading { color: var(--text-muted); padding: 2rem 0; }

/* --- Motion preferences ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
