/* ============================================================
   LeVault Sound Solutions — Stylesheet
   ============================================================ */

:root {
  --bg: #08090d;
  --bg-alt: #10131b;
  --panel: #161a24;
  --panel-border: #262c3d;
  --text: #f0f2f7;
  --text-dim: #a6adc0;
  --accent: #4a5fe0;
  --accent-2: #22c39a;
  --accent-dim: #37449e;
  --accent-text: #ffffff;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --success: #4caf82;
  --radius: 10px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

/* The hidden attribute only applies display:none via the browser's default
   stylesheet, so any author `display` rule silently beats it. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

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

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

.section {
  padding: 64px 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-gradient);
  color: var(--accent-text);
}
.btn-primary:hover { filter: brightness(1.12); color: var(--accent-text); }

.btn-outline {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-facebook {
  background: #1877f2;
  color: #fff;
}
.btn-facebook:hover { background: #2a86ff; color: #fff; }

.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--panel-border); }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 118px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(74, 95, 224, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(34, 195, 154, 0.14), transparent 40%);
}

/* Rotating photo background behind the hero */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Photos fill the whole hero. Each one is pre-cropped around the box, so the
   speaker stays front and centre rather than being cut off. */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Dark wash so the headline stays readable over any photo — heaviest on the
   left where the text sits, lighter on the right to let the image show. */
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.96) 0%, rgba(8, 9, 13, 0.88) 38%, rgba(8, 9, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.5) 0%, transparent 30%, rgba(8, 9, 13, 0.75) 100%);
}

@media (max-width: 900px) {
  /* text sits over the whole width on phones, so darken evenly — but not so
     much that the photo disappears entirely */
  .hero-slideshow::after {
    background: linear-gradient(180deg, rgba(8, 9, 13, 0.88) 0%, rgba(8, 9, 13, 0.78) 55%, rgba(8, 9, 13, 0.9) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
}

/* keep hero content above the slideshow */
.hero > .container { position: relative; z-index: 1; }

/* Single column now — the background photo carries the right-hand side, so the
   text is capped rather than stretched across the full width. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: 48px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero-lede { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
}
.hero-stat span { color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------- Cards / Grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }

.card-media {
  background: linear-gradient(160deg, #171c2c, #0d1016);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  /* Flex items default to min-height:auto, which would let a tall photo
     stretch the tile past its aspect ratio */
  min-height: 0;
  overflow: hidden;
}
.card-media svg { width: 100%; height: 100%; color: var(--accent); }

.card-media--photo { padding: 0; }
.card-media--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-category {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Oswald", sans-serif;
}

.card-price {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  color: var(--text);
}
.card-price small { color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; }

.card-specs { list-style: none; margin: 0; padding: 0; color: var(--text-dim); font-size: 0.9rem; }
.card-specs li { padding: 4px 0; border-top: 1px solid var(--panel-border); }
.card-specs li:first-child { border-top: none; }

.card-actions { margin-top: auto; display: flex; gap: 10px; padding-top: 12px; }

/* ---------------- Steps / How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------------- Reviews ---------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
}
.review-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.review-name { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 0.9rem; margin-top: 12px; }
.review-source { color: var(--text-dim); font-size: 0.8rem; }

.fb-embed-wrap {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.fb-embed-frame {
  width: 100%;
  border: none;
  border-radius: 8px;
  min-height: 500px;
  background: #fff;
}
.fb-embed-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ---------------- Forms ---------------- */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--text-dim); }

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  /* iOS zooms the whole page when you focus an input under 16px */
  font-size: 16px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { color: var(--text-dim); font-size: 0.8rem; }

.form-note {
  background: rgba(74, 95, 224, 0.1);
  border: 1px solid rgba(74, 95, 224, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.form-success {
  display: none;
  background: rgba(76, 175, 130, 0.12);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
  color: var(--text);
}
.form-success.show { display: block; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, #16204a, #0d3b34);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  text-align: center;
  padding: 60px 0;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--panel-border);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--text); font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); display: inline-block; padding: 6px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
  color: var(--text-dim);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Misc / Page header ---------------- */
.page-header {
  padding: 56px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(255,138,30,0.06), transparent);
}

.badge {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.quote-summary {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.quote-summary ul { list-style: none; margin: 16px 0 0; padding: 0; color: var(--text-dim); font-size: 0.9rem; }
.quote-summary li { padding: 8px 0; border-top: 1px solid var(--panel-border); display: flex; gap: 8px; }
.quote-summary li::before { content: "\2713"; color: var(--accent); font-weight: 700; }

/* ---------------- Build configurator ---------------- */
.build-options { margin-bottom: 20px; }

.option-group { margin-bottom: 22px; }
.option-group h4 {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-row:hover { border-color: var(--accent-dim); }
.option-row:has(input:checked) {
  border-color: var(--accent);
  background: rgba(74, 95, 224, 0.09);
}
.option-row input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.option-name { font-size: 0.93rem; }
.option-price {
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  color: var(--accent-2);
  white-space: nowrap;
}
.option-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Running total in the sidebar */
.summary-lines { list-style: none; margin: 14px 0 0; padding: 0; }
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--panel-border);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.summary-lines li::before { content: none; }
.summary-lines li span:last-child { color: var(--text); white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.summary-total strong { font-size: 1.7rem; color: var(--accent-2); }

.service-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-list li {
  padding: 7px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-dim);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ---------------- Projects gallery ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text-dim);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--accent-text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }

.project-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #171c2c, #0d1016);
  overflow: hidden;
  min-height: 0;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  color: var(--accent);
}
.project-placeholder svg { width: 90px; height: auto; opacity: 0.5; }
.project-placeholder span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.project-body h3 { margin: 0; font-size: 1.1rem; }
.project-body p { margin: 0; font-size: 0.9rem; }

/* Running total pinned to the bottom of the screen on phones, where the
   summary panel would otherwise sit below the whole form and out of sight */
.mobile-total { display: none; }

@media (max-width: 900px) {
  .mobile-total {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: var(--panel);
    border-top: 2px solid var(--accent);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    color: var(--text-dim);
  }
  .mobile-total[hidden] { display: none; }
  .mobile-total strong { font-size: 1.35rem; color: var(--accent-2); }
  /* stop the bar covering the submit button at the end of the form */
  body.has-mobile-total { padding-bottom: 74px; }
}

/* ---------------- Price table ---------------- */
.table-scroll { overflow-x: auto; }

.price-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.price-table th,
.price-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
.price-table thead th,
.price-table thead td {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.price-table tbody th { color: var(--text-dim); font-weight: 500; }
.price-table td { color: var(--text); white-space: nowrap; }
.price-table-section th {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--accent);
  padding-top: 20px;
}
