/* Product Range pages. Colours: red #ed1c24, navy #1b2432, grey #e8e9eb. */
.eib-eyebrow { margin: 0 0 12px; color: #ed1c24; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.eib-hero h1, .eib-hero h2 { color: #fff; }
.eib-hero h1 { margin: 0 0 8px; padding: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.eib-hero-sub { margin: 0 0 20px; padding: 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; }
.eib-lead { font-size: 18px; line-height: 1.6; font-weight: 400; }
.eib-lead p { margin: 0 0 1em; padding: 0; }
.eib-lead p:last-child { margin-bottom: 0; }
.eib-lead h3 { margin: 0 0 16px; padding: 0; color: #1b2432; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; text-transform: uppercase; }

.eib-section-title { margin: 0 0 28px; padding: 0; color: #1b2432; font-size: clamp(26px, 3vw, 38px); font-weight: 800; text-transform: uppercase; }
.eib-section-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: #ed1c24; }

.eib-image { display: block; width: 100%; height: auto; }

.eib-features, .et_pb_text .eib-features, .et_pb_text_inner .eib-features { margin: 0; padding: 0; list-style: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.eib-features li, .et_pb_text .eib-features li { list-style: none !important; margin: 0; position: relative; padding-left: 24px; font-size: 18px; line-height: 1.4; color: inherit; }
.eib-features li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 14px; background: #ed1c24; transform: skewX(-18deg); }

.eib-compare { margin: 0 0 48px; }
.eib-compare:last-child { margin-bottom: 0; }
.eib-compare h3 { margin: 0 0 16px; padding: 0; color: #1b2432; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.eib-compare-intro { margin: 0 0 20px; font-size: 18px; line-height: 1.6; font-weight: 400; }
.eib-compare table { width: 100%; border-collapse: collapse; background: #fff; }
.eib-compare th, .eib-compare td { padding: 14px 18px; border: 1px solid #e8e9eb; text-align: left; font-size: 16px; }
.eib-compare thead th { background: #1b2432; color: #fff; font-weight: 700; }
.eib-compare thead th:last-child { background: #ed1c24; }
.eib-compare tbody th { width: 28%; color: #1b2432; font-weight: 700; background: #f6f6f7; }

.eib-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.eib-product { display: block; background: #fff; border: 1px solid #e8e9eb; color: #1b2432; text-decoration: none; transition: border-color .2s, transform .2s; }
.eib-product:hover { border-color: #ed1c24; transform: translateY(-2px); }
.eib-product-img { display: block; aspect-ratio: 4 / 3; background: #f6f6f7; }
.eib-product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.eib-product-name { display: block; padding: 16px 18px; font-weight: 700; font-size: 17px; }

.eib-documents { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.eib-documents a { display: block; padding: 14px 18px; background: #fff; border: 1px solid #e8e9eb; border-left: 4px solid #ed1c24; color: #1b2432; font-weight: 600; text-decoration: none; }
.eib-documents a:hover { background: #f6f6f7; }

.eib-cta h2 { margin: 0 0 12px; padding: 0; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; text-transform: uppercase; text-align: center; }
.eib-cta p { margin: 0; color: #fff; font-size: 18px; text-align: center; }

/* Side by side: two columns, each a heading, image and blurb. */
.eib-sbs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 0; }
/* Each column spans three rows (heading, image, text) so both columns line up even when the images differ in height. */
.eib-sbs-col { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.eib-sbs-col h3 { margin: 0 0 28px; padding: 0; color: #1b2432; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.eib-sbs-col .eib-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 350px; object-fit: contain; align-self: end; justify-self: start; margin: 0 0 28px; }
.eib-sbs-col p { margin: 0; padding: 0; font-size: 18px; line-height: 1.6; font-weight: 400; }
@media (max-width: 980px) { .eib-sbs { grid-template-columns: 1fr; } .eib-sbs-col + .eib-sbs-col { margin-top: 48px; } }

/* A Heading module tagged with the class eib-lead-heading matches the heading inside the overview text (.eib-lead h3). */
.eib-lead-heading .et_pb_module_header, .eib-lead-heading h1, .eib-lead-heading h2, .eib-lead-heading h3,
.eib-lead-heading .et_pb_text_inner, .eib-lead-heading .et_pb_text_inner p, .eib-lead-heading p {
	margin: 0 0 16px !important; padding: 0 !important; color: #1b2432 !important; font-family: inherit !important;
	font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 800 !important; font-style: normal !important;
	line-height: 1.15 !important; text-transform: uppercase !important; letter-spacing: normal !important;
}

/* Overview images (Image 1 and Image 2): one fixed frame, image fitted inside it. Small images are not left tiny, tall ones
   never run into the next section, and both overviews line up the same on every product. */
.eib-sec-ov1 .et_pb_image .et_pb_image_wrap, .eib-sec-ov1 .et_pb_image .et_pb_image_wrap img, .eib-image--image_1,
.eib-image--image_2 { display: block; width: 100%; max-width: 100%; height: 460px; max-height: none; object-fit: contain; object-position: center; margin: 0 auto; }
/* The image modules are shrink-to-fit flex items; let them fill their column so the frame has a width to fit the image into. */
.eib-sec-ov1 .et_pb_image, .eib-sec-ov2 .et_pb_text { width: 100%; }
/* Image 2 sits in a Divi text module that the template absolutely positions (offset -350px, 200px wide) so it hangs out of its row
   into the section above. Put it back in the normal flow so it stays inside its own row, framed like Image 1. */
.et-db #et-boc .et-l .eib-sec-ov2 .et_pb_text { position: static !important; inset: auto !important; transform: none !important; margin-top: 0 !important; width: 100% !important; max-width: 100% !important; max-height: none !important; }
.et-db #et-boc .et-l .eib-sec-ov2 .et_pb_column { min-height: 0; }
@media (max-width: 980px) {
	.eib-sec-ov1 .et_pb_image .et_pb_image_wrap, .eib-sec-ov1 .et_pb_image .et_pb_image_wrap img, .eib-image--image_1, .eib-image--image_2 { height: 320px; }
}

/* Extra sections (custom_sections repeater). */
.eib-cs { margin: 0 0 72px; }
.eib-cs:last-child { margin-bottom: 0; }
.eib-cs-intro { max-width: 900px; margin: 0 0 32px; }
.eib-cs .eib-cs-hero { margin: 0 0 40px; }
/* Off-Road Coilover Springs: the Block-Stable Design diagram at 70% width. */
.postid-396536 .eib-cs .eib-cs-hero { width: 70%; max-width: 100%; }
@media (max-width: 640px) { .postid-396536 .eib-cs .eib-cs-hero { width: 100%; } }
.eib-cs-items { display: grid; gap: 48px 40px; align-items: start; }
.eib-cs-items--columns, .eib-cs-items--columns-label, .eib-cs-items--videos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.eib-cs-items--columns.eib-cs-n2, .eib-cs-items--columns-label.eib-cs-n2 { grid-template-columns: repeat(2, 1fr); }
.eib-cs-items--columns.eib-cs-n3, .eib-cs-items--columns-label.eib-cs-n3 { grid-template-columns: repeat(3, 1fr); }
.eib-cs-items--columns.eib-cs-n4, .eib-cs-items--columns-label.eib-cs-n4 { grid-template-columns: repeat(4, 1fr); }
/* Columns: each item spans 2 rows (image, text) or 3 rows (label, image, text) of the parent grid, so images, labels and text line up
   across the columns whatever the image heights, and nothing is padded out to a fixed height. */
.eib-cs-items--columns .eib-cs-item, .eib-cs-items--columns-label .eib-cs-item { display: grid; grid-template-rows: subgrid; row-gap: 0; }
.eib-cs-items--columns .eib-cs-item { grid-row: span 2; }
.eib-cs-items--columns-label .eib-cs-item { grid-row: span 3; }
.eib-cs-items--columns .eib-cs-pic, .eib-cs-items--columns-label .eib-cs-pic { display: flex; align-items: flex-end; justify-content: center; margin: 0 0 24px; }
.eib-cs-items--columns .eib-cs-pic:empty, .eib-cs-items--columns-label .eib-cs-pic:empty, .eib-cs-label:empty { margin: 0; }
.eib-cs-items--columns .eib-cs-pic .eib-image, .eib-cs-items--columns-label .eib-cs-pic .eib-image { width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: center bottom; }
.eib-cs-label h3 { margin: 0 0 20px; }
.eib-cs-items--rows { grid-template-columns: 1fr; gap: 56px; }
.eib-cs-items--rows .eib-cs-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.eib-cs-items--rows .eib-cs-item:nth-child(even) .eib-cs-pic { order: 2; }
/* Section set to "Text first": swap which rows put the image on the right. */
.eib-cs-items--rows.eib-cs-items--flip .eib-cs-item:nth-child(even) .eib-cs-pic { order: 0; }
.eib-cs-items--rows.eib-cs-items--flip .eib-cs-item:nth-child(odd) .eib-cs-pic { order: 2; }
/* Image column is always the narrow (5fr) one. Rows with the image on the right swap the template, otherwise the image landed in the
   wide 7fr column and rendered larger than the image-left rows. */
.eib-cs-items--rows .eib-cs-item:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.eib-cs-items--rows.eib-cs-items--flip .eib-cs-item:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.eib-cs-items--rows.eib-cs-items--flip .eib-cs-item:nth-child(odd) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* Rows: cap the image height and keep its proportions, so a tall, narrow photo is not stretched to the column width (it used to run
   to ~1000px tall). The text then sets the row height. */
/* Image frame: every row's image sits centred in the same box (max 420px wide, 400px tall), so tall and wide photos take equal space. */
.eib-cs-items--rows .eib-cs-pic { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 420px; height: 400px; margin: 0 auto; }
.eib-cs-items--rows .eib-cs-pic .eib-image { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.eib-cs-items--gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.eib-cs-thumb { display: block; background: #f6f6f7; border: 1px solid #e8e9eb; transition: border-color .2s, transform .2s; }
.eib-cs-thumb:hover { border-color: #ed1c24; transform: translateY(-2px); }
.eib-cs-thumb img { display: block; width: 100%; height: auto; }
/* Item labels are H3s: same size, weight and case as every other H3 on the page. */
.eib-cs-item h3 { margin: 0 0 12px; padding: 0; color: #1b2432; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: normal; }
.eib-cs-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; background: #ed1c24; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; text-transform: none; vertical-align: middle; border-radius: 3px; }
.eib-cs-text { font-size: 18px; line-height: 1.6; font-weight: 400; }
.eib-cs-text p { margin: 0 0 1em; padding: 0; }
.eib-cs-text p:last-child { margin-bottom: 0; }
.eib-cs-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.eib-cs-video iframe, .eib-cs-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 980px) {
	.eib-cs-items--columns.eib-cs-n3, .eib-cs-items--columns.eib-cs-n4, .eib-cs-items--columns-label.eib-cs-n3, .eib-cs-items--columns-label.eib-cs-n4 { grid-template-columns: repeat(2, 1fr); }
	.eib-cs-items--rows .eib-cs-item, .eib-cs-items--rows .eib-cs-item:nth-child(n), .eib-cs-items--rows.eib-cs-items--flip .eib-cs-item:nth-child(n) { grid-template-columns: 1fr; gap: 20px; }
	.eib-cs-items--rows .eib-cs-item:nth-child(even) .eib-cs-pic { order: 0; }
	.eib-cs-items--rows.eib-cs-items--flip .eib-cs-item:nth-child(n) .eib-cs-pic { order: 0; }
	.eib-cs-items--rows .eib-cs-pic { height: 300px; }
}
@media (max-width: 640px) { .eib-cs-items--columns, .eib-cs-items--columns.eib-cs-n2, .eib-cs-items--columns.eib-cs-n3, .eib-cs-items--columns.eib-cs-n4, .eib-cs-items--columns-label, .eib-cs-items--columns-label.eib-cs-n2, .eib-cs-items--columns-label.eib-cs-n3, .eib-cs-items--columns-label.eib-cs-n4 { grid-template-columns: 1fr; } }

/* Extra section headings: identical to the overview heading ("Designed as a System", .eib-lead h3), no red underline. */
.eib-cs-title { margin: 0 0 16px; padding: 0; color: #1b2432; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; text-transform: uppercase; }

/* Columns layout: centre the item title (and badge) under its image. */
.eib-cs-items--columns .eib-cs-item h3, .eib-cs-items--columns-label .eib-cs-item h3 { text-align: center; }

/* Section backgrounds. The ACF "Background" fields add body classes (eib-bg-ov1-grey etc.); the body layout sections carry
   eib-sec-ov1 / eib-sec-ov2 / eib-sec-cmp. No choice = the template colour. */
/* Selectors match the specificity of Divi's own per-section colour rule (which is !important on sections with display conditions). */
.eib-bg-ov1-grey .et-l--body > .et_builder_inner_content .et_pb_section.eib-sec-ov1, .eib-bg-ov2-grey .et-l--body > .et_builder_inner_content .et_pb_section.eib-sec-ov2, .eib-bg-cmp-grey .et-l--body > .et_builder_inner_content .et_pb_section.eib-sec-cmp { background-color: #f2f2f2 !important; }
.eib-bg-ov1-white .et-l--body > .et_builder_inner_content .et_pb_section.eib-sec-ov1, .eib-bg-ov2-white .et-l--body > .et_builder_inner_content .et_pb_section.eib-sec-ov2, .eib-bg-cmp-white .et-l--body > .et_builder_inner_content .et_pb_section.eib-sec-cmp { background-color: #fff !important; }

/* Extra sections: a grey section fills the full width of the page behind its content. */
.eib-cs--grey { padding: 56px 0; margin-bottom: 0; box-shadow: 0 0 0 100vmax #f2f2f2; clip-path: inset(0 -100vmax); background: #f2f2f2; }
.eib-cs--grey + .eib-cs { margin-top: 72px; }

/* Hero tagline (the "Hero tagline" field, under the page title). */
.eib-hero-sub { color: #fff; }

/* Product Range typeface: Inter, as on the US site (loaded in product-range.php). Product page body only; header and footer keep
   the site fonts. Icon glyphs (Divi icon fonts) are left alone. */
.single-product-range .et-l--body,
.single-product-range .et-l--body *:not(.et-pb-icon):not([class*="et-pb-icon"]) { font-family: "Inter", Helvetica, Arial, sans-serif !important; }

/* Image · text · image (triptych): centred heading and intro, then rows of photo | centred title + text | photo. */
.eib-cs--tri .eib-cs-title { text-align: center; }
.eib-cs--tri .eib-cs-intro { margin-left: auto; margin-right: auto; text-align: center; }
.eib-cs-items--triptych { grid-template-columns: 1fr; gap: 64px; }
.eib-cs-items--triptych .eib-cs-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.eib-cs-items--triptych .eib-cs-pic { width: 100%; }
.eib-cs-items--triptych .eib-cs-pic .eib-image { display: block; width: 100%; height: auto; aspect-ratio: 10 / 11; object-fit: cover; }
.eib-cs-items--triptych .eib-cs-copy { text-align: center; }
.eib-cs-items--triptych .eib-cs-item h3 { text-align: center; }
@media (max-width: 980px) {
	.eib-cs-items--triptych { gap: 48px; }
	.eib-cs-items--triptych .eib-cs-item { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "a b"; gap: 20px; }
	.eib-cs-items--triptych .eib-cs-copy { grid-area: copy; }
	.eib-cs-items--triptych .eib-cs-pic--a { grid-area: a; }
	.eib-cs-items--triptych .eib-cs-pic--b { grid-area: b; }
}
.eib-cs-items--triptych .eib-cs-pic:empty { display: none; }
.eib-cs-items--triptych .eib-cs-item:not(:has(img)) { grid-template-columns: 1fr; grid-template-areas: none; }
.eib-cs-items--triptych .eib-cs-item:not(:has(img)) .eib-cs-copy { grid-area: auto; max-width: 720px; margin: 0 auto; }

/* Button inside an extra section's intro text (e.g. "Learn more"): <a class="eib-btn" href="...">. */
.eib-cs-intro a.eib-btn { display: inline-block; margin-top: 4px; padding: 12px 28px; background: #ed1c24; border: 2px solid #ed1c24; color: #fff; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s; }
.eib-cs-intro a.eib-btn:hover { background: #fff; color: #ed1c24; }

/* Centred layout: centred title and text with one wide image underneath (e.g. Multi-Spring Systems). */
.eib-cs--centred .eib-cs-title { text-align: center; }
.eib-cs--centred .eib-cs-intro { margin-left: auto; margin-right: auto; max-width: 960px; text-align: center; }
.eib-cs--centred .eib-cs-hero { display: block; width: auto; max-width: min(100%, 1000px); height: auto; max-height: 400px; object-fit: contain; margin: 8px auto 0; }
/* A centred grey section followed by another grey section reads as one continuous grey band. */
.eib-cs--centred.eib-cs--grey:has(+ .eib-cs--grey) { padding-bottom: 8px; }
.eib-cs--centred.eib-cs--grey + .eib-cs--grey { margin-top: 0; padding-top: 24px; }
/* Centred, image first: the image sits above the title and text. */
.eib-cs--img-first .eib-cs-hero { margin: 0 auto 32px; }
.eib-cs--img-first .eib-cs-intro { margin-bottom: 0; }

/* Stacked layout: title, text, then a full-width image, one item under another (e.g. Rate Graphs). */
.eib-cs-items--stacked { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.eib-cs-items--stacked .eib-cs-item { display: block; }
.eib-cs-items--stacked .eib-cs-item h3 { margin-bottom: 12px; }
.eib-cs-items--stacked .eib-cs-pic { margin-top: 24px; }
.eib-cs-items--stacked .eib-cs-pic img { display: block; width: 100%; height: auto; }
/* A stacked grey section directly after another grey section continues the same grey band. */
.eib-cs--grey + .eib-cs--grey:has(.eib-cs-items--stacked) { margin-top: 0; padding-top: 0; }

/* Banner section: photo + the hero's dark navy overlay, headline and a red button. Full width of the screen. */
.eib-cs--banner { margin: 0 0 72px; }
.eib-banner { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 380px; width: 100vw; margin-left: calc(50% - 50vw); background: #101d2b; }
.eib-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; margin: 0; }
.eib-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, #101d2b 0%, rgba(16,29,43,.85) 50%, rgba(16,29,43,0) 100%); }
.eib-banner-inner { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1080px; margin: 0 auto; padding: 56px 0; }
.eib-banner-title, .eib-banner-text { max-width: 560px; }
.eib-banner-title { margin: 0 0 24px; padding: 0; color: #fff; font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: normal; }
.eib-banner-text { margin: -8px 0 24px; color: #fff; font-size: 18px; line-height: 1.6; font-weight: 400; }
.eib-banner-text p { margin: 0 0 1em; padding: 0; } .eib-banner-text p:last-child { margin-bottom: 0; }
.eib-banner-btn { display: inline-block; padding: 12px 28px; border-radius: 3px; background: #ed1c24; color: #fff !important; font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.eib-banner-btn:hover { background: #c9151c; }
@media (max-width: 980px) { .eib-banner { min-height: 300px; } .eib-banner-inner { padding: 44px 24px; } .eib-banner-title { font-size: clamp(26px, 7vw, 36px); } }
/* The full-width banner is 100vw, which includes the scrollbar; stop that causing a sideways scroll. */
.et_pb_section:has(.eib-banner) { overflow-x: clip; }
/* Banner snaps to the section above and below: when it is the first (or last) thing in its text module, take away the
   Divi section and row padding around it so no white strip is left. */
.et-db #et-boc .et-l .et_pb_section:has(.et_pb_text_inner > .eib-cs--banner:first-child),
.et-db #et-boc .et-l .et_pb_row:has(.et_pb_text_inner > .eib-cs--banner:first-child) { padding-top: 0 !important; }
.et-db #et-boc .et-l .et_pb_section:has(.et_pb_text_inner > .eib-cs--banner:last-child),
.et-db #et-boc .et-l .et_pb_row:has(.et_pb_text_inner > .eib-cs--banner:last-child) { padding-bottom: 0 !important; }
