/* ----------------------------------------------------------
   Vitalaro — Low-carb living for steady blood sugar
   ---------------------------------------------------------- */

:root {
  --bg:        #f7f4ec;
  --bg-alt:    #efeadd;
  --surface:   #ffffff;
  --ink:       #14272a;
  --ink-soft:  #4b5c5f;
  --rule:      #d9d2bf;
  --brand:     #1f5d57;
  --brand-2:   #103b37;
  --brand-ink: #ffffff;
  --accent:    #d8893a;
  --accent-2:  #b56d23;
  --good:      #2e7d5a;
  --warn:      #b54a2a;
  --shadow-sm: 0 1px 2px rgba(20,39,42,.06), 0 2px 6px rgba(20,39,42,.04);
  --shadow-md: 0 10px 30px rgba(20,39,42,.08), 0 2px 8px rgba(20,39,42,.05);
  --shadow-lg: 0 30px 80px rgba(20,39,42,.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --maxw:      1180px;
  --gutter:    clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ----- Header / Nav -------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,236,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, #2f8a7f 0%, #1f5d57 55%, #103b37 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding-block: 4px;
}
.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  background: var(--brand);
  color: var(--brand-ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .92rem;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover {
  background: var(--brand-2);
  color: var(--brand-ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    display: none;
  }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a {
    display: block;
    padding: 14px var(--gutter);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
}

/* ----- Buttons ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-2);
  color: var(--brand-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Hero ---------------------------------------------- */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  padding: 6px 12px;
  background: rgba(31,93,87,.08);
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 500;
}
.hero-lead {
  font-size: 1.12rem;
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.hero-meta div strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-meta div span {
  font-size: .85rem;
  color: var(--ink-soft);
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  left: -20px;
  bottom: 30px;
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}
.hero-card .dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(46,125,90,.14);
  display: grid; place-items: center;
  color: var(--good);
  flex-shrink: 0;
}
.hero-card strong {
  display: block;
  font-size: .98rem;
  color: var(--ink);
}
.hero-card span {
  font-size: .82rem;
  color: var(--ink-soft);
}
@media (max-width: 880px) {
  .hero-card { left: 12px; }
}

/* ----- Sections ------------------------------------------ */
section { padding-block: clamp(48px, 7vw, 96px); }
section.tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head .eyebrow { display: inline-flex; }
.section-head p { font-size: 1.05rem; }

.alt-bg { background: var(--bg-alt); }
.dark-bg {
  background: var(--brand-2);
  color: #e6efed;
}
.dark-bg h2, .dark-bg h3 { color: #fff; }
.dark-bg p { color: #c2d0ce; }
.dark-bg .eyebrow {
  color: #f3d3a6;
  background: rgba(216,137,58,.18);
}

/* ----- Pillars (3-up cards) ------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pillar-num {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { margin-bottom: 0; font-size: .98rem; }

/* ----- Split (image + text) ------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.split-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  color: var(--ink);
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(46,125,90,.15);
  color: var(--good);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  margin-top: 2px;
}

/* ----- Eat / Limit table -------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--rule);
}
.compare-card.good { border-top: 4px solid var(--good); }
.compare-card.warn { border-top: 4px solid var(--warn); }
.compare-card h4 {
  font-family: "Fraunces", serif;
  margin: 0 0 14px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-card.good h4::before { content: "✓"; color: var(--good); }
.compare-card.warn h4::before { content: "−"; color: var(--warn); }
.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.compare-card li {
  padding: 6px 0;
  font-size: .98rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--rule);
}
.compare-card li:last-child { border-bottom: 0; }

/* ----- Stats band --------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span {
  font-size: .92rem;
  color: #c2d0ce;
}

/* ----- Posts / Cards ------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; }
.card-tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card-meta {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-meta span { display: inline-block; }

/* ----- Newsletter CTA ----------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216,137,58,.35) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band h2, .cta-band p { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: #d8e3e1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

.form {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form input[type="email"],
.form input[type="text"],
.form textarea {
  flex: 1 1 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  outline: none;
  transition: background .2s ease, border-color .2s ease;
}
.form input::placeholder { color: rgba(255,255,255,.6); }
.form input:focus,
.form textarea:focus {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.45);
}
.form .form-note {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.form-light input[type="email"],
.form-light input[type="text"],
.form-light textarea,
.form-light select {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.form-light input:focus,
.form-light textarea:focus,
.form-light select:focus {
  border-color: var(--brand);
  background: #fff;
}
.form-light textarea {
  min-height: 140px;
  border-radius: var(--radius-sm);
  resize: vertical;
}
.form-light label {
  display: block;
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 6px;
}
.form-light .form-field { margin-bottom: 16px; }

/* ----- FAQ ----------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 18px 22px;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--brand);
  transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0;
  font-size: .98rem;
}

/* ----- Page header (interior pages) --------------------- */
.page-header {
  padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px);
  text-align: center;
}
.page-header .eyebrow { display: inline-flex; }
.page-header h1 { max-width: 18ch; margin-inline: auto; }
.page-header p {
  max-width: 60ch;
  margin: 14px auto 0;
  font-size: 1.08rem;
}

/* ----- Prose (article / guide body) --------------------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { font-size: 1.05rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin: 24px 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--ink);
  font-size: 1.2rem;
}
.callout {
  background: rgba(31,93,87,.06);
  border: 1px solid rgba(31,93,87,.15);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}
.callout strong {
  color: var(--brand);
  display: block;
  margin-bottom: 4px;
  font-family: "Fraunces", serif;
  font-weight: 600;
}

/* ----- Contact grid -------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px;
}
.contact-info h3 { font-size: 1.1rem; }
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink);
}
.contact-info .ico {
  width: 32px; height: 32px;
  background: rgba(31,93,87,.1);
  color: var(--brand);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info li span small {
  display: block;
  color: var(--ink-soft);
  font-size: .8rem;
}

/* ----- Footer ------------------------------------------- */
.site-footer {
  background: #0e2123;
  color: #b9c6c4;
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer a { color: #b9c6c4; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p {
  color: #b9c6c4;
  margin-top: 12px;
  max-width: 36ch;
  font-size: .94rem;
}
.footer-brand .brand { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: #7f908d;
}
.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: background .2s ease;
}
.social a:hover { background: rgba(255,255,255,.14); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ----- Utilities ---------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide-sm { }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* gentle entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .7s ease forwards;
  }
  .fade-up.delay-1 { animation-delay: .08s; }
  .fade-up.delay-2 { animation-delay: .16s; }
  .fade-up.delay-3 { animation-delay: .24s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: none; }
  }
}
