/* ============================================
   HealthWise Journal — Premium Health Blog
   Static CSS · Modern · Editorial · Trustworthy
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --green-50:  #edf6f1;
  --green-100: #d7ecdf;
  --green-300: #8ccbb0;
  --green-500: #2f8f6e;
  --green-600: #237056;
  --green-700: #185540;

  --blue-50:   #eff5fa;
  --blue-100:  #d9e8f3;
  --blue-500:  #4a90c2;
  --blue-600:  #2f76a8;

  --ink-900: #0f2320;
  --ink-800: #1a2e2a;
  --ink-700: #2d403c;
  --ink-500: #5a6b6a;
  --ink-400: #7d8b8a;
  --ink-300: #b5bfbd;

  --paper:    #ffffff;
  --sand:     #f7f9f8;
  --sand-2:   #eef2f1;
  --line:     #e5e9e8;

  --amber:    #d99a3f;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,35,32,.05), 0 1px 3px rgba(15,35,32,.04);
  --shadow:    0 6px 24px -8px rgba(15,35,32,.12), 0 2px 6px -2px rgba(15,35,32,.06);
  --shadow-lg: 0 24px 60px -20px rgba(15,35,32,.22), 0 8px 20px -8px rgba(15,35,32,.08);

  --container: 1200px;
  --nav-h: 72px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-700); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

::selection { background: var(--green-100); color: var(--green-700); }

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; color: var(--ink-700); }
.lead { font-size: 1.15rem; color: var(--ink-500); line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-600);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--green-500);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
section { padding: 88px 0; }
@media (max-width: 720px){ section { padding: 60px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn i, .btn svg { font-size: .9em; }
.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(47,143,110,.55);
}
.btn-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-800); color: var(--ink-900); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink-900);
  color: #fff;
}
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green-600);
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink-900); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  display: grid; place-items: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 10px -3px rgba(47,143,110,.5);
}
.brand small { color: var(--ink-500); font-family: 'Manrope', sans-serif; font-weight: 500; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; display: block; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink-900); background: var(--sand); }
.nav-links a.active { color: var(--green-600); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--green-500); border-radius: 2px;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--ink-700);
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--sand); color: var(--ink-900); }
.dropdown a i {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600);
  font-size: .85rem;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  width: 42px; height: 42px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-800);
}
.hamburger:hover { background: var(--sand); }
.hamburger i { font-size: 1.1rem; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #fff;
  z-index: 55;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.mobile-menu.open { transform: translateX(0); display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-800);
}
.mobile-menu .group-label {
  margin-top: 20px;
  padding: 12px 4px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
}
.mobile-cta { margin-top: 26px; }

@media (max-width: 960px){
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--green-50) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 0%, var(--blue-50) 0%, transparent 55%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 span.accent {
  font-style: italic;
  color: var(--green-600);
  font-family: 'Fraunces', serif;
  font-weight: 500;
}
.hero .lead { max-width: 560px; margin-top: 8px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta div strong { display: block; font-family: 'Fraunces', serif; font-size: 1.75rem; color: var(--ink-900); font-weight: 500; }
.hero-meta div span  { font-size: .82rem; color: var(--ink-500); letter-spacing: .04em; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sand);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,35,32,.45));
}
.hero-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow);
  max-width: calc(100% - 40px);
}
.hero-badge .avatar-stack { display: flex; }
.hero-badge .avatar-stack img,
.hero-badge .avatar-stack span {
  width: 32px; height: 32px; border-radius: 999px; border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .75rem;
}
.hero-badge .avatar-stack :first-child { margin-left: 0; }
.hero-badge strong { display: block; font-size: .9rem; color: var(--ink-900); font-family: 'Manrope', sans-serif; }
.hero-badge span.sub { font-size: .78rem; color: var(--ink-500); }

@media (max-width: 900px){
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 4/3; max-width: 560px; }
}

/* ---------- Section Headings ---------- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-head h2 { margin: 8px 0 0; max-width: 640px; }
.section-head p { color: var(--ink-500); max-width: 520px; margin: 0; }
.section-head .link-arrow { align-self: end; padding-bottom: 8px; }

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.cat-card {
  padding: 28px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--green-100), transparent);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.cat-icon.green  { background: var(--green-50); color: var(--green-600); }
.cat-icon.blue   { background: var(--blue-50);  color: var(--blue-600); }
.cat-icon.sand   { background: var(--sand-2);   color: var(--ink-700); }
.cat-icon.amber  { background: #fbf3e3;         color: var(--amber); }
.cat-icon.mint   { background: #e6f4ee;         color: var(--green-700); }
.cat-card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.cat-card p  { font-size: .9rem; color: var(--ink-500); flex-grow: 1; margin-bottom: 18px; }
.cat-card .link-arrow { font-size: .85rem; }

@media (max-width: 1050px){ .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px){ .categories-grid { grid-template-columns: 1fr; } }

/* ---------- Articles Grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px){ .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--sand);
}
.article-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.article-card:hover .article-media img { transform: scale(1.06); }
.article-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.94);
  color: var(--ink-800);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-body h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  line-height: 1.25;
}
.article-body h3 a { color: var(--ink-900); }
.article-body h3 a:hover { color: var(--green-700); }
.article-body p { font-size: .92rem; color: var(--ink-500); margin: 0 0 18px; flex-grow: 1; }
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-500);
}
.article-meta .author { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-700); }
.article-meta .author .avatar {
  width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
  font-weight: 700; font-size: .68rem;
}
.article-meta .read { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Featured Article ---------- */
.featured-article {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
}
.featured-article::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% 100%, rgba(47,143,110,.35), transparent);
  pointer-events: none;
}
.featured-media { min-height: 460px; position: relative; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { padding: 60px 56px; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.featured-body .eyebrow { color: var(--green-300); }
.featured-body .eyebrow::before { background: var(--green-300); }
.featured-body h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 18px; }
.featured-body p  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 26px; max-width: 480px; }
.featured-body .btn-primary { align-self: flex-start; }
.featured-meta { display: flex; gap: 20px; margin-top: 30px; color: rgba(255,255,255,.65); font-size: .85rem; }
.featured-meta span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px){
  .featured-article { grid-template-columns: 1fr; }
  .featured-body { padding: 40px 28px; }
  .featured-media { min-height: 280px; }
}

/* ---------- Why Trust ---------- */
.trust-wrap { background: var(--sand); }
.trust-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.trust-points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-item i {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-600);
  display: grid; place-items: center;
  font-size: 1rem;
  margin-bottom: 16px;
}
.trust-item h4 { margin: 0 0 6px; font-size: 1rem; }
.trust-item p  { margin: 0; font-size: .88rem; color: var(--ink-500); }

@media (max-width: 900px){
  .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){ .trust-points { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before,
.newsletter::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.newsletter::before { width: 260px; height: 260px; right: -60px; top: -80px; }
.newsletter::after  { width: 180px; height: 180px; right: 140px; bottom: -60px; }
.newsletter h2 { color: #fff; margin: 8px 0 12px; }
.newsletter p  { color: rgba(255,255,255,.85); margin: 0; max-width: 460px; }
.newsletter .eyebrow { color: rgba(255,255,255,.85); }
.newsletter .eyebrow::before { background: rgba(255,255,255,.6); }
.newsletter-form {
  display: flex; gap: 10px;
  background: rgba(255,255,255,.14);
  padding: 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.newsletter-form input {
  flex-grow: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.94);
  border: 0;
  color: var(--ink-900);
  min-width: 0;
}
.newsletter-form input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.newsletter-form .btn { background: var(--ink-900); color: #fff; }
.newsletter-form .btn:hover { background: #000; }
.newsletter-note { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 12px; }

@media (max-width: 800px){
  .newsletter { grid-template-columns: 1fr; padding: 44px 28px; }
  .newsletter-form { flex-direction: column; padding: 12px; border-radius: 20px; }
  .newsletter-form input { text-align: center; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.7);
  padding: 80px 0 30px;
  margin-top: 0;
}
footer h5 { font-family: 'Manrope', sans-serif; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: rgba(255,255,255,.6); max-width: 340px; margin: 16px 0 20px; font-size: .92rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: rgba(255,255,255,.55); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid; place-items: center;
  font-size: .92rem;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.socials a:hover { background: var(--green-500); transform: translateY(-3px); }

.footer-disclaimer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-disclaimer .disc-text { max-width: 720px; }

@media (max-width: 800px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px){
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page Header (inner pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(800px 340px at 90% -10%, var(--green-50), transparent 60%),
    radial-gradient(600px 300px at -5% 10%, var(--blue-50), transparent 60%),
    var(--paper);
  text-align: center;
}
.page-hero .container { max-width: 820px; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin: 12px 0 16px; }
.page-hero p { color: var(--ink-500); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: .82rem; color: var(--ink-500);
  margin-top: 22px;
}
.breadcrumb a { color: var(--ink-700); }
.breadcrumb i { font-size: .6rem; opacity: .5; }

/* Category hero variant */
.cat-hero {
  padding: 100px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,35,32,.85), rgba(35,112,86,.7));
}
.cat-hero .bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}
.cat-hero .container { position: relative; z-index: 2; }
.cat-hero .eyebrow { color: var(--green-300); }
.cat-hero .eyebrow::before { background: var(--green-300); }
.cat-hero h1 { color: #fff; margin: 12px 0 16px; }
.cat-hero p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 620px; margin: 0; }
.cat-hero .breadcrumb, .cat-hero .breadcrumb a { color: rgba(255,255,255,.75); }

/* ---------- Blog Page ---------- */
.blog-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0 40px;
}
.search-wrap {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
}
.search-wrap i {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400);
}
.search-wrap input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-wrap input:focus {
  outline: 0;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-50);
}

.filter-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font-weight: 600;
  font-size: .85rem;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink-800); color: var(--ink-900); }
.filter-btn.active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-500);
  background: var(--sand);
  border-radius: var(--radius);
}
.no-results i { font-size: 2rem; color: var(--ink-400); margin-bottom: 12px; }

/* ---------- About Page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 800px){ .about-grid { grid-template-columns: 1fr; } }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px){ .values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.value-card i {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-50); color: var(--green-600);
  display: grid; place-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.value-card h4 { margin: 0 0 8px; }
.value-card p { margin: 0; color: var(--ink-500); font-size: .92rem; }

.stats-strip {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  color: #fff;
}
.stat span { color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 700px){ .stats-strip { grid-template-columns: repeat(2,1fr); } }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-item i {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-600);
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--ink-500); font-size: .9rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px){ .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-800);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-50);
}
.form-group.error input,
.form-group.error textarea { border-color: #e05a5a; }
.form-group textarea { resize: vertical; min-height: 140px; }
.error-msg {
  color: #e05a5a;
  font-size: .78rem;
  margin-top: 6px;
  display: none;
}
.form-group.error .error-msg { display: block; }
.form-success {
  display: none;
  padding: 18px 22px;
  background: var(--green-50);
  border: 1px solid var(--green-300);
  color: var(--green-700);
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}
.form-success.show { display: flex; align-items: center; gap: 10px; }

/* ---------- Legal Pages (Privacy/Terms) ---------- */
.legal-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  padding: 60px 0 100px;
}
@media (max-width: 900px){ .legal-wrap { grid-template-columns: 1fr; gap: 30px; } }
.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 20px);
  align-self: start;
  padding: 22px;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: .9rem;
}
.legal-toc h5 { margin: 0 0 14px; font-size: .78rem; color: var(--ink-800); }
.legal-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-toc a { color: var(--ink-700); padding: 6px 4px; display: block; border-radius: 6px; }
.legal-toc a:hover { color: var(--green-700); background: #fff; }
.legal-content h2 { font-size: 1.5rem; margin-top: 40px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-700); }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content .updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- Category Page Layout ---------- */
.cat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
@media (max-width: 960px){ .cat-layout { grid-template-columns: 1fr; } }
.cat-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
  display: flex; flex-direction: column; gap: 24px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.side-card h5 {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-800);
  margin: 0 0 16px;
}
.topic-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.topic-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  color: var(--ink-700);
  font-size: .92rem;
  border-radius: 10px;
  font-weight: 500;
}
.topic-list a:hover { background: var(--sand); color: var(--green-700); }
.topic-list a span { color: var(--ink-400); font-size: .78rem; }
.side-card.dark {
  background: var(--ink-900);
  color: #fff;
  border-color: transparent;
  background-image: radial-gradient(400px 200px at 100% 0%, rgba(47,143,110,.35), transparent);
}
.side-card.dark h5 { color: rgba(255,255,255,.7); }
.side-card.dark p { color: rgba(255,255,255,.8); margin: 0 0 18px; font-size: .92rem; }
.side-card.dark .btn { width: 100%; justify-content: center; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow);
  z-index: 40;
}
.to-top:hover { background: var(--green-600); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); margin: 80px 0; }

/* Small accent tag */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */
.article-hero-inner {
  padding: 60px 0 44px;
  background:
    radial-gradient(700px 300px at 90% 0%, var(--green-50), transparent 65%),
    radial-gradient(500px 250px at -5% 0%, var(--blue-50), transparent 65%),
    var(--paper);
}
.article-hero-inner .container { max-width: 880px; }
.article-cat-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-500);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-cat-tag.blue { background: var(--blue-500); }
.article-cat-tag.amber { background: var(--amber); }
.article-cat-tag.ink { background: var(--ink-900); }
.article-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 22px;
  line-height: 1.1;
}
.article-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0 0 32px;
  max-width: 720px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
}
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.author-block {
  display: flex; align-items: center; gap: 14px;
}
.author-block .avatar {
  width: 46px; height: 46px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: .9rem;
}
.author-block strong { display: block; font-family: 'Manrope', sans-serif; font-size: .95rem; color: var(--ink-900); }
.author-block .role { display: block; font-size: .8rem; color: var(--ink-500); }
.meta-items {
  display: flex; gap: 8px; align-items: center;
  font-size: .85rem; color: var(--ink-500);
}
.meta-items .dot { width: 3px; height: 3px; background: var(--ink-300); border-radius: 999px; }

.article-hero-image {
  padding: 0 0 60px;
}
.article-hero-image .container { max-width: 1100px; }
.article-hero-image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  max-width: 1100px;
  align-items: start;
}
@media (max-width: 900px){
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
}
.article-side {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 900px){
  .article-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
.share-panel h5 {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 12px;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-buttons a {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sand);
  color: var(--ink-700);
  transition: all .2s var(--ease);
  font-size: .95rem;
}
.share-buttons a:hover { background: var(--green-500); color: #fff; transform: translateY(-2px); }

.article-content {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.article-content > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 500;
  float: left;
  line-height: .95;
  padding: 6px 12px 0 0;
  color: var(--green-600);
}
.article-content h2 {
  font-size: 1.7rem;
  margin: 48px 0 16px;
  scroll-margin-top: 100px;
}
.article-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--ink-900);
}
.article-content p { margin: 0 0 22px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 22px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--ink-900); font-weight: 700; }
.article-content a { color: var(--green-700); border-bottom: 1px solid var(--green-300); }
.article-content a:hover { color: var(--green-700); background: var(--green-50); }
.article-content blockquote {
  margin: 32px 0;
  padding: 20px 24px 20px 28px;
  border-left: 3px solid var(--green-500);
  background: var(--sand);
  border-radius: 0 12px 12px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-800);
  line-height: 1.55;
}
.article-content blockquote p { margin: 0; }
.article-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: .82rem;
  font-style: normal;
  color: var(--ink-500);
  letter-spacing: .04em;
}

.key-takeaways {
  padding: 26px 28px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.key-takeaways h5 {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);

/* ---------- Article Table of Contents ---------- */
.article-toc {
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.article-toc h5 {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 14px;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc li { counter-increment: toc; }
.article-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 8px;
  color: var(--ink-500);
  font-size: .88rem;
  line-height: 1.4;
  font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  border-left: 2px solid transparent;
  border-bottom: 0;
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-size: .78rem;
  color: var(--ink-300);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 22px;
}
.article-toc a:hover {
  color: var(--ink-900);
  background: var(--sand);
}
.article-toc a.active {
  color: var(--green-700);
  border-left-color: var(--green-500);
  background: var(--green-50);
  font-weight: 600;
}
.article-toc a.active::before { color: var(--green-500); }

@media (max-width: 900px){
  .article-toc {
    border-top: 0;
    padding: 0;
    margin: 0;
    flex: 1 1 100%;
  }
  .article-toc summary {
    padding: 14px 16px;
    background: var(--sand);
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink-800);
  }
  .article-toc summary::-webkit-details-marker { display: none; }
  .article-toc summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .72rem;
    transition: transform .2s var(--ease);
  }
  .article-toc details[open] summary::after { transform: rotate(180deg); }
  .article-toc details { margin: 0; }
  .article-toc ol { padding: 12px 4px 4px; }
}

  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.key-takeaways ul { list-style: none; padding: 0; margin: 0; }
.key-takeaways li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: .98rem;
  color: var(--ink-800);
  line-height: 1.5;
}
.key-takeaways li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0; top: 8px;
  color: var(--green-600);
  font-size: .82rem;
}

.article-inline-image {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-inline-image img { width: 100%; }
.article-inline-image .caption {
  display: block;
  padding: 12px 4px 0;
  font-size: .82rem;
  color: var(--ink-500);
  font-style: italic;
}

.author-bio {
  display: flex; gap: 20px;
  padding: 32px;
  background: var(--sand);
  border-radius: var(--radius);
  margin-top: 60px;
  align-items: flex-start;
}
.author-bio .avatar {
  width: 70px; height: 70px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-bio h4 { margin: 0 0 4px; font-size: 1.05rem; }
.author-bio .role { color: var(--green-700); font-size: .85rem; font-weight: 600; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.author-bio p { margin: 0; font-size: .95rem; color: var(--ink-500); }
@media (max-width: 500px){ .author-bio { flex-direction: column; padding: 24px; } }

.article-disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: .88rem;
  color: var(--ink-500);
  background: #fff;
}
.article-disclaimer strong { color: var(--ink-800); }

.related-section { background: var(--sand); padding: 80px 0; }
.related-section .container { max-width: 1200px; }

