/* =========================================================
   Goldies — Permanent Outdoor Smart Lighting
   Static site styles
   ========================================================= */

:root {
  --bg:        #0b0d13;
  --bg-alt:    #10131c;
  --surface:   #161a26;
  --surface-2: #1d2230;
  --line:      #262c3d;
  --text:      #eef1f8;
  --muted:     #a3abc0;
  --gold:      #f5c451;
  --gold-2:    #e0a92e;
  --gold-soft: rgba(245, 196, 81, 0.14);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

.grad {
  background: linear-gradient(100deg, var(--gold), #ffe9ad 60%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  color: #201a05;
  box-shadow: 0 10px 30px -10px rgba(245, 196, 81, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(245, 196, 81, 0.75); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 19, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo-footer { height: 40px; }
.brand-name { font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #ffe9ad, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 0 18px 2px rgba(245, 196, 81, 0.55);
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #201a05; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(245, 196, 81, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 2.4rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 3rem;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1.7rem; color: var(--gold); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.22), transparent 62%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* CSS house scene */
.hero-scene {
  position: relative;
  height: 220px;
  margin-top: -1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}
.hero-scene .roofline {
  position: absolute;
  left: 50%; bottom: 150px;
  width: min(680px, 86%);
  height: 6px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-2), #ffe9ad, var(--gold));
  box-shadow: 0 0 22px 4px rgba(245, 196, 81, 0.7), 0 0 60px 10px rgba(245, 196, 81, 0.35);
}
.hero-scene .house {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 78%);
  height: 150px;
  background: linear-gradient(180deg, #1a1f2e, #12151f);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8%;
  padding: 0 8% 0;
}
.hero-scene .window {
  width: 54px; height: 60px; margin-bottom: 26px;
  background: radial-gradient(circle at 50% 40%, rgba(245,196,81,.9), rgba(245,196,81,.25));
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(245, 196, 81, 0.5);
}
.hero-scene .door {
  width: 46px; height: 84px;
  background: linear-gradient(180deg, #2a3145, #1a1f2e);
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--line);
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}
.trust-ico { color: var(--gold); font-weight: 800; margin-right: .35rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.section-lede { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245,196,81,.5); box-shadow: var(--shadow); }
.card-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- App section ---------- */
.app-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .9rem; }
.feature-list li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.feature-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
}
.feature-list strong { color: var(--text); }

.phone {
  justify-self: center;
  width: 260px;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, #20263a, #12151f);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 60px -10px rgba(245,196,81,.3);
  position: relative;
}
.phone-notch {
  width: 90px; height: 6px; border-radius: 6px;
  background: #000; margin: 4px auto 12px;
}
.phone-screen {
  background: radial-gradient(120% 90% at 20% 0%, #1c2233, #0d1017);
  border-radius: 22px;
  padding: 18px 16px 22px;
  min-height: 360px;
}
.phone-title { font-weight: 700; margin-bottom: 14px; }
.swatches { display: flex; gap: 8px; margin-bottom: 20px; }
.swatches span { flex: 1; height: 34px; border-radius: 8px; }
.swatches span:nth-child(1){ background:#f5c451; }
.swatches span:nth-child(2){ background:#e0532e; }
.swatches span:nth-child(3){ background:#2ea3e0; }
.swatches span:nth-child(4){ background:#8a2ee0; }
.swatches span:nth-child(5){ background:#2ee08a; }
.phone-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .9rem; color: var(--muted);
}
.pill {
  font-size: .78rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.pill.on { background: var(--gold-soft); color: var(--gold); }
.phone-slider {
  margin-top: 18px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--surface-2));
  position: relative;
}
.phone-slider span {
  position: absolute; top: 50%; left: 62%;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(245,196,81,.8);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.shot {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}
.shot::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.25), transparent 8%),
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.22), transparent 8%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.25), transparent 8%);
}
.shot figcaption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: .8rem 1rem;
  font-weight: 700;
  font-size: .92rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}
.shot-warm    { background: linear-gradient(160deg, #3a2f16, #6b5320); }
.shot-holiday { background: linear-gradient(160deg, #3a1616, #164a1e); }
.shot-team    { background: linear-gradient(160deg, #16233a, #3a2b16); }
.shot-cool    { background: linear-gradient(160deg, #16283a, #1e3350); }
.shot-party   { background: linear-gradient(120deg, #3a1640, #163a3a, #3a3016); }
.shot-amber   { background: linear-gradient(160deg, #4a2f10, #7a4d15); }

/* ---------- Warranty banner ---------- */
.warranty-banner {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.warranty-banner div {
  background: var(--surface);
  padding: 1.6rem 1rem;
  text-align: center;
}
.warranty-banner strong { display: block; font-size: 1.6rem; color: var(--gold); }
.warranty-banner span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.2rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(245,196,81,.4); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 1.1rem; }

/* ---------- Contact ---------- */
.section-cta {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(245,196,81,.12), transparent 60%),
    var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.contact-list span { color: var(--gold); }
.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  color: var(--text);
  font: inherit;
  transition: border-color .15s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.form-note { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: var(--gold); }
.form-note.err { color: #ff8b7a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--muted); margin-top: .6rem; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer-nav a { color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { padding-top: 1.4rem; color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .contact-grid { grid-template-columns: 1fr; }
  .phone { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem;
    transform: translateY(-140%);
    transition: transform .28s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: .8rem; border-bottom: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .cards, .cards-3, .gallery, .warranty-banner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
}

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