@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #13243e;
  --deep: #0a1629;
  --blue: #195aca;
  --blue-dark: #174b9a;
  --sky: #a6caff;
  --ink: #14233b;
  --muted: #4b5c74;
  --soft: #eef4fc;
  --line: #d5e1ef;
  --white: #fff;
  font-family: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2869d9; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
p { color: var(--muted); }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 10px; background: white; padding: 8px 12px; }
.button { display: inline-flex; min-height: 48px; padding: 0 23px; align-items: center; justify-content: center; background: var(--blue); color: white; border: 1px solid transparent; border-radius: 1px; font-size: .83rem; letter-spacing: .035em; font-weight: 800; text-align: center; text-transform: uppercase; transition: background .18s ease; }
.button:hover { background: var(--blue-dark); }
.text-link { color: var(--blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: .24em; }

.topbar { color: white; background: linear-gradient(137deg, var(--blue) 0 65%, var(--deep) 65.1%); }
.topbar-inner { min-height: 45px; display: grid; grid-template-columns: 80% 20%; align-items: center; }
.topbar-inner > span { text-align: center; font-size: 1.06rem; font-weight: 800; }
.topbar-inner > a { justify-self: end; font-size: .81rem; font-weight: 700; white-space: nowrap; }
.topbar-inner > a span { margin-inline-start: 5px; color: var(--sky); }
.nav-row { position: relative; z-index: 2; min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; gap: 8px; align-items: center; flex-shrink: 0; line-height: 1; }
.brand strong { display: block; letter-spacing: -.075em; font-size: 1.7rem; font-weight: 800; }
.brand strong span { color: var(--blue); }
.brand small { display: block; margin-top: 7px; font-size: .55rem; letter-spacing: .12em; font-weight: 800; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
nav { display: flex; align-self: stretch; align-items: center; justify-content: center; column-gap: 20px; font-size: .94rem; font-weight: 800; }
nav a { display: block; white-space: nowrap; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue-dark); }
.nav-products { display: flex; position: relative; align-self: stretch; align-items: center; gap: 3px; }
#products-toggle { display: inline-grid; place-items: center; width: 23px; height: 32px; border: 0; padding: 0 0 5px; color: var(--blue-dark); background: transparent; font-weight: 800; }
.products-menu { position: absolute; top: 100%; left: 0; width: 200px; max-height: min(450px, calc(100dvh - 130px)); overflow: auto; background: var(--deep); border-top: 3px solid var(--blue); box-shadow: 0 10px 30px #13243e40; overscroll-behavior: contain; }
.products-menu a { white-space: normal; padding: 9px 16px; border-bottom: 1px solid #314761; color: white; font-size: .9rem; line-height: 1.2; }
.products-menu a:hover, .products-menu a:focus-visible, .products-menu a[aria-current="page"] { background: var(--soft); color: var(--blue-dark); }
.products-menu a:focus-visible { outline-offset: -3px; }
.menu-toggle { display: none; }
.small-screen-quote { display: none; }
.header-quote { min-width: 145px; white-space: nowrap; }

.section { padding-block: 54px 60px; }
.soft { background: var(--soft); }
.section-heading { text-align: center; margin-bottom: 34px; font-size: clamp(1.5rem, 2.4vw, 2rem); text-transform: uppercase; font-weight: 800; letter-spacing: -.025em; }
.section-heading span, .profile h2 span { color: var(--blue); }
.section-heading::after { display: block; content: ""; width: 162px; height: 13px; margin: 16px auto 0; background: linear-gradient(var(--blue),var(--blue)) top center/100% 4px no-repeat, linear-gradient(var(--ink),var(--ink)) bottom center/57% 3px no-repeat; }
.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.profile { background: var(--navy); color: white; padding-block: 55px; }
.profile-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.profile h2 { text-transform: uppercase; font-size: clamp(1.65rem, 3vw, 2.1rem); }
.profile h2 span { color: var(--sky); }
.profile p { color: #dae6f6; }
.profile-copy p { margin-block: 17px 23px; }
.profile-values { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 23px; }
.profile-values article { display: flex; gap: 11px; }
.profile-values p { font-size: .91rem; margin-top: 5px; }
.value-icon { display: grid; place-items: center; border: 1px solid #6788ad; border-radius: 50%; color: var(--sky); width: 34px; height: 34px; flex: 0 0 34px; }

.product-grid, .gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card, .gallery-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); background: white; }
.product-card img, .gallery-card img { aspect-ratio: 4/3; object-fit: cover; }
.product-card > span { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 13px; flex: 1; min-height: 61px; text-transform: uppercase; font-weight: 800; font-size: .86rem; line-height: 1.3; background: var(--navy); color: white; }
.product-card > span b { font-size: 1.12rem; color: var(--sky); }
.product-card:hover > span { background: var(--blue-dark); }
.facility-card, .article-card { background: white; border: 1px solid var(--line); overflow: hidden; }
.facility-card img, .article-card img { aspect-ratio: 1.65; object-fit: cover; }
.facility-card > div, .article-card > div { padding: 18px 19px; }
.facility-card h3, .article-card h3 { font-size: 1.12rem; }
.facility-card p, .article-card p { font-size: .94rem; margin-top: 8px; }
.article-card .text-link { display: inline-block; margin-top: 12px; }

.quote-section { background: linear-gradient(110deg, #13243ef5, #13243ee8), url(../images/facility/switchgear.jpg) center/cover; color: white; padding-block: 59px; }
.quote-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; }
.quote-label { color: var(--sky); font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.quote-layout h2 { font-size: clamp(2rem, 4vw, 3rem); }
.quote-layout h2 + p { color: #dae6f6; margin-top: 15px; max-width: 37ch; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; margin-bottom: 16px; }
.form-fields label { font-size: .82rem; font-weight: 700; }
.form-fields input, .form-fields textarea { display: block; width: 100%; padding: 12px 13px; margin-top: 4px; border: 1px solid #dae6f6; border-radius: 1px; color: var(--ink); background: white; }
.form-fields textarea { resize: vertical; }
.field-wide { grid-column: 1/-1; }
#quote-status, .quote-note { color: var(--sky); margin-top: 8px; }

.page-banner { background: linear-gradient(90deg, #13243e, #203e69d9), url(../images/facility/assembly.jpg) center 46%/cover; color: white; padding-block: 46px; }
.page-banner h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-banner p { color: #e2edfd; margin-top: 12px; }
.page-banner p a { text-decoration: underline; text-underline-offset: 3px; }
.page-banner p span { margin-inline: 7px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px; align-items: center; }
.split h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 14px; }
.split h3 { margin-top: 20px; }
.split p { margin-bottom: 16px; }
.split .text-link { display: inline-block; margin: 10px 0 0 10px; }
.split img { aspect-ratio: 4/3; object-fit: cover; }
.product-detail figure { margin: 0; }
.product-detail figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.intro { margin-bottom: 22px; }
.catalogue .intro { margin-block: 8px 15px; }
.catalogue dl { margin: 25px 0 0; border-top: 1px solid var(--line); }
.catalogue dl div { display: grid; grid-template-columns: minmax(170px, .55fr) 1fr; gap: 20px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.catalogue dt { font-weight: 800; color: var(--blue-dark); }
.catalogue dd { margin: 0; color: var(--muted); }
.gallery-card { padding: 0; font-weight: 800; text-align: left; color: var(--ink); }
.gallery-card span { padding: 11px 13px; }
.gallery-card:hover span { color: var(--blue-dark); text-decoration: underline; }
dialog { padding: 42px 14px 14px; border: 0; max-width: min(760px, calc(100% - 32px)); background: white; }
dialog::backdrop { background: #08142bd4; }
dialog img { max-height: 66vh; width: auto; max-width: 100%; margin-inline: auto; }
#image-caption { text-align: center; padding: 8px 6px 3px; font-weight: 800; }
.dialog-close { position: absolute; top: 4px; right: 7px; border: 0; width: 33px; height: 33px; background: var(--navy); color: white; font-size: 1.35rem; line-height: 1; }

footer { color: white; background: var(--deep); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .7fr 1fr; gap: 30px; padding-block: 45px; }
.footer-brand { font-weight: 800; font-size: 1.65rem; letter-spacing: -.06em; }
.footer-grid h2 { text-transform: uppercase; font-size: .91rem; margin-bottom: 12px; }
.footer-grid p, .footer-grid a:not(.button, .footer-brand) { color: #c3d2e7; font-size: .9rem; }
.footer-grid a:not(.button, .footer-brand) { display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: white; }
.footer-grid .button { margin-top: 14px; }
.footer-bottom { padding-block: 14px; border-top: 1px solid #314761; color: #c3d2e7; font-size: .82rem; }

/* Shared spacing and navigation keep the catalogue and marketing pages coherent. */
body { overflow-wrap: break-word; }
header { background: #fff; }
.topbar { background: var(--deep); }
.topbar-inner { display: flex; justify-content: space-between; min-height: 35px; }
.topbar-inner > span { font-size: .76rem; letter-spacing: .035em; }
.topbar-inner > a { font-size: .76rem; }
.nav-row { min-height: 82px; }
.button { border-radius: 5px; text-transform: none; letter-spacing: 0; }
.menu-toggle { border-radius: 5px; flex-shrink: 0; }
.page-banner { padding-block: clamp(35px, 5vw, 68px); }
.page-banner h1 { letter-spacing: -.055em; max-width: 25ch; }
.section { padding-block: clamp(38px, 5vw, 72px); }
.split > *, .profile-layout > *, .quote-layout > *, .footer-grid > * { min-width: 0; }
.split h2 { letter-spacing: -.045em; line-height: 1.1; }
.split > img, .product-detail figure > img { border-radius: 9px; }
.product-detail li { margin-bottom: 9px; color: var(--muted); }
.product-detail ul { padding-left: 21px; margin-block: 16px 23px; }
.product-card, .gallery-card, .article-card, .facility-card { border-radius: 7px; }
.product-card { transition: box-shadow .2s ease; }
.product-card:hover { box-shadow: 0 6px 20px #13243e15; }
.product-card > span { text-transform: none; font-size: .94rem; }
.form-fields input, .form-fields textarea { border-radius: 5px; }
.form-fields input:focus, .form-fields textarea:focus { border-color: var(--blue); }
.range-intro { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 24px; }
.range-intro h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
.range-intro p { max-width: 58ch; margin-top: 10px; }
.product-search { display: block; flex: 0 0 300px; font-weight: 700; font-size: .86rem; }
.product-search input { display: block; width: 100%; min-height: 47px; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #f5f8fc; color: var(--ink); }
.search-status { margin-bottom: 13px; }
.search-status:empty { display: none; }
.planning-faq { padding-block: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(26px, 5vw, 75px); }
.planning-faq h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: -.055em; }
.planning-faq > div > p { margin-top: 15px; }
.planning-faq details { border-bottom: 1px solid var(--line); }
.planning-faq summary { display: flex; justify-content: space-between; gap: 20px; padding-block: 19px; cursor: pointer; font-weight: 800; line-height: 1.35; list-style: none; }
.planning-faq summary::-webkit-details-marker { display: none; }
.planning-faq summary::after { content: "+"; color: var(--blue); flex-shrink: 0; }
.planning-faq details[open] summary::after { content: "−"; }
.planning-faq details p { padding-bottom: 20px; max-width: 64ch; }
.specification-note { display: flex; align-items: center; gap: 35px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 32px 48px; }
.specification-note h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.specification-note p { max-width: 70ch; margin-top: 9px; }
.specification-note .button { flex-shrink: 0; }
.footer-grid { grid-template-columns: 1.15fr .9fr .65fr .9fr; gap: 26px; }
.footer-brand { gap: 8px; }
.footer-brand .brand-logo { width: 42px; height: 42px; }
.footer-brand strong { font-size: 1.3rem; }
.footer-brand small { font-size: .43rem; color: #c3d2e7; }
.footer-grid > div:first-child > p { margin-top: 14px; max-width: 27ch; }

@media (max-width: 1100px) {
  nav { column-gap: 12px; font-size: .85rem; }
  .brand strong { font-size: 1.45rem; }
  .header-quote { min-width: auto; padding-inline: 15px; }
}
@media (max-width: 1060px) {
  .nav-row { min-height: 78px; gap: 14px; justify-content: initial; }
  .menu-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; margin-left: auto; border: 0; background: var(--blue); }
  .menu-toggle span { width: 19px; height: 2px; background: white; }
  nav { display: none; position: absolute; inset: 100% 0 auto; background: white; padding: 12px 16px; border-top: 3px solid var(--blue); box-shadow: 0 10px 30px #13243e26; }
  nav.open { display: grid; gap: 0; max-height: calc(100dvh - 120px); overflow-y: auto; }
  nav > a, .nav-products { padding-block: 8px; border-bottom: 1px solid var(--line); }
  .nav-products { flex-wrap: wrap; }
  .products-menu { position: static; width: 100%; max-height: 36dvh; margin-top: 4px; box-shadow: none; }
  .product-grid, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .three-grid { gap: 15px; }
  .profile-layout { gap: 32px; }
  .quote-layout { gap: 28px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 30px); }
  .topbar { background: var(--blue); }
  .topbar-inner { display: flex; justify-content: space-between; gap: 10px; min-height: 38px; }
  .topbar-inner > span { font-size: .88rem; }
  .topbar-inner > a { font-size: .72rem; }
  .nav-row { min-height: 72px; gap: 8px; }
  .brand { gap: 5px; }
  .brand-logo { width: 35px; height: 35px; }
  .brand strong { font-size: 1.3rem; }
  .brand small { font-size: .45rem; }
  .header-quote { padding-inline: 8px; min-height: 42px; font-size: .67rem; }
  .menu-toggle { width: 37px; height: 42px; }
  .section { padding-block: 36px 43px; }
  .section-heading { margin-bottom: 25px; }
  .three-grid, .profile-layout, .quote-layout, .split { grid-template-columns: 1fr; gap: 24px; }
  .profile, .quote-section { padding-block: 37px; }
  .profile-values { gap: 17px 12px; }
  .value-icon { display: none; }
  .product-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-card > span { padding: 9px; font-size: .72rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 15px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1/-1; }
  .planning-faq { grid-template-columns: 1fr; }
  .range-intro, .specification-note { flex-direction: column; align-items: start; gap: 22px; }
  .product-search { flex-basis: auto; width: 100%; }
  .catalogue dl div { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 360px) {
  .header-quote { display: none; }
  nav .small-screen-quote { display: block; border-bottom: 0; }
  .form-fields { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-quote { display: none; }
  nav .small-screen-quote { display: block; border-bottom: 0; }
}
@media (min-width: 641px) and (max-width: 1060px) {
  .range-intro { align-items: start; flex-direction: column; gap: 18px; }
  .product-search { flex-basis: auto; width: min(100%, 450px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specification-note { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  header, footer, #print-catalogue, .page-banner p, .intro { display: none !important; }
  .page-banner { padding: 0; background: white; color: black; }
  .page-banner h1 { font-size: 24pt; }
  .catalogue { padding-block: 15px; }
  .catalogue dl div { break-inside: avoid; padding-block: 5px; }
  .catalogue dt, .catalogue dd { color: black; }
}
