/* ============================
   BrightLine Solutions — Design System
   ============================ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --bg-card: #17171a;
  --border: #2a2a2e;

  --silver-1: #f5f5f5;
  --silver-2: #b8b8ba;
  --silver-3: #8f8f92;

  --gold-1: #ffe08a;
  --gold-2: #f6c453;
  --gold-3: #f0a500;
  --gold-4: #b9791a;

  --text-primary: #f2f2f2;
  --text-secondary: #a7a7ad;
  --text-muted: #707076;

  --gold-gradient: linear-gradient(115deg, var(--gold-4) 0%, var(--gold-2) 45%, var(--gold-1) 65%, var(--gold-3) 100%);
  --silver-gradient: linear-gradient(115deg, var(--silver-1) 0%, var(--silver-2) 50%, var(--silver-3) 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.silver-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-gradient);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold-gradient);
  color: #14100a;
  box-shadow: 0 6px 22px rgba(240, 165, 0, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(240, 165, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold-3);
  color: var(--gold-2);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
}

.brand img { width: 40px; height: 40px; }

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name .sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold-gradient);
}

.nav-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  display: block;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(240,165,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px; left: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,184,186,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
}

.hero-stats .stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ Sections ============ */
section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.section-head p { color: var(--text-secondary); margin-top: 14px; font-size: 1.02rem; }

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

/* ============ Cards / Grid ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 165, 0, 0.35);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(240,165,0,0.16), rgba(184,184,186,0.08));
  margin-bottom: 20px;
  color: var(--gold-2);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.08rem; margin-bottom: 10px; }

.card p { color: var(--text-secondary); font-size: 0.92rem; }

.card ul { margin-top: 14px; }

.card ul li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 18px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-gradient);
}

/* ============ Video Showcase ============ */
.video-showcase {
  background: var(--bg-alt);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.video-frame {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 35%, rgba(240,165,0,0.13), transparent 55%),
    #090b10;
}

.video-card video {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 10px;
  background: #050609;
}

.video-card-portrait video {
  width: auto;
  max-width: 100%;
  height: 500px;
}

.video-card-square video {
  aspect-ratio: 1;
  object-fit: contain;
}

.video-card-copy {
  padding: 24px 26px 28px;
}

.video-duration {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.video-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============ Services Tabs (services.html) ============ */
.svc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.svc-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.svc-tab:hover { color: var(--text-primary); border-color: var(--gold-3); }

.svc-tab.active {
  background: var(--gold-gradient);
  color: #14100a;
  border-color: transparent;
  font-weight: 600;
}

.svc-panel { display: none; }
.svc-panel.active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.svc-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.svc-panel-head .card-icon { margin-bottom: 0; width: 54px; height: 54px; }

.svc-panel-head h3 { font-size: 1.4rem; }
.svc-panel-head p { color: var(--text-secondary); font-size: 0.92rem; margin-top: 4px; }

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tag-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover { border-color: var(--gold-3); color: var(--text-primary); }

.tag-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-gradient);
  flex-shrink: 0;
}

/* ============ Process / Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step { position: relative; padding-left: 4px; }

.step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
  margin-bottom: 12px;
}

.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.88rem; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(120deg, #17171a, #1d1a14);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 1.8rem; max-width: 480px; }
.cta-band p { color: var(--text-secondary); margin-top: 10px; }

/* ============ About page ============ */
.about-hero {
  padding: 80px 0 60px;
}

.values-grid { grid-template-columns: repeat(4, 1fr); }

.stat-block {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.stat-block .stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
}

.stat-block .stat-num.gold { color: var(--gold-2); }

.stat-block .stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

/* ============ Contact page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 20px;
}

.contact-info-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.92rem; }
.contact-info-card a { color: var(--gold-2); }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-3);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; max-width: 300px; }

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 11px; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.social-links { display: flex; gap: 14px; }

.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover { border-color: var(--gold-3); color: var(--gold-2); }
.social-links svg { width: 16px; height: 16px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-frame { min-height: 300px; }
  .video-card-portrait video { height: 420px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { padding: 11px 18px; font-size: 0.86rem; }
  .video-grid { grid-template-columns: 1fr; max-width: 540px; }
  .video-frame { min-height: 0; }
  .video-card-portrait video { height: min(68vh, 520px); }
}

@media (max-width: 420px) {
  .brand-name .sub { display: none; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 0.8rem; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tag-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  section { padding: 60px 0; }
}
