:root {
  --bg: #011434;
  --bg-alt: #082352;
  --surface: #0f2d63;
  --surface-2: #143a7d;
  --accent: #1f8fff;
  --accent-dark: #0b6eeb;
  --text: #f3f7ff;
  --text-soft: #b9cbe8;
  --text-muted: #7f9cc4;
  --border: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section {
  padding: 72px 0;
}

.section--soft { background: var(--bg-alt); }
.section--navy {
  background: linear-gradient(135deg, var(--surface) 0%, #0a3d84 100%);
  color: var(--white);
}
.section--navy p, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: #8fc4ff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--white); color: var(--bg); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(31,143,255,0.4); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--bg); }

.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* ---------- Header ---------- */
.topbar {
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a { color: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--white); }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand img { height: 42px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
}

nav.main-nav a:hover { background: var(--surface); color: var(--white); }
nav.main-nav a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 85% -10%, rgba(31,143,255,0.28) 0%, rgba(31,143,255,0) 55%), var(--bg);
  color: var(--white);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero p.lead { color: var(--text-soft); font-size: 1.15rem; max-width: 600px; }
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-badges strong { color: var(--white); display: block; font-size: 1.4rem; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(31,143,255,0.5); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(31,143,255,0.16);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

.card ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.card ul li { margin-bottom: 6px; }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Quote block ---------- */
.quote-block {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--surface-2));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p { text-align: left; font-size: 0.92rem; }

/* ---------- Values ---------- */
.value-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.value-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Services page ---------- */
.service-block {
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}
.service-block:first-child { padding-top: 0; }
.service-block .card-icon { margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .plus { color: var(--accent); font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 20px;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,143,255,0.25);
}
textarea { resize: vertical; min-height: 110px; }

.field { margin-bottom: 16px; }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.92rem;
}
.alert-success { background: rgba(31,201,141,0.15); color: #6fe3bd; border: 1px solid rgba(111,227,189,0.35); }
.alert-error { background: rgba(255,90,90,0.15); color: #ff9d9d; border: 1px solid rgba(255,157,157,0.35); }

/* ---------- Contact page extras ---------- */
.contact-info-card {
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card a { color: var(--white); font-weight: 600; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .card-icon { background: rgba(255,255,255,0.12); color: #fff; margin-bottom: 0; }
.map-frame {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-top: 24px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
}
footer.site-footer a { color: var(--text-muted); }
footer.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-tagline { font-style: italic; color: var(--accent); margin-top: 12px; font-size: 0.92rem; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-radius: var(--radius);
  padding: 20px 24px;
  z-index: 1000;
  display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner p { font-size: 0.85rem; margin-bottom: 14px; color: var(--text-soft); }
#cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
#cookie-banner a { text-decoration: underline; }

/* ---------- Chat widget ---------- */
#chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(31,143,255,0.5);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
#chat-launcher svg { width: 26px; height: 26px; }

#chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  z-index: 901;
  display: none;
  overflow: hidden;
  border: 1px solid var(--border);
}
#chat-panel.open { display: block; }
.chat-header {
  background: var(--bg);
  color: var(--white);
  padding: 18px 20px;
}
.chat-header strong { display: block; font-size: 1rem; }
.chat-header span { font-size: 0.8rem; color: var(--text-muted); }
.chat-body { padding: 18px 20px; }
.chat-option-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  margin-bottom: 10px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-option-btn:hover { border-color: var(--accent); }
.chat-form .field { margin-bottom: 12px; }
.chat-form input, .chat-form textarea { font-size: 0.88rem; padding: 10px 12px; }
.chat-back { background: none; border: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 12px; font-size: 0.85rem; }
.chat-success { text-align: center; padding: 20px 0; }
.chat-success h3 { color: var(--text); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary {
    padding: 9px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .nav-wrap.open nav.main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  #chat-panel { right: 12px; left: 12px; width: auto; }
  #chat-launcher { right: 16px; bottom: 16px; }
}
