/*
Theme Name: CatAgeChart
Theme URI: https://catagechart.com
Author: CatAgeChart
Description: Premium playful theme for catagechart.com - Cat Age to Human Age Calculator
Version: 2.3.7
License: GNU General Public License v2 or later
Text Domain: catagechart
Tags: calculator, cats, premium, responsive, seo, blog
*/

/* ============== DESIGN TOKENS ============== */
:root {
  --coral: #FF7A59;
  --coral-dark: #E85A38;
  --coral-soft: #FFE8E0;
  --plum: #2D1B3D;
  --plum-mid: #4A2E5F;
  --mustard: #F4B942;
  --mint: #7FD1AE;
  --cream: #FFF8F1;
  --cream-warm: #FBEFE0;
  --paper: #FFFDFA;
  --ink: #1C1426;
  --ink-soft: #5C4B6E;
  --ink-mute: #8C7E9C;
  --line: rgba(45,27,61,0.10);
  --line-strong: rgba(45,27,61,0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 2px 8px rgba(45,27,61,0.06);
  --shadow: 0 8px 28px rgba(45,27,61,0.10);
  --shadow-lg: 0 24px 60px -12px rgba(45,27,61,0.22);
  --shadow-coral: 0 14px 40px -10px rgba(255,122,89,0.55);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* ============== HEADER ============== */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,250,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  min-height: 80px;
}
/* Account for WordPress admin bar when logged in */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; min-height: 80px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--plum);
  line-height: 1.2;
  text-decoration: none;
}
.logo-icon {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { line-height: 1.2; display: inline-block; }
.logo-text span { color: var(--coral); }

#primary-nav ul, #primary-nav .menu {
  display: flex; gap: 32px; list-style: none; align-items: center;
  margin: 0; padding: 0;
}
#primary-nav a {
  font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  transition: color 0.2s;
}
#primary-nav a:hover, #primary-nav .current-menu-item a { color: var(--coral); }
#primary-nav li.cta a,
#primary-nav .menu-item-cta a {
  background: var(--plum); color: white;
  padding: 10px 20px; border-radius: 100px; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
#primary-nav li.cta a:hover,
#primary-nav .menu-item-cta a:hover {
  transform: translateY(-2px); box-shadow: var(--shadow); color: white;
}

/* Hamburger */
.hamburger {
  display: none; width: 40px; height: 40px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  border-radius: 10px; transition: background 0.2s;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--plum); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger:hover { background: var(--cream); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== HERO ============== */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(244,185,66,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(255,122,89,0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(45,27,61,0.04) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--line-strong);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--plum);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(127,209,174,0.25);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05; font-weight: 700; color: var(--plum);
  letter-spacing: -0.02em; margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}
.hero-title .highlight {
  font-style: italic; font-weight: 500; color: var(--coral);
  position: relative; display: inline-block;
}
.hero-title .highlight::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 14px; background: var(--mustard); opacity: 0.35; z-index: -1;
  border-radius: 6px; transform: rotate(-1deg);
}
.hero-desc {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 520px; margin-bottom: 36px; line-height: 1.65;
}
.hero-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--plum); line-height: 1;
  font-variation-settings: "opsz" 144;
}
.hero-stat-label {
  font-size: 0.82rem; color: var(--ink-mute); font-weight: 500;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-visual { position: relative; }
.cat-illustration {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  background: linear-gradient(135deg, var(--coral-soft) 0%, var(--cream-warm) 100%);
}
.cat-illustration img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Floating badges around hero photo */
.hero-badge-float {
  position: absolute; background: white; border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); font-weight: 600; font-size: 0.88rem;
  color: var(--plum); z-index: 2;
}
.hero-badge-1 { top: 30px; left: -30px; transform: rotate(-4deg); }
.hero-badge-2 { bottom: 60px; right: -20px; transform: rotate(3deg); }
.hbf-emoji {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--coral-soft); display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.hero-badge-2 .hbf-emoji { background: rgba(127,209,174,0.22); }
.hbf-label {
  font-size: 0.68rem; color: var(--ink-mute); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hbf-value { font-family: var(--font-display); font-weight: 700; color: var(--plum); }

/* ============== BUTTONS ============== */
.btn, .btn-primary, .btn-white, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 100px;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer; text-decoration: none;
}
.btn-primary, .btn {
  background: var(--coral); color: white;
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover, .btn:hover {
  transform: translateY(-3px); background: var(--coral-dark); color: white;
}
.btn-secondary {
  background: white; color: var(--plum);
  border: 1.5px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--plum); transform: translateY(-3px); }
.btn-white {
  background: white; color: var(--coral-dark);
}
.btn-white:hover { transform: translateY(-3px); color: var(--coral-dark); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============== SECTION ============== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--plum); letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 14px; font-variation-settings: "opsz" 144;
}
.section-header p {
  color: var(--ink-mute); font-size: 1.08rem;
  max-width: 600px; margin: 0 auto;
}

/* ============== CALCULATOR ============== */
.calculator-section { padding: 80px 0; background: var(--paper); }
.calc-card {
  background: linear-gradient(180deg, white 0%, var(--cream) 100%);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.calc-card::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,185,66,0.15) 0%, transparent 70%);
}
.calc-header { text-align: center; margin-bottom: 40px; position: relative; }
.calc-header h2 {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--plum); letter-spacing: -0.01em; margin-bottom: 8px;
}
.calc-header p { color: var(--ink-soft); }

.age-input-wrap {
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px;
  margin-bottom: 28px; align-items: end;
}
.input-group label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--plum);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}
.age-slider-wrap { position: relative; }
#cat-age-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 100px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--coral) var(--slider-pct, 12%), var(--cream-warm) var(--slider-pct, 12%), var(--cream-warm) 100%);
  outline: none;
}
#cat-age-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--coral); border: 4px solid white;
  box-shadow: var(--shadow-coral); cursor: pointer; transition: transform 0.15s;
}
#cat-age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
#cat-age-slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--coral);
  border: 4px solid white; box-shadow: var(--shadow-coral); cursor: pointer;
}
.slider-labels {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--ink-mute);
  margin-top: 10px; font-weight: 500;
}
.age-display {
  background: var(--plum); color: white;
  padding: 20px 28px; border-radius: var(--radius);
  text-align: center; min-width: 140px;
}
.age-display-num {
  display: block;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  line-height: 1; font-variation-settings: "opsz" 144;
}
.age-display-unit {
  display: block; font-size: 0.85rem; opacity: 0.7;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em;
}
.months-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  padding: 18px 22px; background: white;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.months-row label {
  font-weight: 600; color: var(--plum); font-size: 0.95rem; flex: 1;
}
.months-select {
  padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--plum);
  background: white; cursor: pointer;
}
.calc-btn {
  width: 100%; background: var(--coral); color: white;
  padding: 20px; border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: var(--shadow-coral); transition: all 0.25s;
}
.calc-btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-paw { font-size: 1.3rem; }

/* RESULT */
.result-box {
  margin-top: 40px; padding: 36px;
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  text-align: center; position: relative;
  display: none;
}
.result-box.show { display: block; animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.result-main { margin-bottom: 24px; }
.result-cat-emoji { font-size: 64px; margin-bottom: 16px; display: block; }
.result-label { color: var(--ink-soft); font-size: 1rem; margin-bottom: 8px; }
.result-num {
  display: block;
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 700;
  color: var(--coral); line-height: 1; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.result-unit { color: var(--ink-soft); font-weight: 500; margin-top: 4px; margin-bottom: 18px; }
.life-stage-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  font-weight: 700; font-size: 0.92rem;
  background: rgba(127,209,174,0.18); color: #2D7A5F;
}
.metrics-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
  margin-top: 32px;
}
.metric-card {
  background: var(--cream); border-radius: 14px;
  padding: 18px 14px; text-align: center;
}
.metric-label {
  font-size: 0.72rem; color: var(--ink-mute); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.metric-val {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--plum);
}
.chart-section { margin-top: 32px; }
.chart-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--plum); margin-bottom: 16px; text-align: center;
}
.chart-wrap {
  position: relative; height: 280px; background: var(--cream);
  border-radius: var(--radius); padding: 18px;
}

.facts-section { margin-top: 24px; }
.facts-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--plum); margin-bottom: 16px; text-align: center;
}
.facts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.fact-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 18px; text-align: left;
}
.fact-card-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--plum); margin-bottom: 6px; font-size: 1rem;
}
.fact-card p {
  font-size: 0.88rem; color: var(--ink-soft); margin: 0; line-height: 1.55;
}

/* ============== HOW IT WORKS ============== */
.how-section {
  padding: 100px 0; background: var(--plum);
  color: white; position: relative; overflow: hidden;
}
.how-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,122,89,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(244,185,66,0.12) 0%, transparent 40%);
}
.how-section .section-header h2 { color: white; }
.how-section .section-header p { color: rgba(255,255,255,0.65); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
  position: relative;
}
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--coral); }
.step-num {
  font-family: var(--font-display); font-size: 3.6rem; font-weight: 700;
  color: var(--coral); line-height: 1; opacity: 0.9;
  letter-spacing: -0.03em; font-variation-settings: "opsz" 144;
}
.step-icon { font-size: 32px; margin-top: 16px; margin-bottom: 14px; display: block; }
.step-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 8px; color: white;
}
.step-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ============== AGE TABLE ============== */
table[aria-label="Cat age to human age conversion table"] {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1.5px solid var(--line);
}

/* ============== FAQ ============== */
.faq-section { padding: 100px 0; background: var(--paper); }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: white; border: 1.5px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.open { border-color: var(--coral); box-shadow: var(--shadow); }
.faq-question {
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--plum); cursor: pointer;
}
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--coral-soft); color: var(--coral);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 18px; transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--coral); color: white; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7;
}
.faq-item.open .faq-answer, .faq-answer.open { max-height: 600px; padding: 0 28px 24px; }

/* ============== CAT FACTS BIG GRID ============== */
.all-facts-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 30px;
}
.big-fact-card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1.5px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.big-fact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.big-fact-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--mustard));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.big-fact-card:hover::before { transform: scaleX(1); }
.big-fact-emoji { font-size: 40px; margin-bottom: 18px; display: block; }
.big-fact-card h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--plum); margin-bottom: 8px; font-weight: 600;
}
.big-fact-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ============== ARTICLE CONTENT ============== */
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--plum); letter-spacing: -0.02em;
  margin-bottom: 24px; font-variation-settings: "opsz" 144;
}
.article-content h3 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--plum); margin-top: 3rem; margin-bottom: 1rem;
  padding-bottom: 14px; border-bottom: 2px solid var(--coral-soft);
}
.article-content h4 {
  font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: 0.5rem;
  color: var(--coral-dark); font-weight: 700;
}
.article-content p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.article-content ul { margin: 0 0 1.5rem 1.5rem; padding: 0; }
.article-content li { color: var(--ink-soft); margin-bottom: 10px; line-height: 1.7; }
.article-content li::marker { color: var(--coral); }
.article-content strong { color: var(--plum); font-weight: 700; }
.article-content a { color: var(--coral); font-weight: 600; border-bottom: 1.5px solid var(--coral-soft); }
.article-content a:hover { border-bottom-color: var(--coral); }
.article-content a.btn-primary, .article-content a.btn, .article-content a.btn-white, .article-content a.btn-secondary {
  border-bottom: none !important;
}

/* ============== CTA SECTION ============== */
.cta-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(244,185,66,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(127,209,174,0.18) 0%, transparent 50%),
    var(--plum);
  color: white; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700; margin-bottom: 18px;
  letter-spacing: -0.02em; color: white;
  font-variation-settings: "opsz" 144;
}
.cta-section p {
  font-size: 1.15rem; color: rgba(255,255,255,0.7);
  margin-bottom: 36px; max-width: 520px;
  margin-left: auto; margin-right: auto;
}

/* ============== BREADCRUMBS ============== */
.breadcrumbs {
  font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--coral); }
.breadcrumbs .sep { color: var(--ink-mute); font-size: 0.7rem; }
.breadcrumbs .current { color: var(--plum); font-weight: 600; }

/* ============== SINGLE POST ============== */
.post-hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(244,185,66,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(255,122,89,0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 60px 0 40px;
}
.post-category {
  display: inline-block; background: var(--coral-soft); color: var(--coral-dark);
  padding: 6px 14px; border-radius: 100px; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px;
}
.post-title-h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.1; color: var(--plum);
  letter-spacing: -0.02em; margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}
.post-meta {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-soft); font-size: 0.92rem; flex-wrap: wrap;
}
.post-meta .author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--mustard));
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 0.95rem;
}
.author-name { color: var(--plum); font-weight: 600; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); }
.post-featured-img {
  margin: 40px 0; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post-featured-img img { width: 100%; height: auto; display: block; }

.post-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 60px;
  padding: 40px 0 80px;
}
.entry-content { font-size: 1.1rem; line-height: 1.85; color: var(--ink-soft); }
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 4.2rem; font-weight: 700;
  float: left; line-height: 0.9; padding: 8px 12px 0 0; color: var(--coral);
  font-variation-settings: "opsz" 144;
}
.entry-content h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--plum); margin-top: 3rem; margin-bottom: 1rem;
  letter-spacing: -0.01em; font-variation-settings: "opsz" 144;
}
.entry-content h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--plum); margin-top: 2.4rem; margin-bottom: 0.8rem;
}
.entry-content p { margin-bottom: 1.3rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5rem 1.5rem; }
.entry-content li { margin-bottom: 10px; }
.entry-content li::marker { color: var(--coral); }
.entry-content blockquote {
  border-left: 4px solid var(--coral); background: var(--cream);
  padding: 20px 28px; margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.2rem;
  font-style: italic; color: var(--plum);
}
.entry-content strong { color: var(--plum); font-weight: 700; }
.entry-content a {
  color: var(--coral); font-weight: 600;
  border-bottom: 1.5px solid var(--coral-soft); transition: border-color 0.2s;
}
.entry-content a:hover { border-bottom-color: var(--coral); }
/* Reset link styles for buttons inside post content */
.entry-content .inline-calc-cta a,
.entry-content a.btn-primary,
.entry-content a.btn,
.entry-content a.btn-white,
.entry-content a.btn-secondary {
  border-bottom: none !important;
}
.entry-content .inline-calc-cta a {
  color: white !important;
}
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th, .entry-content td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.entry-content th { font-weight: 700; background: var(--cream); }

.post-tags {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px;
  padding-top: 32px; border-top: 1.5px solid var(--line);
}
.post-tag {
  background: var(--cream); color: var(--plum);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--line); transition: all 0.2s;
}
.post-tag:hover { background: var(--coral); color: white; border-color: var(--coral); }

.post-sidebar { position: sticky; top: 100px; align-self: start; }
.widget {
  background: white; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.widget-title, .widget h4 {
  font-family: var(--font-display); color: var(--plum);
  font-size: 1.1rem; margin-bottom: 16px; font-weight: 600;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 8px; }
.widget a { color: var(--ink-soft); transition: color 0.2s; }
.widget a:hover { color: var(--coral); }

.inline-calc-cta {
  background:
    radial-gradient(circle at 30% 50%, rgba(244,185,66,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(127,209,174,0.15) 0%, transparent 50%),
    var(--plum);
  color: white; border-radius: var(--radius-lg);
  padding: 32px; margin: 2.5rem 0; text-align: center;
}
.inline-calc-cta h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  margin-bottom: 8px; color: white; font-weight: 600;
}
.inline-calc-cta p {
  color: rgba(255,255,255,0.7); margin-bottom: 18px; font-size: 0.95rem;
}
.inline-calc-cta .btn-primary {
  background: var(--coral) !important;
  color: white !important;
  padding: 14px 32px !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(255,122,89,0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none !important;
}
.inline-calc-cta .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(255,122,89,0.5) !important;
  color: white !important;
}

/* ============== PAGE ============== */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 80px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(45,27,61,0.04) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-block; background: white;
  border: 1px solid var(--line-strong);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; color: var(--coral);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.page-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.05; color: var(--plum);
  letter-spacing: -0.02em; margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}
.page-title .accent {
  color: var(--coral); font-style: italic; font-weight: 500;
  position: relative; display: inline-block;
}
.page-title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 14px; background: var(--mustard); opacity: 0.35;
  z-index: -1; border-radius: 6px; transform: rotate(-1deg);
}
.page-subtitle {
  font-size: 1.2rem; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto;
}
.page-body { padding: 60px 0 100px; font-size: 1.08rem; line-height: 1.8; color: var(--ink-soft); }
.page-body h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--plum); margin-top: 2.5rem; margin-bottom: 1rem;
  letter-spacing: -0.01em; font-variation-settings: "opsz" 144;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--plum); margin-top: 2rem; margin-bottom: 0.8rem;
}
.page-body p { margin-bottom: 1.2rem; }
.page-body ul, .page-body ol { margin: 0 0 1.4rem 1.5rem; }
.page-body li { margin-bottom: 8px; }
.page-body li::marker { color: var(--coral); }
.page-body strong { color: var(--plum); font-weight: 700; }
.page-body a { color: var(--coral); font-weight: 600; border-bottom: 1.5px solid var(--coral-soft); }
.page-body a:hover { border-bottom-color: var(--coral); }

/* ============== BLOG LIST (archive/index) ============== */
.blog-hero {
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(244,185,66,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(127,209,174,0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 80px 0 50px; text-align: center;
  position: relative; overflow: hidden;
}
.blog-listing { padding: 60px 0 100px; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.post-card {
  background: white; border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--coral-soft); }
.post-card-thumb-link { display: block; }
.post-card-thumb {
  aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--coral-soft), var(--mustard));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s;
}
.post-card:hover .post-card-thumb { transform: scale(1.02); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb-placeholder { font-size: 56px; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .post-category { font-size: 0.7rem; padding: 4px 10px; margin-bottom: 12px; }
.post-card-body h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--plum); line-height: 1.3; margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.post-card-body h3 a { color: inherit; text-decoration: none; }
.post-card-body h3 a:hover { color: var(--coral); }
.post-card-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 16px; flex: 1; line-height: 1.5; }
.post-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--ink-mute);
  padding: 14px 0; border-top: 1px solid var(--line);
}
.read-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--coral); font-weight: 700; font-size: 0.88rem;
  text-decoration: none; transition: gap 0.2s;
  margin-top: auto;
}
.read-more-link:hover { gap: 10px; color: var(--coral-dark); }

/* View All button below post grid */
.view-all-wrap {
  text-align: center; margin-top: 48px;
}
.view-all-wrap .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
}
.home-blog-section { background: var(--paper); }

/* No posts state */
.no-posts {
  text-align: center; padding: 80px 20px;
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
}
.no-posts-emoji { font-size: 72px; display: block; margin-bottom: 16px; }
.no-posts h2 {
  font-family: var(--font-display); font-size: 2rem; color: var(--plum);
  margin-bottom: 12px; font-weight: 600;
}
.no-posts p { color: var(--ink-soft); margin-bottom: 24px; font-size: 1.05rem; }

/* ============== COMMENTS SECTION ============== */
.comments-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, white 0%, var(--paper) 100%);
}
.comments-area {
  max-width: 760px; margin: 0 auto;
}
.comments-title {
  font-family: var(--font-display); font-size: 2rem; color: var(--plum);
  margin-bottom: 32px; font-weight: 600;
}
.comment-list {
  list-style: none; padding: 0; margin: 0 0 48px 0;
}
.comment-list li {
  margin-bottom: 24px;
}
.comment-body {
  background: white; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s;
}
.comment-body:hover { border-color: var(--coral-soft); }
.comment-meta { margin-bottom: 14px; }
.comment-author {
  display: flex; align-items: center; gap: 12px;
}
.comment-author img {
  border-radius: 50%; width: 48px; height: 48px;
}
.comment-author-info { display: flex; flex-direction: column; }
.comment-author-info .fn {
  font-weight: 700; color: var(--plum); font-size: 0.95rem;
  font-style: normal;
}
.comment-author-info .fn a { color: inherit; text-decoration: none; }
.comment-author-info .fn a:hover { color: var(--coral); }
.comment-date {
  font-size: 0.78rem; color: var(--ink-mute);
}
.comment-content {
  color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65;
  margin-left: 60px;
}
.comment-content p { margin-bottom: 10px; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-left: 60px; margin-top: 10px; }
.reply-link, .comment-reply-link {
  font-size: 0.82rem; font-weight: 600;
  color: var(--coral); text-decoration: none;
}
.reply-link:hover, .comment-reply-link:hover { color: var(--coral-dark); }
.comment-list .children {
  list-style: none; padding-left: 32px; margin-top: 16px;
  border-left: 2px solid var(--line);
}

/* Comment Form */
.comment-respond {
  background: white; border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
}
.comment-reply-title {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--plum); margin-bottom: 8px; font-weight: 600;
}
.comment-notes {
  font-size: 0.88rem; color: var(--ink-mute); margin-bottom: 24px;
}
#commentform p { margin-bottom: 18px; }
#commentform label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--plum); margin-bottom: 6px;
}
#commentform .required { color: var(--coral); }
#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--ink); background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
  outline: none; border-color: var(--coral); background: white;
}
#commentform textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-submit { margin-top: 24px; text-align: right; }
#commentform button[type="submit"] {
  background: var(--coral); color: white; border: none;
  padding: 14px 32px; border-radius: 100px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--shadow-coral);
}
#commentform button[type="submit"]:hover {
  background: var(--coral-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,122,89,0.5);
}
.no-comments {
  text-align: center; padding: 30px; color: var(--ink-mute);
  font-style: italic;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 60px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 44px; height: 44px; border-radius: 22px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.92rem;
  background: white; border: 1.5px solid var(--line);
  color: var(--plum); transition: all 0.2s; padding: 0 14px;
}
.pagination a:hover { border-color: var(--coral); color: var(--coral); }
.pagination .current { background: var(--coral); color: white; border-color: var(--coral); }

/* ============== FOOTER ============== */
#site-footer {
  background: #15101F; color: rgba(255,255,255,0.65);
  padding: 60px 0 30px; font-size: 0.92rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-inner.footer-3col {
  grid-template-columns: 2fr 1fr 1fr;
}
.footer-brand { max-width: 300px; }
.footer-brand .site-logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.65; }
.footer-col h4 {
  color: white; font-family: var(--font-display);
  font-size: 1.05rem; margin-bottom: 18px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px; display: flex; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 12px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .hero-section { padding: 60px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .cat-illustration { max-width: 420px; margin: 0 auto; }
  .hero-badge-1 { left: 10px; }
  .hero-badge-2 { right: 10px; }
  .steps-grid, .all-facts-grid { grid-template-columns: 1fr; }
  .age-input-wrap { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2,1fr); }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .post-layout { grid-template-columns: 1fr; gap: 48px; }
  .post-sidebar { position: static; }

  .hamburger { display: flex; }
  #primary-nav {
    position: fixed; top: 78px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 20px 24px; transform: translateY(-120%);
    transition: transform 0.3s;
  }
  #primary-nav.open { transform: translateY(0); }
  #primary-nav ul, #primary-nav .menu {
    flex-direction: column; gap: 12px; align-items: stretch;
  }
  #primary-nav a { padding: 12px 16px; border-radius: 12px; display: block; }
  #primary-nav a:hover { background: var(--cream); }
  .calc-card { padding: 28px; }
}
@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  /* Mobile header - ensure logo fully visible, account for notch */
  #site-header {
    background: rgba(255,253,250,1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-height: 80px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .header-inner {
    padding: 22px 0 18px 0;
    min-height: 80px;
    align-items: center;
  }
  .site-logo {
    font-size: 1.15rem;
    gap: 8px;
    align-items: center;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 1.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .hero-badge-float { padding: 10px 14px; font-size: 0.78rem; }
  .hbf-emoji { width: 30px; height: 30px; font-size: 14px; }
  .hero-badge-1 { top: 10px; left: 0; }
  .hero-badge-2 { bottom: 30px; right: 0; }
  /* Comments mobile */
  .comment-body { padding: 18px; }
  .comment-content { margin-left: 0; margin-top: 14px; }
  .reply { margin-left: 0; }
  .comment-respond { padding: 24px 20px; }
  .comment-list .children { padding-left: 16px; }
  .comments-title { font-size: 1.5rem; }
  .comment-reply-title { font-size: 1.3rem; }
}

/* ============== BACK TO TOP BUTTON ============== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255,122,89,0.4), 0 2px 8px rgba(45,27,61,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
  font-family: inherit;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--coral-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,122,89,0.55), 0 4px 12px rgba(45,27,61,0.15);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(255,122,89,0.4);
  outline-offset: 2px;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 560px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}
