/* Minimal, modern CSS baseline */
:root{
  --bg:linear-gradient(180deg, #f0fff4 30%, #f6fff8 60%, #ffffff 100%);
  --text:#0b0f14;
  --muted:#64748b;
    --brand:#00B752;     /* balanced green (new) */
  --brand-2:#f97316;   /* soft orange accent */
  --maxw:1100px;
  --radius:12px;
  --gap:24px;
}

* { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


.container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.grid{ display:grid; gap:var(--gap); grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); }

.site-header{
  border-bottom:1px solid #e5e7eb;
  position:sticky; top:0; background:#fff; z-index:10;
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }

.brand{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:inherit; font-weight:700; }
.logo-circle{ width:28px; height:28px; border-radius:50%; background:linear-gradient(45deg,var(--brand),var(--brand-2)); display:inline-block; }

.menu{ list-style:none; display:flex; gap:16px; margin:0; padding:0; }
.menu a{ text-decoration:none; color:inherit; padding:8px 10px; border-radius:8px; }
.menu a:hover,
.menu .current-menu-item > a{
  background: var(--brand) !important;
  color:#fff !important;
}


.hero{ padding:64px 0 48px; background:linear-gradient(180deg, #f0fdf4, #fff); text-align:center; }
.hero-title{ font-size: clamp(32px, 5vw, 56px); margin:0 0 8px; }
.hero-subtitle{ color:var(--muted); font-size: clamp(16px, 2.5vw, 20px); margin:0 0 18px; }

.card{ background:#fff; border:1px solid #e5e7eb; border-radius:var(--radius); padding:20px; }
.prose img{ max-width:100%; height:auto; border-radius:12px; }

.btn{ display:inline-block; border:1px solid var(--text); padding:10px 16px; border-radius:10px; text-decoration:none; }
.btn-primary{ background:var(--brand); color:#fff; border-color:var(--brand); }

/* --- LowCarb4All Custom Accents (Refined) --- */
.btn {
  display:inline-block;
  border:1px solid var(--text);
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--brand);
  color:#fff;
  border-color: var(--brand);
  box-shadow: 0 0 10px rgba(0, 183, 82, 0.25); /* from #00B752 */
}

.btn-primary:hover {
  background-color: #ff9b42;
  border-color: #ff9b42;
  box-shadow: 0 0 8px rgba(255, 155, 66, 0.25);
	color: #fff !important;  /* stays white on hover */
  transform: translateY(-2px);
}

/* Menu hover + active */
.menu a:hover,
.menu .current-menu-item a {
  background: var(--brand);
  color:#fff !important;
  border-radius: 6px;
}

/* Links (in content) */
a {
  color: var(--brand-2);
  transition: color 0.2s ease;
}

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


.site-footer{ border-top:1px solid #e5e7eb; padding:28px 0; margin-top:48px; color:var(--muted); font-size:14px; }

/* Utilities */
.hide{ display:none !important; }
.center{ text-align:center; }
.m0{ margin:0 !important; }
.mt1{ margin-top:8px; } .mt2{ margin-top:16px; } .mt3{ margin-top:24px; } .mt4{ margin-top:32px; }
.p1{ padding:8px; } .p2{ padding:16px; } .p3{ padding:24px; }
.round{ border-radius:var(--radius); }

/* Responsive nav (very lightweight) */
@media (max-width: 720px){
  .menu{ flex-wrap: wrap; gap:8px; }
}

/* ===== Low-Carb vs Keto Compare ===== */
.compare{
  padding: 36px 0 28px;
  background: linear-gradient(180deg,#ffffff 0%, #f9fafb 100%);
}
.compare-title{
  text-align:center;
  font-size: clamp(26px,3.4vw,34px);
  font-weight: 750;
  margin: 0 0 6px;
  color: var(--text);
}
.compare-sub{
  text-align:center;
  color:#4b5563;
  font-size: clamp(15px,1.8vw,18px);
  max-width: 760px;
  margin: 0 auto 18px;
  line-height: 1.55;
}
.compare-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 18px;
  margin-top: 6px;
}
.compare-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 6px 18px rgba(2,8,20,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* ===== Feature Cards — Base (Global) ===== */
.feature-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:20px 18px 18px;
  box-shadow:0 6px 18px rgba(2,8,20,.04);
  opacity:0;
  transform:translateY(14px);
  transition:
    opacity .5s ease,
    transform .5s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

/* ==========================================
   Feature Cards — pop-in animation (HOME)
   Plays even if is-visible is already present
   ========================================== */

@media (prefers-reduced-motion: no-preference){

  /* Card pop */
  body.home .feature-card.is-visible{
    animation: lc4CardPop .42s ease-out both;
  }

  /* Icon pop (slight delay) */
  body.home .feature-card.is-visible .feature-icon{
    animation: lc4IconPop .38s ease-out both;
    animation-delay: .06s;
  }

  @keyframes lc4CardPop{
    0%   { opacity: 0; transform: translateY(14px); }
    70%  { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  @keyframes lc4IconPop{
    0%   { transform: scale(.92); opacity: .92; }
    70%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1.00); opacity: 1; }
  }
}


/* About page: feature cards visible immediately (no JS reveal here) */
body.page-id-14 .about-why .feature-card{
  opacity:1 !important;
  transform:none !important;
}

/* Keyboard focus parity */
.feature-card:focus-within{
  outline:2px solid rgba(0,183,82,.55);
  outline-offset:4px;
  border-color:rgba(0,183,82,.45);
}

/* Icon chip */
.feature-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:14px;
  background:rgba(0,183,82,.08);
  color:var(--brand);
  margin-bottom:12px;
  transition:all .25s ease-in-out;
}

/* Typography */
.feature-card h3{
  margin:0 0 6px;
  font-size:18px;
  color:var(--text);
}
.feature-card p{
  margin:0;
  color:#64748b;
  font-size:15px;
  line-height:1.55;
}

/* Reveal staging */
.feature-card.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .feature-card,
  .feature-icon{
    transition:none !important;
    transform:none !important;
  }
  .feature-card{
    opacity:1 !important;
  }
}

/* Compare Card Hover Enhancement (subtle 3D effect) */
@media (hover:hover) {
  .compare-card {
    transition:
      transform .18s ease,
      box-shadow .22s ease,
      border-color .15s ease;
  }

  .compare-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,183,82,0.35);
    box-shadow:
      0 12px 18px rgba(0,183,82,.16),
      0 6px 14px rgba(2,8,20,0.08);
    background: linear-gradient(180deg,#ffffff 0%,#f8fff9 100%);
  }

  .compare-card:hover h3 {
    color: var(--brand);
    transition: color .2s ease;
  }

  .compare-card:hover ul li strong {
    color: var(--brand-2);
  }
}


/* Feature Card Hover (homepage) — unified premium shadow */
@media (hover:hover){
  .feature-card{
    transition: transform .18s ease, box-shadow .22s ease, border-color .15s ease;
  }
  .feature-card:hover{
    transform: translateY(-6px);
    border-color: rgba(0,183,82,.35);
    box-shadow:
      0 12px 28px rgba(0,183,82,.16),
      0 6px 14px rgba(2,8,20,.08);
  }
  .feature-card:hover h3{
    color: var(--brand);
    transition: color .2s ease;
  }
  .feature-card:hover ul li strong{
    color: var(--brand-2);
  }
}

.compare-card h3{
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}
.compare-card ul{
  margin: 0;
  padding-left: 18px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}
.compare-cta-note{
  text-align:center;
  color:#475569;
  margin: 14px 0 6px;
  font-weight: 500;
}


/* ===== CTA Section ===== */
.cta {
  background: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 18px;
}

.cta .cta-group .btn {
  min-width: 160px;
}

/* === Sitewide Page Polish ===================================== */
/* Page hero (light gradient bar with tight spacing) */
.page-hero{
  padding: 44px 0 28px;
  background: linear-gradient(180deg,#f0fff4 0%, #ffffff 100%);
  text-align:center;
}
.page-title{
  font-size: clamp(30px,4.5vw,44px);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  color: var(--text);
}
.page-subtitle{
  color: #64748b;
  font-size: clamp(15px,2.2vw,18px);
  margin: 0;
}

/* Content sections + grids */
.section{ padding: 28px 0; }
.section.tight{ padding: 20px 0; }

.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 18px;
}

/* Elevated card */
.card-pro{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(2,8,20,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover){
  .card-pro:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(2,8,20,.08); border-color: rgba(0,183,82,.35); }
}

/* Prose polish (headings, lists, quotes) */
.prose h1,.prose h2,.prose h3{ line-height:1.2; margin: 0 0 10px; }
.prose p{ margin: 0 0 12px; }
.prose strong{ font-weight: 700; color: var(--text); }
.prose blockquote{
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  background:#f9fafb;
  color:#475569;
  border-radius: 8px;
}

/* Checkmark list (clean, mobile-friendly) */
.list-check{ list-style: none; padding: 0; margin: 0; }
.list-check li{
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: #475569;
}
.list-check li::before{
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(0,183,82,.15) inset;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'><path d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.2 3.2 6.8-6.8a1 1 0 0 1 1.4 0z'/></svg>") center/14px 14px no-repeat;
}

/* Inline meta rows (icon/text) */
.meta-row{ display:flex; gap:8px; align-items:center; color:#64748b; font-size:14px; }

/* Utility: center images in page content */
.page .wp-block-image img{ max-width: 170px; display:block; margin: 0 auto 18px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.10)); }


/* Hero Glow + pulse (from Home inline <style>) */
.hero--bright::after{
  content:"";
  position:absolute; left:-10%; right:-10%; top:-8%;
  height:62%;
  background:radial-gradient(ellipse at center,
              rgba(22,255,50,.12) 0%,
              rgba(22,255,50,.06) 28%,
              rgba(22,255,50,0) 60%);
  pointer-events:none;
  transform:translateY(0) scale(1);
  opacity:.14;
  animation:heroPulse 10s ease-in-out infinite;
}
@keyframes heroPulse{
  0%{opacity:.1;transform:translateY(0) scale(1);}
  50%{opacity:.16;transform:translateY(6px) scale(1.02);}
  100%{opacity:.1;transform:translateY(0) scale(1);}
}

/* Brand row + logo + text */
.hero-brand{ text-align:center; }
.brand-row{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.brand-mark{ width:clamp(84px,10vw,130px); height:auto; filter:drop-shadow(0 3px 8px rgba(0,0,0,.18)); }

/* Title & Tagline (match Home sizes) */
.hero-title{
  font-size:clamp(46px,6vw,78px);   /* match Home’s larger clamp */
  font-weight:700;
  line-height:1.05;
  margin:0;
  color:var(--text);
}
.orange-four{ color:var(--brand-2) !important; }
.brand-tagline{
  color:var(--brand-2);
  font-weight:600;
  font-size:clamp(22px,2.6vw,30px);
  line-height:1.2;
  margin-top:2px;
  letter-spacing:0.2px;
}

/* Put this near the bottom of main.css (after the generic .hero rules) */
.hero--bright .hero-title{
  font-size: clamp(46px,6vw,78px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;                 /* remove the extra bottom margin */
  color: var(--text);
}

.hero--bright .brand-tagline{
  color: var(--brand-2);
  font-weight: 700;
  font-size: clamp(26px,3vw,34px);
  line-height: 1.15;
  margin-top: 10px;
  letter-spacing: .25px;
}

/* Hide default WP page title (so no extra “About” above hero) */
.page .entry-title{ display:none; }

body.page-id-352 main.site-main{
  padding-top: 0 !important;
}

/* =========================================================
   LC4 — TOP HOME FEATURE ICON POP (CLEAN + SCOPED)
   Scope: Home → section.features.features--pro only
   ========================================================= */

/* Reveal animation (global, but light + safe) */
@media (prefers-reduced-motion: no-preference){
  .feature-card.is-visible{ animation: lc4CardPop .42s ease-out both; }
  .feature-card.is-visible .feature-icon{
    animation: lc4IconPop .38s ease-out both;
    animation-delay: .06s;
  }
}
@keyframes lc4CardPop{
  0%{opacity:0; transform:translateY(14px);}
  70%{opacity:1; transform:translateY(-2px);}
  100%{opacity:1; transform:translateY(0);}
}
@keyframes lc4IconPop{
  0%{transform:scale(.92); opacity:.92;}
  70%{transform:scale(1.08); opacity:1;}
  100%{transform:scale(1); opacity:1;}
}

/* Hover pop + color (TOP HOME ONLY) */
@media (hover:hover){
  body.home section.features.features--pro .feature-icon{
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
    will-change: transform;
  }
  body.home section.features.features--pro .feature-card:hover .feature-icon{
    transform: translateY(-5px) scale(1.12);
    background: rgba(0,183,82,.16);
    color: var(--brand);
  }
}
