/* YEYES DESIGN FIX v1.0
   Safe override layer for Astra + YEYES importer.
   Brand: black / gold #D4AF37 / white.
*/
:root{--yfix-black:#050505;--yfix-black2:#0d0d0d;--yfix-gold:#D4AF37;--yfix-white:#fff;--yfix-muted:#d6d6d1}

/* 1) Prevent Astra transparent header from overlapping hero copy. */
.ast-theme-transparent-header #masthead,
.ast-theme-transparent-header .site-header,
.ast-theme-transparent-header .main-header-bar-wrap,
.ast-theme-transparent-header .ast-primary-header-bar,
#masthead.site-header{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  background:var(--yfix-black)!important;
}
.site-header{z-index:100!important}
.ast-primary-header-bar{min-height:82px!important;background:var(--yfix-black)!important;border-bottom:1px solid rgba(212,175,55,.20)!important}

/* 2) Logo alignment and size. */
.site-header .site-branding,
.ast-site-identity,
.site-header .custom-logo-link{display:flex!important;align-items:center!important;margin:0!important;padding-top:0!important;padding-bottom:0!important;line-height:1!important}
.site-header .custom-logo-link img,
.site-header .custom-logo{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:156px!important;
  max-height:60px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
}

/* 3) Header navigation: readable white, gold hover/current. */
.ast-builder-menu-1 .menu-item>.menu-link,
.main-header-menu>.menu-item>a,
.ast-header-html-1,
.ast-header-html-1 a{color:var(--yfix-white)!important}
.ast-builder-menu-1 .menu-item:hover>.menu-link,
.ast-builder-menu-1 .current-menu-item>.menu-link,
.main-header-menu>.menu-item:hover>a,
.main-header-menu>.current-menu-item>a{color:var(--yfix-gold)!important}

/* 4) YEYES page base and hero spacing. */
body.yeyes-site-page,
.yeyes-site-page{background:var(--yfix-black)!important;color:var(--yfix-white)!important}
.yeyes-site-page .yeyes-hero{padding-top:74px!important}
.yeyes-site-page .yeyes-hero h1,
.yeyes-site-page .yeyes-hero .yeyes-lead,
.yeyes-site-page .yeyes-hero p{position:relative!important;z-index:2!important}

/* 5) Strong contrast in all imported YEYES sections/cards. */
.yeyes-site-page .yeyes-section{background:#f6f6f2!important;color:#111!important}
.yeyes-site-page .yeyes-section:nth-of-type(even){background:#fff!important;color:#111!important}
.yeyes-site-page .yeyes-section h1,
.yeyes-site-page .yeyes-section h2,
.yeyes-site-page .yeyes-section h3,
.yeyes-site-page .yeyes-section h4{color:#111!important}
.yeyes-site-page .yeyes-section p,
.yeyes-site-page .yeyes-section li,
.yeyes-site-page .yeyes-section .yeyes-copy{color:#333!important}

.yeyes-site-page .yeyes-section-dark,
.yeyes-site-page section.yeyes-section-dark{background:var(--yfix-black2)!important;color:var(--yfix-white)!important}
.yeyes-site-page .yeyes-section-dark h1,
.yeyes-site-page .yeyes-section-dark h2,
.yeyes-site-page .yeyes-section-dark h3,
.yeyes-site-page .yeyes-section-dark h4{color:var(--yfix-white)!important}
.yeyes-site-page .yeyes-section-dark p,
.yeyes-site-page .yeyes-section-dark li,
.yeyes-site-page .yeyes-section-dark .yeyes-copy{color:var(--yfix-muted)!important}

/* Cards on light sections */
.yeyes-site-page .yeyes-section:not(.yeyes-section-dark) .yeyes-card{background:#fff!important;color:#111!important;border-color:rgba(0,0,0,.12)!important}
.yeyes-site-page .yeyes-section:not(.yeyes-section-dark) .yeyes-card h3{color:#111!important}
.yeyes-site-page .yeyes-section:not(.yeyes-section-dark) .yeyes-card p{color:#4a4a46!important}

/* Cards/pricing on dark sections */
.yeyes-site-page .yeyes-section-dark .yeyes-card,
.yeyes-site-page .yeyes-price-card{background:#111!important;color:#fff!important;border-color:rgba(212,175,55,.24)!important}
.yeyes-site-page .yeyes-section-dark .yeyes-card h3,
.yeyes-site-page .yeyes-price-card h3{color:#fff!important}
.yeyes-site-page .yeyes-section-dark .yeyes-card p,
.yeyes-site-page .yeyes-price-card p,
.yeyes-site-page .yeyes-price-card li{color:#d0d0ca!important}

/* 6) Gold accents stay gold, buttons stay legible. */
.yeyes-site-page .yeyes-kicker,
.yeyes-site-page .yeyes-card-number,
.yeyes-site-page .yeyes-launch,
.yeyes-site-page .yeyes-values{color:var(--yfix-gold)!important}
.yeyes-site-page .yeyes-btn{background:var(--yfix-gold)!important;border-color:var(--yfix-gold)!important;color:#050505!important}
.yeyes-site-page .yeyes-btn-secondary{background:transparent!important;color:var(--yfix-gold)!important}

/* 7) Extra protection for generic bars/groups created by theme/block defaults. */
.yeyes-site-page .wp-block-cover,
.yeyes-site-page .wp-block-group.has-background{isolation:isolate}
.yeyes-site-page .wp-block-cover.has-background-dim .wp-block-cover__inner-container{color:#fff!important}
.yeyes-site-page .has-black-background-color,
.yeyes-site-page [style*="background-color:#000"],
.yeyes-site-page [style*="background-color: #000"]{color:#fff!important}

@media (max-width:921px){
  .ast-primary-header-bar{min-height:68px!important}
  .site-header .custom-logo-link img,.site-header .custom-logo{max-width:120px!important;max-height:48px!important}
  .yeyes-site-page .yeyes-hero{padding-top:52px!important}
}
@media (max-width:544px){
  .site-header .custom-logo-link img,.site-header .custom-logo{max-width:104px!important;max-height:42px!important}
  .yeyes-site-page .yeyes-hero{padding-top:44px!important}
  .yeyes-site-page .yeyes-hero h1{font-size:clamp(2.1rem,10vw,3.15rem)!important;line-height:1.05!important}
}
