/*
 * DietPal design system — ported from the Replit homepage mockup.
 * Everything is scoped to .dietpal-page, which header.php opens and footer.php closes.
 */

.dietpal-page {
  --dp-forest: #174c35;
  --dp-leaf: #2a6844;
  --dp-citrus: #d4e64a;
  --dp-ink: #23392e;
  --dp-muted: #63766a;
  --dp-cream: #f8f8f1;
  --dp-paper: #fffef9;
  --dp-line: #e5e9dc;
  color: var(--dp-ink);
  background: var(--dp-paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow: hidden;
}
.dietpal-page * { box-sizing: border-box; }
.dietpal-page a { color: inherit; }
.dietpal-page a:hover { color: inherit; }
.dietpal-page img { display: block; max-width: 100%; height: auto; }
.dietpal-page svg { display: inline-block; vertical-align: middle; }

/* Elementor wrappers: let the design control all spacing */
.dietpal-page .e-con.dp-block {
  --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0;
  --gap: 0; --row-gap: 0; --column-gap: 0;
  padding: 0; gap: 0;
}
.dietpal-page .dp-block > .elementor-widget-html,
.dietpal-page .dp-block > .e-con-inner > .elementor-widget-html { width: 100%; margin: 0; }
.dietpal-page .elementor-widget-html > .elementor-widget-container { margin: 0; padding: 0; }

.dp-skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px;
  background: var(--dp-forest); color: #fffdf3 !important; font-weight: 700; text-decoration: none;
}
.dp-skip-link:focus { left: 8px; }

.dp-container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.dp-announcement {
  min-height: 38px; display: flex; align-items: center; justify-content: center;
  padding: 7px 20px; text-align: center; color: #f6f5e8; background: var(--dp-forest);
  font-size: 12px; letter-spacing: .035em;
}
.dp-announcement strong { color: var(--dp-citrus); font-weight: 700; }
.dp-header { background: var(--dp-paper); border-bottom: 1px solid rgba(23,76,53,.08); }
.dp-header-inner {
  min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.dp-brand { display: block; flex: 0 0 190px; }
.dp-brand img { width: 188px; height: auto; }
.dp-nav, .dp-nav ul { display: flex; align-items: center; justify-content: center; gap: 32px; }
.dp-nav ul, .dp-footer-nav ul { margin: 0; padding: 0; list-style: none; }
.dp-nav a {
  color: #425b4c; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color .18s ease;
}
.dp-nav a:hover, .dp-nav a:focus-visible, .dp-nav .current-menu-item > a { color: var(--dp-leaf); }
.dp-header-cta {
  text-decoration: none; display: inline-flex; min-height: 46px; padding: 0 21px;
  align-items: center; justify-content: center; gap: 10px; border-radius: 3px;
  background: var(--dp-forest); color: #fffdf3 !important; font-weight: 700; font-size: 14px;
  transition: background .18s ease, transform .18s ease;
}
.dp-header-cta:hover { background: var(--dp-leaf); transform: translateY(-1px); }
.dp-header-cta:focus-visible, .dp-btn:focus-visible, .dp-arrow-link:focus-visible,
.dp-nav a:focus-visible, .dp-footer a:focus-visible { outline: 3px solid #b4c933; outline-offset: 4px; }
.dp-hero { padding: 44px 0 46px; background: var(--dp-cream); }
.dp-hero-inner { display: flex; align-items: center; gap: 8.4%; }
.dp-hero-copy { flex: 1 1 54%; padding-block: 18px; }
.dp-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 19px;
  color: var(--dp-leaf); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
}
.dp-eyebrow:before { content: ''; width: 24px; height: 2px; background: var(--dp-citrus); }
.dp-hero h1, .dp-section-heading h2, .dp-coach-copy h2, .dp-support h2 {
  font-family: 'Manrope', sans-serif; letter-spacing: -.045em; font-weight: 700;
}
.dp-hero h1 {
  max-width: 660px; margin: 0 0 21px; color: var(--dp-forest);
  font-size: clamp(42px, 5.1vw, 68px); line-height: 1.08;
}
.dp-hero h1 em { color: var(--dp-leaf); font-style: normal; }
.dp-hero-copy > p:not(.dp-eyebrow) {
  max-width: 555px; margin: 0 0 28px; color: #576d60; font-size: 18px; line-height: 1.65;
}
.dp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dp-btn {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 11px;
  border-radius: 3px; padding: 0 23px; text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.dp-btn-primary { color: #fffdf4 !important; background: var(--dp-forest); }
.dp-btn-primary:hover { background: var(--dp-leaf); transform: translateY(-1px); }
.dp-btn-secondary { color: var(--dp-forest) !important; border: 1px solid #b8c6b7; background: transparent; }
.dp-btn-secondary:hover { background: #eef1e5; }
.dietpal-page p.dp-hero-note { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; color: #65766b; font-size: 13px; }
.dp-hero-note svg { color: var(--dp-leaf); flex: none; }
.dp-hero-visual { flex: 0 1 43%; min-width: 0; position: relative; }
.dp-portrait-frame {
  position: relative; max-width: 450px; margin-left: auto; overflow: hidden;
  aspect-ratio: 1 / 1.05; border-radius: 46% 46% 4px 4px; background: #d9e3d4;
}
.dp-portrait-frame:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(19,53,37,.28));
  pointer-events: none;
}
.dietpal-page .dp-portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.dp-photo-caption {
  position: absolute; z-index: 1; left: 22px; bottom: 19px; color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,.24); font-size: 13px; font-weight: 600;
}
.dp-photo-caption span { display: block; font-size: 11px; font-weight: 400; opacity: .9; }
.dp-member-mark {
  width: 205px; position: absolute; right: -23px; bottom: 25px; padding: 12px 14px;
  background: #fffef7; box-shadow: 0 12px 32px rgba(27,61,42,.11);
}
.dp-member-mark img { width: 100%; opacity: .88; }
.dp-benefits { border-bottom: 1px solid var(--dp-line); background: #fffef9; }
.dp-benefits-inner { display: flex; align-items: stretch; justify-content: space-between; }
.dp-benefit {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 90px; padding: 16px 20px; border-right: 1px solid var(--dp-line);
}
.dp-benefit:first-child { border-left: 1px solid var(--dp-line); }
.dp-benefit svg { color: var(--dp-leaf); flex: none; }
.dp-benefit strong { display: block; color: var(--dp-forest); font-size: 14px; line-height: 1.35; }
.dp-benefit span { display: block; color: var(--dp-muted); font-size: 12px; line-height: 1.45; margin-top: 3px; }
.dp-section { padding: 92px 0; }
.dp-section-heading { max-width: 660px; margin: 0 auto 42px; text-align: center; }
.dp-section-heading .dp-eyebrow { justify-content: center; }
.dp-section-heading h2, .dp-coach-copy h2, .dp-support h2 {
  margin: 0 0 12px; color: var(--dp-forest); font-size: clamp(30px, 3.6vw, 43px); line-height: 1.16;
}
.dp-section-heading > p:last-child { max-width: 560px; margin: 0 auto; color: var(--dp-muted); font-size: 16px; }
.dp-category-row { display: flex; flex-wrap: wrap; gap: 20px; }
.dp-category {
  min-width: 220px; flex: 1 1 0; border: 1px solid var(--dp-line); background: #fff;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.dp-category:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(29,61,43,.08); }
.dp-category:focus-visible { outline: 3px solid #b4c933; outline-offset: 4px; }
.dp-category-image { height: 225px; padding: 16px; background: #f4f5ec; }
.dietpal-page .dp-category-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dp-category-body { padding: 20px 21px 22px; }
.dp-category-body h3 { margin: 0 0 5px; color: var(--dp-forest); font: 700 19px/1.35 'Manrope', sans-serif; }
.dp-category-body p { min-height: 48px; margin: 0 0 16px; color: var(--dp-muted); font-size: 14px; line-height: 1.55; }
.dp-arrow-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--dp-leaf) !important;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.dp-arrow-link svg { transition: transform .18s ease; }
.dp-arrow-link:hover svg, .dp-category:hover .dp-arrow-link svg { transform: translateX(4px); }
.dp-products-section { background: #f6f7ef; }
.dp-products-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.dp-products-heading .dp-section-heading { margin: 0; text-align: left; }
.dp-products-heading .dp-section-heading .dp-eyebrow { justify-content: flex-start; }
.dp-products-heading .dp-section-heading > p:last-child { margin: 0; }
.dp-products-heading > a { flex: none; margin-bottom: 8px; }
.dp-product-row { display: flex; flex-wrap: wrap; gap: 20px; }
.dp-product {
  flex: 1 1 0; min-width: 220px; overflow: hidden; border: 1px solid #e6e9dc;
  background: #fffef9;
}
.dp-product-image { height: 225px; padding: 17px; background: #fff; }
.dietpal-page .dp-product-image img { width: 100%; height: 100%; object-fit: contain; }
.dp-product-info { padding: 18px 19px 21px; }
.dp-product-tag {
  display: inline-block; margin-bottom: 8px; color: #6b7c35; font-size: 11px;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.dp-product h3 { margin: 0 0 6px; color: var(--dp-forest); font: 700 17px/1.4 'Manrope', sans-serif; }
.dp-product p { min-height: 45px; margin: 0 0 16px; color: var(--dp-muted); font-size: 13px; }
.dp-product .dp-arrow-link { font-size: 13px; }
.dp-coach-section { padding: 94px 0; background: #fffef9; }
.dp-coach-inner { display: flex; align-items: center; gap: 9%; }
.dp-coach-photo { flex: 0 1 41%; min-width: 0; }
.dietpal-page .dp-coach-photo img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: center 28%; }
.dp-coach-copy { flex: 1 1 50%; }
.dp-coach-copy .dp-eyebrow { margin-bottom: 17px; }
.dp-coach-copy h2 { max-width: 525px; }
.dp-coach-copy > p:not(.dp-eyebrow) { color: var(--dp-muted); margin: 0 0 21px; max-width: 555px; }
.dp-credentials { padding: 17px 0 22px; margin: 0 0 25px; border-top: 1px solid var(--dp-line); border-bottom: 1px solid var(--dp-line); }
.dp-credentials strong { display: block; color: var(--dp-forest); font-size: 15px; }
.dp-credentials span { display: block; margin-top: 2px; color: var(--dp-muted); font-size: 13px; }
.dp-coach-links { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.dp-how-section { padding: 80px 0 88px; background: var(--dp-forest); color: #f7f5e8; }
.dp-how-section .dp-section-heading h2 { color: #fffdf5; }
.dp-how-section .dp-section-heading > p:last-child { color: #c9d9cb; }
.dp-how-section .dp-eyebrow { color: var(--dp-citrus); }
.dp-steps { display: flex; gap: 22px; }
.dp-step { flex: 1; padding: 24px 22px 21px; border-top: 1px solid rgba(255,255,255,.3); }
.dp-step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 50%; color: var(--dp-forest); background: var(--dp-citrus); font: 700 13px 'Manrope', sans-serif; }
.dp-step h3 { margin: 0 0 8px; color: #fffdf5; font: 700 18px/1.35 'Manrope', sans-serif; }
.dp-step p { margin: 0; color: #cad7cc; font-size: 14px; line-height: 1.6; }
.dp-support { padding: 76px 0 80px; background: #edf1df; }
.dp-support-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dp-support-copy { max-width: 695px; }
.dp-support h2 { margin-bottom: 10px; }
.dp-support p { margin: 0; color: #5c7163; font-size: 16px; }
.dp-support .dp-btn { flex: none; }
.dp-footer { padding: 38px 0 28px; color: #d8e1d7; background: #123d2b; }
.dp-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 27px; border-bottom: 1px solid rgba(255,255,255,.18); }
.dp-footer-brand { display: block; width: 175px; padding: 8px 10px; background: #fffef7; }
.dp-footer-brand img { width: 100%; }
.dp-footer-nav, .dp-footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 25px; }
.dp-footer-nav a { color: #e7eee5 !important; font-size: 13px; text-decoration: none; }
.dp-footer-nav a:hover { text-decoration: underline; }
.dp-disclosure { padding-top: 22px; max-width: 930px; color: #b9c9bb; font-size: 12px; line-height: 1.65; }
.dp-disclosure p { margin: 0 0 8px; }
.dp-copyright { padding-top: 12px; color: #a7b9aa; font-size: 11px; }

/* Non-Elementor pages (posts, WooCommerce, legal pages) rendered by Hello Elementor */
.dietpal-page .site-main { padding-block: 48px 72px; }
.dietpal-page .site-main .entry-title { color: var(--dp-forest); font: 700 clamp(32px, 4vw, 48px)/1.12 'Manrope', sans-serif; letter-spacing: -.04em; }
.dietpal-page .site-main a { color: var(--dp-leaf); }

@media (max-width: 900px) {
  .dp-container { width: min(100% - 44px, 720px); }
  .dp-header-inner { min-height: 82px; }
  .dp-brand { flex-basis: 155px; }
  .dp-brand img { width: 155px; }
  .dp-nav, .dp-nav ul { gap: 17px; }
  .dp-nav a { font-size: 13px; }
  .dp-header-cta { padding-inline: 14px; }
  .dp-hero-inner { gap: 5%; }
  .dp-hero-copy > p:not(.dp-eyebrow) { font-size: 16px; }
  .dp-member-mark { right: -8px; width: 175px; }
  .dp-benefit { padding-inline: 12px; gap: 9px; }
  .dp-benefit span { font-size: 11px; }
  .dp-section { padding: 72px 0; }
  .dp-category-image, .dp-product-image { height: 185px; }
  .dp-coach-inner { gap: 6%; }
}
@media (max-width: 680px) {
  .dietpal-page { font-size: 15px; }
  .dp-container { width: calc(100% - 40px); }
  .dp-announcement { min-height: 42px; padding-inline: 14px; font-size: 11px; }
  .dp-header-inner { min-height: 76px; gap: 12px; }
  .dp-brand { flex-basis: 136px; }
  .dp-brand img { width: 136px; }
  .dp-nav { display: none; }
  .dp-header-cta { min-height: 42px; padding-inline: 13px; font-size: 12px; }
  .dp-hero { padding: 34px 0 35px; }
  .dp-hero-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .dp-hero-copy { padding: 0; }
  .dp-eyebrow { margin-bottom: 14px; font-size: 11px; }
  .dp-hero h1 { max-width: 520px; margin-bottom: 15px; font-size: clamp(39px, 11vw, 50px); }
  .dp-hero-copy > p:not(.dp-eyebrow) { margin-bottom: 21px; font-size: 15px; line-height: 1.65; }
  .dp-actions { gap: 10px; }
  .dp-btn { min-height: 49px; padding-inline: 17px; font-size: 13px; }
  .dietpal-page p.dp-hero-note { margin-top: 14px; font-size: 12px; }
  .dp-hero-visual { width: 100%; max-width: 430px; margin: 0 auto; padding-right: 8px; }
  .dp-portrait-frame { max-width: none; width: calc(100% - 20px); margin: 0 auto; aspect-ratio: 1 / .87; border-radius: 42% 42% 3px 3px; }
  .dp-member-mark { right: 0; bottom: 17px; width: 145px; padding: 10px; }
  .dp-photo-caption { left: 18px; bottom: 14px; font-size: 12px; }
  .dp-benefits-inner { flex-direction: column; }
  .dp-benefit, .dp-benefit:first-child { justify-content: flex-start; min-height: 68px; padding: 12px 5px; border-left: 0; border-right: 0; border-bottom: 1px solid var(--dp-line); }
  .dp-benefit:last-child { border-bottom: 0; }
  .dp-benefit span { font-size: 12px; }
  .dp-section { padding: 62px 0; }
  .dp-section-heading { margin-bottom: 29px; }
  .dp-section-heading h2, .dp-coach-copy h2, .dp-support h2 { font-size: 32px; }
  .dp-section-heading > p:last-child { font-size: 14px; }
  .dp-category-row, .dp-product-row { flex-direction: column; gap: 14px; }
  .dp-category, .dp-product { flex: 1 1 auto; min-width: 0; }
  .dp-category { display: flex; align-items: stretch; }
  .dp-category-image { width: 38%; min-width: 118px; height: auto; min-height: 155px; padding: 12px; }
  .dp-category-body { flex: 1; padding: 15px 14px; }
  .dp-category-body h3 { font-size: 16px; }
  .dp-category-body p { min-height: 0; margin-bottom: 10px; font-size: 12px; }
  .dp-arrow-link { font-size: 12px; }
  .dp-products-heading { display: block; margin-bottom: 25px; }
  .dp-products-heading .dp-section-heading { margin-bottom: 15px; }
  .dp-product { display: flex; min-height: 156px; }
  .dp-product-image { flex: 0 0 37%; height: auto; min-height: 156px; padding: 12px; }
  .dp-product-info { flex: 1; padding: 13px 13px 14px; }
  .dp-product-tag { margin-bottom: 4px; font-size: 9px; }
  .dp-product h3 { font-size: 15px; }
  .dp-product p { min-height: 0; margin-bottom: 8px; font-size: 12px; line-height: 1.45; }
  .dp-coach-section { padding: 62px 0; }
  .dp-coach-inner { flex-direction: column; align-items: stretch; gap: 27px; }
  .dp-coach-photo { width: 100%; max-width: 460px; margin: 0 auto; }
  .dietpal-page .dp-coach-photo img { aspect-ratio: 1 / .82; object-position: center 30%; }
  .dp-coach-copy > p:not(.dp-eyebrow) { font-size: 14px; }
  .dp-credentials { padding-block: 14px 16px; margin-bottom: 20px; }
  .dp-coach-links { gap: 15px; }
  .dp-how-section { padding: 62px 0; }
  .dp-steps { flex-direction: column; gap: 9px; }
  .dp-step { padding: 19px 4px 17px; }
  .dp-step-number { margin-bottom: 10px; }
  .dp-step h3 { font-size: 17px; }
  .dp-step p { font-size: 13px; }
  .dp-support { padding: 54px 0; }
  .dp-support-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .dp-support p { font-size: 14px; }
  .dp-footer { padding-top: 30px; }
  .dp-footer-top { align-items: flex-start; flex-direction: column; gap: 20px; }
  .dp-footer-brand { width: 155px; }
  .dp-footer-nav, .dp-footer-nav ul { justify-content: flex-start; gap: 13px 20px; }
  .dp-disclosure { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dietpal-page *, .dietpal-page *:before, .dietpal-page *:after {
    scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important;
  }
}
