/* JupiDiet component styles – scoped to .jdh to avoid collisions with Divi */
.jdh{--orange:#ed6200;--green:#086039;--ink:#183028;--cream:#fff8f2;--light:#f6f5f1;color:var(--ink);font-family:'Open Sans',Arial,sans-serif;font-size:16px;line-height:1.55;overflow:hidden}
.jdh *{box-sizing:border-box}.jdh img{display:block;max-width:100%}.jdh h1,.jdh h2,.jdh h3{padding:0;margin:0;color:var(--ink);line-height:1.18;font-weight:750}.jdh p{padding:0;margin:0}.jdh a{text-decoration:none}.jdh-container{max-width:1160px;margin-inline:auto}.jdh-hero{background:var(--cream);display:grid;grid-template-columns:1fr 1fr;min-height:440px}.jdh-hero-copy{padding:70px 42px 68px max(32px,calc((100vw - 1160px)/2));display:flex;flex-direction:column;justify-content:center;gap:19px}.jdh-eyebrow{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#d65c16}.jdh h1{font-size:clamp(34px,3.65vw,54px);letter-spacing:-.035em}.jdh-lead{font-size:16px;max-width:600px}.jdh-hero-photo{overflow:hidden;min-height:420px}.jdh-image-cover,.jdh-hero-photo img{width:100%;height:100%;object-fit:cover}.jdh-buttons{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}.jdh-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:11px 23px;border-radius:8px;color:#fff!important;font-size:14px;font-weight:750;line-height:1.2;transition:transform .18s,filter .18s}.jdh-btn:hover,.jdh-btn:focus-visible{transform:translateY(-2px);filter:brightness(.95);color:#fff!important}.jdh-btn:focus-visible{outline:3px solid #ffc35a;outline-offset:3px}.jdh-btn-orange{background:var(--orange)}.jdh-btn-green{background:var(--green)}.jdh-benefits{background:#f0f0e9;padding:20px}.jdh-benefit-grid{display:grid;grid-template-columns:repeat(4,1fr)}.jdh-benefit{display:flex;align-items:center;justify-content:center;gap:15px;padding:6px 22px;border-right:1px solid #cacbc3;font-size:14px;line-height:1.35}.jdh-benefit:last-child{border:0}.jdh-benefit-icon{font-size:33px;color:#e76b1e;line-height:1}.jdh-offer{padding:57px 20px 18px}.jdh-section-head{text-align:center;margin-bottom:28px}.jdh-section-head h2{font-size:clamp(28px,3vw,38px)}.jdh-section-head h2:after{content:"";display:block;width:56px;height:3px;background:var(--orange);margin:15px auto 13px}.jdh-section-head p{font-size:15px}.jdh-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.jdh-card{position:relative;isolation:isolate;min-height:245px;border-radius:12px;overflow:hidden;display:flex;align-items:end;background:#e8dfd3}.jdh-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.jdh-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,251,247,.94),rgba(255,251,247,.72) 57%,rgba(255,251,247,.08));z-index:-1}.jdh-card-content{padding:26px;display:flex;align-items:start;flex-direction:column;gap:9px}.jdh-card h3{font-size:22px}.jdh-card p{font-size:14px;min-height:42px}.jdh-card .jdh-btn{margin-top:5px;font-size:13px;padding:10px 16px;min-height:40px}.jdh-season{padding:16px 20px 42px}.jdh-season-inner{position:relative;border-radius:12px;isolation:isolate;overflow:hidden;min-height:116px;background:#075b36;display:grid;grid-template-columns:1.2fr 1fr auto;align-items:center;gap:25px;padding:25px 38px;color:#fff}.jdh-season-inner:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,72,42,.96),rgba(0,72,42,.84)),var(--jdh-season-image) center/cover}.jdh-season-inner h2{font-size:24px;color:#fff}.jdh-season-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:#ffdb7e;margin-bottom:4px!important}.jdh-season-inner>p{border-left:1px solid #9bbb9d;padding-left:25px;font-size:14px}.jdh-final{background:var(--cream);padding:30px;margin-bottom:40px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:25px}.jdh-final h2{font-size:26px;margin-bottom:8px}.jdh-final p{max-width:700px;font-size:14px}.jdh-final .jdh-btn{white-space:nowrap}
/* Divi module wrapper spacing reset: insert shortcode into a full-width row */
.et_pb_section:has(.jdh),.et_pb_row:has(.jdh),.et_pb_column:has(.jdh),.et_pb_code:has(.jdh),.et_pb_text:has(.jdh){padding:0!important;margin:0!important;width:100%!important;max-width:none!important}.et_pb_section:has(.jdh) .et_pb_module{margin-bottom:0!important}
@media(max-width:980px){.jdh-hero{grid-template-columns:1fr 43%}.jdh-hero-copy{padding:52px 30px}.jdh h1{font-size:36px}.jdh-cards{gap:12px}.jdh-card-content{padding:17px}.jdh-card h3{font-size:19px}.jdh-season-inner{grid-template-columns:1fr auto}.jdh-season-inner>p{display:none}.jdh-benefit{padding:5px 10px;font-size:12px}}
@media(max-width:700px){.jdh-hero{grid-template-columns:1fr}.jdh-hero-copy{padding:37px 22px}.jdh-hero-photo{min-height:230px;max-height:300px}.jdh h1{font-size:35px}.jdh-buttons{gap:10px}.jdh-btn{padding:11px 16px}.jdh-benefit-grid{grid-template-columns:repeat(2,1fr);row-gap:20px}.jdh-benefit:nth-child(2){border:0}.jdh-benefit{justify-content:start}.jdh-offer{padding-top:38px}.jdh-cards{grid-template-columns:1fr}.jdh-card{min-height:230px}.jdh-season-inner{grid-template-columns:1fr;padding:25px}.jdh-season-inner .jdh-btn{justify-self:start}.jdh-final{margin-inline:20px;flex-direction:column;align-items:start}.jdh-section-head{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.jdh-btn{transition:none}.jdh-btn:hover{transform:none}}

/* 1.1 – mobile layout and Divi header integration. Scoped to pages with JupiDiet module. */
@media (max-width: 980px) {
  body:has(.jdh) #main-header { position: relative !important; top: auto !important; background: #fff !important; box-shadow: none !important; }
  body:has(.jdh) #page-container { padding-top: 0 !important; }
  body:has(.jdh) #main-header .container { min-height: 82px !important; height: 82px !important; }
  body:has(.jdh) #main-header .logo_container { height: 82px !important; }
  body:has(.jdh) #main-header #logo { max-height: 62px !important; height: auto !important; width: auto !important; }
  body:has(.jdh) #main-header #et-top-navigation { padding-top: 27px !important; }
  body:has(.jdh) #main-header .mobile_menu_bar { padding-bottom: 0 !important; }
}
@media (max-width: 700px) {
  .jdh { font-size: 16px; }
  .jdh-hero-copy { padding: 34px 22px 35px; gap: 17px; }
  .jdh h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: normal; }
  .jdh-eyebrow { font-size: 11px; line-height: 1.4; letter-spacing: .05em; }
  .jdh-lead { font-size: 15px; line-height: 1.55; }
  .jdh-buttons { gap: 10px; margin-top: 5px; }
  .jdh-buttons .jdh-btn { flex: 1 1 180px; white-space: nowrap; padding: 12px 12px; font-size: 13px; gap: 7px; }
  .jdh-hero-photo { min-height: 210px; max-height: 255px; }
  .jdh-hero-photo img { object-position: 68% center; }
  .jdh-benefits { padding: 18px 14px; }
  .jdh-benefit-grid { gap: 12px 0; }
  .jdh-benefit { padding: 8px 7px; font-size: 11px; gap: 8px; }
  .jdh-benefit-icon { font-size: 25px; }
  .jdh-offer { padding: 35px 20px 12px; }
  .jdh-section-head h2 { font-size: clamp(25px, 7vw, 31px); }
  .jdh-section-head p { font-size: 14px; }
  .jdh-card { min-height: 220px; }
  .jdh-card-content { padding: 20px; }
  .jdh-card h3 { font-size: 20px; }
  .jdh-season { padding: 12px 20px 30px; }
  .jdh-season-inner { gap: 13px; padding: 22px; }
  .jdh-season-inner h2 { font-size: clamp(22px, 6.3vw, 28px); }
  .jdh-season-inner>p { display: block; border-left: 0; padding-left: 0; font-size: 14px; line-height: 1.5; }
  .jdh-season-inner .jdh-btn { width: 100%; justify-content: center; padding-inline: 10px; font-size: 13px; }
  .jdh-final { margin: 0 20px 26px; padding: 24px 21px; gap: 16px; }
  .jdh-final h2 { font-size: 23px; }
  .jdh-final p { font-size: 14px; }
  .jdh-final .jdh-btn { font-size: 13px; }
}
@media (max-width: 390px) {
  .jdh-buttons .jdh-btn { flex-basis: 100%; }
}

/* v1.2: visual corrections based on desktop + Android screenshots. */
.jdh { --orange:#ef6500; --green:#075f3b; --ink:#18332b; --cream:#fff8f2; }
.jdh-benefit-icon { display:inline-flex; flex:0 0 33px; width:33px; height:33px; align-items:center; justify-content:center; }
.jdh-benefit-icon svg {width:32px;height:32px;display:block}
.jdh-hero-photo {position:relative; isolation:isolate}
.jdh-hero-photo img {object-position:center center}
@media (min-width:981px) {
  .jdh-hero {grid-template-columns:minmax(0,51%) minmax(0,49%);min-height:470px;overflow:hidden}
  .jdh-hero-copy {position:relative;z-index:2;padding-top:60px;padding-bottom:60px;padding-right:24px}
  .jdh h1 {font-size:clamp(36px,3.1vw,49px);line-height:1.1}
  .jdh-hero-photo:before {content:"";position:absolute;z-index:1;top:-23%;bottom:-23%;left:-155px;width:260px;background:var(--cream);border-right:2px solid #ef6500;border-radius:0 50% 50% 0 / 0 50% 50% 0;transform:rotate(8deg);pointer-events:none}
  .jdh-hero-photo:after {content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(255,248,242,.1),transparent 23%)}
}
/* Only on the page containing our component. A consistent, non-overlapping Divi header. */
@media(max-width:980px) {
  body:has(.jdh) #main-header {position:relative!important;inset:auto!important;top:auto!important;left:auto!important;transform:none!important;width:100%!important;min-height:80px!important;box-shadow:none!important;z-index:100!important;background:#fff!important}
  body:has(.jdh) #main-header .container {display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:80px!important;height:80px!important;padding-top:0!important;padding-bottom:0!important}
  body:has(.jdh) #main-header .logo_container {position:relative!important;width:auto!important;height:80px!important;display:flex!important;align-items:center!important;flex:0 0 auto!important}
  body:has(.jdh) #main-header #logo {position:static!important;max-height:57px!important;height:auto!important;width:auto!important;transform:none!important;vertical-align:middle!important}
  body:has(.jdh) #main-header #et-top-navigation {float:none!important;position:relative!important;padding:0!important;display:flex!important;align-items:center!important;min-height:80px!important}
  body:has(.jdh) #main-header .mobile_menu_bar {padding:0!important;display:flex!important;align-items:center!important;min-height:40px!important}
  body:has(.jdh) #page-container {padding-top:0!important}
  body:has(.jdh) #main-content {position:relative!important;z-index:1!important;clear:both!important}
  .jdh-hero {grid-template-columns:1fr!important}
  .jdh-hero-copy {padding:35px 24px 32px!important;gap:15px!important}
  .jdh h1 {font-size:clamp(30px,5vw,40px)!important;line-height:1.13!important;letter-spacing:-.025em!important;max-width:720px}
  .jdh-hero-photo {height:270px!important;min-height:0!important;max-height:none!important}
  .jdh-hero-photo:before {content:"";position:absolute;z-index:2;left:0;right:0;top:0;height:65px;background:linear-gradient(to bottom,var(--cream),transparent);pointer-events:none}
  .jdh-hero-photo img {object-position:65% 55%!important}
}
@media(max-width:700px) {
  body:has(.jdh) #main-header,body:has(.jdh) #main-header .container,body:has(.jdh) #main-header .logo_container,body:has(.jdh) #main-header #et-top-navigation {height:75px!important;min-height:75px!important}
  body:has(.jdh) #main-header #logo {max-height:51px!important}
  .jdh-hero-copy {padding:28px 21px 28px!important;gap:13px!important}
  .jdh-eyebrow {font-size:10px!important;letter-spacing:.045em!important;line-height:1.35!important}
  .jdh h1 {font-size:clamp(29px,8vw,36px)!important;line-height:1.12!important;letter-spacing:-.027em!important;overflow-wrap:normal!important}
  .jdh-lead {font-size:15px!important;line-height:1.5!important}
  .jdh-buttons {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;margin-top:7px!important}
  .jdh-buttons .jdh-btn {white-space:normal!important;min-width:0!important;min-height:44px!important;padding:10px 9px!important;font-size:12px!important;gap:5px!important;text-align:center}
  .jdh-hero-photo {height:215px!important}
  .jdh-hero-photo img {object-position:66% 52%!important}
  .jdh-benefits {padding:14px 16px!important}
  .jdh-benefit-grid {gap:12px 0!important}
  .jdh-benefit {justify-content:flex-start!important;gap:9px!important;font-size:11px!important;padding:7px 8px!important}
  .jdh-benefit-icon,.jdh-benefit-icon svg {width:26px!important;height:26px!important;flex-basis:26px!important}
  .jdh-offer {padding:30px 17px 10px!important}
  .jdh-section-head {margin-bottom:18px!important}
  .jdh-section-head h2 {font-size:clamp(26px,7vw,30px)!important}
  .jdh-section-head p {font-size:13px!important;line-height:1.5!important}
  .jdh-cards {gap:13px!important}
  .jdh-card {min-height:208px!important}
  .jdh-card-content {padding:18px!important;gap:7px!important}
  .jdh-card h3 {font-size:21px!important}
  .jdh-card p {font-size:13px!important;min-height:0!important;line-height:1.5!important}
  .jdh-card .jdh-btn {font-size:12px!important;min-height:39px!important;margin-top:6px!important}
  .jdh-season {padding:12px 17px 24px!important}
  .jdh-season-inner {padding:21px!important;min-height:0!important;gap:10px!important}
  .jdh-season-inner h2 {font-size:clamp(22px,6vw,28px)!important;line-height:1.2!important}
  .jdh-season-inner>p {display:block!important;font-size:13px!important;line-height:1.5!important;border:0!important;padding:0!important}
  .jdh-season-inner .jdh-btn {width:100%;white-space:normal;font-size:12px!important;min-height:44px!important}
  .jdh-final {margin:0 17px 24px!important;padding:21px!important;gap:13px!important;border-radius:12px!important}
  .jdh-final h2 {font-size:24px!important}
  .jdh-final p {font-size:13px!important;line-height:1.5!important}
  .jdh-final .jdh-btn {font-size:12px!important;min-height:43px!important}
}
@media (max-width:350px) {.jdh-buttons {grid-template-columns:1fr!important}}

/* v1.5: stronger food focus, reduced fog, mobile-first content sequence. */
@media (min-width:981px) {
  /* Keep the curved orange separator; eliminate milky overlay on the photograph. */
  .jdh-hero-photo:after{background:none!important}
  .jdh-hero-photo:before{border-right-color:#f07821!important}
  .jdh-hero-photo img{filter:contrast(1.08) saturate(1.08);object-position:65% 50%!important}
}
/* Let food photography carry the service cards; retain a modest contrast area behind text. */
.jdh-card:before{background:linear-gradient(90deg,rgba(255,248,242,.86) 0%,rgba(255,248,242,.64) 38%,rgba(255,248,242,.13) 69%,rgba(255,248,242,0) 100%)!important}
.jdh-card>img{filter:contrast(1.07) saturate(1.12);object-position:center 55%}
.jdh-card-content{position:relative;z-index:2}
/* Festive decorations at the banner edges: keep the copy readable in the middle. */
.jdh-season-inner{isolation:isolate;background:#075b36}
.jdh-season-inner:before{background:linear-gradient(90deg,rgba(0,73,43,.91),rgba(0,83,51,.89) 48%,rgba(0,73,43,.83)),var(--jdh-season-image) center/cover!important;opacity:1}
.jdh-season-inner:after{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:var(--jdh-tree-image) left center/auto 190% no-repeat, var(--jdh-season-image) right center/auto 180% no-repeat;opacity:.37;-webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 23%,transparent 72%,#000 100%);mask-image:linear-gradient(90deg,#000 0%,transparent 23%,transparent 72%,#000 100%)}
@media(max-width:980px) {
  /* Flatten white fade at the top of the hero photo. */
  .jdh-hero-photo:before{background:none!important}
  .jdh-hero-photo img{filter:contrast(1.08) saturate(1.09);object-position:67% 50%!important}
}
@media(max-width:700px) {
  /* Mobile: claim -> CTAs -> experience -> supporting photo -> offers. */
  .jdh{display:flex;flex-direction:column}
  .jdh-hero{display:contents!important}
  .jdh-hero-copy{order:10}
  .jdh-benefits{order:20;padding-top:18px!important;padding-bottom:18px!important}
  .jdh-hero-photo{order:30;height:185px!important;min-height:0!important;max-height:185px!important;overflow:hidden;background:#f5f1eb}
  .jdh-hero-photo img{height:100%;object-fit:cover;object-position:60% 60%!important}
  .jdh-offer{order:40}
  .jdh-season{order:50}
  .jdh-final{order:60}
  .jdh-hero-copy{padding-bottom:28px!important}
  .jdh-benefit{align-items:center}
  .jdh-card{min-height:198px!important}
  .jdh-card>img{object-position:center 53%}
  .jdh-card:before{background:linear-gradient(90deg,rgba(255,248,242,.84) 0%,rgba(255,248,242,.48) 49%,rgba(255,248,242,0) 85%)!important}
  .jdh-card-content{max-width:89%}
  .jdh-season-inner:after{opacity:.54;background-size:auto 120%,auto 130%;-webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 24%,transparent 68%,#000 100%);mask-image:linear-gradient(90deg,#000 0%,transparent 24%,transparent 68%,#000 100%)}
}

/* v1.6 – event discovery, clear food photography and integrated mobile hero */
.jdh-occasions{padding:42px 20px 22px}
.jdh-occasions .jdh-section-head{max-width:820px;margin:0 auto 24px}
.jdh-occasion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.jdh-occasion-item{border:1px solid #e7e2da;border-radius:12px;padding:23px;background:#fffaf6;display:flex;flex-direction:column;gap:10px;min-height:165px}
.jdh-occasion-item h3{font-size:19px!important;line-height:1.25}
.jdh-occasion-item p{font-size:14px;line-height:1.5}
.jdh-occasion-item a{font-weight:750;font-size:13px;color:#075f3b!important;margin-top:auto}
.jdh-occasion-note{text-align:center;margin-top:19px!important;font-size:14px}
.jdh-occasion-note a{font-weight:750;color:#075f3b!important;text-decoration:underline}
/* Original hero asset is predominantly white. Crop into its food-rich edge instead of applying more overlays. */
@media(min-width:981px){
 .jdh-hero-photo{overflow:hidden;background:#eee2d6}
 .jdh-hero-photo img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:95% 53%!important;transform:scale(1.68);transform-origin:85% 50%;filter:saturate(1.14) contrast(1.08)}
 .jdh-hero-photo:before{left:-95px!important;width:140px!important;top:-18%!important;bottom:-18%!important;background:#fff8f2!important;border-right:2px solid #ef6500!important;transform:rotate(6deg)!important}
 .jdh-hero-photo:after{display:none!important}
}
@media(max-width:980px){.jdh-occasion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 /* Photo is inside the first hero, not a separate section after benefits. */
 .jdh{display:block!important}
 .jdh-hero{display:block!important;position:relative;isolation:isolate;background:#fff8f2;padding-bottom:150px!important;overflow:hidden}
 .jdh-hero-copy{position:relative;z-index:2;background:transparent!important;padding-bottom:15px!important}
 .jdh-hero-photo{display:block!important;position:absolute!important;z-index:1;left:0;right:0;bottom:0;height:200px!important;min-height:200px!important;max-height:none!important;overflow:hidden}
 .jdh-hero-photo img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:85% 55%!important;transform:scale(1.18);filter:saturate(1.10) contrast(1.06)}
 .jdh-hero-photo:after{content:"";display:block!important;position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(to bottom,#fff8f2 0%,rgba(255,248,242,.50) 23%,transparent 64%)!important}
 .jdh-benefits{position:relative;z-index:3;order:unset!important}
 .jdh-occasions{padding:28px 17px 20px}
 .jdh-occasion-grid{grid-template-columns:1fr;gap:10px}
 .jdh-occasion-item{min-height:0;padding:17px 18px;gap:7px}
 .jdh-occasion-item h3{font-size:18px!important}
 .jdh-occasion-item p{font-size:13px}
 .jdh-occasion-note{font-size:13px}
}
