/* ===== Design tokens ===== */
:root {
  --black: #0d0c0a;
  --dark: #14130f;
  --dark-2: #1b1915;
  --cream: #f4f0e7;
  --cream-2: #ece6d9;

  --text-light: #f5f1e8;
  --text-dark: #1c1a15;
  --muted-light: #aaa498;
  --muted-dark: #6c655790;
  --muted-dark-solid: #6c6557;

  --gold: #c8a667;
  --gold-soft: #d8bd84;
  --gold-deep: #a07a3a;
  --line-light: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(28, 26, 21, 0.14);

  --max: 1140px;
  --radius: 6px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text-light);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 90%; max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; }
.section { padding: 120px 0; }

h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.3px; }
h1 { font-family: var(--sans); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: -1.5px; line-height: 1.02; text-transform: uppercase; }
h2 { font-family: var(--sans); font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 700; letter-spacing: -1px; text-transform: uppercase; text-wrap: balance; }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }

.gold-text { color: var(--gold); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--sans);
}
.section-head { max-width: none; margin-bottom: 64px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px; height: 2px;
  background: var(--gold);
  margin-top: 26px;
}

/* ===== Section themes ===== */
.sec-dark { background: var(--dark); color: var(--text-light); }
.sec-cream { background: var(--cream); color: var(--text-dark); }
.sec-cream .eyebrow { color: var(--gold-deep); }
.sec-cream .muted { color: var(--muted-dark-solid); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--gold); color: #1a1509; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.sec-cream .btn-ghost { border-color: rgba(28,26,21,0.3); color: var(--text-dark); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 12, 10, 0.94);
  backdrop-filter: blur(12px);
  padding: 13px 0;
  border-bottom-color: rgba(200,166,103,0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 42px; width: auto; }
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted-light);
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 14px;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:not(.nav-cta):hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 22px;
  color: var(--gold);
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--gold); color: #1a1509; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text-light); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Photo sections ===== */
.sec-photo { position: relative; background-color: var(--black); background-size: cover; background-position: center; }
.hero-photo {
  background-image: linear-gradient(180deg, rgba(13,12,10,0.55), rgba(13,12,10,0.82)), url("../assets/interior.jpg");
}
.standard-photo {
  background-image: url("../assets/exterior.jpg");
}
.sec-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(13,12,10,0.94) 0%, rgba(13,12,10,0.82) 45%, rgba(13,12,10,0.45) 100%);
}

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-inner { z-index: 2; max-width: 900px; padding: 150px 0 90px; }
.hero h1 { margin-bottom: 26px; }
.hero-sub { font-size: 1.3rem; color: #e7e1d5; max-width: 720px; margin-bottom: 40px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.14); padding-top: 30px; }
.hpillar { display: flex; align-items: center; gap: 12px; padding: 4px 26px; border-left: 1px solid rgba(255,255,255,0.14); }
.hpillar:first-child { padding-left: 0; border-left: none; }
.hpillar .ic { width: 26px; height: 26px; flex-shrink: 0; }
.hpillar span { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: #d8d2c6; font-weight: 500; }

/* shared icon styling */
.ic { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Problem (Tired of this) ===== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.problem-item {
  display: flex; align-items: center; gap: 18px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.problem-item .pic {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.problem-item .pic svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.problem-item p { font-size: 1.02rem; color: var(--text-dark); font-weight: 400; line-height: 1.4; }

.banner {
  text-align: center;
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 300;
  letter-spacing: 0.5px;
}
.banner span { color: var(--gold); font-weight: 600; }
.banner-gold { background: var(--gold); color: #1a1509; font-weight: 500; }

/* ===== Standard (values) ===== */
.standard-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.standard-copy .lede { font-size: 1.22rem; color: #e2dccf; font-weight: 300; max-width: 440px; }
.values { display: flex; flex-direction: column; gap: 14px; }
.value {
  display: flex; gap: 22px; align-items: flex-start;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line-light);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.value .ic { width: 30px; height: 30px; flex-shrink: 0; margin-top: 2px; }
.value h3 { color: var(--gold); margin-bottom: 5px; letter-spacing: 0.5px; }
.value p { color: var(--muted-light); font-size: 0.94rem; }

/* ===== Services list ===== */
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 60px;
  margin-bottom: 56px;
}
.services-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.08rem;
  color: var(--text-dark);
  font-weight: 400;
}
.check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); position: relative; }
.check::after {
  content: ""; position: absolute; left: 8.5px; top: 5px;
  width: 5px; height: 10px;
  border: solid var(--gold); border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.tagline-strip {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 500;
  color: var(--text-dark);
  border-top: 1px solid var(--line-dark);
  padding-top: 44px;
}

/* ===== Approach ===== */
.approach-steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-bottom: 50px; }
.approach-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px 30px;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,0.02);
}
.approach-step .ic { width: 36px; height: 36px; flex-shrink: 0; }
.step-k { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 4px; }
.approach-step h3 { color: var(--text-light); font-size: 1.3rem; margin-bottom: 8px; }
.approach-step p { color: var(--muted-light); font-size: 0.98rem; }

/* ===== Serve ===== */
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.serve-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 42px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.serve-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.sic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--gold);
  margin-bottom: 20px;
}
.sic svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.serve-card h3 { color: var(--text-dark); letter-spacing: 1px; text-transform: uppercase; font-size: 0.92rem; }
.serve-cta { text-align: center; max-width: 680px; margin: 0 auto; }
.serve-cta p { font-size: 1.25rem; color: var(--text-dark); font-weight: 300; margin-bottom: 30px; line-height: 1.5; }

/* ===== Brands ===== */
.brands { text-align: center; }
.brands .section-head { margin-left: auto; margin-right: auto; }
.brands .section-head h2::after { margin-left: auto; margin-right: auto; }
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 54px; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: 5px; color: var(--muted-light); opacity: 0.65; transition: opacity 0.25s, color 0.25s; }
.brand-name sup { font-size: 0.9rem; }
.brand-name:hover { opacity: 1; color: var(--gold); }
.brand-lutron { display: inline-flex; align-items: center; }
.lutron-logo { height: 34px; width: auto; display: block; }
.brand-lutron:hover .lutron-logo { filter: brightness(1.25); }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy > p { color: var(--muted-dark-solid); margin-bottom: 32px; max-width: 420px; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; flex-direction: column; gap: 3px; }
.contact-details strong { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold-deep); font-weight: 700; }
.contact-details a, .contact-details span { color: var(--text-dark); font-size: 1.05rem; }
.contact-details a:hover { color: var(--gold-deep); }

.contact-form { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-dark-solid); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--cream);
  border: 1px solid var(--line-dark); border-radius: 4px;
  padding: 13px 15px; color: var(--text-dark);
  font-family: var(--sans); font-size: 0.95rem; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--gold-deep); min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { background: var(--black); border-top: 1px solid rgba(200,166,103,0.15); padding: 60px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-logo { height: 50px; }
.footer-tag { color: var(--muted-light); font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-light); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-site { color: var(--gold); letter-spacing: 2px; font-size: 0.86rem; }
.copyright { color: var(--muted-light); font-size: 0.8rem; opacity: 0.6; }

/* ===== Service "Learn more" link ===== */
.service-link {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.service-link:hover { color: var(--gold-deep); }
.learn-more {
  flex-shrink: 0;
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  white-space: nowrap;
}
.service-link:hover .learn-more { text-decoration: underline; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 6, 0.72); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: calc(100% - 40px);
  margin: 8vh auto 0;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--dark);
  border: 1px solid rgba(200, 166, 103, 0.28);
  border-radius: 8px;
  padding: 46px 46px 42px;
  color: var(--text-light);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--muted-light);
  font-size: 1.9rem; line-height: 1; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }
.modal-title { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.modal-sub { color: var(--gold); font-family: var(--serif); font-size: 1.25rem; margin-bottom: 22px; }
.modal-body { color: var(--muted-light); margin-bottom: 24px; }
.modal-list { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 13px; }
.modal-list li { position: relative; padding-left: 26px; color: var(--text-light); font-size: 0.98rem; }
.modal-list li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 6px; height: 11px;
  border: solid var(--gold); border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.modal-value { color: #fff; font-weight: 500; letter-spacing: 0.3px; margin-bottom: 8px; }
.modal-tag { color: var(--gold); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; }
.modal-cta { display: inline-block; }

@media (max-width: 620px) {
  .modal-panel { padding: 40px 26px 32px; margin-top: 5vh; max-height: 90vh; }
  .modal-title { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .modal-panel { animation: none; } }

/* ===== Timed promo toast ===== */
.promo-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--dark);
  border: 1px solid rgba(200, 166, 103, 0.32);
  border-radius: 8px;
  padding: 24px 26px 26px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  transform: translateY(26px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.promo-toast.show { transform: none; opacity: 1; }
.promo-close {
  position: absolute; top: 8px; right: 14px;
  background: none; border: none; color: var(--muted-light);
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color 0.2s;
}
.promo-close:hover { color: var(--gold); }
.promo-eyebrow { color: var(--gold); font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.promo-title { color: #fff; font-size: 1.08rem; font-weight: 600; line-height: 1.25; margin-bottom: 9px; }
.promo-text { color: var(--muted-light); font-size: 0.86rem; line-height: 1.5; margin-bottom: 18px; }
.promo-btn { padding: 11px 26px; font-size: 0.72rem; }
@media (max-width: 480px) {
  .promo-toast { right: 14px; left: 14px; bottom: 14px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-toast { transition: opacity 0.3s ease; transform: none; }
}

/* ===== DTE Method timeline ===== */
.dte-steps { list-style: none; max-width: 740px; margin-bottom: 60px; }
.dte-step { position: relative; display: flex; gap: 26px; align-items: flex-start; padding-bottom: 36px; }
.dte-step:last-child { padding-bottom: 0; }
.dte-step:not(:last-child)::before {
  content: ""; position: absolute; left: 26px; top: 54px; bottom: 0;
  width: 1px; background: rgba(200, 166, 103, 0.22);
}
.dte-ic {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(200, 166, 103, 0.4);
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.dte-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dte-text { padding-top: 9px; }
.dte-text h3 { color: var(--text-light); font-size: 1.35rem; margin-bottom: 5px; letter-spacing: 0.5px; }
.dte-text p { color: var(--muted-light); font-size: 0.98rem; max-width: 560px; }
@media (max-width: 620px) {
  .dte-step { gap: 18px; padding-bottom: 28px; }
  .dte-step:not(:last-child)::before { left: 23px; top: 50px; }
  .dte-ic { width: 46px; height: 46px; }
  .dte-text h3 { font-size: 1.2rem; }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 330px);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
    padding: 0 42px; background: var(--dark); border-left: 1px solid var(--line-light);
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .brand-tag { display: none; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .standard-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .section { padding: 80px 0; }
  .problem-grid, .serve-grid, .approach-steps, .services-list { grid-template-columns: 1fr; }
  .hero-pillars { grid-template-columns: 1fr; gap: 18px; }
  .hpillar { border-left: none; padding: 0; }
  .field-row { grid-template-columns: 1fr; }
  .brands-row { gap: 30px; }
  .brand-name { font-size: 1.3rem; letter-spacing: 3px; }
  .contact-form { padding: 28px; }
  .hero-sub { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
