/* ── SoloNutrition Global Stylesheet ── */

:root {
  --midnight-oak: #2C1A0A;
  --dark-walnut:  #5C3418;
  --chestnut:     #8B4E22;
  --terracotta:   #B8652A;
  --warm-amber:   #D4843C;
  --honey:        #E8A85A;
  --warm-cream:   #F5D4A0;
  --parchment:    #FAF0E0;
  --sienna:       #96583A;
  --sage:         #4A8A60;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  color: var(--sienna);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

/* ── Type scale ── */
h1 { font-size: 22px; font-weight: 700; color: var(--midnight-oak); line-height: 1.3; margin-bottom: 0.5rem; }
h2 { font-size: 17px; font-weight: 700; color: var(--midnight-oak); line-height: 1.35; margin-bottom: 0.5rem; }
h3 { font-size: 15px; font-weight: 700; color: var(--midnight-oak); line-height: 1.3; margin-bottom: 0.35rem; }
p  { margin-bottom: 0.9rem; }
a  { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background-color: var(--midnight-oak);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 0.5rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0.75rem 0; text-decoration: none;
}
.nav-brand-name { font-size: 15px; font-weight: 800; color: var(--parchment); letter-spacing: -0.3px; line-height: 1; }
.nav-brand-tag  { font-size: 8px; font-weight: 700; color: var(--warm-amber); text-transform: uppercase; letter-spacing: 0.13em; margin-top: 3px; }

.nav-links { list-style: none; display: flex; gap: 0; }
.nav-links li { position: relative; }
.nav-links > li > a {
  color: var(--warm-cream); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1rem 0.85rem; display: block; transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--warm-amber); text-decoration: none; }
.nav-links li.has-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }

.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; background-color: var(--dark-walnut);
  border-top: 2px solid var(--warm-amber); border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35); z-index: 2000; padding: 0.3rem 0;
}
.dropdown a {
  color: var(--warm-cream); font-size: 12px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  padding: 0.55rem 1rem; display: block; transition: background-color 0.15s, color 0.15s;
}
.dropdown a:hover { background-color: var(--chestnut); color: var(--parchment); text-decoration: none; }
.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.has-dropdown:focus-within .dropdown { display: block; }

.nav-toggle {
  display: none; background: none;
  border: 1.5px solid rgba(245,212,160,0.5); border-radius: 6px;
  color: var(--warm-cream); font-size: 1.3rem; line-height: 1;
  padding: 0.3rem 0.55rem; cursor: pointer;
}

/* ── Hero ── */
.hero {
  background-color: var(--midnight-oak);
  color: var(--parchment);
  padding: 6.5rem 1.5rem 4.5rem;
  text-align: center;
}
.hero-mark { display: block; text-align: center; margin-bottom: 1.2rem; }
.hero-badge {
  display: inline-block; background-color: var(--terracotta); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1.1rem; border-radius: 20px; margin-bottom: 1.2rem;
}
.hero-title { font-size: 32px; font-weight: 800; color: var(--parchment); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 0.4rem; }
.hero-tagline { font-size: 13px; font-weight: 700; color: var(--warm-amber); text-transform: uppercase; letter-spacing: 0.13em; margin-bottom: 1.5rem; }
.hero-intro { max-width: 620px; margin: 0 auto; color: var(--warm-cream); font-size: 14px; line-height: 1.8; opacity: 0.9; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background-color: var(--midnight-oak);
  padding: 5.5rem 1.5rem 3rem;
  text-align: center;
}
.page-hero .hero-badge { margin-bottom: 0.9rem; }
.page-hero h1 { color: var(--parchment); font-size: 28px; margin-bottom: 0.5rem; }
.page-hero p  { color: var(--warm-cream); font-size: 14px; max-width: 620px; margin: 0 auto; opacity: 0.9; }

.page-hero--large-left { padding-right: 0; padding-left: 0; text-align: left; }
.page-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero--large-left .hero-badge { font-size: 15px; }
.page-hero--large-left h1 { font-size: 42px; }
.page-hero--large-left p { font-size: 21px; margin: 0; }

/* ── Pillar cards (homepage) ── */
.pillars {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; padding: 3.5rem 1.5rem;
}
.pillar-card {
  background-color: #fff;
  border: 0.5px solid rgba(44,26,10,0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(44,26,10,0.07);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none; display: flex; flex-direction: column;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(44,26,10,0.13); text-decoration: none; }
.pillar-card-header {
  background-color: var(--sage); padding: 1.4rem 1.3rem;
}
.pillar-card-header .icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.pillar-card-header h2 { color: #fff; font-size: 16px; margin-bottom: 0; }
.pillar-card-body { padding: 1.2rem 1.3rem; flex: 1; }
.pillar-card-body p { font-size: 13px; margin-bottom: 0.6rem; color: var(--sienna); }
.pillar-card-body ul { padding-left: 1.1rem; margin: 0; }
.pillar-card-body ul li { font-size: 12px; color: var(--chestnut); margin-bottom: 0.25rem; }
.pillar-card-footer {
  padding: 0.9rem 1.3rem;
  border-top: 1px solid rgba(44,26,10,0.08);
  font-size: 11px; font-weight: 700; color: var(--warm-amber);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ── Section wrapper ── */
.section {
  max-width: 1100px; margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid rgba(44,26,10,0.1);
}
.section:last-of-type { border-bottom: none; }
.section-label {
  display: inline-block; background-color: var(--terracotta); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 20px; margin-bottom: 0.75rem;
}
.section-intro { max-width: 700px; font-size: 14px; margin-bottom: 1.8rem; line-height: 1.75; }

/* ── Sub-topic anchor links ── */
.subtopic-nav {
  max-width: 1100px; margin: 0 auto;
  padding: 1.8rem 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.subtopic-nav a {
  background-color: var(--warm-cream); color: var(--midnight-oak);
  font-size: 11px; font-weight: 700; padding: 0.4rem 0.9rem;
  border-radius: 20px; text-decoration: none; letter-spacing: 0.04em;
  transition: background-color 0.15s;
}
.subtopic-nav a:hover { background-color: var(--warm-amber); color: #fff; text-decoration: none; }

/* ── Callout / Tip Box ── */
.callout {
  background-color: rgba(74,138,96,0.08);
  border-left: 4px solid var(--sage);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem; margin: 1.8rem 0;
}
.callout h4 {
  color: var(--sage); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem;
}
.callout ul { padding-left: 1.2rem; }
.callout ul li { margin-bottom: 0.45rem; font-size: 14px; }

/* ── Info Cards ── */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem; margin: 1.8rem 0;
}
.info-card {
  background-color: #fff; border: 0.5px solid rgba(44,26,10,0.12);
  border-radius: 14px; padding: 1.3rem;
  box-shadow: 0 2px 8px rgba(44,26,10,0.05);
}
.info-card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; display: block; }
.info-card h3 { font-size: 14px; }
.info-card p  { font-size: 13px; margin-top: 0.35rem; }

/* ── Recipe Image Cards ── */
.recipe-img-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 1.8rem;
}
.recipe-img-card {
  background-color: #fff; border: 0.5px solid rgba(44,26,10,0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(44,26,10,0.06);
  text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s;
}
.recipe-img-card:hover {
  box-shadow: 0 4px 16px rgba(44,26,10,0.12);
  transform: translateY(-2px); text-decoration: none;
}
.recipe-img-wrap {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  position: relative; background-color: var(--warm-cream);
}
.recipe-img-wrap img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.recipe-img-card:hover .recipe-img-wrap img { transform: scale(1.04); }
.recipe-img-body {
  padding: 1rem 1.1rem 1.15rem; flex: 1;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.recipe-cat {
  font-size: 10px; font-weight: 700; color: var(--sage);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.recipe-img-body h3 {
  font-size: 14px; font-weight: 700; color: var(--midnight-oak);
  line-height: 1.35; margin-bottom: 0;
}
.recipe-view-link {
  font-size: 12px; font-weight: 700; color: var(--terracotta);
  margin-top: auto; padding-top: 0.5rem;
}
.btn-browse {
  display: inline-block; background-color: var(--terracotta); color: #fff;
  font-size: 13px; font-weight: 700; padding: 0.75rem 1.8rem;
  border-radius: 8px; text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 2rem;
}
.btn-browse:hover {
  background-color: var(--dark-walnut); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}

/* ── Latest Articles panel (homepage) ── */
.articles-preview {
  background-color: var(--warm-cream);
  border-top: 1px solid rgba(44,26,10,0.1);
  border-bottom: 1px solid rgba(44,26,10,0.1);
}
.articles-preview-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.articles-preview h2 { margin-top: 0.5rem; margin-bottom: 0.4rem; }
.articles-intro {
  max-width: 600px; margin: 0 0 2rem;
  font-size: 14px; color: var(--sienna); line-height: 1.75;
}
.article-cards {
  margin-bottom: 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.article-card {
  background-color: var(--parchment);
  border: 0.5px solid rgba(44,26,10,0.12);
  border-radius: 14px; padding: 1.4rem 1.3rem;
  box-shadow: 0 2px 8px rgba(44,26,10,0.06);
  text-decoration: none; display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(44,26,10,0.12); text-decoration: none; }
.article-cat {
  font-size: 10px; font-weight: 700; color: var(--sage);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.article-card h3 { font-size: 15px; color: var(--midnight-oak); line-height: 1.35; margin-bottom: 0; }
.article-card p  { font-size: 13px; color: var(--sienna); line-height: 1.65; flex: 1; margin-bottom: 0; }
.article-read-more {
  font-size: 12px; font-weight: 700; color: var(--warm-amber);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.articles-cta { margin-top: 0.5rem; }
.btn-primary {
  display: inline-block; background-color: var(--terracotta); color: #fff;
  font-size: 13px; font-weight: 700; padding: 0.75rem 1.8rem;
  border-radius: 8px; text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background-color: var(--dark-walnut); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}

/* ── Quote / highlight ── */
.highlight {
  background-color: rgba(184,101,42,0.07);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.4rem; margin: 1.8rem 0;
  font-size: 14px; color: var(--midnight-oak);
}

/* ── Footer ── */
footer {
  background-color: var(--midnight-oak);
  color: var(--warm-cream);
  text-align: center; padding: 2.5rem 1.5rem; font-size: 12px;
}
.footer-lockup { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.footer-brand-name { font-size: 16px; font-weight: 800; color: var(--parchment); letter-spacing: -0.3px; }
.footer-links { margin: 0.6rem 0; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--honey); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-links a:hover { color: var(--warm-amber); }
footer p { margin-bottom: 0.35rem; color: var(--honey); }
footer .disclaimer {
  margin-top: 1rem; font-size: 11px; color: var(--warm-cream); opacity: 0.65;
  max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
footer .contact {
  margin-top: 1rem; font-size: 12px; color: var(--warm-cream);
  opacity: 0.8; text-align: center;
}
footer .contact a { color: var(--honey); }
footer .contact a:hover { color: var(--warm-amber); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero-title { font-size: 24px; }
  h1 { font-size: 19px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding-bottom: 0.5rem; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links > li > a { padding: 0.7rem 1rem; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
  .dropdown { position: static; border-top: none; border-left: 3px solid var(--warm-amber); border-radius: 0; box-shadow: none; background-color: rgba(0,0,0,0.18); display: none; min-width: unset; padding: 0; }
  .nav-links li.has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding: 0.5rem 1.4rem; font-size: 12px; }
  .pillars { grid-template-columns: 1fr; }
}
