/* ============================================================
   LHS — Livable Housing Services Ltd.
   Shared Stylesheet
   Colours: #000000 #14213d #fca311 #e5e5e5 #ffffff
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans SC", sans-serif;
  color: #000000;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.l-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.l-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fca311;
}

/* ---------- Header ---------- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e5e5e5;
}
.l-header__inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.l-logo { flex-shrink: 0; }
.l-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Nav */
.l-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.l-nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 18px 0 15px;
  border-bottom: 3px solid transparent;
  color: #14213d;
  transition: border-color 0.2s;
}
.l-nav a:hover,
.l-nav a.is-active { border-color: #fca311; }

/* Header tools */
.l-tools { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.l-tools__lang {
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  font-size: 11px;
  font-weight: 700;
  color: #14213d;
  transition: all 0.2s;
  flex-shrink: 0;
}
.l-tools__lang:hover { border-color: #14213d; }
.l-tools__cta {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: #14213d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s;
  flex-shrink: 0;
}
.l-tools__cta:hover { background: #000000; }

/* Mobile menu toggle */
.l-menu-toggle { display: none; font-size: 22px; color: #14213d; padding: 4px; }

/* Mobile nav */
.l-mobile-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #ffffff;
  padding: 12px 24px 20px;
  border-bottom: 2px solid #fca311;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.l-mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 600;
  font-size: 14px;
  color: #14213d;
}
.l-mobile-nav a.is-active { color: #fca311; }
.l-mobile-nav a:last-child { border-bottom: none; }
body.is-menu-open .l-mobile-nav { display: block; }

/* ---------- Hero ---------- */
.l-hero {
  position: relative;
  height: 580px;
  max-height: 580px;
  display: grid;
  grid-template-columns: 40fr 60fr;
  overflow: hidden;
  background: #f2f4f7;
}
.l-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  transition: background-image 0.8s ease;
}
.l-hero__copy {
  position: relative;
  z-index: 1;
  padding: 0 48px 0 max(36px, calc((100vw - 1200px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.l-hero__copy h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 14px 0 24px;
  max-width: 640px;
  color: #14213d;
}
.l-hero__copy h1 em {
  font-style: normal;
  color: #fca311;
}
.l-hero__copy p {
  max-width: 540px;
  color: #3a4a5e;
  font-size: 17px;
  line-height: 1.65;
}
.l-hero__actions { display: flex; gap: 12px; margin-top: 28px; }
.l-hero__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
}
.l-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}
.l-hero__dots {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.l-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.l-hero__dot.is-active { background: #fca311; }

/* ---------- Buttons ---------- */
.l-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  cursor: pointer;
}
.l-btn--primary { background: #14213d; color: #ffffff; }
.l-btn--primary:hover { background: #000000; }
.l-btn--accent { background: #fca311; color: #14213d; }
.l-btn--accent:hover { background: #e59400; }
.l-btn--ghost { background: #ffffff; color: #14213d; border: 1px solid #14213d; }
.l-btn--ghost:hover { background: #14213d; color: #ffffff; }
.l-btn--ghost-yellow { background: transparent; color: #fca311; border: 1px solid #fca311; }
.l-btn--ghost-yellow:hover { background: #fca311; color: #14213d; }
.l-btn--outline { background: transparent; color: #ffffff; border: 1px solid #ffffff; }
.l-btn--outline:hover { background: #ffffff; color: #14213d; }

/* ---------- Sections ---------- */
.l-section { padding: 60px 0; }
.l-section--tight { padding: 30px 0 60px; }
.l-section--soft { background: #f5f6f8; }

.l-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 18px;
}
.l-section__head h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-top: 4px;
  color: #14213d;
}
.l-section__head p {
  color: #556070;
  font-size: 15px;
  max-width: 520px;
}

/* ---------- Service Cards ---------- */
.l-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.l-service-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s;
}
.l-service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.l-service-card img { width: 100%; height: 220px; object-fit: cover; }
.l-service-card__body { padding: 24px; }
.l-service-card__num {
  font-size: 28px;
  font-weight: 900;
  color: #fca311;
  line-height: 1;
}
.l-service-card__body h3 { font-size: 18px; margin: 10px 0; color: #14213d; }
.l-service-card__body p { font-size: 14px; color: #556070; line-height: 1.6; }

/* ---------- Case / Before-After ---------- */
.l-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.l-case {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}
.l-case__compare {
  position: relative;
  height: 380px;
  overflow: hidden;
  cursor: col-resize;
}
.l-case__compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.l-case__compare .after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.l-case__tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 6px 12px;
  background: rgba(0,0,0,0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.l-case__tag--before { left: 14px; }
.l-case__tag--after { right: 14px; }
.l-case__slider {
  position: absolute;
  z-index: 4;
  left: 10%; right: 10%; bottom: 18px;
  width: 80%;
  accent-color: #fca311;
  cursor: pointer;
}
.l-case__body { padding: 22px; }
.l-case__body h3 { font-size: 20px; margin-bottom: 8px; color: #14213d; }
.l-case__body p { font-size: 14px; color: #556070; }

/* ---------- Products ---------- */
.l-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.l-product-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s;
  position: relative;
}
.l-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.l-product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.l-product-card__body { padding: 20px; }

/* Sold-out overlay */
.l-product-card.is-sold { opacity: 0.7; }
.l-product-card.is-sold .l-product-card__link {
  opacity: 0.4;
  pointer-events: none;
}
.l-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.l-product-badge--sold {
  background: #000000;
  color: #fca311;
}
.l-product-card.is-sold .l-product-badge--sold {
  background: #fca311;
  color: #000000;
}
.l-product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.l-product-card__code {
  font-size: 11px;
  color: #7b8492;
  font-family: "SF Mono", "Fira Code", monospace;
}
.l-product-card__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca311;
  font-weight: 700;
}
.l-product-card__body h3 { font-size: 17px; margin: 6px 0; color: #14213d; }
.l-product-card__body p { font-size: 13px; color: #556070; margin-bottom: 14px; }
.l-product-card__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #14213d;
  background: #fca311;
  transition: background 0.2s;
}
.l-product-card__link:hover { background: #e59400; }

/* Product filter - horizontal */
.l-product-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: 2px solid #e5e5e5;
}
.l-product-filter a {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #556070;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  cursor: pointer;
}
.l-product-filter a:hover,
.l-product-filter a.is-active {
  color: #14213d;
  border-bottom-color: #fca311;
}

/* ---------- Product Detail ---------- */
.l-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.l-detail__gallery {
  position: relative;
}
.l-detail__main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #e5e5e5;
}
.l-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.l-detail__thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  opacity: 0.6;
}
.l-detail__thumb:hover,
.l-detail__thumb.is-active { border-color: #fca311; opacity: 1; }
.l-detail__info { padding-top: 12px; }
.l-detail__info code { font-size: 12px; color: #7b8492; }
.l-detail__info h1 { font-size: 30px; margin: 8px 0 16px; color: #14213d; line-height: 1.15; }
.l-detail__info .l-detail__cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca311;
  font-weight: 700;
}
.l-detail__info p { font-size: 15px; color: #556070; line-height: 1.7; max-width: 440px; }
.l-detail__specs {
  margin-top: 28px;
  border-top: 1px solid #e5e5e5;
  padding-top: 24px;
}
.l-detail__spec-row {
  display: flex;
  padding: 8px 0;
  font-size: 14px;
}
.l-detail__spec-label {
  color: #7b8492;
  width: 130px;
  flex-shrink: 0;
}
.l-detail__spec-value { color: #14213d; font-weight: 600; }

/* ---------- Lightbox ---------- */
.l-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.l-lightbox.is-open { display: flex; }
.l-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.l-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.l-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.l-lightbox__prev,
.l-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.l-lightbox__prev:hover,
.l-lightbox__next:hover { background: rgba(255,255,255,0.25); }
.l-lightbox__prev { left: 24px; }
.l-lightbox__next { right: 24px; }

/* ---------- Contact Page ---------- */
.l-contact {
  display: flex;
  align-items: center;
  background: #f5f6f8;
  padding: 80px 0;
}
.l-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  width: 100%;
}
.l-contact__text h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 14px 0 22px;
  color: #14213d;
}
.l-contact__text p {
  font-size: 16px;
  color: #556070;
  max-width: 420px;
}
.l-contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.l-contact__block svg {
  width: 28px;
  height: 28px;
  stroke: #14213d;
  margin-bottom: 10px;
}
.l-contact__block h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8492;
  margin-bottom: 10px;
}
.l-contact__item {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #14213d;
  padding: 6px 0;
  transition: color 0.2s;
}
.l-contact__item:hover { color: #fca311; }
.l-contact__item small { font-size: 11px; color: #7b8492; font-weight: 400; margin-left: 8px; }

/* ---------- Footer ---------- */
.l-footer {
  background: #14213d;
  color: #ffffff;
  padding: 18px 0;
  font-size: 12px;
}
.l-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.l-footer__copy { opacity: 0.7; }
.l-footer__logo img {
  height: 20px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .l-hero { height: auto; min-height: 580px; max-height: none; grid-template-columns: 1fr; }
  .l-hero__copy { padding: 64px 28px; }
  .l-hero__media { height: 400px; }
  .l-service-grid { grid-template-columns: repeat(2, 1fr); }
  .l-product-grid { grid-template-columns: repeat(2, 1fr); }
  .l-case-grid { grid-template-columns: 1fr; }
  .l-detail { grid-template-columns: 1fr; gap: 32px; }
  .l-contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .l-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 760px) {
  .l-nav { display: none; }
  .l-menu-toggle { display: block; }
  .l-header__inner { gap: 8px; justify-content: space-between; }
  .l-tools { margin-left: auto; }
  .l-tools__cta { font-size: 10px; padding: 0 10px; height: 30px; }
}

@media (max-width: 560px) {
  .l-container { width: min(100% - 26px, 1200px); }
  .l-logo img { height: 22px; }
  .l-tools__cta { font-size: 9px; padding: 0 8px; height: 28px; }
  .l-tools__lang { height: 28px; width: 28px; font-size: 10px; }
  .l-service-grid,
  .l-product-grid { grid-template-columns: 1fr; }
  .l-section { padding: 56px 0; }
  .l-hero__media { height: 300px; }
  .l-case__compare { height: 280px; }
  .l-hero__copy h1 { font-size: 34px; }
  .l-footer__inner { flex-direction: column; text-align: center; gap: 8px; }
  .l-product-filter { gap: 4px; }
  .l-product-filter a { padding: 8px 12px; font-size: 12px; }
  .l-detail__thumbs { gap: 6px; }
  .l-detail__thumb { width: 56px; height: 42px; }
}
