:root {
  --p50: #FAEEDA;
  --p100: #FAC775;
  --p200: #EF9F27;
  --p400: #BA7517;
  --p600: #854F0B;
  --p800: #633806;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #888;
  --bg: #ffffff;
  --bg-soft: #fafaf8;
  --border: #e8e4dc;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--p400); text-decoration: none; }
a:hover { color: var(--p600); text-decoration: underline; }

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

/* NAV */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--p800);
  text-decoration: none;
}
.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--p100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--p400); text-decoration: none; }
.nav-cta {
  background: var(--p200);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--p400); color: #fff !important; }

/* HERO BANNER */
.hero-banner {
  background: var(--p50);
  border-bottom: 1px solid var(--p100);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.hero-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--p800);
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto .75rem;
}
.hero-banner p {
  font-size: 1.05rem;
  color: var(--p600);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.hero-badge {
  display: inline-block;
  background: var(--p100);
  color: var(--p800);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* TOOL WRAPPER */
.tool-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* TOOL CARD */
.pw { max-width: 100%; }
.hero-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--p50);
  border: 0.5px solid var(--p100);
  border-radius: var(--radius-lg);
}
.hero-tool-icon {
  width: 52px; height: 52px;
  background: var(--p100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-tool-title { font-size: 18px; font-weight: 600; color: var(--p800); }
.hero-tool-sub { font-size: 13px; color: var(--p600); margin-top: 2px; }

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.tool-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 1rem;
}
.tool-card-icon {
  width: 28px; height: 28px;
  background: var(--p50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tool-card-title {
  font-size: 11px; font-weight: 600; color: var(--p600);
  text-transform: uppercase; letter-spacing: .07em;
}

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.field input[type=number], .field select {
  width: 100%; height: 38px; padding: 0 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  appearance: auto;
}
.field input[type=number]:focus, .field select:focus {
  border-color: var(--p200);
  box-shadow: 0 0 0 3px var(--p50);
}
.field .helper { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.field .err { font-size: 11px; color: #c0392b; margin-top: 2px; }
.age-badge {
  display: inline-block; font-size: 11px; padding: 2px 9px;
  border-radius: 20px; background: var(--p50); color: var(--p600);
  margin-top: 3px; font-weight: 600;
}

.seg {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px; gap: 3px;
}

.pet-toggle { display: flex; gap: 10px; margin-bottom: 1.25rem; }
.sec-lbl {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
}

.calc-btn {
  width: 100%; height: 48px; border-radius: var(--radius-md);
  border: none; background: var(--p200); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
  margin-top: .5rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.calc-btn:hover { background: var(--p400); }
.calc-btn:active { transform: scale(0.98); }

.results-box {
  background: var(--p50);
  border: 1.5px solid var(--p100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1rem;
}
.kcal-num { font-size: 44px; font-weight: 700; color: var(--p800); line-height: 1; }
.kcal-lbl { font-size: 13px; color: var(--p600); padding-bottom: 6px; }
.res-top { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 1rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0,1fr)); gap: 10px; margin-bottom: 1rem; }
.pcard { background: #fff; border: 1px solid var(--p100); border-radius: 10px; padding: .75rem 1rem; text-align: center; }
.pval { font-size: 22px; font-weight: 700; color: var(--p800); }
.punit { font-size: 11px; color: var(--p600); margin-top: 2px; }
.meals-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: .75rem; }
.mchip { background: #fff; border: 1px solid var(--p100); border-radius: 20px; padding: 4px 14px; font-size: 12px; color: var(--p600); }
.disc { font-size: 11px; color: var(--p600); opacity: .75; padding-top: .75rem; border-top: 1px solid var(--p100); line-height: 1.5; }
.result-empty { text-align: center; padding: 2rem 1rem; color: var(--text-light); font-size: 13px; }

/* CONTENT SECTIONS */
.section { padding: 3.5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--bg-soft); }

.section-title { font-size: 1.5rem; font-weight: 700; color: var(--p800); margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }

/* BLOG CARDS */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); text-decoration: none; }
.blog-card-thumb {
  height: 180px;
  background: var(--p50);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--p100);
}
.blog-card-body { padding: 1.25rem; }
.blog-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--p600); background: var(--p50); padding: 3px 10px;
  border-radius: 20px; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .05em;
}
.blog-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: .4rem; line-height: 1.35; }
.blog-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.blog-card-meta { font-size: 12px; color: var(--text-light); margin-top: .75rem; }

/* HOW IT WORKS */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; }
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--p200); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  margin: 0 auto 1rem;
}
.step-card h3 { font-size: 15px; font-weight: 700; color: var(--p800); margin-bottom: .4rem; }
.step-card p { font-size: 13px; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--p400); font-weight: 400; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { font-size: 14px; color: var(--text-muted); margin-top: .6rem; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* FOOTER */
.footer {
  background: var(--p800);
  color: #e8d5b7;
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.footer-desc { font-size: 13px; line-height: 1.7; opacity: .75; }
.footer h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--p100); margin-bottom: .75rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul a { font-size: 13px; color: #e8d5b7; opacity: .8; text-decoration: none; }
.footer ul a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.25rem;
  font-size: 12px; opacity: .5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* BLOG POST PAGE */
.blog-hero {
  background: var(--p50);
  border-bottom: 1px solid var(--p100);
  padding: 3rem 1.5rem 2.5rem;
}
.blog-hero-inner { max-width: 760px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; color: var(--p800); line-height: 1.3; margin-bottom: .75rem; }
.blog-meta { font-size: 13px; color: var(--p600); display: flex; gap: 1rem; flex-wrap: wrap; }

.blog-content-wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.blog-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--p800); margin: 2rem 0 .6rem; }
.blog-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--p600); margin: 1.5rem 0 .5rem; }
.blog-content p { margin-bottom: 1rem; color: var(--text); font-size: 15px; line-height: 1.8; }
.blog-content ul, .blog-content ol { margin: 0 0 1rem 1.5rem; }
.blog-content li { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: .3rem; }
.blog-content .callout {
  background: var(--p50); border-left: 4px solid var(--p200);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; font-size: 14px; color: var(--p800);
}
.blog-content .placeholder-block {
  background: var(--bg-soft); border: 2px dashed var(--border);
  border-radius: var(--radius-md); padding: 2rem; text-align: center;
  color: var(--text-light); font-size: 14px; margin: 1.5rem 0;
}

.cta-box {
  background: var(--p50); border: 1.5px solid var(--p100);
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-align: center; margin: 2.5rem 0;
}
.cta-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--p800); margin-bottom: .4rem; }
.cta-box p { font-size: 14px; color: var(--p600); margin-bottom: 1rem; }
.cta-box a {
  display: inline-block;
  background: var(--p200); color: #fff;
  padding: 10px 28px; border-radius: 24px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background .15s;
}
.cta-box a:hover { background: var(--p400); text-decoration: none; color: #fff; }

@media (max-width: 640px) {
  .g2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
