/* Inner Hero D (mock-ups Alexander, nov 2026). Sections live in BB AI custom modules (design system Inner Hero D); this file holds the site chrome only. */

/* 1. Base */
html { scroll-padding-top: 110px; }
body { background: #06120F; }
#content, .site-content { overflow-x: clip; }

/* 2. Header (mock-up nav: dark bar, gutter clamp(20px, 5vw, 64px), menu 14px caps) */
#masthead { position: sticky; top: 0; z-index: 99; background: #06120F; }
.admin-bar #masthead { top: 0; }
@media (min-width: 783px) { .admin-bar #masthead { top: 32px; } }
@media (min-width: 601px) and (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar { border: 0 !important; box-shadow: none !important; background: #06120F !important; }
#masthead .site-primary-header-wrap.ast-container,
#masthead .ast-mobile-header-wrap .ast-container { max-width: none; padding: 0 clamp(20px, 5vw, 64px); }
#masthead .site-branding, #masthead .site-logo-img { padding: 0; }
#masthead .custom-logo-link { display: block; line-height: 0; }
#masthead .custom-logo { width: 196px; max-width: none; height: auto; }
@media (max-width: 921px) { #masthead .custom-logo { width: 150px; } }

#masthead .main-header-menu .menu-link {
  font-family: "Alwyn-New-Rounded-Web", alwyn-new-rounded-web, system-ui, sans-serif;
  font-size: 14px !important;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E4ECE9;
  padding: 0 15px;
  text-decoration: none !important;
}
#masthead .main-header-menu .menu-link:hover,
#masthead .main-header-menu .current-menu-item > .menu-link { color: #FDC88A; }
#masthead .main-header-menu .menu-link::after { content: none !important; }
#ast-desktop-header .ast-builder-button-wrap .menu-link { display: none !important; }
.ast-header-button-1 .ast-custom-button { min-height: 44px; display: inline-flex; align-items: center; }
.ast-custom-button, .ast-custom-button-link, a.fl-button, .ast-custom-button:hover, .ast-custom-button:focus { text-decoration: none !important; }

/* Mobile trigger: 44px square with a thin green border (phone board) */
#ast-mobile-header .menu-toggle { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #1D6D5F !important; border-radius: 0; background: transparent !important; color: #FFFFFF !important; box-shadow: none; }
#ast-mobile-header .menu-toggle svg { fill: #FFFFFF !important; }

/* 3. Mobile menu (full screen, dark) */
#ast-mobile-popup .ast-mobile-popup-drawer,
#ast-mobile-popup .ast-mobile-popup-inner,
#ast-mobile-popup .ast-mobile-popup-content,
#ast-mobile-popup .main-header-menu { background: #06120F !important; }
#ast-mobile-popup .ast-mobile-popup-header { padding: 14px clamp(20px, 5vw, 64px); }
#ast-mobile-popup .menu-toggle-close { width: 44px; height: 44px; border: 1px solid #1D6D5F; color: #FFFFFF; outline: 0; box-shadow: none; background: transparent; }
#ast-mobile-popup .menu-toggle-close svg { fill: #FFFFFF !important; }
#ast-mobile-popup .ast-mobile-popup-content { padding: 8px clamp(20px, 5vw, 64px) 32px; }
#ast-mobile-popup .main-header-menu .menu-item > .menu-link {
  font-family: "Headline One", "Alwyn-New-Rounded-Web", alwyn-new-rounded-web, Impact, sans-serif;
  font-size: 30px !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  color: #FFFFFF !important;
  background: transparent !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid #1D6D5F !important;
}
#ast-mobile-popup .main-header-menu .current-menu-item > .menu-link { color: #FDC88A !important; }
#ast-mobile-popup .ast-header-button-1 { margin-top: 28px; }
#ast-mobile-popup .ast-header-button-1 .ast-builder-button-wrap,
#ast-mobile-popup .ast-header-button-1 .ast-custom-button-link { display: block; width: 100%; }
#ast-mobile-popup .ast-header-button-1 .ast-custom-button { width: 100%; min-height: 56px; justify-content: center; }

/* 4. Mobile buy bar (phone board) */
.ih-buybar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 80px; }
  .ih-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(3, 10, 8, 0.96);
    border-top: 1px solid #1D6D5F;
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  }
  .ih-buybar.is-on { transform: none; }
  .ih-buybar__img { width: 40px; height: auto; flex: none; }
  .ih-buybar__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .ih-buybar__title { font-family: "Headline One", "Alwyn-New-Rounded-Web", alwyn-new-rounded-web, Impact, sans-serif; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: #FFFFFF; }
  .ih-buybar__price { font-family: "Alwyn-New-Rounded-Web", alwyn-new-rounded-web, system-ui, sans-serif; font-size: 14px; color: #FDC88A; }
  .ih-buybar__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: #F8971D; color: #000000 !important; font-family: "Alwyn-New-Rounded-Web", alwyn-new-rounded-web, system-ui, sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; text-decoration: none !important; }
}
@media (prefers-reduced-motion: reduce) { .ih-buybar { transition: none; } }

/* 5. Buttons in the sections: centred label, tight lines when a label wraps (phones) */
.fl-ds-block a[class*="__btn"] {
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  padding-top: 12px;
  padding-bottom: 12px;
  text-decoration: none !important;
}

/* 6. Centre capped sections (BB AI base resets .fl-ds-block margins to 0, which beats the mock-up's margin: 0 auto) */
.fl-builder-content > section.fl-ds-block,
.fl-builder-content > footer.fl-ds-block {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 7. Header 922 to 1200px: keep menu, logo and button on one line */
@media (min-width: 922px) and (max-width: 1200px) {
  #masthead .custom-logo { width: 150px; }
  #masthead .main-header-menu .menu-link { padding: 0 9px; letter-spacing: 0.08em; white-space: nowrap; }
  .ast-header-button-1 .ast-custom-button { padding: 10px 14px !important; letter-spacing: 1px !important; white-space: nowrap; }
  #masthead .site-primary-header-wrap.ast-container { padding: 0 24px; }
}

/* 8. Open mobile menu: same logo and spot as the closed header */
#ast-mobile-popup .ast-mobile-popup-header { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-top: 0 !important; padding-bottom: 0 !important; }
#ast-mobile-popup .ast-mobile-popup-header::before { content: ""; display: block; width: 150px; height: 46px; background: url("https://innerhero.onlineprecision.nl/wp-content/uploads/innerhero-logo-horizontaal-diapositief-1280-300x92.png") left center / contain no-repeat; }

/* 9. One calm reveal per section (not the first section: it holds the LCP) */
@media (prefers-reduced-motion: no-preference) {
  .ih-motion .fl-builder-content-primary > section.fl-ds-block:not(:first-child) > * { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
  .ih-motion .fl-builder-content-primary > section.fl-ds-block.is-in > * { opacity: 1; transform: none; }
}
.fl-builder-edit .fl-builder-content-primary > section.fl-ds-block > * { opacity: 1 !important; transform: none !important; }

/* 10. Buttons content-wide (not stretched to the column), also on phones */
.fl-ds-block a[class*="__btn"] {
  width: fit-content !important;
  max-width: 100%;
  align-self: auto;
}

/* 11. Buttons on phones: tighter padding and spacing */
@media (max-width: 767px) {
  .fl-ds-block a[class*="__btn"] {
    padding-left: 22px !important;
    padding-right: 22px !important;
    letter-spacing: 0.05em !important;
    font-size: 14px !important;
    min-height: 52px !important;
  }
}

/* 12. Outlined and card buttons: content-wide too */
.ih-hero .ih-hero__link,
.ih-verder .ih-verder__link,
.ih-verder .ih-verder__btn,
.me-slot .me-slot__link {
  width: fit-content !important;
  max-width: 100%;
  justify-content: center;
  text-align: center;
}
@media (max-width: 767px) {
  .ih-hero .ih-hero__link,
  .ih-verder .ih-verder__link,
  .me-slot .me-slot__link {
    padding-left: 22px !important;
    padding-right: 22px !important;
    letter-spacing: 0.05em !important;
    font-size: 14px !important;
  }
}

/* 13. Phones: buttons span the content width (Michael 12-11), equal widths, label centred */
@media (max-width: 767px) {
  .fl-ds-block a[class*="__btn"],
  .ih-hero .ih-hero__link,
  .ih-verder .ih-verder__link,
  .me-slot .me-slot__link {
    width: 100% !important;
    max-width: none;
    align-self: stretch;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}
