/* ==================================================================
   BRIGHTSIGHT HEADLIGHTS — stylesheet
   ------------------------------------------------------------------
   Design language: the site's whole colour story is the thing this
   business actually does — a lens moves from an oxidised amber haze
   to clear, icy-white light. That amber → clear pairing (not a
   single neon accent) carries every interactive and structural
   choice below, on a near-black "workshop at night" ground.
   ================================================================== */

/* -------------------- tokens -------------------- */
:root {
  /* colour */
  --bg-void:       #0a0a0b;   /* page ground, asphalt-black */
  --bg-panel:      #131315;   /* card / panel surface */
  --bg-panel-hi:   #1a1a1d;   /* raised / hover surface */
  --line:          #28282c;   /* hairline border */
  --line-soft:     #1c1c1f;   /* quieter hairline */

  --text-hi:       #f3f1ec;   /* headings, primary text (warm white) */
  --text-lo:       #93939a;   /* body copy */
  --text-dim:      #7a7a7e;   /* tertiary — still passes AA on --bg-void */

  --clear:         #bfe3ff;   /* "restored" accent — icy, clean light */
  --clear-bright:  #eef7ff;   /* brightest highlight, glow cores */
  --clear-dim:     #6f93ad;   /* muted clear, for quiet accents */

  --oxidized:      #d9a352;   /* "before" accent — hazy amber lens */
  --oxidized-dim:  #7a6440;   /* muted amber */

  --on-clear:      #08131c;   /* text placed on a --clear surface */

  /* type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --max-w: 1240px;
  --edge: clamp(20px, 5vw, 64px);
  --radius-sm: 2px;
  --radius: 4px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------- reset -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-lo);
  background: var(--bg-void);
  position: relative;
  overflow-x: hidden;
}

/* fine grain over the black ground — keeps large flat panels from
   looking like a template fill */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

svg { display: block; }

::selection { background: var(--oxidized); color: #1a1206; }

:focus-visible {
  outline: 2px solid var(--clear);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--oxidized), var(--clear));
  margin-bottom: 20px;
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
              border-color 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clear);
  color: var(--on-clear);
  box-shadow: 0 0 0 0 rgba(191, 227, 255, 0);
}

.btn-primary:hover {
  background: var(--clear-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--clear-dim);
  color: var(--clear);
}

.btn-large { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* SVG gradient stops — classes so inline SVG can pull the same
   design tokens defined above via the normal CSS cascade */
.stop-amber { stop-color: var(--oxidized); }
.stop-clear { stop-color: var(--clear-bright); }
.stop-clear-mid { stop-color: var(--clear); }
.stop-clear-fade { stop-color: var(--clear); stop-opacity: 0; }

/* -------------------- nav -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: 0.2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-lo);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--clear);
  transition: width 0.2s var(--ease);
}

.nav-link:hover { color: var(--text-hi); }
.nav-link:hover::after { width: 100%; }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-hi);
  position: relative;
  transition: background 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--text-hi);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 769px) {
  .nav-cta { display: inline-flex; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-void);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--edge) 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::after { display: none; }

  .nav-cta {
    display: inline-flex;
    margin-top: 16px;
    justify-content: center;
  }
}

/* -------------------- hero -------------------- */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 88px);
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 68px);
  margin-bottom: 22px;
  max-width: 12ch;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-lo);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-hi);
}

.hero-meta-item .label {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}

.hero-graphic svg { width: 100%; height: 100%; }

@keyframes beamPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-graphic .beam { animation: beamPulse 4.5s ease-in-out infinite; transform-origin: 210px 210px; }
.hero-graphic .ring-outer { animation: ringRotate 60s linear infinite; transform-origin: 210px 210px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
  .hero-graphic { max-width: 360px; }
}

/* -------------------- section shell -------------------- */
section {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 8vw, 116px) 0;
}

/* offsets anchor-jump targets so the sticky nav doesn't cover the
   top of the section — no JS scroll math needed */
section[id] { scroll-margin-top: 84px; }

.section-header {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-lo);
  line-height: 1.65;
}

/* -------------------- why restore -------------------- */
.why-restore { border-top: 1px solid var(--line-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.why-card {
  background: var(--bg-void);
  padding: 34px 30px;
  transition: background-color 0.2s var(--ease);
}

.why-card:hover { background: var(--bg-panel); }

.why-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: var(--clear);
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.why-card p {
  font-size: 14.5px;
  color: var(--text-lo);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* -------------------- before / after -------------------- */
.before-after { border-top: 1px solid var(--line-soft); }

.ba-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.ba-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: ew-resize;
}

.ba-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.ba-panel.after {
  background: radial-gradient(circle at 35% 35%, #17242d 0%, #0c1216 70%);
}

.ba-panel.before {
  background: radial-gradient(circle at 35% 35%, #241d10 0%, #14100a 70%);
  clip-path: inset(0 50% 0 0);
}

.ba-panel svg { width: 42%; max-width: 190px; }

.ba-panel .ba-caption {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4px;
}

.ba-panel.after .ba-caption { color: var(--clear); }
.ba-panel.before .ba-caption { color: var(--oxidized); }

.ba-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0;
  z-index: 5;
}

.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3px;
  height: 10000px;
  background: linear-gradient(180deg, var(--oxidized), var(--clear));
  cursor: ew-resize;
  border: none;
  box-shadow: 0 0 16px rgba(191, 227, 255, 0.5);
}

.ba-slider::-moz-range-thumb {
  width: 3px;
  height: 10000px;
  background: linear-gradient(180deg, var(--oxidized), var(--clear));
  cursor: ew-resize;
  border: none;
  box-shadow: 0 0 16px rgba(191, 227, 255, 0.5);
}

.ba-slider::-moz-range-track { background: transparent; }

.ba-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
}

.spec-item .spec-label {
  font-size: 14.5px;
  color: var(--text-lo);
}

.spec-item .spec-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-hi);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ba-layout { grid-template-columns: 1fr; }
}

/* -------------------- process -------------------- */
.process { border-top: 1px solid var(--line-soft); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, var(--oxidized), var(--clear));
  opacity: 0.35;
}

.process-step {
  padding-right: 24px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--bg-void);
  background: var(--clear);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14.5px;
  color: var(--text-lo);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-steps::before { display: none; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* -------------------- service area -------------------- */
.service-area {
  border-top: 1px solid var(--line-soft);
}

.service-area-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.service-area-icon {
  width: 46px;
  height: 46px;
  color: var(--clear);
  flex-shrink: 0;
}

.service-area-text h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 10px;
}

.service-area-text p {
  font-size: 15.5px;
  color: var(--text-lo);
  max-width: 62ch;
  line-height: 1.65;
}

/* -------------------- about -------------------- */
.about { border-top: 1px solid var(--line-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 22px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-lo);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 56ch;
}

.about-text p:last-child { margin-bottom: 0; }

.about-graphic {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20%;
}

.about-graphic svg { width: 100%; height: 100%; color: var(--clear-dim); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-graphic { max-width: 300px; margin: 0 auto; order: -1; }
}

/* -------------------- contact -------------------- */
.contact { border-top: 1px solid var(--line-soft); }

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s var(--ease);
  display: block;
}

.contact-card:hover { border-color: var(--clear-dim); }

.contact-card h3 {
  font-size: 14px;
  color: var(--text-lo);
  font-weight: 500;
  margin-bottom: 10px;
}

.contact-highlight {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 27px);
  color: var(--text-hi);
  margin-bottom: 6px;
}

.contact-card:hover .contact-highlight { color: var(--clear); }

.contact-note {
  font-size: 13.5px;
  color: var(--text-dim);
}

.payment-info {
  padding: 20px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--text-lo);
}

.payment-info strong { color: var(--text-hi); }

@media (max-width: 640px) {
  .contact-methods { grid-template-columns: 1fr; }
}

/* -------------------- footer -------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.footer-logo .logo-mark { width: 19px; height: 19px; }

.footer-logo .logo-text {
  font-size: 16.5px;
}

.footer-section p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

.footer-section h4 {
  font-size: 13px;
  color: var(--text-lo);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-section li { margin-bottom: 10px; }

.footer-section a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s var(--ease);
}

.footer-section a:hover { color: var(--clear); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--edge) 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}

/* -------------------- reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-graphic .beam,
  .hero-graphic .ring-outer {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
