/* ==========================================================================
   LightExtreme — Luxury Lighting — Core Stylesheet
   ========================================================================== */

:root {
  --black: #0b0b0c;
  --near-black: #121214;
  --charcoal: #1a1a1d;
  --gold: #c8a25a;
  --gold-light: #e4c98a;
  --cream: #f4efe6;
  --grey: #9a9a9f;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--grey); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

.divider {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 22px 0 30px;
}
.center .divider { margin-left: auto; margin-right: auto; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--sans);
}
.btn:hover { background: var(--gold); color: var(--black); }

.btn-solid {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-sm { padding: 10px 22px; font-size: 0.68rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(11,11,12,0.92), rgba(11,11,12,0));
  transition: background var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(11,11,12,0.96);
  padding: 14px 0;
  border-bottom: 1px solid rgba(200,162,90,0.15);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--white);
  text-transform: uppercase;
}
.brand span { color: var(--gold); }
.brand-logo { height: 38px; width: auto; display: block; }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding-bottom: 6px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 22px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
}
.cart-btn:hover { color: var(--gold-light); }
.cart-count {
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 1px;
  background: var(--cream);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 90px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.75) 55%, rgba(11,11,12,0.98) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.page-hero {
  min-height: 46vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 90px;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0.92) 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.page-hero-inner .lead { margin: 0 auto; }

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ---------- Service / feature card ---------- */
.card {
  background: var(--near-black);
  border: 1px solid rgba(200,162,90,0.14);
  padding: 42px 34px;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: rgba(200,162,90,0.5); }
.card-icon {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 24px;
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Service pillar cards ---------- */
.pillar-card {
  background: var(--near-black);
  border: 1px solid rgba(200,162,90,0.14);
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pillar-card:hover { transform: translateY(-6px); border-color: rgba(200,162,90,0.5); }
.pillar-photo {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--charcoal);
}
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pillar-card:hover .pillar-photo img { transform: scale(1.06); }
.pillar-body { padding: 32px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.pillar-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar-card p { font-size: 0.9rem; flex: 1; margin-bottom: 20px; }
.grid-3.pillars { row-gap: 40px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.gallery figure:hover img { transform: scale(1.08); }
/* The tall photo sets the height for its row; the stack column
   (two photos) stretches to match it automatically via grid's
   default stretch alignment, so there's no leftover blank space. */
.gallery figure.tall { aspect-ratio: 4/6.4; }
.gallery .gallery-stack { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.gallery .gallery-stack figure { flex: 1; min-height: 0; }

/* ---------- Service page gallery ---------- */
.gallery-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.gallery-10 figure { margin: 0; overflow: hidden; aspect-ratio: 1/1; }
.gallery-10 img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-10 figure:hover img { transform: scale(1.08); }
.gallery-10 .lb-trigger { cursor: zoom-in; position: relative; }
@media (max-width: 980px) { .gallery-10 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery-10 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(11,11,12,0.94);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  border: 1px solid rgba(200,162,90,0.3);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: 1px solid rgba(200,162,90,0.4);
  color: var(--cream);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Product details modal ---------- */
.product-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,11,12,0.92);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.product-modal-overlay.open { opacity: 1; pointer-events: auto; }
.product-modal {
  position: relative;
  background: var(--near-black);
  border: 1px solid rgba(200,162,90,0.3);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product-modal-media { background: var(--charcoal); }
.product-modal-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.product-modal-body { padding: 40px; display: flex; flex-direction: column; }
.product-modal-body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.product-modal-body p { flex: 1; }
.product-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  background: rgba(11,11,12,0.7);
  border: 1px solid rgba(200,162,90,0.4);
  color: var(--cream);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.product-modal-close:hover { border-color: var(--gold); color: var(--gold-light); }
@media (max-width: 720px) {
  .product-modal { grid-template-columns: 1fr; }
  .product-modal-media img { min-height: 220px; }
  .product-modal-body { padding: 28px 24px; }
}

/* ---------- Product cards ---------- */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 20px;
  border: 1px solid rgba(200,162,90,0.3);
  background: transparent;
  color: var(--grey);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--gold); color: var(--black); border-color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.product-card {
  background: var(--near-black);
  border: 1px solid rgba(200,162,90,0.1);
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: rgba(200,162,90,0.45); transform: translateY(-4px); }
.product-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--charcoal);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-photo img { transform: scale(1.06); }
.product-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.product-body p { font-size: 0.9rem; flex: 1; }
.product-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-actions .btn-sm { flex: 1; text-align: center; justify-content: center; white-space: nowrap; }

/* ---------- About ---------- */
.story-image { position: relative; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.about-gallery-row { display: grid; gap: 18px; }
.about-gallery-row.a { grid-template-columns: 2fr 1fr; }
.about-gallery-row.b { grid-template-columns: 1fr 2fr; }
@media (max-width: 720px) {
  .about-gallery-row.a,
  .about-gallery-row.b { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-item { margin-bottom: 30px; }
.contact-info-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input,
.contact-form textarea {
  background: var(--near-black);
  border: 1px solid rgba(200,162,90,0.25);
  color: var(--cream);
  padding: 16px 18px;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.consent { font-size: 0.78rem; display: flex; gap: 10px; align-items: flex-start; }
.consent a { color: var(--gold-light); text-decoration: underline; }

.map-frame { width: 100%; height: 380px; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(200,162,90,0.14);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 0.9fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: var(--grey); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.social-row { display: flex; gap: 16px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(200,162,90,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-light); }
.newsletter-form { display: flex; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  background: var(--charcoal);
  border: 1px solid rgba(200,162,90,0.25);
  border-right: none;
  color: var(--cream);
  padding: 12px 14px;
  font-size: 0.85rem;
}
.newsletter-form button {
  background: var(--gold);
  border: none;
  color: var(--black);
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid rgba(200,162,90,0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--grey);
}
.footer-bottom a { color: var(--grey); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 600;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 800;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 92vw;
  background: var(--near-black);
  border-left: 1px solid rgba(200,162,90,0.25);
  z-index: 900;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 28px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(200,162,90,0.15);
}
.cart-close { background: none; border: none; color: var(--cream); font-size: 1.4rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200,162,90,0.08);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.92rem; margin-bottom: 4px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-row button {
  width: 22px; height: 22px;
  background: var(--charcoal);
  border: 1px solid rgba(200,162,90,0.25);
  color: var(--cream);
  cursor: pointer;
}
.remove-item { font-size: 0.7rem; color: var(--grey); text-decoration: underline; cursor: pointer; background: none; border: none; margin-left: auto; }
.cart-empty { color: var(--grey); text-align: center; padding: 60px 20px; font-size: 0.9rem; }
.cart-footer { padding: 24px 28px 30px; border-top: 1px solid rgba(200,162,90,0.15); }
.cart-footer .btn { width: 100%; justify-content: center; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  font-style: italic;
  margin: 0 0 20px;
}

/* ---------- Feature checklist ---------- */
.feature-columns {
  list-style: none;
  margin: 0 auto 8px;
  padding: 0;
  max-width: 880px;
  column-count: 2;
  column-gap: 48px;
  text-align: left;
}
.feature-columns li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  color: var(--cream);
  font-size: 0.96rem;
  break-inside: avoid;
}
.feature-columns li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-weight: 600;
}
@media (max-width: 720px) {
  .feature-columns { column-count: 1; }
}

/* ---------- Utility ---------- */
.bg-charcoal { background: var(--charcoal); }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3.pillars { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* The desktop nav (6 links, incl. "Chandelier Elegance") plus the
   logo/wordmark and cart button don't fit on tablet-width screens —
   switch to the off-canvas menu well before the 3-col grids collapse. */
@media (max-width: 1140px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .grid-3.pillars { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-drawer { width: 100%; }
  h1 { line-height: 1.15; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .brand { font-size: 1.05rem; letter-spacing: 0.06em; gap: 8px; }
  .brand-logo { height: 26px; }
  .header-actions { gap: 10px; }
  .cart-btn { font-size: 0.68rem; gap: 6px; }
  .hero-actions { gap: 12px; }
  .btn { padding: 13px 24px; }
  .gallery-10 { gap: 8px; }
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .product-modal-overlay { padding: 12px; }
  .product-modal-close { top: 10px; right: 10px; width: 36px; height: 36px; }
}

@media (max-width: 400px) {
  /* "Add to Cart" + "Details" side-by-side can overflow a narrow
     product card at this width — stack them full-width instead. */
  .product-actions { flex-direction: column; }
  .product-actions .btn-sm { width: 100%; }
}

/* ---------- Mobile nav (open state) ---------- */
.main-nav.mobile-open {
  display: flex;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 78vw;
  max-width: 340px;
  background: var(--near-black);
  flex-direction: column;
  padding: 100px 40px;
  gap: 30px;
  border-left: 1px solid rgba(200,162,90,0.2);
  z-index: 700;
}
