/* ==========================================================================
   BASE — reset, fonts, typography, focus, shared utilities
   ========================================================================== */

/* ---- Fonts: self-hosted latin subsets, no third-party CDN request ------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header instead of hiding under it. */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bos-black);
  color: var(--bos-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Keeps the last section clear of the fixed mobile Call/Text/Quote bar. */
@media (max-width: 899px) {
  body {
    padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px));
  }
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* A <picture> is a format-selection wrapper, not a visual element — but it
   still generates a box, and at its default auto height it silently breaks
   `height: 100%` on the <img> inside. The result is a cover image that
   letterboxes against its container instead of cropping to it. Every
   container that crops with object-fit must stretch the picture as well.
   Add new object-fit containers to this list. */
.hero__media picture,
.parking__bg picture,
.service-card__media picture,
.gallery__item picture {
  width: 100%;
  height: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

figure {
  margin: 0;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: 1px solid var(--bos-hairline);
  margin: 0;
}

/* ---- Typography --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--bos-white);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
}

/* Card and list subheads read better in the body face at small sizes. */
h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: 0;
  text-transform: none;
}

p {
  margin: 0;
  max-width: var(--measure);
}

strong {
  font-weight: 600;
  color: var(--bos-white);
}

a {
  color: var(--bos-yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--bos-yellow-bright);
}

/* ---- Focus: always visible, never removed ------------------------------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: var(--ring);
  outline-offset: var(--ring-offset);
  border-radius: var(--radius-sm);
}

/* ---- Accessibility helpers --------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 200;
  padding: var(--s-3) var(--s-5);
  background: var(--bos-yellow);
  color: var(--bos-on-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--t) var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: var(--bos-on-yellow);
  outline-offset: -4px;
}

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

.container--wide {
  max-width: 1440px;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt {
  background: #0f0f0f;
  border-block: 1px solid var(--bos-hairline);
}

/* Section heading pattern: yellow eyebrow, yellow rule, H2, optional lede.
   Used verbatim on every section so the page has one consistent rhythm. */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
  display: block;
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--bos-yellow);
}

.rule {
  width: 56px;
  height: 3px;
  /* Separated from the heading above it -- flush against the baseline it read
     as an accidental underline on the first word. */
  margin: var(--s-5) 0 0;
  background: var(--bos-yellow);
}

.section-head .lede {
  margin-top: var(--s-5);
  font-size: var(--fs-body-lg);
  color: var(--bos-text-muted);
}

.section-head--center {
  text-align: center;
}
.section-head--center .rule {
  margin-inline: auto;
}
.section-head--center .lede {
  margin-inline: auto;
}

.stack > * + * {
  margin-top: var(--s-5);
}

.text-yellow {
  color: var(--bos-yellow);
}

.nowrap {
  white-space: nowrap;
}

/* ---- Motion ------------------------------------------------------------- */
/* One effect, once, on section entry. Nothing else animates on scroll. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* No-JS and reduced-motion users get the final state immediately. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .action-bar,
  .hero__media,
  .gallery,
  .lightbox {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }
}
