:root {
  --bg: #1c1917;
  --bg-2: #161311;
  --panel: #292524;
  --border: #292524;
  --border-soft: #242019;
  --text: #f5f5f4;
  --text-dim: #d6d3d1;
  --text-mut: #a8a29e;
  --text-mut-2: #78716c;
  --accent: #1f5fae;
  --accent-light: #6ba3e0;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

h1, h2, h3 { font-family: var(--font-head); color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, 0.65); color: #fff; }
.btn--white { background: #fff; color: var(--accent); white-space: nowrap; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 40px; height: 40px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; color: #fff; font-size: 20px;
  border-radius: 3px;
  flex-shrink: 0;
}
.brand__text {
  font-family: var(--font-head); font-weight: 800; color: var(--text);
  font-size: 18px; letter-spacing: 0.02em; line-height: 1;
}
.brand__text small {
  display: block; font-size: 11px; font-weight: 500; color: var(--text-mut);
  letter-spacing: 0.18em; margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(130% 110% at 82% 8%, #2c4d78 0%, #1c3050 45%, #0e1826 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(122,170,224,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(122,170,224,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}
.beam {
  position: absolute;
  left: -12%;
  width: 180%;
  height: 82px;
  transform: rotate(-33deg);
  border-radius: 3px;
  background: linear-gradient(180deg,#5a7ba6 0%,#3d5c89 14%,#2b466b 50%,#22385a 84%,#182a42 100%);
  box-shadow: inset 0 3px 0 rgba(158,196,234,0.5), inset 0 -4px 0 rgba(0,0,0,0.4), 0 30px 55px rgba(0,0,0,0.35);
  overflow: hidden;
}
.beam span {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(10,16,26,0.5) 2.5px, transparent 3px);
  background-size: 36px 100%;
  background-position: 0 center;
}
.beam--1 { top: -8%; }
.beam--2 { top: 32%; }
.beam--3 { top: 72%; }
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,18,30,0.95) 0%, rgba(11,18,30,0.78) 40%, rgba(11,18,30,0.28) 72%, rgba(11,18,30,0.05) 100%);
}
.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}
.hero__content {
  max-width: 640px;
  padding: 96px 0 104px;
}
.eyebrow {
  color: var(--accent-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-weight: 900;
  font-size: 66px;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.stats {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__item { padding: 30px 56px; border-right: 1px solid var(--border); }
.stats__item:last-child { border-right: none; }
.stats__num { font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--accent); }
.stats__label { color: var(--text-mut); font-size: 14px; margin-top: 2px; }

/* Sections */
.section { max-width: 1280px; margin: 0 auto; padding: 80px 56px; }
.section--alt { max-width: none; background: var(--bg-2); }
.section--alt > * { max-width: 1168px; margin-left: auto; margin-right: auto; }
.section h2 { font-weight: 800; font-size: 38px; margin-bottom: 40px; }
.eyebrow--section { margin-bottom: 12px; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.section__head h2 { margin-bottom: 0; }

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

.card {
  background: var(--panel);
  padding: 30px;
  border-radius: 5px;
  border-top: 3px solid var(--accent);
}
.card h3 { font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-mut); font-size: 15px; line-height: 1.6; }

/* Rating / Reviews */
.rating {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); padding: 16px 22px; border-radius: 6px;
}
.rating__num { font-family: var(--font-head); font-weight: 900; font-size: 38px; color: var(--text); line-height: 1; }
.rating__stars { color: var(--accent-light); font-size: 18px; letter-spacing: 2px; }
.rating__count { color: var(--text-mut); font-size: 13px; margin-top: 3px; }

.review { background: var(--bg); padding: 30px; border-radius: 5px; }
.review__stars { color: var(--accent-light); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.review p { font-size: 16px; line-height: 1.6; margin-bottom: 18px; color: #e7e5e4; }
.review p.review__auto { color: var(--text-mut); font-style: italic; }
.review footer { font-size: 15px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.review footer span { font-size: 13px; font-weight: 400; color: var(--text-mut-2); }

.reviews__attribution { color: var(--text-mut-2); font-size: 12px; margin-top: 20px; }
.reviews__source {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
}
.reviews__source:hover { text-decoration: underline; }

/* Contact */
.contact {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
}
.contact__info { padding: 72px 56px; border-right: 1px solid var(--border); }
.contact__info h2 { font-weight: 800; font-size: 34px; margin-bottom: 28px; }
.contact__rows { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact__label { color: var(--text-mut); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.contact__phone { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--text); }
.contact__rows a, .contact__rows > div > div { color: var(--text); font-size: 17px; }

.hours { border-top: 1px solid var(--border); padding-top: 26px; }
.hours__row {
  display: flex; justify-content: space-between; padding: 7px 0;
  color: #e7e5e4; font-size: 15px; border-bottom: 1px solid var(--border-soft);
}
.hours__time { font-weight: 600; }
.hours__row--muted { color: var(--text-mut); border-bottom: none; }

.map {
  position: relative;
  min-height: 320px;
  background: var(--bg);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(85%) brightness(0.95);
}

/* CTA */
.cta {
  background: var(--accent);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta h2 { font-weight: 900; font-size: 34px; color: #fff; margin-bottom: 6px; }
.cta p { color: #c9dcef; font-size: 17px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer {
  background: var(--bg-2);
  padding: 28px 56px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-mut-2); font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--text-mut); }

/* Responsive */
@media (max-width: 900px) {
  .nav__inner { padding: 18px 24px; }
  .nav__links { gap: 18px; font-size: 13px; }
  .hero__inner { padding: 0 24px; }
  .hero__content { padding: 64px 0 72px; }
  .hero h1 { font-size: 44px; }
  .hero__lead { font-size: 17px; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--border); }
  .stats__item:last-child { border-bottom: none; }
  .section { padding: 56px 24px; }
  .section h2 { font-size: 28px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__info { border-right: none; border-bottom: 1px solid var(--border); padding: 56px 24px; }
  .map { min-height: 220px; }
  .cta { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
  .footer { padding: 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .nav__links a:not(.btn) { display: none; }
  .brand__text { font-size: 15px; }
  .hero h1 { font-size: 36px; }
}

/* Callback modal */
dialog.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text-dim);
  width: min(440px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
dialog.modal::backdrop {
  background: rgba(10, 8, 6, 0.72);
}
.modal__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 32px 32px;
}
.modal__form h3 {
  font-weight: 800;
  font-size: 24px;
  margin-bottom: -6px;
}
.modal__hint {
  color: var(--text-mut);
  font-size: 14px;
  margin-bottom: 6px;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-mut);
  font-size: 24px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}
.modal__close:hover { color: var(--text); }
.modal__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mut);
  letter-spacing: 0.02em;
}
.modal__form input,
.modal__form textarea {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.modal__form input:focus,
.modal__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.modal__submit {
  margin-top: 8px;
  width: 100%;
  text-align: center;
}
.modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.modal__status {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  padding: 12px 14px;
}
.modal__status--ok {
  background: rgba(31, 95, 174, 0.15);
  border: 1px solid rgba(31, 95, 174, 0.35);
  color: var(--accent-light);
}
.modal__status--error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #fca5a5;
}
