:root {
  --brand-tagline: "AARV - Premium Architectural Lighting";
  --bg: #0d0d0d;
  --bg-deep: #070707;
  --graphite: #1a1a1a;
  --graphite-soft: #141414;
  --text: #f5f5f5;
  --muted: #aaa49a;
  --line: rgba(245, 245, 245, 0.12);
  --gold: #d7bc7b;
  --warm: #fff1c8;
  --glow: rgba(255, 232, 180, 0.22);
  --shadow: 0 28px 88px rgba(0, 0, 0, 0.58);
  --max: 1240px;
  --header: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select, textarea { font: inherit; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  transition: opacity .65s ease, visibility .65s ease;
}
.site-loader span {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.7rem, 8vw, 7rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,245,.36);
  text-shadow: 0 0 34px var(--glow);
}
.site-loader.loaded { opacity: 0; visibility: hidden; }

/* HEADER COMPONENT */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid transparent;
  background: rgba(13,13,13,.08);
  backdrop-filter: blur(8px);
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(8,8,8,.94);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 138px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: .18em;
}
.logo-slot {
  position: relative;
  width: 108px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(215,188,123,.38);
  background: rgba(0,0,0,.2);
  box-shadow: 0 0 24px rgba(215,188,123,.12);
}
.logo-slot::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  color: rgba(245,245,245,.46);
  font-size: .52rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.logo-slot img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}
.logo-dark { opacity: 0; }
.site-header.scrolled .logo-white { opacity: 0; }
.site-header.scrolled .logo-dark { opacity: 1; }
.brand-name { display: none; color: var(--text); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
  font-family: "Sora", sans-serif;
  font-size: .76rem;
  color: rgba(245,245,245,.78);
  text-transform: uppercase;
}
.main-nav a { transition: color .25s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--warm); }
.nav-item { position: relative; padding: 30px 0; }
.mega-menu {
  position: absolute;
  top: 76px;
  left: 50%;
  width: 620px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 18px;
  background: rgba(18,18,18,.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
}
.has-mega:hover .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid transparent;
  color: var(--text);
  text-transform: none;
  font-size: .9rem;
}
.mega-menu a:hover { border-color: rgba(215,188,123,.28); background: rgba(255,255,255,.04); }
.mega-menu span, .eyebrow, .section-kicker {
  color: var(--gold);
  font-family: "Sora", sans-serif;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: .25s ease;
}
.icon-btn:hover, .menu-toggle:hover { border-color: rgba(215,188,123,.55); box-shadow: 0 0 24px var(--glow); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }
.menu-toggle span { width: 18px; height: 1px; background: var(--text); }

/* PAGE HERO COMPONENT */
.page-hero, .home-hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 70px) clamp(20px, 5vw, 74px) 82px;
  overflow: hidden;
}
.home-hero { min-height: 100vh; }
.hero-media, .hero-grid {
  position: absolute;
  inset: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(255,226,170,.14), transparent 28%),
    linear-gradient(90deg, rgba(13,13,13,.97), rgba(13,13,13,.62) 46%, rgba(13,13,13,.18)),
    linear-gradient(0deg, var(--bg), transparent 44%);
}
.hero-media img { filter: saturate(.72) contrast(1.12) brightness(.76); transform: scale(1.05); animation: slowDrift 16s ease-in-out infinite alternate; }
.hero-grid {
  opacity: .25;
  background: linear-gradient(90deg, transparent 0 24%, rgba(255,255,255,.14) 24% 24.1%, transparent 24.1% 50%, rgba(255,255,255,.1) 50% 50.1%, transparent 50.1% 76%, rgba(255,255,255,.12) 76% 76.1%, transparent 76.1%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero-content h1, .section-heading h2, .split-layout h2, .cta-section h2, .feature-band h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: .96;
}
.hero-content h1 { margin-top: 20px; font-size: clamp(3.2rem, 8vw, 9rem); }
.page-hero .hero-content h1 { font-size: clamp(3rem, 7vw, 7.2rem); }
.hero-subtitle {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(245,245,245,.78);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.03rem, 2vw, 1.45rem);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* BUTTONS AND SHARED UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(245,245,245,.18);
  font-family: "Sora", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: .32s ease;
}
.btn-primary { color: #111; background: linear-gradient(135deg, #fff4d2, #c8a85f); border-color: transparent; box-shadow: 0 16px 50px rgba(215,188,123,.18); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 70px rgba(215,188,123,.3); }
.btn-ghost:hover { border-color: rgba(215,188,123,.55); background: rgba(255,255,255,.05); }

.section { padding: clamp(82px, 9vw, 142px) clamp(20px, 5vw, 74px); }
.section-graphite { background: var(--graphite-soft); }
.section-heading {
  max-width: var(--max);
  margin: 0 auto clamp(38px, 6vw, 74px);
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 28px;
  align-items: end;
}
.section-heading h2, .split-layout h2, .cta-section h2, .feature-band h2 { font-size: clamp(2.15rem, 5vw, 5.2rem); }
.section-heading p:not(.eyebrow), .lead, .card p, .footer-brand p, .tab-panel p, .spec-list li, .article-card p {
  color: var(--muted);
  line-height: 1.75;
}
.section-kicker { max-width: var(--max); margin: 0 auto 18px; }
.content-wrap, .grid, .split-layout, .masonry-gallery, .timeline, .footer-grid, .footer-brand, .footer-bottom { max-width: var(--max); margin-inline: auto; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-lg { margin-top: 42px; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 90px); align-items: center; }

.card, .product-card, .article-card, .project-card, .support-card, .contact-form, .contact-panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card, .support-card { padding: 28px; }
.card:hover, .product-card:hover, .article-card:hover, .project-card:hover, .support-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,188,123,.42);
  box-shadow: 0 22px 70px rgba(0,0,0,.34), 0 0 36px rgba(215,188,123,.08);
}
.card h3, .product-card h3, .article-card h3, .project-card h3, .support-card h3, .tab-panel h3, .contact-panel h3 {
  margin: 12px 0 0;
  font-family: "Sora", sans-serif;
  font-weight: 500;
  line-height: 1.25;
}
.card .num { color: var(--gold); font-family: "Montserrat", sans-serif; font-size: 2rem; font-weight: 800; }

.media-card, .project-card, .article-card {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
}
.media-card::after, .project-card::after, .article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.84), transparent 62%);
}
.media-card img, .project-card img, .article-card img, .product-card img { transition: transform .7s ease, filter .7s ease; }
.media-card:hover img, .project-card:hover img, .article-card:hover img, .product-card:hover img { transform: scale(1.065); filter: brightness(1.08); }
.media-card-content, .project-card-content, .article-card-content {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
}
.label, .product-card span, .project-card span, .article-card span {
  color: var(--gold);
  font-family: "Sora", sans-serif;
  font-size: .74rem;
  text-transform: uppercase;
}

/* HOME PAGE */
.category-strip { overflow: hidden; border-block: 1px solid var(--line); background: #101010; }
.strip-track { display: flex; width: max-content; gap: 42px; padding: 22px 0; animation: marquee 34s linear infinite; }
.strip-track span { color: rgba(245,245,245,.62); font-family: "Sora", sans-serif; font-size: .88rem; text-transform: uppercase; white-space: nowrap; }
.feature-grid { grid-template-columns: 1.2fr .8fr; grid-auto-rows: 340px; }
.feature-grid .large { grid-row: span 2; }
.media-card h3 { max-width: 560px; margin: 12px 0 0; font-family: "Sora", sans-serif; font-size: clamp(1.4rem, 2.6vw, 2.7rem); font-weight: 500; line-height: 1.22; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.stats-row div { padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.stats-row strong { display: block; color: var(--warm); font-family: "Montserrat", sans-serif; font-size: 1.8rem; }
.stats-row span { color: var(--muted); font-size: .82rem; }

/* PRODUCTS */
.filter-bar, .category-nav {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn, .category-link {
  min-height: 44px;
  padding: 0 18px;
  color: rgba(245,245,245,.74);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: .25s ease;
}
.filter-btn.active, .filter-btn:hover, .category-link:hover { color: #111; border-color: transparent; background: linear-gradient(135deg, #fff4d2, #c8a85f); }
.product-card { min-height: 520px; display: flex; flex-direction: column; overflow: hidden; background: #121212; }
.product-card img { height: 255px; }
.product-card > div { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.product-card a { margin-top: auto; color: var(--warm); font-family: "Sora", sans-serif; font-size: .78rem; text-transform: uppercase; }

/* PRODUCT DETAILS */
.detail-gallery { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.detail-gallery .main-image { min-height: 560px; }
.thumb-grid { display: grid; gap: 18px; }
.spec-list { padding: 0; margin: 24px 0 0; list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list strong { color: var(--text); }

/* PROJECTS */
.masonry-gallery { columns: 3; column-gap: 18px; }
.project-card { height: 290px; margin-bottom: 18px; break-inside: avoid; }
.project-card.tall { height: 470px; }
.case-study { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }

/* SOLUTIONS AND ARCHITECTS */
.solution-panel {
  min-height: 330px;
  display: grid;
  align-items: end;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10,10,10,.9), rgba(10,10,10,.35)),
    var(--solution-image) center/cover;
}
.solution-smart { --solution-image: url("https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1200&q=80"); }
.solution-hospitality { --solution-image: url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80"); }
.solution-commercial { --solution-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80"); }
.solution-residential { --solution-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80"); }
.support-grid-spaced { margin-top: 42px; }
.feature-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 80px);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 84% 20%, rgba(215,188,123,.13), transparent 28%), linear-gradient(135deg, #171717, #0e0e0e);
}

/* BLOG */
.article-card { min-height: 470px; }
.article-card-content h3 { margin: 12px 0; font-family: "Sora", sans-serif; font-size: 1.45rem; font-weight: 500; }
.article-card-content a { color: var(--warm); font-family: "Sora", sans-serif; font-size: .78rem; text-transform: uppercase; }

/* CONTACT */
.contact-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr .9fr; gap: 18px; }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 42px); }
.contact-form label { display: grid; gap: 9px; color: var(--gold); font-family: "Sora", sans-serif; font-size: .78rem; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea, .newsletter input {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  outline: none;
  transition: .25s ease;
}
.contact-form input, .contact-form select, .contact-form textarea { min-height: 52px; padding: 13px 14px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .newsletter input:focus { border-color: rgba(215,188,123,.55); box-shadow: 0 0 0 4px rgba(215,188,123,.07); }
.contact-panel { padding: clamp(24px, 4vw, 42px); }
.map-placeholder {
  height: 310px;
  display: grid;
  place-items: center;
  color: rgba(245,245,245,.52);
  border: 1px solid var(--line);
  background: linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25% 50%, rgba(255,255,255,.03) 50% 75%, transparent 75%), #111;
  background-size: 28px 28px;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-actions a { padding: 13px 16px; border: 1px solid var(--line); }

/* CTA AND FOOTER COMPONENTS */
.cta-section {
  max-width: calc(var(--max) + 148px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) clamp(20px, 5vw, 74px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  background: linear-gradient(90deg, rgba(13,13,13,.88), rgba(13,13,13,.35)), url("https://images.unsplash.com/photo-1521783988139-893ce6900b48?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-block: 1px solid var(--line);
}
.cta-section h2 { max-width: 900px; }

.site-footer { padding: 64px clamp(20px, 5vw, 74px) 28px; border-top: 1px solid var(--line); background: #090909; }
.footer-brand { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 46px; }
.footer-brand p { max-width: 560px; margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 34px; border-block: 1px solid var(--line); }
.footer-grid h3 { font-family: "Sora", sans-serif; font-size: .9rem; }
.footer-grid a { display: block; margin-top: 12px; color: var(--muted); transition: color .25s ease; }
.footer-grid a:hover { color: var(--warm); }
.newsletter { display: flex; margin-top: 14px; }
.newsletter input { min-height: 44px; padding: 0 12px; }
.newsletter button { color: #111; border: 0; background: var(--gold); padding: 0 16px; cursor: pointer; }
.socials { display: flex; gap: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: rgba(245,245,245,.45); font-size: .85rem; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes slowDrift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(1.6%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 14px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 22px;
    background: rgba(10,10,10,.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a, .nav-item { padding: 14px 0; }
  .mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 10px;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .has-mega.open .mega-menu, .has-mega:focus-within .mega-menu { display: grid; }
  .header-actions .icon-btn:nth-child(3) { display: none; }
  .section-heading, .split-layout, .case-study, .contact-grid, .detail-gallery { grid-template-columns: 1fr; }
  .feature-grid, .grid-2, .grid-3, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry-gallery { columns: 2; }
}

@media (max-width: 680px) {
  :root { --header: 72px; }
  .site-header { padding-inline: 16px; }
  .brand { min-width: auto; letter-spacing: .12em; }
  .logo-slot { width: 92px; height: 36px; }
  .header-actions { gap: 6px; }
  .icon-btn, .menu-toggle { width: 38px; height: 38px; }
  .home-hero { min-height: 92vh; }
  .hero-content h1 { font-size: clamp(2.65rem, 10.5vw, 4rem); overflow-wrap: break-word; }
  .page-hero .hero-content h1 { font-size: clamp(2.35rem, 10vw, 3.8rem); overflow-wrap: break-word; }
  .section { padding-block: 72px; }
  .feature-grid, .grid-2, .grid-3, .grid-4, .stats-row, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-auto-rows: 310px; }
  .feature-grid .large { grid-row: span 1; }
  .product-card { min-height: auto; }
  .masonry-gallery { columns: 1; }
  .project-card, .project-card.tall { height: 340px; }
  .hero-actions, .filter-bar, .category-nav, .contact-actions { width: 100%; }
  .btn, .filter-btn, .category-link, .contact-actions a { width: 100%; }
  .cta-section, .footer-brand, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom { display: grid; }
}

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