/* =====================================================
   LUMALINE LIGHTING CO. — DESIGN TOKENS
   Change these variables to re-theme the entire site.
===================================================== */
:root {
  /* --- Color --- */
  --color-bg: #0B0D10;
  --color-surface: #14171B;
  --color-surface-2: #1B1F24;
  --color-border: rgba(244, 241, 234, 0.09);
  --color-text: #F4F1EA;
  --color-text-muted: #9BA1A8;
  --color-accent: #E8A94C;       /* warm brass/amber — the "glow" color */
  --color-accent-soft: rgba(232, 169, 76, 0.14);
  --color-accent-dim: rgba(232, 169, 76, 0.35);

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* --- Layout --- */
  --max-width: 1240px;
  --section-pad: clamp(64px, 9vw, 128px);
  --radius: 2px;
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* =====================================================
   TYPOGRAPHY HELPERS
===================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head {
  max-width: 640px;
  margin: 0 auto var(--section-pad) auto;
  text-align: center;
}
.services .section-head,
.process .section-head { margin-bottom: 72px; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-solid {
  background: var(--color-accent);
  color: #14110A;
}
.btn-solid:hover { background: #f0b862; transform: translateY(-1px); }
.btn-outline {
  border-color: var(--color-accent-dim);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.btn-ghost {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.btn-full { width: 100%; padding: 15px 28px; }

/* =====================================================
   GLOW DIVIDER — signature element reused across sections
===================================================== */
.glow-divider {
  height: 1px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-dim) 50%, transparent 100%);
  position: relative;
}
.glow-divider::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 120px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--color-accent);
  filter: blur(6px);
  opacity: 0.7;
}

/* =====================================================
   HEADER / NAV
===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 32px;
  border-bottom-color: var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/*.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}*/


.logo img {
  height: 128px;   /* adjust to taste */
  width: auto;
  display: block;
}
.logo-dot { color: var(--color-accent); }

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
}
.header-social a {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.header-social a:hover { color: var(--color-accent); }
.header-social svg { width: 100%; height: 100%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}
.nav-link {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius);
  color: var(--color-text-muted);
}
.dropdown a:hover { background: var(--color-surface-2); color: var(--color-text); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 160px 32px 100px;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.house-svg {
  width: 100%;
  height: 100%;
  transform: scaleX(-1) translate(-150px, -18px);
}
.roofline {
  stroke-dasharray: 1250;
  stroke-dashoffset: 1250;
  animation: drawRoofline 3.5s ease-in-out infinite alternate,
             pulseGlow 2s ease-in-out infinite;
}
@keyframes drawRoofline {
  0% { stroke-dashoffset: 1250; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.25) 35%, rgba(11,13,16,0.95) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 2;
  width: 20px; height: 32px;
  border: 1px solid var(--color-text-muted);
  border-radius: 12px;
}
.scroll-cue span {
  display: block;
  width: 3px; height: 6px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

/* =====================================================
   STATS STRIP
===================================================== */
.stats-strip { padding: 64px 32px 72px; }
.stats-grid {
  max-width: var(--max-width);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* =====================================================
   SERVICES
===================================================== */
.services { padding: var(--section-pad) 32px; max-width: var(--max-width); margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.service-card {
  background: var(--color-bg);
  padding: 40px 28px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--color-surface); }

.service-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}
.service-card:hover .service-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 20px;
}
.service-detail img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: block;
}
.service-detail p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.service-icon {
  width: 40px; height: 40px;
  color: var(--color-accent);
  margin-bottom: 24px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 12px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =====================================================
   PROCESS
===================================================== */
.process { padding: var(--section-pad) 32px 0; max-width: var(--max-width); margin: 0 auto; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: var(--section-pad);
}

.process-step {
  padding: 20px;
  margin: -20px;
  border-radius: var(--radius);
  transition: background 0.3s ease, transform 0.3s ease;
}
.process-step:hover {
  background: var(--color-surface);
  transform: translateY(-4px);
}

.step-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}
.process-step:hover .step-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 20px;
}
.step-detail img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: block;
}
.step-detail p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 12px;
}
.process-step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* =====================================================
   GALLERY
===================================================== */
.gallery { padding: var(--section-pad) 32px; max-width: var(--max-width); margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 100%, var(--color-accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item--wide { grid-column: span 2; }
.gallery-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}
.gallery-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   FEATURE TILES
===================================================== */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.feature-tile { text-align: left; }

.feature-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}
.feature-tile:hover .feature-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 20px;
}
.feature-detail img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: block;
}
.feature-detail p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.feature-icon {
  width: 36px; height: 36px;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-tile h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.feature-tile p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* =====================================================
   TESTIMONIAL
===================================================== */
.testimonial {
  padding: var(--section-pad) 32px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
}
.testimonial footer {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--color-text-muted);
}

/* =====================================================
   CONTACT
===================================================== */
.contact {
  padding: var(--section-pad) 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
.contact-lead {
  color: var(--color-text-muted);
  margin: 20px 0 40px;
  max-width: 420px;
}
.contact-details {
  display: grid;
  gap: 20px;
  margin: 0 0 32px;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  font-size: 1rem;
}
.contact-details a:hover { color: var(--color-accent); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 40px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 20px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-row textarea { resize: vertical; }
.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--color-accent);
  min-height: 1.2em;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-nav a:hover { color: var(--color-text); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 32px 24px;
    margin: 0;
  }
  .main-nav.nav-open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    margin-top: 4px;
    width: 100%;
  }
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
  .hero { padding: 140px 20px 80px; align-items: flex-end; }
}
