/* ==========================================================================
   db-globals.css · Daelim Belefic child theme
   --------------------------------------------------------------------------
   The few header/footer details Divi's settings can't hold. Layout, sizes,
   colours and type are in the Theme Builder layouts and presets; this file
   only adds what has no Divi option. Static source: src/css/sections/g2-footer.css.
   ========================================================================== */

/* Footer link lists (Text module "Text: Footer Link"): 12px between items; Divi has no list-item gap option */
.g2-links .g2-list { margin: 0; padding: 0; list-style: none; display: grid; row-gap: var(--sp-12); }
.g2-links .g2-list p { margin: 0; padding: 0; }
/* the links underline on hover only (static: a.text-footer-link) */
.g2-links a, .g2-legal a { text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard); color: var(--c-white); }
.g2-links a:hover, .g2-links a:focus-visible, .g2-legal a:hover, .g2-legal a:focus-visible { color: var(--c-white); text-decoration-color: currentColor; }
.g2-legal p { color: var(--c-white); }

/* Footer newsletter (Gravity Forms "Newsletter", CSS class db-optin-dark): two fields side by side, labels floating
   inside 61px-high outlined boxes, full-width red Subscribe. Gravity Forms 2.5 theme markup. */
.et_pb_gravity_forms.db-optin-dark { row-gap: 0; } /* the module's flex gap would sit under the form */
.db-optin-dark .gform_wrapper { margin: 0; }
.db-optin-dark .gform_heading { display: none; } /* the form title is the heading above the form */
.db-optin-dark .gform_fields { display: flex !important; gap: var(--sp-16) !important; grid-template-columns: none !important; }
.db-optin-dark .gfield { position: relative; flex: 1 1 0; min-width: 0; margin: 0 !important; padding: 0 !important; }
.db-optin-dark .gfield_label { position: absolute; left: var(--sp-12); top: 9px; z-index: 1; margin: 0 !important; pointer-events: none;
  font-size: var(--fs-12) !important; line-height: var(--lh-normal) !important; font-weight: var(--fw-medium) !important;
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--c-white) !important; transition: color var(--dur-fast) var(--ease-standard); }

.db-optin-dark .ginput_container input { width: 100% !important; height: 61px !important; padding: 29px var(--sp-12) 8px !important; margin: 0 !important;
  background: transparent !important; color: var(--c-white) !important; border: var(--bw-hair) solid var(--c-white) !important; border-radius: 0 !important;
  font-size: var(--fs-16) !important; line-height: var(--lh-normal) !important; font-weight: var(--fw-medium) !important; box-shadow: none !important;
  transition: border-color var(--dur-fast) var(--ease-standard); }
.db-optin-dark .ginput_container input:hover { border-color: var(--c-grey-300) !important; }
.db-optin-dark .ginput_container input:focus { outline: none !important; border-color: var(--c-red) !important; }
.db-optin-dark .gfield:focus-within .gfield_label { color: var(--c-red) !important; }
.db-optin-dark .gfield_error input { border-color: var(--c-red) !important; box-shadow: inset 0 0 0 1px var(--c-red) !important; }
.db-optin-dark .gfield_validation_message, .db-optin-dark .validation_message { margin-top: var(--sp-6) !important; padding: .125rem 0 0 !important; background: none !important; border: 0 !important;
  font-size: 14px !important; line-height: 1.5 !important; font-weight: var(--fw-medium) !important; letter-spacing: var(--ls-micro); text-transform: capitalize; color: var(--c-red) !important; }
.db-optin-dark .gform_validation_errors { display: none !important; }
.db-optin-dark .gform_footer { margin: 24px 0 0 !important; padding: 0 !important; }
.db-optin-dark .gform_footer input[type="submit"], .db-optin-dark .gform_footer button {
  width: 100% !important; max-width: 100% !important; height: 48px !important; margin: 0 !important; padding: 0 var(--sp-64) !important; border: 0 !important; border-radius: 0 !important;
  background: var(--c-red) !important; color: var(--c-white) !important; cursor: pointer;
  font-family: var(--ff-base) !important; font-size: var(--fs-18) !important; line-height: var(--lh-title) !important; font-weight: var(--fw-bold) !important;
  transition: background-color var(--dur-base) var(--ease-standard); }
.db-optin-dark .gform_footer input[type="submit"]:hover, .db-optin-dark .gform_footer input[type="submit"]:focus-visible,
.db-optin-dark .gform_footer button:hover, .db-optin-dark .gform_footer button:focus-visible { background: var(--c-red-600) !important; }
.db-optin-dark .gform_confirmation_message { color: var(--c-white); font-size: var(--fs-18); line-height: var(--lh-normal); font-weight: var(--fw-medium); }
.db-optin-dark .gform_confirmation_message .db-optin-success-title { font-size: var(--fs-20); line-height: var(--lh-snug); margin-bottom: var(--sp-12); }
@media (max-width: 767px) { .db-optin-dark .gform_fields { flex-direction: column; } }

/* Footer, tablet (≤1023): the link columns of both inner rows become one 2-column grid (Industries | Company,
   Insights | Products & Service, Get in Touch across both). Needs display: contents on the two inner row groups, which
   Divi's layout options don't offer. Static: g2-footer.css @media (max-width: 1023px). */
@media (max-width: 1023px) {
  .g2-footer__links { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: var(--sp-32); row-gap: var(--sp-48); }
  .g2-footer__row1, .g2-footer__row2 { display: contents !important; }
  .g2-footer__links .g2-col { width: auto !important; }
  .g2-footer__links .g2-col--touch { grid-column: 1 / -1; }
}
/* Footer, phone (≤767): the legal row sits above the copyright */
@media (max-width: 767px) {
  .g2-footer__bottom .g2-footer__legal { order: 1; }
  .g2-footer__bottom .g2-footer__copy { order: 2; }
}

/* Visual Builder / Theme Builder editing view: Divi's ".et-db #et-boc .et-l a" link colour outranks the rules above */
.et-db #et-boc .et-l .g2-links a, .et-db #et-boc .et-l .g2-legal a { color: var(--c-white); }

/* Footer DB watermark (the section's background image, 410 x 252 at left 60 / bottom 68 in Divi): its left edge lines up
   with the newsletter box at every width (Xae, dev tab, 2026-10-25). Divi's background offset only takes plain values, so
   the two moving cases live here. Above 1440 the box moves with the centred row: x = 50% − 660, and in background-position
   50% means half of (footer − 410), hence 50% − 455. At 1024–1279 the box sits at the gutter. */
@media (min-width: 1441px) { .et-l--footer .et_pb_section.g2-footer { background-position: left calc(50% - 455px) bottom 68px !important; } }
@media (min-width: 1024px) and (max-width: 1279px) { .et-l--footer .et_pb_section.g2-footer { background-position: left var(--gutter) bottom 68px !important; } }

/* Footer watermark, tablet and phone (≤1023): below the copyright instead of behind it, lined up with the content's left
   edge; the section grows by the logo's height plus a gap (Xae, BugHerd #113, 2026-11-05: it sat in the bottom-right
   corner behind the text). Logo 246 × 151 here (Divi background size). */
@media (max-width: 1023px) {
  .et-l--footer .et_pb_section.g2-footer { padding-bottom: calc(var(--sp-48) + 151px + var(--sp-32)) !important;
    background-position: left var(--gutter) bottom var(--sp-32) !important; }
}

/* Footer social icons under Get in Touch (Xae's red-square icons, child theme img/social/; BugHerd #111, 2026-11-05):
   one row, 32px squares, 12 apart; the Image modules carry the links (new tab) so they stay editable in Divi */
.g2-social { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: var(--sp-12) !important; margin-top: 8px; }
.g2-social .et_pb_image { width: 32px !important; margin: 0 !important; }
.g2-social :is(a, .et_pb_image_wrap, img) { display: block; width: 32px; height: 32px; }
.g2-social a { transition: opacity var(--dur-fast) var(--ease-standard), translate var(--dur-fast) var(--ease-standard); }
.g2-social a:is(:hover, :focus-visible) { opacity: .85; translate: 0 calc(-1 * var(--nudge)); }
.g2-social a:focus-visible { outline: var(--bw-focus) solid var(--c-focus-on-dark); outline-offset: 3px; }

/* Divi scroll-to-top button: square corners (Eon, on staging 10-13 → 10-15) */
.et_pb_scroll_top.et-pb-icon { border-radius: 0; }

/* ==========================================================================
   Large screens (Xae, BugHerd #152, 2026-11-11): the site was designed at 1440 and stopped growing there, so on a 27"
   (2560px) monitor everything looked small and narrow. Above 1440px the whole layout scales up from the 1440 design:
   the base unit (rem) grows with the screen, and the fixed px widths below are re-expressed in rem so columns, cards and
   the header grow in step with the text and spacing (which are already rem). At 1440 and below nothing changes.
   Scale (Xae 11-12, "a bit bigger than I expected"): 16px at 1440 → 19.2px (1.2x) at 1920 → 21.6px (1.35x) from 2160 up.
   Was 1.33x at 1920 and 1.5x from 2160 (min(1.1111vw, 24px)). The two straight lines meet at 1920, so it grows smoothly:
   0.66667vw + 6.4px from 1440 to 1920, then 1vw up to the 21.6px cap.
   ========================================================================== */
@media (min-width: 1441px) {
  html { font-size: min(max(calc(0.66667vw + 6.4px), 1vw), 21.6px); }
  /* the header logo is capped at its image's natural 316px by Divi, and the search icon is set in px: let both grow too */
  .et-db #et-boc .et-l .g1-header .logo-block :is(.et_pb_image, .et_pb_image_wrap, img) { width: 19.75rem !important; max-width: none !important; }
  .g1-header .db-search-icon { width: 1.375rem !important; height: 1.375rem !important; }
  html:root {   /* html:root outranks the :root blocks Divi prints later in the page */
    --gvid-h-feed-row: 12.5rem;   /* 200px */
    --gvid-h-header: 5rem;   /* 80px */
    --gvid-w-article: 75rem;   /* 1200px */
    --gvid-w-card-float: 37.5rem;   /* 600px */
    --gvid-w-card-overlap: 41.0625rem;   /* 657px */
    --gvid-w-card-slider: 42.8125rem;   /* 685px */
    --gvid-w-col: 33.25rem;   /* 532px */
    --gvid-w-content: 74.875rem;   /* 1198px */
    --gvid-w-cta-card: 51.75rem;   /* 828px */
    --gvid-w-emphasis: 32.5rem;   /* 520px */
    --gvid-w-feed: 69.5rem;   /* 1112px */
    --gvid-w-form-rfq: 65.25rem;   /* 1044px */
    --gvid-w-form: 59.9375rem;   /* 959px */
    --gvid-w-heading-col: 48.5625rem;   /* 777px */
    --gvid-w-intro-body: 39.9375rem;   /* 639px */
    --gvid-w-intro-wide-body: 58.625rem;   /* 938px */
    --gvid-w-intro-wide: 65rem;   /* 1040px */
    --gvid-w-intro: 49.375rem;   /* 790px */
    --gvid-w-overlap-about: 76.25rem;   /* 1220px */
    --gvid-w-photo-overlap: 41.3125rem;   /* 661px */
    --gvid-w-photo-tall: 39.25rem;   /* 628px */
    --gvid-w-split-col: 34.0625rem;   /* 545px */
    --gvid-w-split-copy: 31.0625rem;   /* 497px */
    --gvid-w-split: 86rem;   /* 1376px */
    --gvid-w-statement: 57rem;   /* 912px */
    --gvid-h-split: 32.1875rem;   /* 515px */
    --gvid-zone-padmount: clamp(var(--gvid-gap-loose), 19.1vw, 17.1875rem);   /* 275px cap */
  }
  /* px sizes in Divi presets (Design > Sizing / Spacing of the preset), same idea */
  .et-db #et-boc .et-l .preset--module--divi-row--9f253bcdfe { max-width: 80.8125rem !important; }   /* Row: Footer 1293px */
  .et-db #et-boc .et-l .preset--module--divi-row--4fa43fd3af { max-width: 64.75rem !important; }   /* Row: Feed Offset 1036px */
  .et-db #et-boc .et-l .preset--module--divi-section--c01cc8b408 { padding-left: 6.875rem !important; padding-right: 6.875rem !important; }   /* Band Grey 300, 110px */
  .et-db #et-boc .et-l .preset--module--divi-group--380f3c0eda { min-height: 22.5rem !important; }   /* Card – Icon 360px */
  .et-db #et-boc .et-l :is(.preset--module--divi-group--cc86c1c0b2, .preset--module--divi-group--61bf1910d6,
    .preset--module--divi-group--94f4bde395, .preset--module--divi-group--34fc3cd0ce) { min-height: 25rem !important; }   /* Card – Icon Link / Check 400px */
  /* Fixed px sizes typed into module settings (Design > Sizing) don't follow the rem scale, so they are restated here
     in rem (same value at 1440). Found on Dan's 27" monitor 2026-11-11: the S03 band's 506px min-height stayed 506 while
     its text grew past it, so the band lost its top and bottom space and the text looked cut off. */
  .et-db #et-boc .et-l .et_pb_section.s03-statement-band { min-height: 31.625rem !important; }   /* 506px */
  .et-db #et-boc .et-l .s03-statement-band__heading { width: min(71.1875rem, calc(100vw - 2 * var(--gutter))) !important; }   /* 1139px */
  .et-db #et-boc .et-l .s03-statement-band__paras { max-width: 52.875rem !important; }   /* 846px */
  .et-db #et-boc .et-l .s11-two-col-feature__photo { min-height: 20rem !important; }   /* 320px */
  .et-db #et-boc .et-l .s02-split-hero__media { width: max(min(49.875rem, 55.42vw), calc(100% - 36.125rem)) !important; }   /* 798 / 578px */
  .et-db #et-boc .et-l .et_pb_section.s06-photo-interstitial { height: min(46.597vw, 41.9375rem) !important; }   /* 671px */
  .et-db #et-boc .et-l .s19-prefer-to-talk__text { width: 29.875rem !important; }   /* 478px */
  .et-db #et-boc .et-l .s21-featured-event__media { width: calc(26.25rem + var(--sp-24)) !important; }   /* 420px */
  .et-db #et-boc .et-l .s21-featured-event__text { width: 36.6875rem !important; }   /* 587px */
  .et-db #et-boc .et-l .s21-featured-event__summary { max-width: 30.3125rem !important; }   /* 485px */
  .et-db #et-boc .et-l .s23-event-list__text { max-width: 56.25rem !important; }   /* 900px */
  .et-db #et-boc .et-l .s24-news-band__list { max-width: 63.5rem !important; }   /* 1016px */
  .et-db #et-boc .et-l :is(.s24-news-band__item-title, .s29-data-list-rows__title) { max-width: 55.375rem !important; }   /* 886px */
  .et-db #et-boc .et-l .db-results__search { max-width: 40rem !important; }   /* 640px */
  /* menu dropdowns (db-header.css): their geometry is px from the 1440 design while their text is rem, so above 1440 the
     longest names ran past the panel's edge ("Engineering and Construction" cut off in Industries; Dan, 11-11) */
  .db-flyout--products { left: -3.75rem; --flyout-w: 39.125rem; --flyout-h: 16.125rem; }   /* -60 / 626 / 258px */
  .db-flyout--industries { left: -18.625rem; --flyout-w: 33.5625rem; --flyout-h: 13.375rem; }   /* -298 / 537 / 214px */
  .db-flyout--company { left: -17.875rem; --flyout-w: 28.25rem; --flyout-h: 12.625rem; }   /* -286 / 452 / 202px */
  .db-flyout-photos { width: 15.625rem; }   /* 250px */
  .db-flyout-body { padding: 1.5rem 3rem 1.5rem 2rem; }   /* 24 48 24 32px */
  .db-flyout--photo-right .db-flyout-body { padding: 1.5rem 2rem 1.5rem 3rem; }
  .db-flyout--industries .db-flyout-body { padding-block: var(--sp-16); }
  .db-flyout-lists { margin-top: .875rem; }   /* 14px */
  :is(.db-flyout-list, .db-flyout-drill) { row-gap: .35rem; }   /* 5.6px */
  .db-flyout-caret { left: calc(50% - .375rem); width: 1.525rem; height: .6875rem; }   /* 6 / 24.4 / 11px */
  .db-drill { padding: .6875rem .625rem .6875rem .5625rem; margin: -.6875rem -.625rem -.6875rem 0; }   /* 11 10 11 9px */
  /* db-flyout-sub.css (loads after this file, hence the extra .db-flyout): the text column is the panel minus the photo,
     written there with the photo's 250px, so it overran the panel once the photo grew; same for the sub-list's gap */
  html:root { --sub-gap: 3rem; }   /* 48px */
  .db-flyout > .db-flyout-body { width: calc(var(--flyout-w) - 15.625rem); }   /* panel − 250px photo */
  .db-flyout .db-flyout-drill { bottom: -1.5rem; }   /* 24px */
  .db-flyout .db-flyout-drill > .db-flyout-list { row-gap: .35rem; }
  /* footer (Theme Builder footer 588); the watermark logo's size and place (line ~74) in rem too, so it stays under the newsletter column */
  .et-l--footer .et_pb_section.g2-footer { background-size: 25.625rem 15.75rem !important;
    background-position: left calc(50% - 28.4375rem) bottom 4.25rem !important; }   /* 410 × 252px, 455px, 68px */
  .et-db #et-boc .et-l .g2-footer__news { width: 31.75rem !important; min-width: 23.75rem !important; }   /* 508 / 380px */
  .et-db #et-boc .et-l .g2-newsletter { min-height: 16.8125rem !important; }   /* 269px */
  .et-db #et-boc .et-l .g2-footer__links { width: 45.1875rem !important; margin-top: 4.25rem !important; row-gap: 3rem !important; }   /* 723 / 68 / 48px */
  .et-db #et-boc .et-l .g2-footer__news { margin-top: 2.9375rem !important; }   /* 47px */
  .et-db #et-boc .et-l .g2-footer__row1 { column-gap: 3.5625rem !important; }   /* 57px */
  .et-db #et-boc .et-l .g2-footer__row1 > .g2-col:nth-child(1) { width: 17.1875rem !important; }   /* 275px */
  .et-db #et-boc .et-l .g2-footer__row1 > .g2-col:nth-child(2) { width: 9.375rem !important; }   /* 150px */
  .et-db #et-boc .et-l .g2-footer__row1 > .g2-col:nth-child(3) { width: 11.5rem !important; }   /* 184px */
}
