:root {
  --bg: #000000;
  --bg-soft: #0c0c0e;
  --surface: #ffffff;
  --surface-soft: #f5f6f8;
  --ink: #0a0a0c;
  --ink-soft: #4a4a52;
  --line: #e6e7ec;
  --line-dark: #1f2030;
  --accent: #1d4ed8;
  --accent-bright: #2a5bff;
  --accent-soft: #dbe6ff;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 800; font-style: italic; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.center { text-align: center; }
.light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase;
  border-radius: var(--radius); padding: .85em 1.4em;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.1rem; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px;
}
.brand-logo { height: 60px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a {
  color: #fff; font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.nav a:hover { color: var(--accent-bright); text-decoration: none; }
.header-cta .phone-icon { font-size: 1.1em; }
@media (max-width: 800px) {
  .nav { display: none; }
  .brand-logo { height: 48px; }
}
@media (max-width: 480px) {
  .header-cta span:last-child { display: none; }
  .header-cta { padding: .55em .8em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #000; color: #fff;
  padding: 120px 0 140px;
  min-height: 620px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(900px 500px at 75% 20%, rgba(29,78,216,.35), transparent 65%),
    linear-gradient(95deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.65) 100%),
    url('hero.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  z-index: 0;
}
@media (max-width: 720px) {
  .hero {
    padding: 56px 0 80px;
    min-height: 0;
  }
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.8) 100%),
      url('hero.jpg');
    background-position: center, center;
  }
  /* Sticky call bar replaces the hero CTAs on mobile — avoids visual collision */
  .hero-ctas { display: none; }
  .hero-marks { gap: 10px 24px; font-size: .9rem; }
  .hero-marks li { line-height: 1.4; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 24px; }
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .15em; font-size: .9rem;
  color: var(--accent-bright);
  margin: 0 0 18px;
}
.eyebrow.dark { color: var(--accent); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin: 0 0 24px;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent-bright); }
.hero-sub {
  font-size: 1.15rem; max-width: 620px;
  color: #d0d2db; margin: 0 0 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-marks {
  display: flex; flex-wrap: wrap; gap: 28px;
  list-style: none; padding: 0; margin: 0;
  color: #c8cad4; font-size: .95rem;
}
.hero-marks strong { color: #fff; font-weight: 700; }

.speed-stripes {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 1; pointer-events: none;
}
.speed-stripes span {
  display: block; height: 6px;
  background: repeating-linear-gradient(
    -75deg,
    var(--accent) 0 16px,
    transparent 16px 28px
  );
  opacity: .9;
}
.speed-stripes span:nth-child(2) { opacity: .55; height: 4px; }
.speed-stripes span:nth-child(3) {
  background: repeating-linear-gradient(
    -75deg,
    #fff 0 12px,
    transparent 12px 24px
  );
  opacity: .25; height: 3px;
}

/* ---------- Section base ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-soft); color: #fff; }
.section-soft { background: var(--surface-soft); }
.section-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #0b1e6b 100%);
  color: #fff;
}

/* ---------- Testimonials ---------- */
.testimonials { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  display: flex; flex-direction: column;
}
.t-mark {
  font-family: 'Barlow Condensed', serif;
  font-size: 5rem;
  font-weight: 900;
  font-style: italic;
  line-height: .7;
  color: var(--accent);
  opacity: .9;
  margin-bottom: 8px;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.testimonial figcaption {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.testimonial figcaption strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.1rem;
  color: var(--ink);
}
.testimonial figcaption span {
  font-size: .9rem;
  color: var(--ink-soft);
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin: 0 0 16px; color: var(--ink);
}
.section-title.light { color: #fff; }
.section-lead {
  font-size: 1.1rem; max-width: 720px;
  color: var(--ink-soft); margin: 0 0 48px;
}
.section-lead.light { color: rgba(255,255,255,.85); }

/* ---------- Grid + Cards ---------- */
.grid { display: grid; gap: 22px; }
.services { grid-template-columns: repeat(3, 1fr); }
.gallery { grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services, .gallery { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transform: scaleY(0); transform-origin: top;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card-icon {
  font-size: 1.8rem; color: var(--accent);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 1.4rem; margin: 0 0 10px;
  font-style: italic; letter-spacing: .01em;
}
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-item { margin: 0; }
.gallery-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: #0b0c14;
  border: 1px solid var(--line-dark);
  margin-bottom: 12px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-img:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.gallery-img:hover img { transform: scale(1.04); }
.gallery-img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: repeating-linear-gradient(-75deg, var(--accent) 0 12px, transparent 12px 22px);
  opacity: .9; z-index: 2;
}
.gallery-img.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1c28 0%, #0b0c14 100%);
  color: #6b6e80; font-family: 'Barlow Condensed', sans-serif;
  font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.1rem; text-align: center; padding: 0 20px;
}
.gallery-item figcaption { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-grid p { font-size: 1.05rem; color: var(--ink-soft); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative; padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--ink);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 3px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--accent);
}
.about-card {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: 32px;
  border-left: 6px solid var(--accent);
}
.about-card h3 { font-size: 1.6rem; margin: 0 0 6px; color: #fff; }
.pill-list {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill-list li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 12px; border-radius: 999px;
  font-size: .9rem; color: #fff;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr;
  align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: 1.05rem;
}
.contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--accent-soft); }

.contact-form {
  background: #fff; color: var(--ink);
  padding: 32px; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  box-shadow: var(--shadow-md);
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff; color: var(--ink);
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-note { margin: 0; font-size: .85rem; color: var(--ink-soft); grid-column: 1 / -1; text-align: center; }
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000; color: #fff;
  padding: 40px 0 100px;
  border-top: 4px solid var(--accent);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-logo { height: 110px; width: auto; }
.footer-meta { text-align: right; }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ---------- Sticky mobile call ---------- */
.sticky-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 60; display: none;
  background: var(--accent); color: #fff;
  text-align: center; padding: 16px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(29,78,216,.4);
}
.sticky-call:hover { background: var(--accent-bright); text-decoration: none; color: #fff; }
@media (max-width: 720px) {
  .sticky-call { display: block; }
  .site-footer { padding-bottom: 100px; }
  /* Override base .hero-ctas { display: flex } which appears later in the cascade */
  .hero-ctas { display: none; }
}

/* ---------- AI Chat Widget ---------- */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  font-family: 'Inter', system-ui, sans-serif;
}
.chat-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 0 rgba(29,78,216,0);
  transition: transform .15s ease, box-shadow .25s ease, background .15s ease;
  animation: chat-pulse 2.4s ease-out infinite;
}
.chat-toggle:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 0 6px rgba(29,78,216,.22);
}
.chat-toggle-svg { width: 22px; height: 22px; color: var(--accent-bright); }
.chat-toggle-label { white-space: nowrap; }

@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 0 rgba(29,78,216,0); }
  50%      { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 8px rgba(29,78,216,.18); }
}

.chat-widget[data-open="true"] .chat-toggle { display: none; }

.chat-panel {
  position: absolute;
  bottom: 0; right: 0;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 580px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,.08);
  animation: chat-slide-up .25s ease-out;
}
.chat-panel[hidden] { display: none; }
@keyframes chat-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.chat-head-id { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-style: italic;
  font-size: 1.5rem;
  border: 2px solid #fff;
}
.chat-head-title {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.1rem;
  line-height: 1.1;
}
.chat-head-status {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: rgba(255,255,255,.7);
  margin-top: 2px;
}
.chat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: chat-dot-pulse 1.6s ease-out infinite;
}
@keyframes chat-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  100% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
}
.chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: .8;
}
.chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { display: flex; max-width: 85%; }
.chat-msg-assistant { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg-assistant .chat-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg-user .chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator dots */
.chat-typing .chat-bubble {
  display: inline-flex; gap: 4px; padding: 12px 14px;
}
.chat-typing .chat-bubble span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-soft);
  animation: chat-typing-bounce 1.2s ease-in-out infinite;
}
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing-bounce {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40%           { opacity: 1;  transform: translateY(-4px); }
}

.chat-form {
  display: flex; gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.chat-input {
  flex: 1;
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.chat-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.chat-send {
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.chat-send:hover { background: var(--accent-bright); }
.chat-send svg { width: 18px; height: 18px; }
.chat-disclaimer {
  margin: 0;
  padding: 8px 14px 12px;
  background: #fff;
  font-size: .72rem;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}
.chat-disclaimer a { color: var(--accent); }

/* Mobile: lift toggle above the sticky-call bar, panel goes near-fullscreen */
@media (max-width: 720px) {
  .chat-widget { bottom: 88px; right: 16px; }
  .chat-toggle { padding: 10px 14px 10px 12px; font-size: .9rem; }
  .chat-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 120px);
    bottom: 0;
    right: 0;
  }
}
@media (max-width: 480px) {
  .chat-toggle-label { display: none; }
  .chat-toggle { width: 52px; height: 52px; padding: 0; justify-content: center; }
}

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: #fff; }
