/* ============ Base ============ */
:root {
  --navy-900: #0b1f33;
  --navy-800: #102a42;
  --ink: #16283c;
  --muted: #5a6b7d;
  --bg: #f6f8fa;
  --card: #ffffff;
  --line: #e2e8ee;
  --accent: #0e9f6e;
  --accent-dark: #0b7f59;
  --light: #f6f8fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; color: var(--navy-900); margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
img, svg { display: block; }
a { color: var(--navy-800); }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 48px); }

/* ============ Eyebrow / lede ============ */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}
.section-lede { max-width: 640px; color: var(--muted); font-size: 1.05rem; }
.section { padding: 88px 0; }
.section-alt { background: #fff; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.15rem; color: var(--navy-900); text-decoration: none;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--navy-800); color: #fff;
}
.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav > a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.main-nav > a:hover { color: var(--accent-dark); }
.nav-cta {
  background: var(--navy-800); color: #fff !important;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; border-radius: 2px; transition: 0.2s; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; padding: 0.85rem 1.6rem;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: #c8d4de; }
.btn-ghost:hover { border-color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--light); }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero { padding: 84px 0 56px; background: linear-gradient(180deg, #eef4f8 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 2.2rem; }
.hero-stats { display: flex; gap: 2.4rem; margin: 0; flex-wrap: wrap; }
.hero-stats dt { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 0.85rem; }

.hero-art { position: relative; min-height: 380px; }
.shield-card {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: min(300px, 80%); background: var(--navy-800); color: #fff;
  border-radius: 20px; padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.shield-ring { color: var(--accent); display: flex; justify-content: center; margin-bottom: 0.8rem; }
.shield-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.shield-sub { color: #b9c8d6; font-size: 0.85rem; margin: 0; }
.float-card {
  position: absolute; display: flex; gap: 0.7rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75rem 1rem; box-shadow: var(--shadow); font-size: 0.85rem;
}
.float-card strong { display: block; color: var(--navy-900); font-size: 0.88rem; }
.float-card small { color: var(--muted); }
.float-dot { width: 9px; height: 9px; border-radius: 50%; background: #d64545; flex: none; }
.float-dot.ok { background: var(--accent); }
.float-card-a { top: 6%; left: -2%; animation: floaty 5s ease-in-out infinite; }
.float-card-b { bottom: 4%; right: -2%; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.trusted-label { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 3rem 0 0.8rem; }
.trusted-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem 2.4rem; list-style: none; padding: 0; margin: 0; }
.trusted-list li { color: var(--navy-800); font-weight: 600; font-size: 0.95rem; opacity: 0.75; }

/* ============ Cards / grids ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: 0 4px 14px rgba(11, 31, 51, 0.04);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ============ Steps ============ */
.steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.steps li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: #fff;
  font-weight: 700; margin-bottom: 0.9rem;
}
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============ Pricing ============ */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--navy-800); position: relative; }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy-900); margin-bottom: 0.2rem; }
.price .per { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.price-card > p:last-of-type { flex: 1; }

/* ============ Testimonials ============ */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.02rem; color: var(--ink); }
.quote figcaption strong { display: block; color: var(--navy-900); }
.quote figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ============ FAQ ============ */
.faq-list { margin-top: 2.2rem; display: grid; gap: 0.9rem; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem; }
.faq-list summary { font-weight: 600; color: var(--navy-900); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-dark); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0.8rem 0 0; color: var(--muted); }

/* ============ CTA / contact ============ */
.cta-section { padding-top: 0; }
.cta-panel {
  background: var(--navy-800); color: #fff; border-radius: 20px;
  padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #c3d2df; margin: 0; }
.cta-form { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 1.6rem; display: grid; gap: 0.9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.cta-form label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: #dbe6ef; }
.cta-form input {
  font: inherit; padding: 0.7rem 0.8rem; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff;
}
.cta-form input::placeholder { color: #93a7b8; }
.cta-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-note { font-size: 0.78rem; color: #9fb2c1; margin: 0; text-align: center; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: #b9c8d6; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand-footer { color: #fff; margin-bottom: 0.8rem; }
.footer-blurb { font-size: 0.9rem; max-width: 24rem; margin: 0; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col a { color: #b9c8d6; text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.4rem 0; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ============ Call popup ============ */
.header-phone { color: var(--navy-800); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.header-phone strong { color: var(--accent-dark); }
.hero-call { color: var(--muted); font-size: 0.9rem; margin: -1rem 0 2.2rem; }
.hero-call a { font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.hero-call a:hover { text-decoration: underline; }

.call-popup {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 22, 36, 0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.call-popup[hidden] { display: none; }
.call-popup-card {
  position: relative; background: #fff; border-radius: 18px;
  padding: 2.4rem 2rem 2rem; width: min(420px, 100%);
  text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.call-popup-card .eyebrow { margin-bottom: 0.5rem; }
.call-popup-card h2 { font-size: 2.4rem; margin-bottom: 0.4rem; color: var(--accent-dark); }
.call-popup-card p:not(.eyebrow) { color: var(--muted); font-size: 0.95rem; }
.popup-close {
  position: absolute; top: 10px; right: 14px; background: none;
  border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.popup-close:hover { color: var(--navy-900); }

/* ============ Live Chat Widget ============ */
.chat-open {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px; height: 44px;
  background: var(--accent-dark);
  color: #fff; border: 0;
  border-radius: 0; /* rectangular, not rounded */
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-open:hover { background: var(--navy-900); }

.chat-widget {
  position: fixed; right: 20px; bottom: 90px;
  z-index: 90; width: 380px; height: 500px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 0; /* rectangular, not rounded */
  box-shadow: 0 10px 40px rgba(11, 31, 51, 0.15);
  display: flex; flex-direction: column;
}
.chat-widget[hidden] { display: none; }

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line);
  background: var(--navy-800); color: #fff;
  border-radius: 16px 16px 0 0;
}
.chat-title { font-weight: 700; font-size: 0.95rem; }
.chat-close { background: transparent; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; background: #fbfcfd; }
.msg { padding: 0.7rem 1rem; border-radius: 12px; max-width: 90%; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; }
.msg-system { background: #eef4f8; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; white-space: pre-wrap; }
.msg-admin { background: var(--card); border: 1px solid var(--line); align-self: flex-start; color: var(--ink); border-bottom-left-radius: 2px; white-space: pre-wrap; }
.msg small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.chat-input { display: flex; gap: 0.5rem; padding: 0.8rem 1rem; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 16px 16px; }
.chat-input input { flex: 1; font: inherit; padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid var(--line); }
.chat-input input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.chat-input button { background: var(--navy-800); color: #fff; border: 0; border-radius: 8px; padding: 0 1rem; cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.chat-input button:hover { background: var(--accent-dark); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.4rem; }
  .hero-art { min-height: 320px; max-width: 420px; margin-inline: auto; width: 100%; }
  .card-grid, .steps, .card-grid.three { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; padding: 2.2rem; }
}
@media (max-width: 680px) {
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem 24px 1rem; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; border-bottom: 0 !important; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .card-grid, .steps, .card-grid.three { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .hero-stats { gap: 1.6rem; }
  .field-row { grid-template-columns: 1fr; }
  .cta-panel { padding: 1.6rem; }
}
