/* ==========================================================================
   db-home-hero.css · Daelim Belefic child theme
   --------------------------------------------------------------------------
   S30 Home hero (homepage only; option 2 "The Bolt", chosen by Dan 2026-10-27).
   What Divi has no setting for: the lightning-bolt cut on the video column,
   the power-transformer silhouette on the black band, the hairline under the
   header, the video column's position, the white outline button and the motion.
   Colours, fonts, sizes and spacing are in the section's Divi settings.
   Static source: src/css/sections/s30-home-hero.css.
   ========================================================================== */

.et_pb_section.s30-home-hero {
	--s30-inset: clamp(1.25rem, 5vw, 6rem);   /* hero text inset from the screen edge: 20 → 72 at 1440 → 96 at 1920 */
	--s30-bolt: polygon(15.6% 0, 100% 0, 100% 100%, 8.2% 100%, 23.2% 47.6%, 0 47.2%);   /* Figma rfq-hero-lightning-crop.png */
	position: relative; isolation: isolate; overflow: clip;
	display: flex; flex-direction: column;
	border-top: 1px solid rgba(255, 255, 255, .22);   /* so the black band doesn't merge into the black header */
}
/* the power-transformer silhouette at the S13 backdrop's scale (2302 × 1359), white at 6%, its base below the edge.
   Its tank sits against the bolt's edge (45% across), so it reads as the far side of the photo's transformer (Xae, #13). */
.et_pb_section.s30-home-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06; background: var(--c-white); pointer-events: none;
	-webkit-mask: url("../svg/about-decorative-line.svg") calc(45vw - 498px) calc(100% + 460px) / 2302px 1359px no-repeat;
	        mask: url("../svg/about-decorative-line.svg") calc(45vw - 498px) calc(100% + 460px) / 2302px 1359px no-repeat;
}
.s30-home-hero .et_pb_row.s30-home-hero__row { flex: 1 1 auto; width: 100%; max-width: none; margin: 0; padding: 0; align-items: stretch; column-gap: 0; }
.s30-home-hero .et_pb_column.s30-home-hero__text {
	flex: 0 0 52%; width: 52%; max-width: 52%; position: relative; z-index: 2; margin: 0;
	padding: var(--sp-64) var(--sp-48) var(--sp-64) var(--s30-inset);
}
.s30-home-hero__accent { display: block; color: var(--c-red); }
.s30-home-hero .s30-home-hero__h1 h1 { text-wrap: balance; }
body #page-container .s30-home-hero a.et_pb_button.s30-home-hero__cta { padding-left: var(--sp-32) !important; padding-right: var(--sp-32) !important; }

/* white outline button on the black band (Outline Inverse's shape, transparent with a white border; white sweep on hover) */
body #page-container .s30-home-hero a.et_pb_button.s30-home-hero__ghost {
	background-color: transparent !important; border-color: var(--c-white) !important; color: var(--c-white) !important;
	padding: var(--sp-12) var(--sp-32) !important;   /* same height as Primary Red beside it (BugHerd #94) */
	box-shadow: inset 0 0 0 0 var(--c-white) !important;
}
body #page-container .s30-home-hero a.et_pb_button.s30-home-hero__ghost:is(:hover, :focus-visible) {
	box-shadow: inset var(--sweep, 480px) 0 0 0 var(--c-white) !important; color: var(--c-blue) !important;
}

/* video column: the right 55%, full height, cut with the bolt so it crosses into the text column */
.s30-home-hero .et_pb_column.s30-home-hero__media {
	position: absolute; top: 0; bottom: 0; right: 0; width: 55%; max-width: none; margin: 0; z-index: 1;
	clip-path: var(--s30-bolt); overflow: hidden;
}
/* Divi 5.16 renamed the video wrapper (.et_pb_section_video_bg → .et-pb-background-video); both are listed */
.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video),
.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video) .mejs-container,
.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video) video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.s30-home-hero .et_pb_column.s30-home-hero__media { animation: s30-bolt-in 1100ms cubic-bezier(.2, .7, .2, 1) both; }
	.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video) { animation: s30-drift 9s ease-out both; }
}
@keyframes s30-bolt-in { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 47.6%, 100% 47.2%); } }
@keyframes s30-drift { from { scale: 1.12; } to { scale: 1; } }
/* reduced motion: no video; the poster (the same frame) is the column's background image.
   !important: Divi 5.16's per-breakpoint video rules (.et-pb-has-background-video:not(:has(…))…) out-rank a class selector */
@media (prefers-reduced-motion: reduce) { .s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video) { display: none !important; } }

/* tablet and phone: photo on top (bolt notch on its left edge), text below */
@media (max-width: 1023px) {
	.et_pb_section.s30-home-hero::before { -webkit-mask-position: -700px calc(100% + 460px); mask-position: -700px calc(100% + 460px); }
	.s30-home-hero .et_pb_row.s30-home-hero__row { flex-direction: column; }
	.s30-home-hero .et_pb_column.s30-home-hero__media {
		display: block !important;   /* Divi hides "empty" columns on tablet and phone; this one holds the background video */
		position: relative; width: 100%; height: 22rem; order: -1; animation: none;
		clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 14% 52%, 0 52%);
	}
	.s30-home-hero .et_pb_column.s30-home-hero__text { flex: none; width: 100%; max-width: none; padding: var(--sp-48) var(--gutter) var(--sp-64); }
}

/* ==========================================================================
   Carousel (Xae, BugHerd #150, 2026-11-11): the hero holds 3 slides (tools/feedback/xae-2026-11-11.php home-carousel),
   driven by js/db-slider.js like the other sliders (autoplay with pause/play, arrows, dots, swipe; slides push sideways).
   Each slide = a text group + a media group (the photo or video, cut with the bolt). The split between them is
   --s30-text-w / --s30-media-w: 30:70 per Xae ("so the image isn't cut off as much"; was 52:55 with the bolt overlap).
   The controls sit under the copy and buttons.
   ========================================================================== */
.et_pb_section.s30-home-hero { --s30-text-w: 30%; --s30-media-w: 70%;
  /* the bolt's upper point sits 8% in (was 0), so with the wider photo it stops short of the text column */
  --s30-bolt-carousel: polygon(15.6% 0, 100% 0, 100% 100%, 8.2% 100%, 23.2% 47.6%, 8% 47.2%); }
.s30-home-hero .et_pb_column.s30-home-hero__col { flex: 1 1 auto; width: 100%; max-width: none; margin: 0; padding: 0; display: flex !important; flex-direction: column; }
.s30-home-hero .s30-home-hero__slider { position: relative; flex: 1 1 auto; display: flex !important; flex-direction: column; width: 100%; }
.s30-home-hero .s30-home-hero__track { display: grid !important; grid-template-columns: minmax(0, 1fr); flex: 1 1 auto; overflow: hidden; touch-action: pan-y pinch-zoom; }
.s30-home-hero .s30-home-hero__slide { grid-area: 1 / 1; position: relative; display: flex !important; flex-direction: row; align-items: center; width: 100%; min-height: 100%;
  visibility: hidden; translate: 100% 0; }
.s30-home-hero .s30-home-hero__slide:is(.is-active, .is-leaving) { visibility: visible; transition: translate var(--dur-slide, .6s) var(--ease-standard, ease); }
.s30-home-hero .s30-home-hero__slide.is-active { translate: 0 0; z-index: 1; }
.s30-home-hero .s30-home-hero__slide.is-leaving { z-index: 2; }
html:not(.js) .s30-home-hero .s30-home-hero__slide:first-child { visibility: visible; translate: 0 0; }
/* text: the left part; it may run a little under the bolt's diagonal, so it sits above the photo */
.s30-home-hero .et_pb_group.s30-home-hero__text {
  flex: 0 0 auto; width: calc(var(--s30-text-w) + 6%); max-width: none; position: relative; z-index: 2; margin: 0 !important;
  padding: var(--sp-64) var(--sp-32) calc(var(--sp-64) + 64px) var(--s30-inset) !important;   /* room for the controls below the buttons */
  display: flex !important; flex-direction: column; align-items: flex-start; row-gap: var(--sp-24);
}
.s30-home-hero .s30-home-hero__text .s30-home-hero__h1 h1,
.s30-home-hero .s30-home-hero__text .s30-home-hero__h1 h2 { font-size: clamp(2.75rem, 3.6vw + .5rem, 4.5rem) !important; line-height: .98 !important; text-wrap: balance; }
/* media: the right part, full height, cut with the bolt */
.s30-home-hero .et_pb_group.s30-home-hero__media {
  position: absolute !important; top: 0; bottom: 0; right: 0; width: var(--s30-media-w) !important; max-width: none; margin: 0 !important; z-index: 1;
  clip-path: var(--s30-bolt-carousel); overflow: hidden;
}
.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video),
.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video) .mejs-container,
.s30-home-hero__media :is(.et_pb_section_video_bg, .et-pb-background-video) video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
/* controls under the copy: dots, then pause/play + arrows (db-slider.js adds pause/play), in the text column's width */
.s30-home-hero .s30-home-hero__controls { position: absolute !important; left: var(--s30-inset); bottom: var(--sp-48); z-index: 3; width: auto !important; margin: 0 !important; }
.s30-home-hero__nav { display: flex; align-items: center; gap: var(--sp-24); color: var(--c-white); }
.s30-home-hero__nav[hidden] { display: none; }
.s30-home-hero__nav .s17-slider__dot { width: 32px; height: 44px; }
.s30-home-hero__nav .s17-slider__dot::before { width: 14px; height: 14px; }
.s30-home-hero__nav .s17-slider__arrow { height: 44px; }
.s30-home-hero__nav .s17-slider__arrow svg { width: 14px; height: 24px; }
/* slides 2 and 3 use an H2 (one H1 per page); Divi ties the hero headline's look to its H1, so the H2 gets it here */
.s30-home-hero .s30-home-hero__text .s30-home-hero__h1 h2 { color: var(--c-white) !important; font-family: Aspekta, sans-serif; font-weight: 600 !important; letter-spacing: -.02em; text-align: left !important; padding-bottom: 0 !important; }

@media (max-width: 1023px) {
  .s30-home-hero .s30-home-hero__slide { flex-direction: column; align-items: stretch; }
  .s30-home-hero .et_pb_group.s30-home-hero__media { position: relative !important; width: 100% !important; height: 22rem; order: -1; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 14% 52%, 0 52%); }
  .s30-home-hero .et_pb_group.s30-home-hero__text { width: 100%; padding: var(--sp-48) var(--gutter) calc(var(--sp-48) + 56px) !important; }
  .s30-home-hero .s30-home-hero__controls { left: var(--gutter); bottom: var(--sp-24); }
}
