/* ==========================================================================
   Euro Window Installers
   Palette: white, light blue, navy, charcoal.
   Type: Archivo (variable width + weight), loaded from Google Fonts.
   Structure: tokens > base > layout > components > pages > utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0b2b4c;
  --navy-deep: #071b33;
  --navy-soft: #16406e;
  --blue: #1f6db2;          /* links and accents on white */
  --sky: #cfe5f7;
  --sky-soft: #eef6fc;
  --sky-mid: #8fc1ea;
  --charcoal: #272c34;
  --slate: #566070;
  --line: #d4e0eb;
  --white: #fff;
  --danger: #b3261e;
  --crimson: #8a1c2e;        /* dark crimson: menu and main buttons, dividers */
  --crimson-dark: #6c1523;
  --crimson-deep: #520f1b;
  --crimson-light: #c8374d;  /* brighter crimson: accents and buttons on navy */

  --font: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1200px;
  --section-y: clamp(2.25rem, 5vw, 3.75rem);

  --radius: 3px;
  --shadow: 0 1px 2px rgba(7, 27, 51, .06), 0 18px 40px -18px rgba(7, 27, 51, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.25; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 40rem; }

:focus-visible { outline: 3px solid var(--sky-mid); outline-offset: 3px; border-radius: 2px; }
.section--navy :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--sky); }

::selection { background: var(--sky); color: var(--navy-deep); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--sky { background: var(--sky-soft); }
.section--navy { background: var(--navy); color: #dbe7f3; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }

.section__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section__head > :last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.5rem;
  font: inherit; font-weight: 600; font-stretch: 104%; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-soft); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--light:hover { border-color: var(--navy); color: var(--navy); }
.btn--sky { background: var(--sky); color: var(--navy-deep); }
.btn--sky:hover { background: var(--white); color: var(--navy-deep); }
.btn--crimson { background: var(--crimson); color: var(--white); }
.btn--crimson:hover { background: var(--crimson-dark); color: var(--white); }
.btn--crimson-light { background: var(--crimson-light); color: var(--white); }
.btn--crimson-light:hover { background: #dc4a60; color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.icon { flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #c5d6e8; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar__contact { display: flex; align-items: center; gap: 1.5rem; }
.topbar__link { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.topbar__link:hover { color: var(--white); text-decoration: underline; }
.topbar__link--email { display: none; }

.social { display: flex; align-items: center; gap: .25rem; }
.social a {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  color: inherit; border-radius: 50%; transition: background-color .2s, color .2s;
}
.social a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.social--top a { width: 2rem; height: 2rem; }
.social--footer a { border: 1px solid rgba(255, 255, 255, .22); }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 3px solid var(--crimson); backdrop-filter: saturate(1.4) blur(10px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 3.1rem; }

.nav-toggle {
  display: none; width: 2.9rem; height: 2.9rem; padding: 0; place-items: center;
  color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav__list { display: flex; align-items: center; gap: .4rem; }
.nav__link {
  display: block; padding: .6rem 1rem; color: var(--white); background: var(--crimson);
  font-weight: 600; font-stretch: 102%; line-height: 1.2; text-decoration: none; border-radius: var(--radius);
  transition: background-color .2s;
}
.nav__link:hover { color: var(--white); background: var(--crimson-dark); }
.nav__link.is-current { color: var(--white); background: var(--crimson-deep); box-shadow: inset 0 -3px 0 var(--crimson-light); }

@media (min-width: 1024px) {
  .nav__link, .nav__cta { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav { gap: .6rem; }
  .nav__list { gap: .25rem; }
  .nav__link { padding: .55rem .7rem; font-size: .95rem; }
  .nav__cta { padding-inline: 1rem; font-size: .95rem; }
  .brand img { height: 2.7rem; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -20px rgba(7, 27, 51, .35);
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .5rem; }
  .nav__link { padding: .85rem 1rem; font-size: 1.1rem; }
  .nav__cta { width: 100%; }
}

@media (min-width: 720px) { .topbar__link--email { display: inline-flex; } }

/* ---------- Hero: full-width slideshow first, copy underneath ---------- */
.hero { padding-block: clamp(1rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem); background: linear-gradient(180deg, var(--sky-soft), var(--white) 96%); }
.hero__grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.hero__copy h1 { margin-bottom: 0; font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3rem); }
.hero__text .lead { margin-bottom: 1.1rem; }
.hero__text .btn-row { margin: 0; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .hero__grid .frame { grid-column: 1 / -1; }
}

.frame { position: relative; border-radius: 4px; overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); }
.frame__glass { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); isolation: isolate; }
@media (min-width: 560px) { .frame__glass { aspect-ratio: 16 / 9; } }
@media (min-width: 960px) { .frame__glass { aspect-ratio: 21 / 8; } }
.frame__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.frame__slide.is-active { opacity: 1; }
.frame__slide img { width: 100%; height: 100%; object-fit: cover; }
.frame__ui {   /* caption and controls sit on a soft shade at the bottom of the photo */
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.25rem clamp(.8rem, 2vw, 1.25rem) clamp(.7rem, 1.6vw, 1rem);
  color: var(--white); background: linear-gradient(0deg, rgba(7, 27, 51, .72), rgba(7, 27, 51, 0));
}
.frame__caption { margin: 0; font-size: clamp(.85rem, .75rem + .3vw, 1rem); font-weight: 500; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.frame__controls { display: flex; align-items: center; gap: .6rem; flex: none; }
.frame__btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  color: var(--white); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; cursor: pointer; transition: background-color .2s;
}
.frame__btn:hover { background: rgba(255, 255, 255, .3); }
.frame__dots { display: flex; gap: .4rem; }
.frame__dot { width: .65rem; height: .65rem; padding: 0; border: 1px solid var(--white); border-radius: 50%; background: transparent; cursor: pointer; }
.frame__dot[aria-current="true"] { background: var(--white); }

@media (max-width: 479px) { .frame__dots { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .frame__glass { animation: glass-in 1s ease .1s both; }
  @keyframes glass-in { from { opacity: 0; } }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); border-top: 3px solid var(--crimson-light); background: var(--white); }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__item { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; font-weight: 600; font-stretch: 104%; line-height: 1.25; color: var(--navy); }
.trust__item .icon { color: var(--blue); }
@media (max-width: 899px) { .trust__item { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; font-size: .98rem; } }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item:nth-child(3) { border-left: 0; }
.trust__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
.trust__sub { display: block; font-weight: 400; font-stretch: 100%; font-size: .9rem; color: var(--slate); }

@media (min-width: 900px) {
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__item { padding-inline: 1.5rem; }
  .trust__item:nth-child(3) { border-left: 1px solid var(--line); }
  .trust__item:nth-child(n + 3) { border-top: 0; }
}

/* ---------- Brand logos ---------- */
.brands { padding-block: clamp(1.25rem, 2.5vw, 2rem); text-align: center; background: var(--sky); }
.brands__title { margin-bottom: .75rem; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); font-weight: 600; }
.brands__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: center; justify-items: center; }
.brands__item { display: grid; place-items: center; width: 100%; height: 3.75rem; padding: .25rem 1rem; }
.brands__item img { width: auto; height: auto; max-width: 100%; max-height: 2.6rem; }
.brands__item--tall img { max-height: 3.5rem; }
.brands__item--lg img { max-height: 3rem; }

@media (min-width: 560px) { .brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .brands__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- About split ---------- */
.split { display: grid; gap: clamp(1.25rem, 3.5vw, 2.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split--wide-text { grid-template-columns: 6fr 5fr; } }

.photo-frame { position: relative; border: clamp(8px, 1.2vw, 12px) solid var(--navy-deep); border-radius: 3px; background: var(--navy-deep); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-frame--wide img { aspect-ratio: 4 / 3; }

.checklist { display: grid; gap: .7rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; }
.checklist .icon { margin-top: .2rem; color: var(--blue); }

/* ---------- Features (benefits) ---------- */
.features { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feature { padding-top: 1rem; border-top: 3px solid var(--crimson); }
.feature .icon { margin-bottom: .9rem; color: var(--blue); }
.feature h3 { margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--slate); }

.section__more { margin-top: 1.5rem; }

/* ---------- Photo grid (home preview) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.photo-grid__item { position: relative; display: block; text-decoration: none; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--sky); cursor: zoom-in; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-grid__item:hover img { transform: scale(1.04); }

/* ---------- Project process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-content: start; padding-bottom: 1.4rem; }
.step:last-child { padding-bottom: 0; }
.step::before {   /* connector (vertical on small screens) */
  content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 2px; margin-left: -1px; background: var(--sky-mid);
}
.step:last-child::before { display: none; }
.step__mark {
  position: relative; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem;
  font-weight: 700; font-stretch: 112%; font-size: 1.15rem; color: var(--white); background: var(--navy); border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px rgba(255, 255, 255, .35);
}
.step__title { margin-bottom: .3rem; }
.step__body p { margin: 0; color: var(--slate); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
  .step { grid-template-columns: 1fr; gap: 1.1rem; padding-bottom: 0; }
  .step::before { left: 3.6rem; right: -1.25rem; top: 1.5rem; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; }
  .step__title { font-size: 1.1rem; }
  .step__body p { font-size: .97rem; }
}

/* ---------- Service areas ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 800px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area { padding: 1.4rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.area__abbr { display: block; margin-bottom: .35rem; font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 800; font-stretch: 120%; line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.area__name { display: block; font-weight: 600; }
.area__note { display: block; margin-top: .15rem; font-size: .92rem; color: var(--slate); }
.area--home { border-color: var(--crimson); box-shadow: inset 0 3px 0 var(--crimson); }

/* ---------- Call-to-action band ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--navy); color: #dbe7f3; border-top: 4px solid var(--crimson-light);
  background-image:
    linear-gradient(rgba(143, 193, 234, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 193, 234, .09) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center;
}
.cta__inner { display: grid; gap: 1.25rem; padding-block: clamp(2rem, 4vw, 3rem); align-items: center; }
.cta h2 { margin-bottom: .4em; color: var(--white); }
.cta p { margin: 0; max-width: 36rem; font-size: 1.12rem; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- Inner page header ---------- */
.page-head {
  position: relative; overflow: hidden; padding-block: clamp(1.75rem, 4vw, 2.75rem); background: var(--sky-soft); border-bottom: 1px solid var(--line);
}
.page-head::before {   /* window-pane grid fading in from the right */
  content: ""; position: absolute; inset: 0 0 0 40%; pointer-events: none;
  background-image:
    linear-gradient(var(--sky) 2px, transparent 2px),
    linear-gradient(90deg, var(--sky) 2px, transparent 2px);
  background-size: 110px 110px; background-position: right top;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90%); mask-image: linear-gradient(90deg, transparent, #000 90%);
  opacity: .8;
}
.page-head .container { position: relative; }
.page-head h1 { margin-bottom: .35em; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.4rem); }
.page-head .lead { margin: 0; }

/* ---------- Work gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  min-height: 2.75rem; padding: .5rem 1.15rem; font: inherit; font-weight: 600; font-stretch: 102%; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { color: var(--white); background: var(--navy); border-color: var(--navy); }
.no-js .filters { display: none; }

.masonry { --g: .6rem; column-count: 2; column-gap: var(--g); }
@media (min-width: 700px) { .masonry { --g: 1rem; } }
@media (min-width: 900px) { .masonry { column-count: 3; } }
@media (min-width: 1200px) { .masonry { column-count: 4; } }

.masonry__item { position: relative; margin: 0 0 var(--g); break-inside: avoid; }
.masonry__item[hidden] { display: none; }
.tile { position: relative; display: block; text-decoration: none; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--sky); cursor: zoom-in; }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile__label {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem;
  padding: 2.5rem .9rem .8rem; text-align: left; font-size: .93rem; font-weight: 500; line-height: 1.3; color: var(--white);
  background: linear-gradient(0deg, rgba(7, 27, 51, .86), rgba(7, 27, 51, 0));
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease);
}
.tile:hover .tile__label, .tile:focus-visible .tile__label { opacity: 1; transform: none; }
@media (hover: none) { .tile__label { display: none; } }

.gallery-note { margin-top: 2rem; color: var(--slate); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(5, 18, 34, .985); color: var(--white); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.lightbox__count { font-size: .95rem; color: #b8cde2; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 0 clamp(.5rem, 6vw, 5rem); touch-action: pan-y; }
/* Always fit the whole picture inside the stage: never wider or taller than the space available. */
.lightbox__img { display: block; flex: 0 1 auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; transition: opacity .2s; }
.lightbox__img.is-loading { opacity: .25; }
.lightbox__caption { padding: .9rem 1.25rem 1.4rem; text-align: center; font-size: 1rem; color: #dbe7f3; min-height: 3.4rem; }
.lightbox__btn {
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; color: var(--white);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer; transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(.25rem, 1.5vw, 1.25rem); }
.lightbox__nav--next { right: clamp(.25rem, 1.5vw, 1.25rem); }
@media (max-width: 599px) { .lightbox__nav { top: auto; bottom: .5rem; transform: none; } .lightbox__caption { padding-inline: 4.5rem; } }
body.is-locked { overflow: hidden; }

/* ---------- Our Windows ---------- */
.diagram { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram img { width: 100%; height: auto; }
.diagram figcaption { margin-top: 1rem; font-size: .92rem; color: var(--slate); }

.compare { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.compare__col { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--crimson); border-radius: var(--radius); background: var(--white); }
.compare__col--alt { border-top-color: var(--sky-mid); }
.compare__col h3 { margin-bottom: .6rem; font-size: 1.5rem; }
.compare__best { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.compare__best span { display: block; font-weight: 400; color: var(--slate); }
.compare ul { display: grid; gap: .55rem; }
.compare li { position: relative; padding-left: 1.5rem; }
.compare li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; background: var(--blue); border-radius: 1px; }

.brand-cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .brand-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .brand-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brand-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.brand-card__logo { display: grid; place-items: center; height: 5.5rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.brand-card__logo img { width: auto; max-width: 70%; max-height: 3rem; }
.brand-card__logo--tall img { max-height: 4.6rem; }
.brand-card__logo--lg img { max-height: 4rem; }
.brand-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.chip { padding: .2rem .65rem; font-size: .85rem; font-weight: 600; color: var(--navy); background: var(--sky-soft); border: 1px solid var(--sky); border-radius: 999px; }
.brand-card p { flex: 1; color: var(--slate); }
.brand-card__link { font-weight: 600; }

.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 600; font-stretch: 104%; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--slate); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

.contact-card { padding: clamp(1.5rem, 3vw, 2rem); background: var(--navy); color: #dbe7f3; border-radius: var(--radius); }
.contact-card h2 { color: var(--white); font-size: 1.6rem; }
.contact-list { display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { margin-top: .25rem; color: var(--sky-mid); }
.contact-list small { display: block; font-size: .88rem; color: #9fb7cf; }
.contact-list a { color: var(--white); font-weight: 600; font-size: 1.12rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-card .social { margin-top: .5rem; }
.contact-card .social a { border: 1px solid rgba(255, 255, 255, .25); color: var(--white); }
.contact-card__areas { margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 2px solid var(--crimson-light); font-size: .98rem; }

.tabs__list { display: flex; gap: .25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--line); }
.tabs__tab {
  position: relative; min-height: 3rem; padding: .6rem 1.25rem; font: inherit; font-weight: 600; font-stretch: 104%; color: var(--slate);
  background: transparent; border: 0; cursor: pointer;
}
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--crimson); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs__tab:hover { color: var(--navy); }
.tabs__tab[aria-selected="true"] { color: var(--navy); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.js .tabs__panel[hidden] { display: none; }
.no-js .tabs__panel[hidden] { display: block; }
.no-js .tabs__list { display: none; }
.no-js .tabs__panel + .tabs__panel { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }

.form-title { margin-bottom: .35rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.form-intro { margin-bottom: 1rem; color: var(--slate); }

.form { display: grid; gap: .7rem .9rem; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(6, minmax(0, 1fr)); } .form > .field { grid-column: span 3; } .form > .field--third { grid-column: span 2; } .form > .field--full { grid-column: 1 / -1; } }

.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field__hint { font-weight: 400; color: var(--slate); }
.input, .select, .textarea {
  width: 100%; padding: .55rem .8rem; font: inherit; font-size: .96rem; color: var(--charcoal); background: var(--white);
  border: 1.5px solid #b4c4d5; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 4.5rem; resize: vertical; }
.select {
  appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b2b4c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy-soft); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--sky); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; font-size: .92rem; font-weight: 500; color: var(--danger); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .25rem; }
.form__note { margin: 0; font-size: .85rem; color: var(--slate); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--navy); border-radius: var(--radius); background: var(--sky-soft); color: var(--navy-deep); }
.alert .icon { margin-top: .15rem; color: var(--navy); }
.alert p { margin: 0; }
.alert strong { display: block; margin-bottom: .15rem; }
.alert--error { border-left-color: var(--danger); background: #fdf1f0; }
.alert--error .icon { color: var(--danger); }
.alert--note { border-left-color: var(--sky-mid); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b4c7da; font-size: .98rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 3rem; } }
.footer__brand img { width: auto; height: 3rem; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 24rem; }
.footer__title { margin-bottom: 1rem; padding-bottom: .55rem; border-bottom: 2px solid var(--crimson-light); display: inline-block; font-size: 1.05rem; font-weight: 700; font-stretch: 104%; color: var(--white); }
.footer__list { display: grid; gap: .6rem; }
.footer__list a { color: inherit; text-decoration: none; }
.footer__list a:hover { color: var(--white); text-decoration: underline; }
.footer__list--icons li, .footer__list--icons a { display: flex; align-items: center; gap: .6rem; }
.footer__list--icons .icon { color: var(--sky-mid); }
.footer__legal { border-top: 1px solid rgba(200, 55, 77, .6); font-size: .88rem; }
.footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; }
.footer__legal p { margin: 0; }

/* ---------- Mobile call bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 719px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -14px rgba(7, 27, 51, .4);
  }
  .mobile-cta .btn { min-height: 2.9rem; padding-inline: .75rem; }
  body { padding-bottom: 4.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Diagram helpers (Our Windows) ---------- */
.diagram svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.diagram-pair { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .diagram-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.diagram--wide { max-width: 44rem; margin: 0 auto 2rem; }
.diagram-pair .diagram svg { max-width: 22rem; margin-inline: auto; }
.diagram-pair .diagram figcaption { max-width: 30rem; margin-inline: auto; }
.diagram figcaption strong { color: var(--navy); }


/* ---------- Photo page headers and banners ---------- */
.page-head--photo {
  --shade: linear-gradient(90deg, rgba(7, 27, 51, .9) 0%, rgba(7, 27, 51, .6) 50%, rgba(7, 27, 51, .15) 100%);
  min-height: clamp(9rem, 20vw, 13rem); display: flex; align-items: center; border-bottom: 0; color: var(--white);
  background-color: var(--navy); background-size: auto, cover; background-position: 0 0, center; background-repeat: no-repeat;
}
.page-head--photo::before { display: none; }
.page-head--photo { border-bottom: 4px solid var(--crimson-light); }
.page-head--photo .container { width: 100%; }
.page-head--photo h1 { color: var(--white); }
.page-head--photo .lead { color: #dbe7f3; max-width: 38rem; }

.banner { padding-block: 0 clamp(1.5rem, 3vw, 2.25rem); }
.banner--top { padding-block: clamp(1.25rem, 3vw, 2rem) 0; }
.banner__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 100%; border-radius: 4px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .banner__img { aspect-ratio: 2 / 1; } }
@media (min-width: 1000px) { .banner__img { aspect-ratio: 21 / 9; } }

.material-banners { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 800px) { .material-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.material-banner {
  --shade: linear-gradient(0deg, rgba(7, 27, 51, .9) 0%, rgba(7, 27, 51, .45) 60%, rgba(7, 27, 51, .15) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .9rem; min-height: 16rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); color: var(--white); border-radius: 4px;
  background-color: var(--navy); background-size: auto, cover; background-position: 0 0, center; background-repeat: no-repeat;
}
.material-banner h3 { margin: 0; color: var(--white); font-size: 1.5rem; }
.material-banner p { margin: 0; max-width: 30rem; color: #dbe7f3; }
.material-banner__logos { display: flex; flex-wrap: wrap; gap: .5rem; }
.material-banner__logos li { display: grid; place-items: center; height: 3rem; padding: .35rem .8rem; background: var(--white); border-radius: var(--radius); }
.material-banner__logos img { width: auto; height: auto; max-width: 6.5rem; max-height: 1.9rem; }
.material-banner__logos .is-tall img { max-height: 2.3rem; }
