/* ===============================================================
   JAA HOMEPAGE v0.8 — STAGING REVIEW ONLY
   All layout changes require .jaa-home-v8 root class.
   Header adjustments require a v8 draft ON THE PAGE (not other pages).
   Never edits WooCommerce product, translations, theme templates, footer.
   =============================================================== */

/* 01 — Transparent header: current language and OPEN dropdown both use
   light lettering against the hero. Dropdown itself gets a plum backing
   for contrast; the CLOSED control still has no white square. */
@media (min-width:1200px) {
  body:has(.jaa-home-v8) #sticky-header:not(.sticky-menu)
  :is(.trp-shortcode-switcher__dropdown,.trp-shortcode-switcher__dropdown a,
      .trp-shortcode-switcher__dropdown span,.trp-language-item:not(.trp-language-item__current),
      .trp-language-item:not(.trp-language-item__current) a,
      .trp-language-item:not(.trp-language-item__current) span,
      .trp-ls-shortcode-language a) {
      color:#fff!important;
  }
  body:has(.jaa-home-v8) #sticky-header:not(.sticky-menu)
  :is(.trp-shortcode-switcher__dropdown,.trp-ls-shortcode-language) {
      background:rgba(43,0,67,.89)!important;
      border-radius:8px!important;
  }
  body:has(.jaa-home-v8) #sticky-header:not(.sticky-menu)
  .trp-shortcode-switcher__current-language {background:transparent!important;box-shadow:none!important;}
  body:has(.jaa-home-v8) #sticky-header:not(.sticky-menu)
  .trp-shortcode-switcher__current-language :is(a,span){color:#fff!important;}
  /* Do NOT change shared sticky header; it remains white/plum. */
}

/* 02 — WHO WE ARE: the two pieces remain real Elementor heading widgets.
   Intro-script's family comes from its Elementor typography field (Holimount).
   IMPORTANT: base v4 blanket Oswald selector excludes this widget. */
.jaa-home-v8 .jaa-v4-brand-copy{gap:15px!important;}
.jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-main{
  width:100%!important;max-width:480px!important;margin-bottom:0!important;
}
.jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-main:not(.jaa-editor-unlocked) .elementor-heading-title{
  font-size:clamp(41px,4.25vw,63px)!important;line-height:1.03!important;
}
.jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-script:not(.jaa-editor-unlocked){
  width:min(345px,90%)!important;max-width:345px!important;
  margin:-4px 0 12px auto!important;align-self:flex-end!important;
}
.jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-script:not(.jaa-editor-unlocked) .elementor-heading-title{
  font-size:clamp(33px,3.2vw,46px)!important;line-height:1.3!important;
  font-weight:400!important;letter-spacing:0!important;text-transform:none!important;
  text-align:right!important;color:#2B0043!important;
  white-space:normal!important;
}

/* 03 — MEET THE FORMULA: oversized backdrop is decorative text (CSS only),
   bold statement and script are separate EDITABLE Elementor headings. */
.jaa-home-v8 .jaa-v4-meet{position:relative!important;overflow:hidden!important;}
.jaa-home-v8 .jaa-v4-meet::before{
  content:'FORMULA';pointer-events:none;position:absolute;
  top:45px;left:50%;transform:translateX(-50%);
  font:800 clamp(110px,16vw,260px)/1 Gilroy,Arial,sans-serif;
  letter-spacing:-.04em;color:rgba(180,92,205,.10);z-index:0;
}
.jaa-home-v8 .jaa-v4-meet > .e-con,
.jaa-home-v8 .jaa-v4-meet > .elementor-widget{position:relative!important;z-index:1;}
.jaa-home-v8 .jaa-v4-meet-copy{gap:12px!important;}
.jaa-home-v8 .jaa-v8-formula-head:not(.jaa-editor-unlocked){width:100%!important;max-width:470px!important;margin:0!important;}
/* Keep brand color/casing unchanged even when typography is unlocked. */
.jaa-home-v8 .jaa-v8-formula-head:not(.jaa-editor-unlocked) .elementor-heading-title{
  color:#fff!important;text-transform:uppercase!important;text-align:start!important;
}
/* Original styling remains IDENTICAL unless the user adds jaa-editor-unlocked
   to this specific heading widget via Elementor > Advanced > CSS Classes. */
.jaa-home-v8 .jaa-v8-formula-head:not(.jaa-editor-unlocked) .elementor-heading-title{
  font-family:Gilroy,Arial,sans-serif!important;
  font-size:clamp(39px,4.2vw,60px)!important;font-weight:700!important;
  line-height:1.02!important;letter-spacing:-.035em!important;
}
.jaa-home-v8 .jaa-v8-formula-script:not(.jaa-editor-unlocked){width:100%!important;max-width:590px!important;margin:0 0 2px!important;}
.jaa-home-v8 .jaa-v8-formula-script:not(.jaa-editor-unlocked) .elementor-heading-title{
  color:#fff!important;font-size:clamp(30px,3.4vw,49px)!important;
  font-weight:400!important;letter-spacing:0!important;
  text-transform:none!important;line-height:1.3!important;
  white-space:normal!important;text-align:start!important;
}
.jaa-home-v8 .jaa-v4-meet-copy > .elementor-widget-text-editor{width:100%!important;max-width:470px!important;}
.jaa-home-v8 .jaa-v4-meet-copy > .elementor-widget-tg-btn{width:auto!important;align-self:flex-start!important;}

/* 04 — Product stage: correct cutout, as in the PDF, overlaps photo lower-right;
   previously image widget requested the language flag thumbnail size. */
@media(min-width:768px) {
 .jaa-home-v8 .jaa-v4-product-roots{
   left:auto!important;right:-65px!important;bottom:-30px!important;
   width:185px!important;max-width:185px!important;z-index:5!important;
 }
}
.jaa-home-v8 .jaa-v4-product-roots img{width:100%!important;height:auto!important;display:block!important;}
.jaa-home-v8 .jaa-v7-product-tag{z-index:6!important;}
.jaa-home-v8 .jaa-v7-product-tag img{display:block!important;width:100%!important;}

/* 05 — Ingredient cards: no unused flex space before editable titles/text.
   Gold + remains centered at the visual/cards intersection. */
.jaa-home-v8 .jaa-v4-ingredient-grid{align-items:stretch!important;}
.jaa-home-v8 .jaa-v4-ingredient-card{
  gap:0!important;justify-content:flex-start!important;
}
.jaa-home-v8 .jaa-v4-ingredient-card > .elementor-widget-tg-image-box{
  flex:0 0 auto!important;align-self:stretch!important;height:auto!important;
  min-height:0!important;margin:0!important;padding:20px 24px 25px!important;
}
.jaa-home-v8 .jaa-v4-ingredient-card .tg-image-box-content,
.jaa-home-v8 .jaa-v4-ingredient-card .tg-image-box-info{
  margin:0!important;padding:0!important;min-height:0!important;
}
.jaa-home-v8 .jaa-v4-ingredient-grid::after{top:47%!important;}

/* Responsive: show original content in a predictable vertical flow. */
@media(max-width:1024px){
 .jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-main{max-width:100%!important;}
 .jaa-home-v8 .jaa-v4-meet::before{font-size:clamp(80px,17vw,170px);top:55px;}
 .jaa-home-v8 .jaa-v8-formula-head{max-width:100%!important;}
 .jaa-home-v8 .jaa-v8-formula-head:not(.jaa-editor-unlocked) .elementor-heading-title{font-size:clamp(37px,5vw,51px)!important;}
}
@media(max-width:767px){
 .jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-script:not(.jaa-editor-unlocked){
   width:100%!important;max-width:100%!important;margin:0 0 10px!important;
   align-self:flex-start!important;
 }
 .jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-script:not(.jaa-editor-unlocked) .elementor-heading-title{
   font-size:35px!important;text-align:start!important;
 }
 .jaa-home-v8 .jaa-v4-meet-copy .jaa-v8-formula-head:not(.jaa-editor-unlocked) .elementor-heading-title{font-size:40px!important;}
 .jaa-home-v8 .jaa-v4-meet-copy .jaa-v8-formula-script .elementor-heading-title{font-size:34px!important;}
 .jaa-home-v8 .jaa-v4-product-roots{width:112px!important;right:-5px!important;bottom:-15px!important;}
 .jaa-home-v8 .jaa-v4-ingredient-grid::after{
   width:45px!important;height:45px!important;top:50%!important;left:50%!important;
 }
}
/* Arabic: no English-only font overrides on Arabic script and headings.
   Translation is provided by TranslatePress on the target PAGE URL. */
html[dir='rtl'] .jaa-home-v8 .jaa-v4-brand-copy .jaa-v8-intro-script:not(.jaa-editor-unlocked){
  margin:0 auto 10px 0!important;align-self:flex-start!important;
}
html[dir='rtl'] .jaa-home-v8 .jaa-v8-intro-script:not(.jaa-editor-unlocked) .elementor-heading-title,
html[dir='rtl'] .jaa-home-v8 .jaa-v8-formula-head:not(.jaa-editor-unlocked) .elementor-heading-title,
html[dir='rtl'] .jaa-home-v8 .jaa-v8-formula-script:not(.jaa-editor-unlocked) .elementor-heading-title{
  text-align:right!important;direction:rtl!important;
}
html[lang^='ar'] .jaa-home-v8 .jaa-v8-formula-head:not(.jaa-editor-unlocked) .elementor-heading-title{
  font-family:Alexandria,sans-serif!important;
}
