/* =========================================================
   ASCEND HOME THEATER — Global Stylesheet
   Brand: silver/chrome + azure blue (#3b96f2) on black
   ========================================================= */

:root {
  --blue: #3b96f2;
  --blue-light: #6fb4ff;
  --blue-deep: #1667d8;
  --blue-glow: rgba(59, 150, 242, 0.45);

  --black: #05070d;
  --black-2: #090c15;
  --panel: #0d111c;
  --panel-2: #10151f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #e9edf5;
  --text-muted: #9aa4b6;
  --text-dim: #6b7486;

  --silver-1: #ffffff;
  --silver-2: #d7dbe2;
  --silver-3: #9aa1ad;

  --maxw: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -5%, rgba(59, 150, 242, 0.14), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(59, 150, 242, 0.08), transparent 55%),
    var(--black);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.metallic {
  background: linear-gradient(180deg, #ffffff 0%, #e7eaf0 38%, #aeb5c2 72%, #dfe3ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 84px 0; }
.section--alt { background: linear-gradient(180deg, var(--black-2), var(--black)); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px -10px var(--blue-glow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand .brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 2px;
}
.brand .brand-name span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.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); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-spotlight {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(59, 150, 242, 0.20), transparent 62%);
  filter: blur(20px);
  z-index: -1;
  animation: pulse 7s var(--ease) infinite alternate;
}
@keyframes pulse { from { opacity: 0.55; } to { opacity: 1; } }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-logo { height: clamp(150px, 26vw, 240px); width: auto; margin: 0 auto 30px; filter: drop-shadow(0 20px 60px rgba(59,150,242,0.28)); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-tag {
  margin-top: 54px;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Full-logo banner hero (homepage) — pure black so the logo blends seamlessly */
.hero--banner { background: #000; }
.hero--banner .hero-spotlight {
  top: auto;
  bottom: -34%;
  width: 1100px;
  height: 720px;
  background: radial-gradient(circle, rgba(59, 150, 242, 0.16), transparent 62%);
  animation: none;
}
.hero-logo-full {
  width: min(600px, 90vw);
  height: auto;
  margin: 0 auto 14px;
}
.hero .hero-sub {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 34px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.stat { text-align: center; }
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}
.stat .label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ---------- Cards / Pillars ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--blue-glow), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.8); }
.card:hover::after { opacity: 1; }

.icon-wrap {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(59,150,242,0.22), rgba(59,150,242,0.04));
  border: 1px solid rgba(59,150,242,0.28);
  margin-bottom: 22px;
}
.icon-wrap svg { width: 30px; height: 30px; stroke: var(--blue-light); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card .card-index {
  position: absolute; top: 22px; right: 26px;
  font-size: 0.78rem; letter-spacing: 0.2em; color: var(--text-dim);
}

/* ---------- Feature rows (services detail) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1020, #05070d);
  display: grid; place-items: center;
}
.feature-media .glow-icon svg { width: 120px; height: 120px; stroke: var(--blue); fill: none; stroke-width: 1.1; opacity: 0.9; filter: drop-shadow(0 0 30px var(--blue-glow)); }
.feature-media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(59,150,242,0.16), transparent 60%);
}
.feature-num {
  font-size: 0.78rem; letter-spacing: 0.3em; color: var(--blue-light);
  text-transform: uppercase; margin-bottom: 16px; display: block;
}
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.feature p { color: var(--text-muted); margin-bottom: 22px; }
.feature ul { list-style: none; display: grid; gap: 12px; }
.feature ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.96rem; }
.feature ul li::before {
  content: ""; flex: none; margin-top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 10px var(--blue-glow);
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 34px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; }
.step .step-num {
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0c1222, #05070d);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tile.tall { aspect-ratio: 4 / 5.4; }
.tile.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(59,150,242,0.15), transparent 62%);
}
.tile svg { width: 74px; height: 74px; stroke: rgba(111,180,255,0.55); fill: none; stroke-width: 1.1; }
.tile .tile-label {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}
.tile:hover { transform: translateY(-5px); border-color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 66px 40px;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(59,150,242,0.16), transparent 65%),
    linear-gradient(180deg, var(--panel), var(--black-2));
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 34px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .info-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(59,150,242,0.1); border: 1px solid rgba(59,150,242,0.25); }
.contact-info .info-item .ic svg { width: 20px; height: 20px; stroke: var(--blue-light); fill: none; stroke-width: 1.7; }
.contact-info .info-item h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.contact-info .info-item p, .contact-info .info-item a { color: var(--text); font-size: 1.02rem; }
.contact-info .info-item a:hover { color: var(--blue-light); }

.form {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.field { margin-bottom: 20px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,150,242,0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 170px 0 70px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 34px;
  background: var(--black-2);
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.footer-brand img { height: 34px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.footer-bottom p { color: var(--text-dim); font-size: 0.84rem; }
.footer-bottom .tagline { letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.72rem; color: var(--text-muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .steps, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 78px; right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - 78px);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 30px 28px;
    background: rgba(9, 12, 21, 0.96);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 0.95rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; }
  .section { padding: 84px 0; }
  .grid-3, .grid-2, .steps, .gallery-grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .field.row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 22px; }
}

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