/* ==========================================================================
   LowCarbExpert.com — v1 Shared Stylesheet
   Design system: Trust Navy / Clinical Teal / Action Green / Progress Lime
   ========================================================================== */

:root {
  --navy: #123247;
  --teal: #0D6B63;
  --green: #2B7A3D;
  --lime: #A8CF45;
  --bg: #F5F7F4;
  --text: #17242E;
  --white: #FFFFFF;
  --border: #D9E0DA;
  --amber-bg: #FBF2DD;
  --amber-rule: #C98A1B;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius: 8px;
  --radius-card: 12px;
  --max-width: 1200px;
  --measure: 760px;

  --shadow: 0 2px 8px rgba(18, 50, 71, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 26px;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: 44px;
}

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero h1 { font-size: 56px; }
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--teal);
  text-decoration: underline;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

ul, ol {
  padding-left: 1.25em;
}

li {
  margin-bottom: var(--space-2);
}

/* Layout helpers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.measure {
  max-width: var(--measure);
}

section {
  padding: var(--space-12) 0;
}

.section-tight {
  padding: var(--space-8) 0;
}

.bg-white {
  background: var(--white);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-navy h1, .bg-navy h2, .bg-navy h3 {
  color: var(--white);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.brand-mark .brand-name {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
}

.brand-mark .brand-tagline {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--teal);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  padding: var(--space-2) var(--space-1);
  display: inline-block;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.nav-muted {
  color: #8A9A93;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: #226431;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-large {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  font-size: 18px;
}

.text-link {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: var(--space-16) 0 var(--space-12);
}

.hero .eyebrow {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--teal);
  text-transform: none;
  margin-bottom: var(--space-3);
}

.hero .subhead {
  font-size: 20px;
  max-width: var(--measure);
  color: var(--text);
}

.hero-actions {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Safety strip / scope note (amber callout)
   ========================================================================== */

.safety-strip {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber-rule);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-size: 16px;
  color: var(--text);
}

.safety-strip strong {
  color: var(--navy);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card-muted {
  background: #EEF1EC;
  border: 1px dashed var(--border);
  color: #5A6A63;
}

.card-muted h3 {
  color: #5A6A63;
}

.badge {
  display: inline-block;
  background: var(--lime);
  color: var(--navy);
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin: 0 var(--space-2) var(--space-2) 0;
}

.coming-soon-tag {
  display: inline-block;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #5A6A63;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px var(--space-3);
}

/* ==========================================================================
   Pricing / offer card
   ========================================================================== */

.offer-card {
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  max-width: 640px;
}

.offer-price {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.offer-price-secondary {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #5A6A63;
  margin-bottom: var(--space-6);
}

.fine-print {
  font-size: 14px;
  color: #5A6A63;
  margin-top: var(--space-4);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.form-field input[type="email"],
.form-field input[type="text"] {
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "Lato", system-ui, sans-serif;
  font-size: 16px;
  background: var(--white);
  color: var(--text);
}

.consent-text {
  font-size: 14px;
  color: #5A6A63;
  max-width: var(--measure);
  margin-top: var(--space-3);
}

/* ==========================================================================
   Article / byline
   ========================================================================== */

.byline {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #5A6A63;
  margin-bottom: var(--space-4);
}

.article-body h2 {
  margin-top: var(--space-8);
}

.article-body h3 {
  margin-top: var(--space-6);
}

.key-takeaways {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.sources-box {
  background: #EEF1EC;
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-top: var(--space-8);
  font-size: 15px;
  color: #4A5A53;
}

/* ==========================================================================
   Disclosure / legal callouts
   ========================================================================== */

.disclosure-box {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--space-6);
  background: var(--white);
  margin: var(--space-6) 0;
}

.draft-banner {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber-rule);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  font-size: 15px;
}

.legal-row {
  margin-bottom: var(--space-6);
}

.legal-row h2 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   Lists in sections
   ========================================================================== */

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li {
  padding-left: var(--space-6);
  position: relative;
}

.plain-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.problem-list {
  list-style: disc;
}

/* ==========================================================================
   Trust badges
   ========================================================================== */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}

.site-footer a {
  color: var(--lime);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand .brand-name {
  color: var(--white);
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.footer-brand .brand-tagline {
  color: var(--lime);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 13px;
  display: block;
  margin-top: var(--space-1);
}

.footer-heading {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lime);
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-6);
  font-size: 14px;
  color: #C7D3CD;
  max-width: 900px;
}

.footer-copyright {
  font-size: 13px;
  color: #9FB0A8;
  margin-top: var(--space-4);
}

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  text-align: center;
  padding: var(--space-16) 0;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
