/* ==========================================================================
   Boksschool De Amateur – site.css (child theme)
   Fonts, Astra header/mobile menu, page chrome and Gravity Forms.
   Section styling lives in the Beaver Builder AI design system
   "De Amateur – Ringlicht" and in each custom module.
   ========================================================================== */

/* Fonts (self-hosted, no Google Fonts) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-wdth.woff2') format('woff2-variations'), url('../fonts/archivo-latin-wdth.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-ext-wdth.woff2') format('woff2-variations'), url('../fonts/archivo-latin-ext-wdth.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600; src: url('../fonts/plex-mono-600.woff2') format('woff2'); }

:root {
  --da-ink: #121214;
  --da-deep: #0B0B0C;
  --da-line: #2C2C31;
  --da-text: #F2F2EE;
  --da-muted: #A9A9A4;
  --da-red: #D3271C;
  --da-red-dark: #B51F15;
  --da-red-light: #FF5A4C;
  --da-gutter: clamp(20px, 5vw, 64px);
}

/* Page chrome */
html,
body,
#page,
.site-content,
.ast-separate-container,
.ast-plain-container,
.ast-page-builder-template .site-content > .ast-container {
  background-color: var(--da-ink);
}
body {
  color: var(--da-text);
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
}
a { color: var(--da-red-light); }
a:hover { color: #FF7A6E; }
::selection { background: var(--da-red); color: #fff; }

/* Header: one container width with the page content */
#masthead .ast-container,
#masthead .site-primary-header-wrap {
  max-width: 1280px;
  padding-left: var(--da-gutter);
  padding-right: var(--da-gutter);
}
#masthead .ast-primary-header-bar,
.ast-theme-transparent-header #masthead .ast-primary-header-bar,
.ast-theme-transparent-header .main-header-bar {
  background: transparent !important;
  border-bottom: 0;
}
.ast-theme-transparent-header #masthead {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
}
/* Logo + wordmark */
#masthead .site-branding,
#masthead .ast-site-identity {
  padding: 0;
}
#masthead .ast-site-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
#masthead .site-logo-img img {
  width: 164px;
  max-width: 164px;
  height: auto;
}
#masthead .site-title {
  margin: 0;
  line-height: 1;
}
#masthead .site-title a,
.ast-theme-transparent-header #masthead .site-title a {
  color: #FFFFFF;
  font-family: 'Archivo', Arial, sans-serif;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
}
#masthead .site-description {
  margin: 5px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--da-muted);
  line-height: 1;
}
/* Desktop menu */
#masthead .site-header-primary-section-right {
  gap: clamp(14px, 1.8vw, 30px);
}
#masthead .main-header-menu {
  gap: clamp(14px, 1.8vw, 30px);
}
#masthead .main-header-menu > .menu-item > .menu-link {
  padding: 0;
  color: var(--da-text);
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
#masthead .main-header-menu > .menu-item > .menu-link:hover,
#masthead .main-header-menu > .current-menu-item > .menu-link {
  color: #FFFFFF;
}
#masthead .main-header-menu > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% - 1.15em);
  height: 2px;
  background: var(--da-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#masthead .main-header-menu > .menu-item > .menu-link:hover::after,
#masthead .main-header-menu > .current-menu-item > .menu-link::after {
  transform: scaleX(1);
}
/* Header button (Contact) */
#masthead .ast-header-button-1 .ast-custom-button,
#ast-mobile-popup .ast-header-button-1 .ast-custom-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--da-red);
  border-radius: 0;
  background: var(--da-red);
  color: #FFFFFF;
  font-family: 'Archivo', Arial, sans-serif;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
}
#masthead .ast-header-button-1 .ast-custom-button:hover {
  background: var(--da-red-dark);
  border-color: var(--da-red-dark);
}
#masthead .ast-header-button-1 a { text-decoration: none; }
/* Mobile trigger + popup */
#masthead .menu-toggle.main-header-menu-toggle,
#masthead .ast-mobile-menu-trigger-minimal {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 242, 238, 0.35) !important;
  background: transparent !important;
  color: var(--da-text);
  border-radius: 0;
}
#masthead .menu-toggle .ast-mobile-svg { fill: var(--da-text); }
#ast-mobile-popup .ast-mobile-popup-inner,
#ast-mobile-popup .ast-mobile-popup-content {
  background: var(--da-ink);
}
#ast-mobile-popup .ast-mobile-popup-content {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100% - 80px);
  padding: 12px 20px 32px;
}
#ast-mobile-popup .menu-toggle-close {
  color: var(--da-text);
}
#ast-mobile-popup .menu-toggle-close svg { fill: var(--da-text); }
#ast-mobile-popup .main-header-menu .menu-link {
  color: var(--da-text);
  line-height: 1.25 !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--da-line) !important;
  font-family: 'Archivo', Arial, sans-serif;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
#ast-mobile-popup .main-header-menu .current-menu-item > .menu-link { color: var(--da-red-light); }
#ast-mobile-popup .main-header-menu { background: transparent; border: 0; }
#ast-mobile-popup .ast-header-button-1 {
  margin-top: auto;
  padding-top: 24px;
}
#ast-mobile-popup .ast-header-button-1,
#ast-mobile-popup .ast-header-button-1 .ast-builder-button-wrap,
#ast-mobile-popup .ast-header-button-1 a,
#ast-mobile-popup .ast-header-button-1 .ast-custom-button {
  width: 100%;
}
#ast-mobile-popup .ast-header-button-1 .ast-custom-button {
  min-height: 52px;
  justify-content: center;
  font-size: 16px;
}
@media (max-width: 921px) {
  #masthead .site-logo-img img { width: 120px; max-width: 120px; }
  #masthead .site-title a { font-size: 16px; }
  #masthead .site-description { display: none; }
}

/* Beaver Builder AI custom modules: no theme spacing around them */
.ast-page-builder-template .entry-header { display: none; }
.ast-page-builder-template .site-content > .ast-container,
.ast-page-builder-template .entry-content { padding: 0; margin: 0; max-width: none; }
.fl-builder-content .fl-module-ds-block { margin: 0; }

/* Gravity Forms on dark */
.da-form .gform_wrapper,
.da-form .gform_wrapper.gravity-theme {
  --gf-color-primary: #D3271C !important;
  color: var(--da-text);
  font-family: 'Archivo', Arial, sans-serif;
}
.da-form .gform_wrapper .gfield_label,
.da-form .gform_wrapper legend.gfield_label {
  color: var(--da-text) !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.da-form .gform_wrapper input[type=text],
.da-form .gform_wrapper input[type=email],
.da-form .gform_wrapper input[type=tel],
.da-form .gform_wrapper select,
.da-form .gform_wrapper textarea {
  background: #1A1A1D !important;
  border: 1px solid #3A3A40 !important;
  border-radius: 0 !important;
  color: var(--da-text) !important;
  font-family: 'Archivo', Arial, sans-serif !important;
  font-size: 16px !important;
  min-height: 52px;
  padding: 12px 14px !important;
  box-shadow: none !important;
}
.da-form .gform_wrapper input:focus,
.da-form .gform_wrapper select:focus,
.da-form .gform_wrapper textarea:focus {
  outline: 2px solid var(--da-red-light) !important;
  outline-offset: 1px;
  border-color: var(--da-red-light) !important;
}
.da-form .gform_wrapper .gfield_required { color: var(--da-red-light) !important; }
.da-form .gform_wrapper .gform_footer { margin-top: 8px; }
.da-form .gform_wrapper .gform_button,
.da-form .gform_wrapper .gform-button {
  min-height: 52px !important;
  padding: 0 28px !important;
  border: 2px solid var(--da-red) !important;
  border-radius: 0 !important;
  background: var(--da-red) !important;
  color: #FFFFFF !important;
  font-family: 'Archivo', Arial, sans-serif !important;
  font-stretch: 112%;
  font-weight: 700 !important;
  font-size: 16px !important;
  cursor: pointer;
}
.da-form .gform_wrapper .gform_button:hover { background: var(--da-red-dark) !important; border-color: var(--da-red-dark) !important; }
.da-form .gform_confirmation_message {
  padding: 22px 24px;
  border: 1px solid #3A3A40;
  border-left: 4px solid var(--da-red);
  color: var(--da-text);
  font-size: 18px;
}
.da-form .gform_wrapper .gfield_validation_message,
.da-form .gform_wrapper .validation_message { background: transparent !important; border: 0 !important; color: var(--da-red-light) !important; padding: 6px 0 0 !important; }
.da-form .gform_wrapper .gform_validation_errors { background: #1A1A1D !important; border: 1px solid var(--da-red) !important; border-radius: 0 !important; box-shadow: none !important; }
.da-form .gform_wrapper .gform_validation_errors h2 { color: var(--da-text) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Header fixes (build round 1) */
body,
body.fl-ds-page { background-color: var(--da-ink) !important; }
#masthead .site-primary-header-wrap .ast-builder-grid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#masthead .site-header-primary-section-left { flex: none; }
#masthead .site-header-primary-section-right {
  flex: 1 1 auto;
  justify-content: flex-end;
  display: flex;
  align-items: center;
}
#masthead .ast-builder-menu-1,
#masthead .main-header-menu {
  flex-wrap: nowrap;
}
#masthead .main-header-menu > .menu-item {
  line-height: 92px;
}
#masthead .main-header-menu .menu-link,
#ast-mobile-popup .main-header-menu .menu-link {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#masthead .ast-header-button-1 .ast-custom-button {
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
#masthead .ast-builder-layout-element { margin: 0; }
/* Links and buttons inside Beaver Builder content (build round 1) */
body .entry-content .fl-builder-content a,
body .entry-content .fl-builder-content a:hover,
body .entry-content .fl-builder-content a:focus,
.fl-builder-content a,
.fl-builder-content a:hover {
  text-decoration: none;
}
body .entry-content .fl-builder-content .bb-text a {
  text-decoration: underline;
  text-decoration-color: var(--da-red);
  text-underline-offset: 3px;
}
.bb-btn:not(.bb-btn-ghost)::after {
  content: "\2192";
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}
/* Footer brand column (build round 1) */
body .site-footer .foot-grid {
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
}
body .site-footer .foot-logo img {
  width: 128px;
}
@media (max-width: 760px) {
  body .site-footer .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact form row (native Beaver Builder row with Gravity Forms) */
.fl-row.da-form-row > .fl-row-content-wrap {
  padding: 0 var(--da-gutter) clamp(72px, 9vw, 128px) !important;
  background: transparent;
}
.fl-row.da-form-row .fl-row-content {
  max-width: 1152px !important;
  margin: 0 auto;
}
.fl-row.da-form-row .fl-col-content {
  margin: 0 !important;
  padding: 0 !important;
}
.fl-row.da-form-row .fl-module.da-form {
  max-width: 760px;
  margin: 0 !important;
}
.da-form .gform_wrapper .gform_fields {
  row-gap: 22px;
}
/* Audit round 1: heading lengths and mobile overflow */
body .bb-phero .bb-phero-in {
  max-width: 960px;
}
body .bb-phero .bb-h1 {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}
@media (max-width: 760px) {
  body .fl-builder-content .bb-h1 {
    font-size: 2.125rem;
    font-stretch: 104%;
    line-height: 1;
  }
  body .fl-builder-content .bb-h2 {
    font-size: 1.875rem;
    font-stretch: 106%;
    line-height: 1.02;
  }
  body .fl-builder-content .bb-h1,
  body .fl-builder-content .bb-h2,
  body .fl-builder-content .traject-name,
  body .fl-builder-content .wh-person,
  body .fl-builder-content .kw-word {
    overflow-wrap: break-word;
    hyphens: auto;
  }
  body .site-footer .foot-logo {
    white-space: normal;
    flex-wrap: wrap;
  }
  body .fl-builder-content .traject-grid,
  body .fl-builder-content .leer-list {
    grid-template-columns: 1fr;
  }
  body .fl-builder-content .traject-item {
    gap: 12px;
  }
  body .fl-builder-content .aanm-box,
  body .fl-builder-content .km-box {
    padding: 28px 20px;
  }
}
/* Header: mobile/tablet sizing (audit round 1) */
@media (max-width: 1180px) {
  #masthead .site-primary-header-wrap .ast-builder-grid-row { gap: 12px; }
  #masthead .site-header-primary-section-left { flex: 1 1 auto; min-width: 0; }
  #masthead .site-header-primary-section-right { flex: none; }
  #masthead .site-description { display: none; }
}
@media (max-width: 480px) {
  #masthead .site-logo-img img { width: 96px; max-width: 96px; }
  #masthead .ast-site-identity { gap: 10px; }
  #masthead .site-title a { font-size: 15px; }
}
/* Use the mobile header up to 1180px: the full menu does not fit below that */
@media (max-width: 1180px) {
  #masthead #ast-desktop-header { display: none !important; }
  #masthead #ast-mobile-header { display: block !important; }
}

/* Fallback for pages without the BB AI design system (404, search):
   the Themer footer still needs the Ringlicht tokens and container. */
:root {
  --ds-color-ink: #121214;
  --ds-color-surface: #1A1A1D;
  --ds-color-deep: #0B0B0C;
  --ds-color-line: #2C2C31;
  --ds-color-line-strong: #3A3A40;
  --ds-color-text: #F2F2EE;
  --ds-color-text-soft: #C9C9C4;
  --ds-color-text-muted: #A9A9A4;
  --ds-color-white: #FFFFFF;
  --ds-color-red: #D3271C;
  --ds-color-red-dark: #B51F15;
  --ds-color-red-light: #FF5A4C;
  --ds-font-heading: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --ds-font-body: 'Archivo', Arial, Helvetica, sans-serif;
  --ds-font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ds-weight-medium: 500;
  --ds-weight-black: 900;
  --ds-letter-label: 0.14em;
  --ds-width-container: 1280px;
  --ds-space-gutter: clamp(1.25rem, 5vw, 4rem);
}
.site-footer .bb-container {
  width: 100%;
  max-width: var(--ds-width-container);
  margin: 0 auto;
  padding-left: var(--ds-space-gutter);
  padding-right: var(--ds-space-gutter);
  box-sizing: border-box;
}
.site-footer h2,
.site-footer p {
  margin: 0;
}
.site-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Feedback round 1 (15-10-2026): no decorative borders around text blocks */
body .fl-builder-content .bb-note {
  padding: 0;
  border: 0;
  color: var(--da-text);
}
.da-form .gform_confirmation_message {
  padding: 0;
  border: 0;
}

/* Breadcrumb top of page hero, away from H1 (feedback 15-10) */
.bb-phero .bb-container{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;padding-top:210px!important}
.bb-phero .bb-crumb{position:absolute;top:116px;left:var(--ds-space-gutter);z-index:2;color:var(--ds-color-text-soft,#C9C9C4);text-shadow:0 1px 8px rgba(0,0,0,.6)}
.bb-phero .bb-crumb a{color:inherit}
.bb-phero .bb-crumb a:hover{color:#fff}
@media (max-width:760px){.bb-phero .bb-crumb{top:100px}.bb-phero .bb-container{padding-top:260px!important}}

/* Legal pages (plain editor pages such as Privacyverklaring), feedback round 2 */
body.page:not(.fl-builder) .site-content > .ast-container{max-width:1280px;padding-left:clamp(20px,5vw,64px);padding-right:clamp(20px,5vw,64px)}
body.page:not(.fl-builder) .site-main{padding:clamp(150px,16vw,190px) 0 clamp(4.5rem,9vw,7rem)}
body.page:not(.fl-builder) .entry-content{max-width:72ch;color:#C9C9C4;font-size:1.0625rem;line-height:1.65}
body.page:not(.fl-builder) .entry-content h1{font-family:'Archivo',Arial,sans-serif;font-stretch:118%;font-weight:850;font-size:clamp(2.25rem,5vw,4rem);line-height:1;letter-spacing:-0.03em;color:#fff;margin:0 0 .6em}
body.page:not(.fl-builder) .entry-content h2{font-family:'Archivo',Arial,sans-serif;font-stretch:112%;font-weight:800;font-size:1.375rem;line-height:1.2;color:#fff;margin:2em 0 .5em}
body.page:not(.fl-builder) .entry-content p,body.page:not(.fl-builder) .entry-content ul{margin:0 0 1em}
body.page:not(.fl-builder) .entry-content strong{color:#fff}
body.page:not(.fl-builder) .entry-content a{color:#FF5A4C;text-decoration:underline !important;text-underline-offset:3px}
@media (max-width:760px){body.page:not(.fl-builder) .entry-content{font-size:1rem}}
/* Inline text links in running text (mailto etc.), feedback round 2 */
body .entry-content .fl-builder-content p a:not([class]){color:#FF5A4C;text-decoration:underline !important;text-underline-offset:3px;text-decoration-thickness:1px}
body .entry-content .fl-builder-content p a:not([class]):hover{color:#fff}
body .entry-content .fl-builder-content .bb-light p a:not([class]){color:#B51F15}
body .entry-content .fl-builder-content .bestuur-contact a{text-decoration:none !important}

/* Mobile popup CTA case, pre-launch check */
#ast-mobile-popup .ast-custom-button{text-transform:none !important;letter-spacing:normal !important}
