:root {
  --brand: #F87027;
  --brand-dark: #d95712;
  --brand-deep: #9a3609;
  --brand-soft: #fff1e8;
  --brand-soft-2: #fff7f1;
  --brand-soft-3: #ffe1cf;
  --ink: #15110f;
  --muted: #6f625a;
  --line: #f0dfd4;
  --card: #ffffff;
  --surface: #fffaf6;
  --footer: #24120a;
  --success: #21a67a;
  --shadow: 0 24px 60px rgba(86, 37, 10, 0.10);
  --shadow-soft: 0 14px 34px rgba(86, 37, 10, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  fill: none;
}
.icon-inline {
  width: 17px;
  height: 17px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(248,112,39,.38);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: 84px 0;
}
.section-tight { padding: 54px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #ffe4d2;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(248,112,39,.14);
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}
h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 660px;
}
.title-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}
.title-wrap .lead { margin-bottom: 0; }
.text-brand { color: var(--brand-dark); }
body[data-page="home"] h1,
body[data-page="home"] h2 { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 246, .86);
  border-bottom: 1px solid rgba(240, 223, 212, .78);
}
.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  width: 116px;
  height: 52px;
  position: relative;
  flex: 0 0 116px;
  font-size: 0;
}
.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/brand/calri-logo-color.png') center / contain no-repeat;
}
.logo > * { visibility: hidden; }
.site-footer .logo::before { background-image: url('../images/brand/calri-logo-white.png'); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
  color: #37231a;
}
.nav-links a { position: relative; }
.nav-links a:hover,
.nav-links a.active { color: var(--brand-dark); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
  position: relative;
}
.mobile-toggle span::before { position: absolute; top: -6px; }
.mobile-toggle span::after { position: absolute; top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 15px 30px rgba(248, 112, 39, .28);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: #ffd9c3;
  box-shadow: var(--shadow-soft);
}
.btn-soft {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #ffd9c3;
}
.btn-small { min-height: 44px; padding: 11px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.contact-card .btn,
.calculator-sidebar .btn,
.app-download-copy .btn {
  margin-top: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 15%, rgba(248,112,39,.15), transparent 19%),
    radial-gradient(circle at 92% 18%, rgba(248,112,39,.13), transparent 24%),
    linear-gradient(180deg, #fff8f2 0%, #fff 72%);
  padding: 74px 0 38px;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(248,112,39,.10);
  pointer-events: none;
}
.hero::before { width: 380px; height: 380px; left: -170px; top: 130px; }
.hero::after { width: 460px; height: 460px; right: -220px; bottom: 90px; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
  justify-items: stretch;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
}
.hero-copy {
  max-width: 620px;
  text-align: left;
}
.hero-copy h1 {
  max-width: 620px;
  text-align: left;
  font-size: clamp(44px, 4.6vw, 64px);
}
.hero-copy .lead {
  margin-bottom: 28px;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 0;
}
.hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}
.hero-visual img {
  width: min(100%, 560px);
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(71, 31, 10, .16));
}
.trust-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.progress-list { display: grid; gap: 10px; }
.progress-row { display: grid; grid-template-columns: 65px 1fr 45px; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.progress-track { height: 8px; background: #f5e3d9; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: inherit; }

.stats-strip {
  position: relative;
  z-index: 4;
  margin-top: -12px;
}
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(240, 223, 212, .9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: 0; }
.icon-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.icon-badge .icon { width: 23px; height: 23px; }
.stat-item strong { display: block; font-size: 18px; line-height: 1.1; }
.stat-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-grid { grid-template-columns: repeat(6, 1fr); }
.feature-grid .feature-card { grid-column: span 2; }
.feature-grid .feature-card:nth-child(4) { grid-column: 2 / span 2; }
.feature-grid .feature-card:nth-child(5) { grid-column: 4 / span 2; }
.step-card,
.feature-card,
.goal-card,
.testimonial,
.blog-card,
.price-card,
.contact-card,
.recipe-card,
.planner-day,
.detail-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.steps-grid { align-items: center; }
.step-card {
  padding: 18px 0 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(130px, 1.08fr);
  gap: 8px;
  align-items: center;
  overflow: hidden;
}
.step-copy {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
}
.step-copy h3 { margin-bottom: 12px; }
.step-copy p { margin-bottom: 0; color: var(--muted); }
.step-visual {
  background: var(--brand-soft-2);
  border: 1px solid #ffe3d2;
  border-radius: 20px;
  min-height: 130px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step-visual img { width: 150px; }
.feature-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  min-height: 150px;
}
.feature-card p,
.goal-card p,
.blog-card p,
.price-card p,
.contact-card p,
.recipe-card p,
.detail-card p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.feature-card h3 { margin-bottom: 8px; }

.showcase {
  background: linear-gradient(135deg, #fff7f1 0%, #fff 58%, #ffefe4 100%);
  border: 1px solid #ffe0cd;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: 42px;
  overflow: hidden;
  position: relative;
}
.showcase::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(248,112,39,.10);
  right: -90px;
  top: -90px;
}
.showcase-images { position: relative; min-height: 360px; }
.showcase-images img:first-child {
  width: 300px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.showcase-images img:last-child {
  width: 270px;
  position: absolute;
  right: 18px;
  bottom: 12px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nutrition-section { padding: 36px 0; }
.nutrition-showcase {
  grid-template-columns: minmax(340px, .95fr) minmax(0, 1.05fr);
  gap: 34px;
  padding: 32px 36px;
}
.nutrition-showcase .showcase-images.showcase-single {
  min-height: 0;
  align-self: center;
}
.nutrition-showcase .showcase-images.showcase-single .showcase-main-image {
  width: min(100%, 480px);
  height: auto;
  max-height: none;
}
.nutrition-showcase .showcase-copy {
  position: relative;
  z-index: 2;
}
.check-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #332019;
  font-weight: 800;
  font-size: 14px;
}
.check-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
  flex: 0 0 22px;
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.tip-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 22px; align-items: stretch; }
.tip-copy { padding: 8px 0; }
.left-copy { text-align: left; }
body[data-page="home"] .left-copy h2 { text-align: left; }
.left-copy .lead { margin-right: auto; }
.tip-copy.left-copy,
.app-download-copy.left-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.app-download-copy .trust-row { justify-content: flex-start; }
.tip-card-row { display: grid; grid-template-columns: .82fr 1.18fr; gap: 22px; }
.tip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.tip-card strong { display: block; margin-bottom: 10px; }
.tip-card p { margin-bottom: 0; color: var(--muted); }
.progress-card .progress-list {
  flex: 1;
  align-content: center;
  gap: 22px;
}
.progress-card .progress-row {
  grid-template-columns: 68px minmax(130px, 1fr) 92px;
  gap: 12px;
  font-size: 12px;
}
.progress-card .progress-track { height: 11px; background: #f3e9e2; }
.progress-card .progress-calories .progress-fill { background: var(--brand); }
.progress-card .progress-protein .progress-fill { background: #3d9bd6; }
.progress-card .progress-steps .progress-fill { background: #35a36f; }
.tip-food {
  width: 58px;
  height: 58px;
  margin-top: 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.tip-food .icon { width: 30px; height: 30px; }
.category-scroll,
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(108px, 1fr));
  gap: 14px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border .2s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: #ffc19d; }
.category-card img { width: 100%; aspect-ratio: 1.05; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.category-card strong { font-size: 13px; }

.goals-section { padding: 68px 0; }
.goal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(135px, .82fr);
  gap: 10px;
  align-items: end;
  padding: 22px 10px 0 22px;
  overflow: hidden;
}
.goal-card > div {
  align-self: center;
  padding-bottom: 22px;
}
.goal-card img {
  width: min(100%, 175px);
  height: 220px;
  justify-self: end;
  align-self: end;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
  filter: drop-shadow(0 16px 22px rgba(86, 37, 10, .10));
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.testimonial { padding: 24px; }
.quote-mark { color: var(--brand); }
.quote-mark .icon { width: 30px; height: 30px; }
.testimonial p { color: #332019; font-weight: 700; }
.author { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.author .avatar .icon { width: 23px; height: 23px; }
.avatar-photo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 5px 16px rgba(86,37,10,.14);
}
.author strong { display: block; font-size: 14px; }
.author span { color: var(--muted); font-size: 12px; font-weight: 800; }
.stars {
  width: 80px;
  height: 16px;
  margin-top: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffad33' d='m12 2.8 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-2.9L6.4 20l1.1-6.2L3 9.4l6.2-.9L12 2.8Z'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: .72fr 1.28fr auto;
  gap: 26px;
  align-items: center;
  box-shadow: 0 28px 60px rgba(248,112,39,.25);
  overflow: hidden;
}
.cta-band .icon-large {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.cta-band .icon-large .icon { width: 46px; height: 46px; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.84); margin: 0; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-copy { position: relative; z-index: 1; }
.app-download-showcase .trust-row { margin-top: 22px; }
.app-download-showcase .trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.app-download-showcase .showcase-main-image {
  width: min(100%, 460px) !important;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.site-footer {
  background: var(--footer);
  color: #fff7f1;
  padding: 62px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-grid p { color: rgba(255,255,255,.68); font-size: 14px; }
.footer-col h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.68); font-size: 14px; margin: 9px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 24px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials .icon { width: 17px; height: 17px; }
.socials a:empty::before {
  content: '';
  width: 17px;
  height: 17px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.socials a[aria-label="Instagram"]:empty::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.4' cy='6.7' r='1.2' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.4' cy='6.7' r='1.2' fill='black'/%3E%3C/svg%3E");
}
.socials a[aria-label="Facebook"]:empty::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 21v-8h3l.5-4H14V7c0-1.2.4-2 2.2-2H18V1.4c-.8-.1-1.8-.2-3-.2-3 0-5 1.8-5 5.2V9H7v4h3v8h4Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 21v-8h3l.5-4H14V7c0-1.2.4-2 2.2-2H18V1.4c-.8-.1-1.8-.2-3-.2-3 0-5 1.8-5 5.2V9H7v4h3v8h4Z' fill='black'/%3E%3C/svg%3E");
}
.socials a[aria-label="X"]:empty::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h4.8l4.3 5.8L18.2 3H20l-6.1 7.1L20.5 21h-4.8l-4.8-6.5L5.3 21H3.5l6.6-7.8L4 3Zm3.9 1.5H6.8l9.8 15h1.1l-9.8-15Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h4.8l4.3 5.8L18.2 3H20l-6.1 7.1L20.5 21h-4.8l-4.8-6.5L5.3 21H3.5l6.6-7.8L4 3Zm3.9 1.5H6.8l9.8 15h1.1l-9.8-15Z' fill='black'/%3E%3C/svg%3E");
}
.socials a[aria-label="TikTok"]:empty::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3c.5 2.7 2 4.3 5 4.5v3.3a9.2 9.2 0 0 1-5-1.5v6.2A5.5 5.5 0 1 1 10.5 10v3.5a2.3 2.3 0 1 0 1.2 2V3H15Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3c.5 2.7 2 4.3 5 4.5v3.3a9.2 9.2 0 0 1-5-1.5v6.2A5.5 5.5 0 1 1 10.5 10v3.5a2.3 2.3 0 1 0 1.2 2V3H15Z' fill='black'/%3E%3C/svg%3E");
}

.page-hero {
  background: linear-gradient(180deg, #fff7f1 0%, #fff 100%);
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.page-hero .breadcrumbs { justify-content: center; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.breadcrumbs a { color: var(--brand-dark); }

.recipes-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 26px;
  align-items: start;
}
.filters-panel {
  position: sticky;
  top: 98px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.filter-group { display: grid; gap: 10px; margin-bottom: 18px; }
.filter-group label,
.field label { font-weight: 900; font-size: 13px; color: #352118; }
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #ead5c7;
  background: #fffdfb;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  outline: none;
}
.textarea { min-height: 130px; padding-top: 12px; resize: vertical; }
.input:focus,
.select:focus,
.textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(248,112,39,.12); }
.range-note { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 800; }
.checkbox-grid { display: grid; gap: 8px; }
.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #3b281f;
}
.check-option input { accent-color: var(--brand); }
.recipes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.recipes-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}
.recipes-toolbar .select {
  width: min(220px, 45%);
  min-width: 0;
}
.recipe-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.recipe-card { overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.recipe-card:hover { transform: translateY(-4px); border-color: #ffc19d; }
.recipe-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.recipe-card-body { padding: 18px; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.macro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 0;
}
.macro-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff8f3;
  border: 1px solid #ffe4d2;
  border-radius: 14px;
  padding: 9px;
  white-space: nowrap;
}
.macro-stat span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.macro-stat b {
  display: block;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.2;
}
.recipe-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}
.recipe-actions .btn {
  width: 100%;
  min-height: 48px;
}
.save-btn.saved { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
  border: 1px dashed #f2cdb8;
  border-radius: var(--radius-lg);
  background: #fff8f3;
}

.detail-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 28px; align-items: start; }
.detail-image-card { position: sticky; top: 98px; }
.detail-card { padding: 26px; margin-bottom: 20px; }
.recipe-detail-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.08;
}
.detail-card h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -.035em;
}
.detail-image-card img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.recipe-media-shell {
  position: relative;
  display: block;
  margin-bottom: 20px;
}
.plant-gallery,
.recipe-gallery {
  display: block;
}
.plant-gallery-open {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}
.recipe-gallery-open,
.recipe-thumb-open {
  overflow: hidden;
  border: 1px solid rgba(248, 112, 39, .18);
  box-shadow: var(--shadow-soft);
}
.recipe-gallery-open {
  display: block;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.recipe-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, #fff4ec 0%, #fff 100%);
  transition: transform .3s ease, filter .3s ease;
}
.recipe-gallery-open:hover .recipe-gallery-image,
.recipe-thumb-open:hover .recipe-gallery-image {
  transform: scale(1.025);
  filter: saturate(1.05);
}
.recipe-gallery-image-main {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}
.plant-thumbs,
.recipe-thumbs {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recipe-gallery-thumb-image {
  aspect-ratio: 1.38;
}
.recipe-share-bar {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateY(-50%);
  border: 1px solid rgba(28, 107, 67, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 42px rgba(64, 31, 14, .11);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
}
.recipe-share-label {
  writing-mode: horizontal-tb;
  transform: none;
  color: #5d746a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-inline: 6px 2px;
}
.recipe-share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recipe-share-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eefaf4;
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.recipe-share-button:hover,
.recipe-share-button:focus-visible,
.recipe-share-button.copied {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
}
.recipe-share-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.nutrition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nutrition-box { background: var(--brand-soft-2); border: 1px solid #ffe4d2; border-radius: 16px; padding: 14px; text-align: center; }
.nutrition-box strong { display:block; font-size: 22px; }
.nutrition-box span { color: var(--muted); font-size: 12px; font-weight: 800; }
.list-clean { padding-left: 18px; margin: 0; color: #37231a; font-weight: 700; }
.list-clean li { margin: 8px 0; }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps-list li::before { content: counter(step); width: 34px; height: 34px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; }

.planner-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.planner-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.summary-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.summary-box span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.summary-box strong { display: block; font-size: 30px; letter-spacing: -0.045em; }
.planner-grid { display: grid; grid-template-columns: repeat(7, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.planner-day { padding: 18px; min-width: 220px; }
.planner-day h3 { margin-bottom: 13px; }
.meal-slot { display: grid; gap: 8px; margin-bottom: 14px; }
.meal-slot label { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day-total { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; font-weight: 900; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { overflow: hidden; }
.blog-card img { aspect-ratio: 1.5; object-fit: cover; width: 100%; }
.blog-card-body { padding: 22px; }
.blog-meta { color: var(--brand-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.price-card { padding: 28px; position: relative; overflow: hidden; }
.price-card.featured { border-color: #ffc19d; box-shadow: 0 24px 60px rgba(248,112,39,.15); }
.price-card.featured::before { content: 'Popular'; position: absolute; right: 20px; top: 20px; background: var(--brand); color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.price { font-size: 42px; font-weight: 900; letter-spacing: -0.06em; margin: 14px 0; }
.price small { font-size: 15px; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 26px; align-items: start; }
.contact-card { padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field.full { grid-column: 1 / -1; }
.form-message { margin-top: 14px; color: var(--brand-dark); font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1040px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-links a.active::after,
  .nav-links a:hover::after { display: none; }
  .mobile-toggle { display: flex; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .showcase,
  .tip-grid,
  .detail-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .card-grid,
  .card-grid.four,
  .recipe-results,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid .feature-card,
  .feature-grid .feature-card:nth-child(4),
  .feature-grid .feature-card:nth-child(5) { grid-column: auto; }
  .recipes-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .category-scroll,
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-image-card { position: static; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, var(--container)); }
  .navbar { height: 68px; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-links a.active::after,
  .nav-links a:hover::after { display: none; }
  .mobile-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: 44px; }
  .stats-card,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .recipe-results,
  .tip-card-row,
  .planner-summary,
  .blog-grid,
  .form-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
  .category-scroll,
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .goal-card { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .showcase-images { min-height: 300px; }
  .showcase-images img:first-child { width: 250px; }
  .showcase-images img:last-child { width: 210px; }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .recipes-toolbar, .planner-toolbar { flex-direction: column; align-items: stretch; }
  h1 { letter-spacing: -0.055em; }
}

/* Optimized homepage imagery using the uploaded CALRI assets */
.hero {
  background-image:
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
    url('../images/home/hero-background-calri.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 88px 0 74px;
}
.hero::before,
.hero::after { display: none; }
.hero-grid { min-height: 520px; }
.hero-copy { padding: 30px 0; }
.step-visual-real {
  min-height: 0;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  align-items: center;
  padding: 0;
}
.step-visual-real img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
}
.showcase-images.showcase-single {
  min-height: auto;
  display: grid;
  place-items: center;
  z-index: 2;
}
.showcase-images.showcase-single picture { width: 100%; }
.showcase-images.showcase-single .showcase-main-image {
  width: min(100%, 560px);
  border-radius: 32px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.showcase-images.showcase-single::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(248,112,39,.09);
  left: -42px;
  bottom: -46px;
  z-index: 0;
}

@media (max-width: 1080px) {
  .hero {
    background-image:
      linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)),
      url('../images/home/hero-background-calri.webp');
  }
  .hero-grid { min-height: auto; }
  .hero-copy { padding: 36px 0; }
  .hero-copy,
  .hero-copy h1 { max-width: 720px; }
  .hero-visual img { width: min(100%, 500px); }
  .nutrition-showcase {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
  .nutrition-showcase .showcase-images.showcase-single .showcase-main-image {
    width: min(100%, 560px);
  }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .hero {
    background-image:
      linear-gradient(rgba(255,255,255,.56), rgba(255,255,255,.56)),
      url('../images/home/hero-background-calri.webp');
    background-size: cover;
    background-position: center;
    padding: 60px 0 54px;
  }
  .hero-grid { gap: 12px; }
  .hero-copy { padding-bottom: 10px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 54px); }
  .hero-visual img { width: min(100%, 390px); }
  .step-card {
    padding: 16px 0 16px 18px;
    grid-template-columns: minmax(0, .95fr) minmax(125px, 1.05fr);
  }
  .step-copy { padding: 0; }
  .step-number { margin-bottom: 16px; }
  .step-visual-real img { max-height: 230px; }
  .nutrition-section { padding: 28px 0; }
  .nutrition-showcase { padding: 22px; gap: 22px; }
  .progress-card .progress-row { grid-template-columns: 62px minmax(90px, 1fr) 82px; gap: 9px; }
  .goal-card {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
    padding: 20px 8px 0 20px;
  }
  .goal-card > div { padding-bottom: 20px; }
  .goal-card img {
    width: 132px;
    height: 172px;
    justify-self: end;
  }
  .testimonial-grid { grid-template-columns: 1fr; }
  .showcase-images.showcase-single .showcase-main-image {
    width: 100%;
    border-radius: 24px;
  }
}

/* Shared navigation, inner-page heroes, calculators, and recipe catalog */
body[data-page="home"] .hero-copy h1 { text-align: left; }
.hero-visual { transform: translateY(-20px); }

.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown > a::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  order: 2;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 30;
  width: 310px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #37231a;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.page-hero {
  height: 300px;
  min-height: 300px;
  padding: 18px 0;
  display: flex;
  align-items: center;
}
.page-hero-inner {
  width: min(var(--container), calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
  text-align: left;
}
.page-hero .breadcrumbs { justify-content: flex-start; }
.page-hero .breadcrumbs { margin-bottom: 12px; }
.page-hero h1 {
  max-width: 940px;
  margin: 10px 0 8px;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-align: left;
}
.page-hero .lead {
  max-width: 820px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.page-hero.recipe-detail-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.08;
}

.calculator-section { background: #fffaf6; }
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(260px, 1fr);
  gap: 34px;
  align-items: start;
}
.calculator-widget { min-width: 0; }
.calculator-widget [class$="-hdr-icon"] {
  font-size: 0 !important;
}
.calculator-widget [class$="-hdr-icon"]::before {
  content: '';
  width: 25px;
  height: 25px;
  display: block;
  background: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm1 4v3h3V6H8Zm5 0v3h3V6h-3ZM8 11v3h3v-3H8Zm5 0v3h3v-3h-3Zm-5 5v3h3v-3H8Zm5 0v3h3v-3h-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm1 4v3h3V6H8Zm5 0v3h3V6h-3ZM8 11v3h3v-3H8Zm5 0v3h3v-3h-3Zm-5 5v3h3v-3H8Zm5 0v3h3v-3h-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.calculator-widget [class$="-v-icon"]:empty { display: none !important; }
.calculator-sidebar {
  position: sticky;
  top: 98px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.calculator-sidebar h2 {
  margin-top: 16px;
  font-size: 30px;
  text-align: left;
}
.calculator-sidebar p { color: var(--muted); }
.section-heading-left {
  max-width: 760px;
  margin-bottom: 30px;
}
.section-heading-left h2 {
  margin-top: 14px;
  text-align: left;
}
.calculator-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.calculator-related-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease;
}
.calculator-related-card:hover {
  transform: translateY(-4px);
  border-color: #ffc19d;
}
.calculator-related-card span {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.calculator-related-card h3 { margin: 10px 0 8px; }
.calculator-related-card p {
  color: var(--muted);
  font-size: 13px;
}
.calculator-related-card strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.sitemap-section {
  background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
}
.sitemap-layout {
  display: grid;
  gap: 34px;
}
.sitemap-group {
  display: grid;
  gap: 18px;
}
.sitemap-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sitemap-card {
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: start;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sitemap-card:hover,
.sitemap-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(248, 112, 39, .38);
  box-shadow: 0 18px 46px rgba(67, 33, 17, .12);
}
.sitemap-card strong {
  color: var(--ink);
  font-size: 18px;
}
.sitemap-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.sitemap-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sitemap-pill-grid a {
  padding: 11px 16px;
  border: 1px solid rgba(248, 112, 39, .22);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}
.sitemap-recipe-grid {
  max-height: 620px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.sitemap-recipe-grid a {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #42271a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.sitemap-recipe-grid a:hover,
.sitemap-recipe-grid a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.legal-section {
  padding-top: 58px;
  background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}
.legal-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.035em;
  text-align: left;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 650;
}
.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ffe0cd;
  border-radius: 999px;
  background: #fff8f3;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.legal-summary {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff8f3 0%, #fff 100%);
  box-shadow: var(--shadow-soft);
}
.legal-summary h2 {
  margin: 0 0 12px;
  font-size: 22px;
  text-align: left;
}
.legal-summary nav {
  display: grid;
  gap: 8px;
}
.legal-summary a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #5f4b41;
  font-weight: 850;
}
.legal-summary a:hover {
  border-color: #ffd8c2;
  background: #fff;
  color: var(--brand-dark);
}
.legal-notice {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #ffe0cd;
  border-radius: 16px;
  background: #fff8f3;
  color: #5f4b41;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.filters-panel input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}
.recipe-card { position: relative; }

.seo-link-grid,
.faq-grid,
.recipe-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.seo-link-card,
.faq-card,
.recipe-cta-card,
.recipe-support-card,
.mini-calculator {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.seo-link-card {
  display: grid;
  gap: 8px;
  transition: transform .2s ease, border-color .2s ease;
}
.seo-link-card:hover,
.seo-link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(248,112,39,.38);
}
.seo-link-card span,
.recipe-support-card span {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.seo-link-card p,
.faq-card p,
.recipe-support-card p,
.recipe-cta-card p {
  color: var(--muted);
  margin: 0;
}
.faq-card h3,
.recipe-support-card h3 {
  margin: 8px 0;
  font-size: 18px;
}
.recipe-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}
.recipe-cta-card h2 {
  margin: 0 0 8px;
  color: #fff;
  text-align: left;
  font-size: clamp(24px, 3vw, 34px);
}
.recipe-cta-card p { color: rgba(255,255,255,.86); }
.recipe-cta-card .btn {
  background: #fff;
  color: var(--brand-dark);
}
.nutrition-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.nutrition-table th,
.nutrition-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.nutrition-table th {
  width: 48%;
  background: var(--brand-soft-2);
  color: #4b2b1d;
  font-weight: 900;
}
.nutrition-table tr:last-child th,
.nutrition-table tr:last-child td {
  border-bottom: 0;
}
.mini-calculator {
  display: grid;
  gap: 16px;
}
.mini-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mini-calculator label {
  display: grid;
  gap: 7px;
  color: #4b2b1d;
  font-weight: 900;
  font-size: 13px;
}
.mini-calculator input,
.mini-calculator select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
.mini-result {
  padding: 18px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 900;
}
.mini-result strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}
.content-note {
  padding: 16px 18px;
  border: 1px solid #ffe0cd;
  border-radius: 18px;
  background: #fff8f3;
  color: #5f4b41;
  font-size: 14px;
  font-weight: 750;
}
.recipe-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.recipe-image-link img {
  transition: transform .35s ease, filter .35s ease;
}
.recipe-card:hover .recipe-image-link img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.recipe-card-body { padding: 18px 18px 20px; }
.recipe-card-body h3 { margin-bottom: 8px; }
.recipe-card-body > p {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipe-quick-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.recipe-quick-stats strong { color: var(--ink); }
.recipe-pagination {
  display: flex;
  justify-content: center;
  min-height: 80px;
  padding-top: 28px;
}
.recipe-pagination [hidden] { display: none; }
.recipe-overview p { color: var(--muted); margin-bottom: 0; }
.detail-media-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: zoom-in;
}
.detail-media-trigger img {
  aspect-ratio: 1.2;
  object-fit: cover;
  background: var(--brand-soft);
}
.related-recipes-card { padding-bottom: 30px; }
.related-recipe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.related-recipe-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.related-recipe-card .recipe-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.related-recipe-card .recipe-actions {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}
.related-recipe-card .recipe-actions .btn {
  min-height: 48px;
}

.media-viewer[hidden] { display: none; }
.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px 72px;
  background: rgba(20, 10, 5, .86);
  backdrop-filter: blur(8px);
}
.media-viewer-content {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  justify-items: center;
}
.media-viewer-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}
.media-viewer-caption {
  margin: 12px 56px 0;
  color: #fff;
  text-align: center;
  font-weight: 700;
}
.media-viewer-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.media-viewer-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.media-viewer-close:hover,
.media-viewer-close:focus-visible {
  transform: translateY(-1px);
  background: var(--brand);
  color: #fff;
}
.media-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  color: var(--brand-dark);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.media-viewer.has-gallery .media-viewer-nav {
  display: grid;
}
.media-viewer-nav svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.media-viewer-prev { left: -70px; }
.media-viewer-next { right: -70px; }
.media-viewer-nav:hover,
.media-viewer-nav:focus-visible {
  background: var(--brand);
  color: #fff;
}
.media-viewer-prev:hover,
.media-viewer-prev:focus-visible { transform: translate(-2px, -50%); }
.media-viewer-next:hover,
.media-viewer-next:focus-visible { transform: translate(2px, -50%); }
.media-viewer-open { overflow: hidden; }

@media (max-width: 1080px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-sidebar { position: static; }
  .calculator-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-summary { position: static; }
}

@media (max-width: 1040px) {
  .nav-dropdown > a { display: flex; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    max-height: none;
    display: grid;
    padding: 4px 8px 8px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown-menu a {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
  }
}

@media (max-width: 780px) {
  .hero-visual { transform: translateY(-20px); }
  .page-hero { height: 300px; min-height: 300px; padding: 18px 0; }
  .page-hero-inner { width: min(100% - 28px, var(--container)); }
  .page-hero h1 { font-size: clamp(34px, 9vw, 42px); }
  .page-hero .lead { -webkit-line-clamp: 1; }
  .recipe-media-shell {
    display: block;
  }
  .recipe-share-bar {
    right: 12px;
    max-width: calc(100% - 24px);
    border-radius: 22px;
    padding: 8px;
    gap: 8px;
    align-items: center;
  }
  .recipe-share-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
    padding-inline: 4px 0;
  }
  .recipe-share-actions {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
  }
  .recipe-share-button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }
  .seo-link-grid,
  .faq-grid,
  .recipe-support-grid,
  .mini-calculator-grid {
    grid-template-columns: 1fr;
  }
  .recipe-cta-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .calculator-related-grid,
  .related-recipe-grid,
  .sitemap-card-grid,
  .sitemap-recipe-grid { grid-template-columns: 1fr; }
  .calculator-section { padding: 48px 0; }
  .calculator-sidebar { padding: 22px; }
  .recipes-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .recipes-toolbar .select { width: min(170px, 48%); }
  .media-viewer { padding: 14px; }
  .media-viewer-content { width: 100%; }
  .media-viewer-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
  .media-viewer-prev { left: 10px; }
  .media-viewer-next { right: 10px; }
  .media-viewer-nav {
    width: 44px;
    height: 44px;
  }
  .media-viewer-nav svg {
    width: 26px;
    height: 26px;
  }
  .media-viewer-image { max-height: calc(100vh - 90px); }
  .media-viewer-caption { margin-inline: 44px; font-size: 13px; }
}
