/* ==========================================================================
   Luxelite — site styles. Requires tokens.css.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lx-header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--lx-font-body);
  font-size: var(--lx-fs-base);
  line-height: var(--lx-lh-body);
  color: var(--lx-color-text);
  background: var(--lx-color-bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lx-color-primary); text-decoration: none; transition: color var(--lx-transition); }
a:hover { color: var(--lx-color-primary-dark); }
:focus-visible { outline: 2px solid var(--lx-color-primary); outline-offset: 2px; }
p { margin: 0 0 var(--lx-space-4); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0 0 var(--lx-space-4);
  font-family: var(--lx-font-heading);
  font-weight: var(--lx-fw-semibold);
  line-height: var(--lx-lh-heading);
  color: var(--lx-color-heading);
}
h2 { font-size: var(--lx-fs-xl); }
h3 { font-size: var(--lx-fs-lg); }
h4 { font-size: var(--lx-fs-md); }

.lx-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;
}
.lx-skip { position: absolute; left: var(--lx-space-4); top: -100px; z-index: 100; padding: var(--lx-space-2) var(--lx-space-4); background: var(--lx-color-navy); color: #fff; }
.lx-skip:focus { top: var(--lx-space-2); color: #fff; }

.lx-container { width: 100%; max-width: calc(var(--lx-container) + 2 * var(--lx-gutter)); margin-inline: auto; padding-inline: var(--lx-gutter); }
.lx-section { padding-block: var(--lx-section-gap); }
.lx-section + .lx-section { padding-top: 0; }

.lx-title {
  text-align: center;
  color: var(--lx-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--lx-fs-lg);
}
.lx-accent { color: var(--lx-color-primary); }

.lx-card {
  background: var(--lx-color-surface);
  box-shadow: var(--lx-shadow-card);
}

/* ---------- Buttons ---------- */
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 15rem;
  padding: var(--lx-space-3) var(--lx-space-6);
  border: 0; border-radius: var(--lx-radius);
  background: var(--lx-color-navy);
  color: var(--lx-color-primary);
  font: var(--lx-fw-semibold) var(--lx-fs-base)/1.2 var(--lx-font-heading);
  letter-spacing: 0.03em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--lx-transition), color var(--lx-transition);
}
.lx-btn:hover { background: var(--lx-color-navy-dark); color: #f0b157; }

/* ---------- Header ---------- */
.lx-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--lx-color-surface);
  box-shadow: var(--lx-shadow-header);
}
.lx-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--lx-header-h); gap: var(--lx-space-4); }
.lx-header__logo img { width: 92px; height: auto; }

.lx-nav__list { display: flex; gap: var(--lx-space-2); margin: 0; padding: 0; list-style: none; }
.lx-nav__link {
  display: block; padding: var(--lx-space-3) var(--lx-space-3);
  font: var(--lx-fw-bold) var(--lx-fs-sm)/1.4 var(--lx-font-nav);
  color: var(--lx-color-text-muted);
}
.lx-nav__link:hover, .lx-nav__link[aria-current="page"] { color: var(--lx-color-primary); }

.lx-nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--lx-color-heading);
}
.lx-nav__toggle svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 900px) {
  :root { --lx-header-h: 68px; }
  .lx-header__logo img { width: 70px; }
  .lx-nav__toggle { display: grid; }
  .lx-nav__list {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0;
    padding: var(--lx-space-2) var(--lx-gutter) var(--lx-space-4);
    background: var(--lx-color-surface);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .lx-nav[data-open="true"] .lx-nav__list { display: flex; }
  .lx-nav__link { padding: var(--lx-space-3) 0; border-bottom: 1px solid var(--lx-color-border); font-size: var(--lx-fs-base); }
  .lx-nav__list li:last-child .lx-nav__link { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.lx-hero img { width: 100%; aspect-ratio: 1222 / 363; object-fit: cover; }
@media (max-width: 600px) {
  /* banner text is baked into the image; crop to the left (text) half on phones */
  .lx-hero img { aspect-ratio: 4 / 3; object-position: 18% 50%; }
}

/* ---------- CEO message ---------- */
.lx-ceo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lx-space-6); align-items: start; }
.lx-ceo__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.lx-ceo__body h2 { color: var(--lx-color-primary); font-size: var(--lx-fs-lg); }
.lx-ceo__sign { color: var(--lx-color-heading); font-weight: var(--lx-fw-semibold); }
@media (max-width: 800px) {
  .lx-ceo { grid-template-columns: 1fr; }
  .lx-ceo__photo { max-width: 420px; }
  .lx-ceo__photo img { aspect-ratio: 4 / 5; object-position: 50% 25%; }
}

/* ---------- About ---------- */
.lx-about { padding: var(--lx-space-6) var(--lx-space-6); text-align: center; }
.lx-about h2 { color: var(--lx-color-primary); font-size: var(--lx-fs-md); text-transform: uppercase; letter-spacing: 0.04em; }

.lx-band { margin-block: var(--lx-space-7); padding-block: var(--lx-space-6); background: var(--lx-color-gold-band); }
.lx-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lx-space-5); }
.lx-pillar { display: flex; flex-direction: column; background: var(--lx-color-surface); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.lx-pillar h3 {
  margin: 0; padding: var(--lx-space-3) var(--lx-space-4);
  background: var(--lx-color-gold-band-dark); color: var(--lx-color-on-dark);
  font-size: var(--lx-fs-md); text-align: center; text-transform: uppercase; letter-spacing: 0.04em;
}
.lx-pillar p { padding: var(--lx-space-4) var(--lx-space-5) var(--lx-space-5); }
@media (max-width: 800px) { .lx-pillars { grid-template-columns: 1fr; } }

.lx-commitment { padding: var(--lx-space-7) var(--lx-space-6); }
.lx-commitment h2 { color: var(--lx-color-primary); font-size: var(--lx-fs-lg); text-align: center; }
.lx-commitment > p { max-width: 70ch; margin-inline: auto; }
.lx-commitment h2:not(:first-child) { margin-top: var(--lx-space-7); }
.lx-commitment figure { margin: var(--lx-space-5) 0 var(--lx-space-6); }
.lx-commitment figure img { width: 100%; aspect-ratio: 1600 / 589; object-fit: cover; }

@media (max-width: 600px) {
  .lx-about, .lx-commitment { padding: var(--lx-space-5) var(--lx-space-4); }
}

/* ---------- Services ---------- */
.lx-services__head { padding-block: var(--lx-space-4); margin-bottom: var(--lx-space-6); background: var(--lx-color-surface-alt); }
.lx-services__head .lx-title { margin: 0; }
.lx-services { display: grid; gap: var(--lx-space-6); }
.lx-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--lx-space-5); align-items: stretch; }
.lx-service--reverse .lx-slider { order: 2; }
.lx-service__text { padding: var(--lx-space-6); }
.lx-service__text h3 { color: var(--lx-color-primary); }
@media (max-width: 1000px) {
  .lx-service { grid-template-columns: 1fr; gap: 0; }
  .lx-service--reverse .lx-slider { order: 0; }
  .lx-service__text { padding: var(--lx-space-5) var(--lx-space-4); }
}

/* ---------- Image slider (CSS scroll-snap + tiny JS for arrows) ---------- */
.lx-slider { position: relative; width: 100%; min-width: 0; overflow: hidden; aspect-ratio: 11 / 9; background: #222; }
/* Track fills the slider box, so slide images (loaded or not) never affect layout */
.lx-slider__track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.lx-slider__track::-webkit-scrollbar { display: none; }
.lx-slider__track img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; scroll-snap-align: start; }
.lx-slider__nav { position: absolute; z-index: 1; top: var(--lx-space-3); left: var(--lx-space-3); display: flex; gap: var(--lx-space-2); }
.lx-arrow {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: var(--lx-radius-sm);
  background: var(--lx-color-primary); color: #fff; cursor: pointer;
  transition: background-color var(--lx-transition), opacity var(--lx-transition);
}
.lx-arrow:hover { background: var(--lx-color-primary-dark); }
.lx-arrow:disabled { opacity: 0.45; cursor: default; }
.lx-arrow svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .lx-slider { aspect-ratio: 4 / 3; } }

/* ---------- Projects ---------- */
.lx-projects__group + .lx-projects__group { margin-top: var(--lx-space-8); }
.lx-projects__group > h3 {
  padding-bottom: var(--lx-space-5); margin-bottom: var(--lx-space-5);
  border-bottom: 1px solid var(--lx-color-border);
  text-align: center; font-size: var(--lx-fs-md);
}
.lx-projects__intro { margin-bottom: var(--lx-space-6); }

.lx-carousel { position: relative; }
.lx-carousel__nav { display: flex; justify-content: flex-end; gap: var(--lx-space-2); margin-bottom: var(--lx-space-3); }
.lx-carousel__nav[hidden] { display: none; }
.lx-carousel__nav .lx-arrow { background: #d6d6d6; color: #fff; }
.lx-carousel__nav .lx-arrow:hover:not(:disabled) { background: var(--lx-color-primary); }
.lx-carousel__track {
  --cols: 3;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--lx-space-5)) / var(--cols));
  gap: var(--lx-space-5);
  margin: 0; padding: 0 0 var(--lx-space-2); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.lx-carousel__track::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .lx-carousel__track { --cols: 2; } }
@media (max-width: 600px) { .lx-carousel__track { --cols: 1.15; } }

.lx-project { scroll-snap-align: start; }
.lx-project__media { display: block; overflow: hidden; }
.lx-project__media img { width: 100%; aspect-ratio: 600 / 403; object-fit: cover; transition: transform 400ms ease; }
.lx-project__media:hover img { transform: scale(1.04); }
.lx-project h4 { margin: var(--lx-space-4) 0 var(--lx-space-2); }
.lx-project h4 a { color: var(--lx-color-heading); }
.lx-project h4 a:hover { color: var(--lx-color-primary); }
.lx-project p { font-size: var(--lx-fs-sm); line-height: 1.6; }

.lx-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lx-space-4); margin-top: var(--lx-space-8); }
@media (max-width: 600px) { .lx-cta .lx-btn { width: 100%; } }

/* ---------- Footer ---------- */
.lx-footer { background: var(--lx-color-navy); color: var(--lx-color-footer-text); font-size: var(--lx-fs-sm); }
.lx-footer a { color: var(--lx-color-footer-text); }
.lx-footer a:hover { color: var(--lx-color-primary); }
.lx-footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: var(--lx-space-6); padding-block: var(--lx-space-8) var(--lx-space-7); }
.lx-footer h2 { margin-bottom: var(--lx-space-4); color: #fff; font-size: var(--lx-fs-sm); letter-spacing: 0.02em; }
.lx-footer ul { margin: 0; padding: 0; list-style: none; }
.lx-footer li + li { margin-top: var(--lx-space-2); }
.lx-footer address { font-style: normal; }
.lx-contact li { display: grid; grid-template-columns: 18px 1fr; gap: var(--lx-space-2); }
.lx-contact li + li { margin-top: var(--lx-space-3); }
.lx-contact svg { width: 16px; height: 16px; margin-top: 5px; fill: currentColor; }
@media (max-width: 800px) { .lx-footer__cols { grid-template-columns: 1fr 1fr; } .lx-footer__cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .lx-footer__cols { grid-template-columns: 1fr; } }

.lx-copyright { background: var(--lx-color-primary); color: #fff; font-size: var(--lx-fs-xs); }
.lx-copyright__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lx-space-3); padding-block: var(--lx-space-4); }
.lx-copyright p { margin: 0; }
.lx-social { display: flex; align-items: center; gap: var(--lx-space-2); margin: 0; padding: 0; list-style: none; }
.lx-social li { display: flex; margin: 0; }
.lx-social a { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; }
.lx-social a:hover { color: var(--lx-color-navy); }
.lx-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.lx-ceo__photo { margin: 0; }
.lx-section--tight { padding-block: var(--lx-space-7); }
.lx-section--tight + .lx-section { padding-top: 0; }

/* Page banner (2-image slider) */
.lx-slider--banner { aspect-ratio: auto; height: clamp(200px, 31vw, 450px); }
.lx-slider--banner .lx-slider__nav { inset: 50% 0 auto 0; transform: translateY(-50%); justify-content: space-between; padding-inline: var(--lx-space-3); pointer-events: none; }
.lx-slider--banner .lx-arrow { width: 40px; height: 56px; background: rgba(0, 0, 0, 0.35); pointer-events: auto; }
.lx-slider--banner .lx-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.lx-slider--banner .lx-arrow:disabled { opacity: 0; }
.lx-banner--contact img { width: 100%; height: auto; } /* text is baked in: never crop */

/* Services intro */
.lx-intro { padding: var(--lx-space-6); }
.lx-list { margin: 0 0 var(--lx-space-4); padding-left: 1.25rem; }
.lx-list li::marker { color: var(--lx-color-primary); }

/* About page */
.lx-stack { display: grid; gap: var(--lx-space-5); }
.lx-block { padding: var(--lx-space-5) var(--lx-space-6); }
.lx-block--plain { padding-inline: 0; }
.lx-block h1, .lx-block h2 { color: var(--lx-color-primary); font-size: var(--lx-fs-lg); }
.lx-figure { margin: 0 0 var(--lx-space-5); }
.lx-figure img { width: 100%; }
@media (max-width: 600px) { .lx-block, .lx-intro { padding: var(--lx-space-5) var(--lx-space-4); } .lx-block--plain { padding-inline: 0; } }

/* Projects page */
.lx-projects-page .lx-projects__group > h3.lx-title { font-size: var(--lx-fs-xl); text-transform: none; }
.lx-cta--start { justify-content: flex-start; margin-top: var(--lx-space-7); }
.lx-btn--accent { background: var(--lx-color-primary); color: #fff; }
.lx-btn--accent:hover { background: var(--lx-color-primary-dark); color: #fff; }

/* Contact page */
.lx-contact-page { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--lx-space-7); align-items: stretch; }
.lx-contact-page h2 { font-size: var(--lx-fs-xl); }
.lx-contact-page__actions { display: grid; gap: var(--lx-space-3); max-width: 24rem; margin-top: var(--lx-space-6); }
.lx-contact-page__actions .lx-btn { min-width: 0; }
.lx-contact-page__map .lx-map { height: 100%; min-height: 420px; }
.lx-contact--lg li { grid-template-columns: 26px 1fr; gap: var(--lx-space-3); }
.lx-contact--lg li + li { margin-top: var(--lx-space-4); }
.lx-contact--lg svg { width: 22px; height: 22px; margin-top: 2px; fill: var(--lx-color-navy); }
.lx-contact { margin: 0; padding: 0; list-style: none; }
.lx-btn--outline { background: transparent; border: 1px solid var(--lx-color-navy); color: var(--lx-color-navy); }
.lx-btn--outline:hover { background: var(--lx-color-navy); color: var(--lx-color-primary); }
@media (max-width: 800px) {
  .lx-contact-page { grid-template-columns: 1fr; gap: var(--lx-space-6); }
  .lx-contact-page__map .lx-map { height: 360px; min-height: 0; }
  .lx-contact-page__actions { max-width: none; }
}

.lx-map { width: 100%; height: clamp(320px, 40vw, 480px); background: #e9e9e9; }
.lx-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Project detail */
.lx-project-head { display: flex; align-items: end; justify-content: space-between; gap: var(--lx-space-4); padding-bottom: var(--lx-space-5); margin-bottom: var(--lx-space-6); border-bottom: 1px solid var(--lx-color-border); }
.lx-project-head h1 { margin: 0; font-size: var(--lx-fs-xl); }
.lx-eyebrow { margin: 0 0 var(--lx-space-1); font-size: var(--lx-fs-sm); font-weight: var(--lx-fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; }
.lx-pager { display: flex; gap: var(--lx-space-2); }
.lx-pager__link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--lx-color-border); border-radius: 50%; color: var(--lx-color-heading); background: var(--lx-color-surface); }
.lx-pager__link:hover { border-color: var(--lx-color-primary); color: var(--lx-color-primary); }
.lx-pager__link svg { width: 16px; height: 16px; }

.lx-project-detail { display: grid; grid-template-columns: 1.75fr 1fr; gap: var(--lx-space-6); align-items: start; }
.lx-project-detail__main { margin: 0; position: sticky; top: calc(var(--lx-header-h) + var(--lx-space-4)); }
.lx-project-detail__main img { width: 100%; max-height: 75vh; object-fit: cover; }
.lx-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--lx-space-3); margin: var(--lx-space-5) 0 0; padding: 0; list-style: none; }
.lx-thumbs a { display: block; outline-offset: 2px; opacity: 0.75; transition: opacity var(--lx-transition); }
.lx-thumbs a:hover, .lx-thumbs a[aria-current="true"] { opacity: 1; }
.lx-thumbs a[aria-current="true"] { outline: 2px solid var(--lx-color-primary); }
.lx-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lx-back { margin-top: var(--lx-space-7); font-weight: var(--lx-fw-semibold); }
@media (max-width: 800px) {
  .lx-project-detail { grid-template-columns: 1fr; }
  .lx-project-detail__main { position: static; }
}



/* 404 page */
.lx-404 h1 { max-width: 22ch; font-size: var(--lx-fs-xl); }
.lx-404__code { margin: 0 0 var(--lx-space-2); font: 700 clamp(3.5rem, 2rem + 6vw, 6rem)/1 var(--lx-font-nav); color: var(--lx-color-primary); }
.lx-404__lead { max-width: 60ch; margin-bottom: var(--lx-space-6); }
.lx-404__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lx-space-4); margin: 0; padding: 0; list-style: none; }
.lx-404__links a { display: block; height: 100%; padding: var(--lx-space-5); background: var(--lx-color-surface); box-shadow: var(--lx-shadow-card); border-top: 3px solid var(--lx-color-primary); color: var(--lx-color-text); transition: transform var(--lx-transition); }
.lx-404__links a:hover { transform: translateY(-2px); color: var(--lx-color-text); }
.lx-404__links b { display: block; margin-bottom: var(--lx-space-1); color: var(--lx-color-heading); font-size: var(--lx-fs-md); }
.lx-404__links span { font-size: var(--lx-fs-sm); line-height: 1.5; }
.lx-404 .lx-cta { margin-top: var(--lx-space-7); }
.lx-404__call { margin-top: var(--lx-space-4); font-size: var(--lx-fs-sm); }
@media (max-width: 900px) { .lx-404__links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lx-404__links { grid-template-columns: 1fr; } }

/* Deferred slider images: hidden until site.js sets their src (no broken-image icon) */
.lx-slider__track img[data-src] { visibility: hidden; }
