/*
 * ECI Equipment Sales - the one stylesheet for the public pages.
 *
 * Look: a sibling of extremecoatingsinc.com (black header, uppercase Montserrat headings, pale
 * blue-grey bands, muted red accent, navy call band), tidied up. Two motifs carry the identity:
 *   1. the stock tag  (.tag)     - the black plate with a unit's stock number, as stencilled on the equipment
 *   2. the slant      (.h-slash) - short red bars and cut edges leaning like the letters of the logo
 *
 * Mobile first: base rules are for phones, @media (min-width) blocks add the wider layouts.
 * Order: tokens, base, buttons, header, footer, shared pieces, home, inventory, unit page, forms,
 * contact, print.
 */

/* ---------- Font (self-hosted, variable weight 400-800, Latin) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* Arial stretched to Montserrat's proportions: text barely moves when the real font arrives. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 112.5%;
  ascent-override: 86%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --coal: #222;          /* footer */
  --graphite: #353535;   /* bottom of the dark hero gradient */
  --stage: #151515;      /* behind photos in the gallery */
  --ink: #2d2d2d;        /* body text */
  --steel: #5c6770;      /* secondary text (5.8:1 on white) */
  --mist: #f2f6f9;       /* pale blue-grey band */
  --line: #d3dce3;       /* hairlines on white and mist */
  --edge: #7b8791;       /* input borders (3.6:1 on white) */
  --red: #cd5c5c;        /* brand accent: large or decorative use only (3.9:1 on white) */
  --red-deep: #b03c3c;   /* same family, dark enough for buttons and small text (5.9:1) */
  --red-dark: #8f2b2b;   /* hover */
  --navy: #143d58;
  --focus: #143d58;      /* focus ring; switched to white on dark surfaces */
  --wrap: 1240px;
  --gutter: max(16px, calc((100vw - var(--wrap)) / 2));
  --font: "Montserrat", "Montserrat Fallback", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--red-deep); text-underline-offset: .2em; text-decoration-thickness: .09em; }
a:hover { color: var(--red-dark); }
a[href^="tel:"] { white-space: nowrap; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.icon { flex: none; display: block; }
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: #fff; color: #000; font-weight: 700; padding: 12px 16px; border-radius: 3px;
}
.skip:focus { top: 8px; }

/* Dark surfaces: white focus ring. */
.site-header, .hero, .page-head, .call-band, .site-footer, .gallery__stage, .lightbox, .cat, .video { --focus: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 10px 20px;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.0625rem; }
.btn--primary { background: var(--red-deep); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--graphite); color: #fff; }
.btn--outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: #000; }

/* ---------- The stock tag ---------- */
.tag {
  display: inline-block; margin: 0;
  background: var(--black); color: #fff;
  font-size: .8125rem; font-weight: 700; line-height: 1.15; letter-spacing: .05em;
  max-width: 100%; overflow-wrap: anywhere;
  padding: 6px 18px 6px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.tag__label { font-weight: 500; letter-spacing: .02em; color: #d5dbe0; }
.tag--lg { font-size: 1rem; padding: 8px 22px 8px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%); }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: #fff; }
.site-header__in {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo call" "nav nav";
  align-items: center; column-gap: 16px; padding-top: 10px;
}
.site-header__logo { grid-area: logo; display: block; }
.site-header__logo img { display: block; width: 98px; }
.site-header__call { grid-area: call; justify-self: end; min-height: 44px; padding: 8px 14px; font-size: .9375rem; white-space: nowrap; }
.site-nav { grid-area: nav; margin: 10px -16px 0; border-top: 1px solid #2e2e2e; }
.site-nav ul { display: flex; }
.site-nav li { flex: 1; }
.site-nav li + li { border-left: 1px solid #2e2e2e; }
.site-nav a {
  display: flex; align-items: center; justify-content: center; min-height: 46px;
  color: #fff; font-size: 1.0625rem; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 -4px 0 transparent;
}
.site-nav a:hover { box-shadow: inset 0 -4px 0 #555; }
.site-nav a[aria-current] { box-shadow: inset 0 -4px 0 var(--red); }

@media (min-width: 720px) {
  .site-header__in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav call"; padding-block: 14px; column-gap: 20px; }
  .site-header__logo img { width: 126px; }
  .site-nav { margin: 0; border: 0; justify-self: end; }
  .site-nav li { flex: none; }
  .site-nav li + li { border: 0; }
  .site-nav a { min-height: 48px; padding: 0 18px; font-size: 1.125rem; }
  .site-header__call { min-height: 48px; padding: 10px 18px; font-size: 1rem; }
}

/* ---------- Call band + footer ---------- */
.call-band {
  background: var(--navy) linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(0, 0, 0, .18) 100%);
  color: #fff; text-align: center; padding: 40px 0 36px;
}
.call-band__label { margin: 0; font-size: 1.125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.call-band__number {
  display: inline-block; padding: 4px 0; color: #fff; text-decoration: none;
  font-size: clamp(2.25rem, 1.4rem + 4.4vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: .01em;
}
.call-band__number:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.call-band__note { margin: 6px 0 0; color: #dbe4ea; }

.site-footer { background: var(--coal); color: #d5dbe0; font-size: .9375rem; }
.site-footer a { color: #fff; }
.site-footer__in { display: grid; gap: 28px; padding-block: 36px; }
.site-footer__brand img { display: block; width: 132px; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; }
.site-footer h2 { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; color: #fff; margin-bottom: 6px; }
.site-footer li a, .site-footer__contact p a { display: inline-block; padding: 9px 0; }
.site-footer__contact p { margin: 0; }
.site-footer__contact .site-footer__phone { font-size: 1.375rem; font-weight: 800; text-decoration: none; padding: 4px 0; }
.site-footer__bar { background: var(--black); color: #b9c2c9; font-size: .8125rem; padding: 14px 0; }
.site-footer__bar p { margin: 0; }
@media (min-width: 720px) {
  .site-footer__in { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 48px; }
}

/* ---------- Shared pieces ---------- */
.section { padding: 44px 0; }
.section--tight { padding-top: 22px; }
.section--mist { background: var(--mist); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.section__foot { margin: 28px 0 0; text-align: center; }
.h-slash::before {
  content: ""; display: block; width: 42px; height: 8px; margin: 0 0 14px 3px;
  background: var(--red); transform: skewX(-20deg);
}
.h-slash { margin-bottom: 16px; }
.section__head .h-slash { margin-bottom: 0; }
.link-more { display: inline-block; padding: 9px 0; font-weight: 700; }
.link-out { display: inline-flex; align-items: center; gap: 7px; padding: 9px 0; font-weight: 700; }

/* Dark title band on inner pages. */
.page-head { background: var(--black) linear-gradient(180deg, #000 0%, #1d1d1d 70%, #2b2b2b 100%); color: #fff; padding: 24px 0 26px; }
.page-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); text-wrap: balance; }
.page-head__lede { margin: 10px 0 0; max-width: 44em; color: #d5dbe0; }
.page-head__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }

.panel { background: var(--mist); border-top: 5px solid var(--ink); padding: 22px 20px 12px; }
.panel__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.panel__list { margin: 0 0 1em; }
.panel__list li { padding: 6px 0 6px 22px; border-top: 1px solid var(--line); font-weight: 600; position: relative; }
.panel__list li::before, .types li::before {
  content: ""; position: absolute; left: 3px; top: .95em; width: 9px; height: 5px;
  background: var(--red); transform: skewX(-20deg);
}

.empty { max-width: 40em; margin: 8px 0 24px; padding: 28px 22px 16px; background: var(--mist); border-top: 5px solid var(--ink); }
.empty h2 { font-size: 1.375rem; margin-bottom: 10px; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.link-list { margin-top: 20px; max-width: 34em; border-top: 3px solid var(--ink); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.link-list a:hover { color: var(--red-deep); }
.link-list span { color: var(--steel); font-weight: 500; }

@media (min-width: 900px) {
  .section { padding: 68px 0; }
  .section--tight { padding-top: 30px; }
  .page-head { padding: 40px 0 42px; }
  .panel { padding: 28px 28px 18px; }
}

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; background: var(--black) linear-gradient(180deg, #000 0%, #1b1b1b 62%, var(--graphite) 100%); color: #fff; }
.hero__text { padding: 30px 0 30px; }
.hero h1 { font-size: clamp(2rem, 1.15rem + 3.9vw, 3.5rem); line-height: 1.03; margin-bottom: 16px; text-wrap: balance; }
.hero__lede { max-width: 33em; margin-bottom: 24px; font-size: 1.0625rem; color: #dde3e8; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__unit { position: relative; display: block; margin-inline: -16px; aspect-ratio: 16 / 10; color: #fff; text-decoration: none; }
.hero__unit img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8));
  font-weight: 700; line-height: 1.3;
}
.hero__unit:hover .hero__unit-name { text-decoration: underline; }

@media (min-width: 600px) and (max-width: 899px) {
  .hero__unit { aspect-ratio: 2 / 1; }
}
@media (min-width: 900px) {
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 380px; }
  .hero--photo .hero__in { grid-template-columns: minmax(0, 12fr) minmax(0, 9fr); min-height: 450px; }
  .hero:not(.hero--photo) h1 { max-width: 15em; }
  .hero__text { align-self: center; padding: 64px 48px 64px 0; }
  .hero__cta .btn { flex: 0 1 auto; }
  /* The photo runs off the right edge of the screen; its left edge leans like the logo. */
  .hero__unit { --lean: 150px; margin: 0 calc(var(--gutter) * -1) 0 0; aspect-ratio: auto; }
  .hero__unit img { position: absolute; inset: 0; clip-path: polygon(calc(var(--lean) + 26px) 0, 100% 0, 100% 100%, 26px 100%); }
  .hero__unit::before {
    content: ""; position: absolute; inset: 0; z-index: 1; background: var(--red);
    clip-path: polygon(var(--lean) 0, calc(var(--lean) + 12px) 0, 12px 100%, 0 100%);
  }
  .hero__caption { left: 26px; right: auto; padding: 0 var(--gutter) 22px 34px; background: none; z-index: 2; font-size: 1.0625rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
  /* soft shadow behind the caption, cut to the same lean as the photo (it covers the bottom 45%) */
  .hero__unit::after {
    content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
    clip-path: polygon(calc(var(--lean) * .45 + 26px) 0, 100% 0, 100% 100%, 26px 100%);
  }
}

/* Category cards */
.cats { display: grid; gap: 16px; }
.cat { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--coal); color: #fff; text-decoration: none; }
.cat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .82)); }
.cat__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; }
.cat__name { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.875rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.cat__count {
  flex: none; background: var(--red-deep); color: #fff; font-size: .875rem; font-weight: 700; line-height: 1; white-space: nowrap;
  padding: 8px 12px 8px 20px; clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
}
.cat:hover { color: #fff; }
.cat:hover .cat__name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (min-width: 700px) {
  .cats { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
  .cats--one { grid-template-columns: minmax(0, 620px); }
  .cat__label { padding: 22px 24px; }
}

/* "Looking for something else?" + refurbishment panel */
.split { display: grid; gap: 36px; }
.types { margin: 0 0 1em; columns: 2 170px; column-gap: 28px; max-width: 34em; }
.types li { position: relative; padding: 5px 0 5px 22px; font-weight: 700; break-inside: avoid; }
.split__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.split__cta .btn { flex: 1 1 220px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .split__cta .btn { flex: 0 1 auto; }
}

/* ---------- Unit cards ---------- */
.grid { display: grid; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.card:hover { border-color: var(--ink); }
/* phones: a compact row, photo on the left */
.card__link { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 14px; height: 100%; padding: 12px; color: inherit; text-decoration: none; border-radius: 2px; }
.card__link:hover { color: inherit; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e4eaef; }
.card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card--generic .card__photo img { filter: grayscale(.6); opacity: .88; }
.card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 2px; }
.card__rep { display: block; margin-top: 6px; color: var(--steel); font-size: .6875rem; font-weight: 600; line-height: 1.3; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.card__title { margin: 9px 0 1px; font-size: 1.0625rem; line-height: 1.2; overflow-wrap: anywhere; }
.card__type { margin: 0 0 8px; color: var(--steel); font-size: .8125rem; line-height: 1.4; }
.card__facts { width: 100%; margin: 0 0 8px; font-size: .8125rem; line-height: 1.35; }
.card__facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.card__facts dt { color: var(--steel); }
.card__facts dd { min-width: 0; margin: 0 0 0 auto; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.card__price { margin: auto 0 0; color: var(--red-deep); font-size: .9375rem; font-weight: 700; line-height: 1.3; }

@media (max-width: 359px) {
  .card__link { grid-template-columns: 100px minmax(0, 1fr); column-gap: 12px; }
}
@media (min-width: 600px) {
  /* wider screens: photo on top, the stock tag riveted over its bottom edge */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card__link { display: flex; flex-direction: column; padding: 0; }
  .card__media { position: relative; }
  .card__photo { border-radius: 2px 2px 0 0; }
  .card__badges { position: absolute; right: 8px; top: 8px; margin: 0; }
  .card__rep { position: absolute; left: 0; top: 0; margin: 0; padding: 5px 10px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .6875rem; border-radius: 2px 0 0 0; }
  .card__body { flex: 1; padding: 0 16px 16px; }
  .card__body .tag { position: relative; margin: -14px 0 0 -16px; padding-left: 16px; }
  .card__title { margin-top: 12px; font-size: 1.125rem; }
  .card__type { margin-bottom: 12px; }
  .card__facts { margin-bottom: 12px; }
  .card__facts div { padding: 5px 0; }
  .card__price { font-size: 1rem; }
}
@media (min-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Inventory page ---------- */
.pills { margin: 0 -16px 18px; }
.pills ul { display: flex; gap: 8px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: thin; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 3px; color: var(--ink); background: #fff;
  font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.pill:hover { background: var(--mist); color: var(--ink); }
.pill__n { color: var(--steel); font-weight: 600; font-variant-numeric: tabular-nums; }
.pill[aria-current] { background: var(--black); border-color: var(--black); color: #fff; }
.pill[aria-current] .pill__n { color: #d5dbe0; }

.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; background: var(--mist); border-top: 5px solid var(--ink); }
.filters__search, .filters__go { grid-column: 1 / -1; }
.filters__input { position: relative; display: block; }
.filters__input .icon { position: absolute; left: 12px; top: 50%; margin-top: -10px; color: var(--steel); pointer-events: none; }
.filters__input input[type="search"] { padding-left: 42px; }
.results { margin: 16px 0 12px; font-weight: 700; }

@media (min-width: 720px) {
  .pills { margin-inline: 0; }
  .pills ul { flex-wrap: wrap; padding-inline: 0; overflow: visible; }
  .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 18px 20px 20px; align-items: end; }
  .filters__search { grid-column: auto; }
  .results { margin: 20px 0 16px; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 700; line-height: 1.4; }
.field__opt { color: var(--steel); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: #fff; border: 2px solid var(--edge); border-radius: 3px;
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #66717a; opacity: 1; }
textarea { min-height: 136px; line-height: 1.55; resize: vertical; }
select {
  padding-right: 40px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%232d2d2d' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
.field--err input, .field--err textarea { border-color: var(--red-deep); background: #fdf5f5; }
.field__err { margin: 0; color: var(--red-deep); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.field__err::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: currentColor; transform: skewX(-20deg); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 4px; }
.form__foot .btn { flex: 1 1 200px; }
.form__alt { margin: 0; flex: 1 1 auto; text-align: center; }
.form__alt a { display: inline-block; padding: 9px 0; font-weight: 700; }
/* Spam trap: off screen, out of the tab order (see inquiry-form.php). */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 16px; border-left: 6px solid var(--navy); background: #fff; }
.notice p { margin: 0 0 .5em; }
.notice p:last-child { margin-bottom: 0; }
.notice h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1.25rem; color: var(--navy); }
.notice--err { border-left-color: var(--red-deep); background: #fdf5f5; font-weight: 700; }
.notice--ok { padding: 22px 20px; }
.notice:focus { outline: 0; }

.inquire { scroll-margin-top: 12px; }
.inquire__lede { margin: 8px 0 18px; }
@media (min-width: 520px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__foot .btn { flex: 0 1 auto; }
  .form__alt { flex: none; text-align: left; }
}

/* ---------- Unit page ---------- */
.unit-page { padding-top: 6px; padding-bottom: 36px; }
.crumbs ol { display: flex; column-gap: 9px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.crumbs li { display: flex; align-items: center; column-gap: 9px; min-height: 44px; }
.crumbs li:last-child { min-width: 0; }
.crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: ""; flex: none; width: 8px; height: 14px; background: var(--red); transform: skewX(-20deg) scaleX(.3); }
.crumbs a { display: inline-block; padding: 10px 0; color: var(--ink); }
.crumbs a:hover { color: var(--red-deep); }
.crumbs [aria-current] { color: var(--steel); }

/* Phones: one column. The side block's two parts are ordered separately, so the form lands after the specs. */
.unit { display: flex; flex-direction: column; gap: 18px; }
.unit__side { display: contents; }
.unit__head { order: 1; }
.unit__gallery { order: 2; }
.unit__buy { order: 3; }
.unit__details { order: 4; }
.unit__inquire { order: 5; }
.unit__head h1 { margin: 10px 0 2px; font-size: clamp(1.625rem, 1.1rem + 2.6vw, 2.5rem); line-height: 1.06; overflow-wrap: anywhere; }
.unit__head--long h1 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.12; }
.unit__type { margin: 0; color: var(--steel); font-weight: 600; }
.unit__price { margin: 0 0 12px; color: var(--red-deep); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
/* key facts: rows on phones, tiles when there is room */
.facts { margin: 0 0 16px; border-top: 3px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.facts dt { flex: 0 1 auto; max-width: 50%; color: var(--steel); font-size: .875rem; line-height: 1.3; }
.facts dd { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; text-align: right; }
.unit__cta { display: grid; gap: 10px; }
.unit__hint { margin: 12px 0 0; color: var(--steel); font-size: .9375rem; }
.unit__hint strong { color: var(--ink); white-space: nowrap; }
.unit__block { margin-bottom: 30px; }
.unit__block h2, .inquire > h2 { font-size: 1.375rem; margin-bottom: 12px; }
.unit__notes { margin: 0; max-width: 40em; }
.unit__more { margin: 12px 0 0; color: var(--steel); }

.specs { width: 100%; border-collapse: collapse; border-top: 3px solid var(--ink); font-size: .9375rem; line-height: 1.45; }
.specs th, .specs td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs th { width: 44%; color: var(--steel); font-weight: 500; }
.specs td { font-weight: 700; overflow-wrap: anywhere; }
.specs tr:nth-child(odd) { background: var(--mist); }

.unit__inquire { margin-inline: -16px; padding: 26px 16px 28px; background: var(--mist); border-top: 5px solid var(--ink); }

/* Gallery */
.gallery__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stage); border-radius: 3px; }
.gallery__main { display: block; width: 100%; height: 100%; }
a.gallery__main { cursor: zoom-in; }
.gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__stage--empty .gallery__main img { object-fit: cover; }
.gallery__zoom, .gallery__count { position: absolute; bottom: 10px; background: rgba(0, 0, 0, .7); color: #fff; border-radius: 2px; pointer-events: none; }
.gallery__zoom { right: 10px; display: grid; place-items: center; width: 36px; height: 36px; }
.gallery__count { left: 10px; margin: 0; padding: 7px 10px; font-size: .8125rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.gallery__nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 46px; height: 60px; margin-top: -30px; padding: 0;
  background: rgba(0, 0, 0, .62); color: #fff; border: 0; cursor: pointer;
}
@media (hover: hover) {
  .gallery__nav:hover, .lightbox__close:hover { background: var(--red-deep); }
}
.gallery__nav--prev { left: 0; border-radius: 0 2px 2px 0; }
.gallery__nav--next { right: 0; border-radius: 2px 0 0 2px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumbs li { flex: 0 0 78px; }
.gallery__thumbs a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stage); border-radius: 2px; }
.gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs a[aria-current]::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--red); }
/* keyboard focus on a thumbnail: a navy and white double ring that shows on any photo */
.gallery__thumbs a:focus-visible { outline: 0; }
.gallery__thumbs a:focus-visible::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.gallery__note { margin: 0; padding: 12px 14px; background: var(--mist); border-left: 6px solid var(--red); font-size: .9375rem; line-height: 1.5; }
.gallery__note a { font-weight: 700; }

/* Full-screen viewer (a <dialog> that site.js creates) */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: #000; }
.lightbox__img { position: absolute; inset: 56px 0 0 0; width: 100%; height: calc(100% - 56px); object-fit: contain; }
.lightbox__bar { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; height: 56px; padding-left: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lightbox__close { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; background: none; color: #fff; border: 0; cursor: pointer; }
.lightbox .gallery__nav { top: calc(50% + 28px); }
html.is-locked { overflow: hidden; }

/* Videos */
.videos__list { display: grid; gap: 14px; }
.video { margin: 0; }
.video video, .video iframe, .video__yt { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--stage); border: 0; border-radius: 3px; }
.video__frame { position: relative; }
/* Big play button over one of our own videos (site.js un-hides it) - same look as the YouTube one. */
.video__start, .video__yt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.video__start { position: absolute; inset: 0; width: 100%; padding: 0; background: none; border: 0; border-radius: 3px; font: inherit; cursor: pointer; }
.video figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .875rem; font-weight: 700; }
.video figcaption span { color: var(--steel); font-weight: 500; }
.video__yt { text-decoration: none; }
.video__yt:hover { color: #fff; }
.video__play { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 6px; padding-left: 4px; background: var(--red-deep); border-radius: 50%; }
.video__yt:hover .video__play, .video__start:hover .video__play { background: var(--red-dark); }
.video__cta { font-weight: 700; font-size: 1.0625rem; }
.video__src { color: #b9c2c9; font-size: .8125rem; }

/* Slim call / ask bar pinned to the bottom of the screen on phones */
.unit-bar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .1);
  transition: transform .2s;
}
.unit-bar .btn { padding-inline: 8px; font-size: .9375rem; }
.unit-bar__num { display: none; }
.unit-bar.is-away { transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility 0s .2s; }
.has-bar .site-footer__bar { padding-bottom: 84px; }
@media (min-width: 420px) {
  .unit-bar { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .unit-bar__num { display: inline; white-space: nowrap; }
}

@media (max-width: 599px) {
  /* photos run edge to edge on phones */
  .unit__gallery .gallery__stage { margin-inline: -16px; border-radius: 0; }
  .unit__gallery .gallery__thumbs { margin-right: -16px; padding-right: 16px; }
  .unit-page { padding-bottom: 0; }
  .related { background: #fff; }
}
@media (min-width: 520px) {
  .facts:not(.facts--rows) { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; border: 0; }
  .facts:not(.facts--rows) div { display: block; padding: 10px 12px 11px; border: 0; border-top: 3px solid var(--ink); }
  .facts:not(.facts--rows) dt { max-width: none; font-size: .8125rem; }
  .facts:not(.facts--rows) dd { margin-top: 3px; font-size: 1.125rem; text-align: left; }
}
@media (min-width: 600px) {
  .videos__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos__list--one { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .unit-page { padding-top: 12px; padding-bottom: 64px; }
  /* Two independent columns (floats, so neither column's height pushes the other around):
     photos, videos and specs on the left; title, price, buttons and the form on the right. */
  .unit { display: flow-root; }
  .unit__gallery, .unit__details { float: left; clear: left; width: 57.5%; }
  .unit__head, .unit__side { float: right; clear: right; width: 39%; }
  .unit__side { display: block; }
  .unit__head { margin-bottom: 18px; }
  .unit__gallery { margin-bottom: 40px; }
  .unit__buy { margin-bottom: 36px; }
  .unit__inquire { margin: 0; padding: 28px 28px 30px; }
  .unit__block:last-child { margin-bottom: 0; }
  .gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); overflow: visible; padding: 0; }
  .gallery__nav { width: 52px; height: 68px; margin-top: -34px; }
  .unit-bar { display: none; }
  .has-bar .site-footer__bar { padding-bottom: 14px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 36px; }
.contact__phone { display: inline-block; padding: 2px 0; color: var(--ink); font-size: clamp(2.125rem, 1.3rem + 4.4vw, 3.25rem); font-weight: 800; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.contact__phone:hover { color: var(--red-deep); }
.contact__btn { width: 100%; }
.contact__form { margin-inline: -16px; padding: 28px 16px 30px; background: var(--mist); border-top: 5px solid var(--ink); }
.contact__form > h2 { margin-bottom: 18px; }
.about-unit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; font-weight: 700; }
.about-unit a { padding: 9px 0; color: var(--ink); }
@media (min-width: 520px) {
  .contact__btn { width: auto; }
}
@media (min-width: 900px) {
  /* phone (and the parent-company note under it) on the left, the form on the right */
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "call form" "parent form"; gap: 32px 64px; align-items: start; }
  .contact__call { grid-area: call; }
  .contact__parent { grid-area: parent; }
  .contact__form { grid-area: form; margin: 0; padding: 34px 36px 36px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: the unit page becomes a one-page spec sheet ---------- */
@media print {
  @page { margin: 12mm; }
  body { font-size: 10.5pt; line-height: 1.4; color: #000; }
  .skip, .site-nav, .call-band, .unit-bar, .crumbs, .gallery__thumbs, .gallery__nav, .gallery__zoom, .gallery__count,
  .videos, .unit__cta, .unit__inquire, .related, .site-footer__in, .filters, .pills, .hero__cta, .form, .lightbox { display: none !important; }
  .site-header { background: none; color: #000; border-bottom: 2pt solid #000; margin-bottom: 10pt; }
  .site-header__in { display: flex; justify-content: space-between; align-items: center; padding: 0 0 8pt; }
  .site-header__logo img { width: 96pt; filter: invert(1); }
  .site-header__call { background: none; color: #000; border: 0; padding: 0; font-size: 15pt; font-weight: 800; }
  .wrap { width: 100%; }
  .unit-page { padding: 0; }
  .unit { display: flow-root; }
  .unit__gallery { float: left; clear: left; width: 54%; margin-bottom: 12pt; }
  .unit__head, .unit__side { float: right; clear: right; width: 42%; }
  .unit__side { display: block; }
  .unit__details { float: none; clear: both; width: auto; }
  .unit__head h1 { font-size: 20pt; }
  .unit__head--long h1 { font-size: 13pt; }
  .unit__price { margin: 6pt 0 8pt; font-size: 15pt; }
  .gallery__stage { background: none; aspect-ratio: auto; }
  .gallery__main img { height: auto; max-height: 82mm; object-position: left top; }
  .tag, .facts div, .specs tr:nth-child(odd), .gallery__note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .unit__price, a { color: #000; }
  .unit__block { margin-bottom: 12pt; break-inside: avoid; }
  .unit__block h2 { font-size: 12pt; margin-bottom: 5pt; }
  .specs { font-size: 9.5pt; }
  .specs th, .specs td { padding: 3.5pt 8pt; }
  .unit__hint { color: #000; }
  .site-footer, .site-footer__bar { background: none; color: #000; }
  .site-footer__bar { border-top: 1pt solid #000; padding: 6pt 0 0; }
  .has-bar .site-footer__bar { padding-bottom: 0; }
  .card, .cat { break-inside: avoid; }
}
