/* ==========================================================
   Cavrelin Digital — brand tokens
   Midnight navy, electric blue, platinum, white
   ========================================================== */
:root {
  --navy-950: #050b18;
  --navy-900: #08122a;
  --navy-850: #0b1733;
  --navy-800: #0f1e40;
  --line: rgba(120, 150, 210, 0.16);
  --line-strong: rgba(120, 150, 210, 0.3);

  --blue: #1f6bff;
  --blue-bright: #3d82ff;
  --blue-glow: rgba(31, 107, 255, 0.35);

  --platinum: #c7cfdb;
  --muted: #94a0b4;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--platinum);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--white); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--white); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  color: var(--blue-bright);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.accent { color: var(--blue-bright); font-style: italic; }
.muted-lg { font-size: 1.1rem; color: var(--platinum); }
.fine { font-size: 0.9rem; color: var(--muted); }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.75em 1.35em;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 28px -10px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 10px 34px -8px var(--blue-glow); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 0.95em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.arrow { width: 14px; height: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.08em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.62em; color: var(--platinum); margin-top: 5px; }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a { color: var(--platinum); font-weight: 500; font-size: 0.97rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--white); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.call-link { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: 0.95rem; }
.call-link svg { width: 18px; height: 18px; color: var(--blue-bright); }
.header-cta { padding: 0.65em 1.1em; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-glow {
  position: absolute; width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.28), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -10%; bottom: 0; width: 120%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.5;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 36em; margin-bottom: 2em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.location-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; margin: 0; }
.location-line svg { width: 20px; height: 20px; color: var(--blue-bright); flex-shrink: 0; }

/* map illustration */
.hero-visual { position: relative; }
.map-card {
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(31, 107, 255, 0.08);
}
.map-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-950); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 16px; font-size: 0.95rem; color: var(--white);
}
.map-search svg { width: 18px; height: 18px; color: var(--muted); }
.map-area {
  position: relative; height: 170px; margin: 14px 0;
  border-radius: 12px;
  background:
    linear-gradient(115deg, transparent 46%, rgba(120, 150, 210, 0.18) 46.5%, rgba(120, 150, 210, 0.18) 48.5%, transparent 49%),
    linear-gradient(25deg, transparent 58%, rgba(120, 150, 210, 0.14) 58.5%, rgba(120, 150, 210, 0.14) 60%, transparent 60.5%),
    radial-gradient(ellipse 30% 22% at 28% 70%, rgba(31, 107, 255, 0.18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(120, 150, 210, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(120, 150, 210, 0.06) 0 1px, transparent 1px 28px),
    #0a1530;
  border: 1px solid var(--line);
  overflow: hidden;
}
.pin {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; color: var(--white);
  background: #3b4a6b;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.pin-1 { left: 22%; top: 24%; }
.pin-2 { left: 56%; top: 46%; }
.pin-3 { left: 74%; top: 18%; }
.pin-you {
  left: 40%; top: 58%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(31, 107, 255, 0.22), 0 0 24px var(--blue-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(31, 107, 255, 0.22), 0 0 24px var(--blue-glow); }
  50% { box-shadow: 0 0 0 12px rgba(31, 107, 255, 0.08), 0 0 32px var(--blue-glow); }
}
.map-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-results li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
}
.rank {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #24314f; color: var(--white); font-size: 0.78rem; font-weight: 700;
}
.bar { height: 9px; border-radius: 5px; background: rgba(199, 207, 219, 0.22); }
.w80 { width: 55%; } .w65 { width: 44%; } .w70 { width: 49%; }
.stars { margin-left: auto; color: #f5b83d; font-size: 0.78rem; letter-spacing: 1px; }
.map-results li.you { border-color: var(--blue); background: rgba(31, 107, 255, 0.1); }
.map-results li.you .rank { background: var(--blue); }
.you-label { color: var(--white); font-weight: 600; font-size: 0.92rem; }
.float-badge {
  position: absolute; top: -22px; right: -14px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  background: rgba(8, 18, 42, 0.92); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}
.float-badge svg { width: 22px; height: 22px; color: var(--blue-bright); }
.float-badge span { display: flex; flex-direction: column; line-height: 1.25; }
.float-badge strong { font-size: 0.95rem; }
.float-badge small { color: var(--muted); font-size: 0.75rem; }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

.card {
  background: linear-gradient(180deg, rgba(15, 30, 64, 0.65), rgba(8, 18, 42, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: rgba(31, 107, 255, 0.12); color: var(--blue-bright);
  border: 1px solid rgba(31, 107, 255, 0.3);
}
.icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { margin: 0; }

/* service */
.service-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.service-grid .fine { margin-bottom: 28px; }
.checklist-card h3 { margin-bottom: 20px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; color: var(--platinum); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; overflow: hidden; }
.step-num {
  display: block; font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-bright);
}
.step p { margin: 0; }
.step::after {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

/* offer + form */
.offer { position: relative; overflow: hidden; }
.offer::before {
  content: ""; position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.18), transparent 65%);
  pointer-events: none;
}
.offer-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.small-head { font-size: 1.05rem; margin: 28px 0 16px; }
.promise {
  margin-top: 32px; padding: 16px 20px;
  border-left: 3px solid var(--blue); background: rgba(31, 107, 255, 0.07);
  border-radius: 0 10px 10px 0; color: var(--white); font-weight: 500;
}
.lead-form { padding: 36px; border-color: var(--line-strong); background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.lead-form h3 { font-size: 1.4rem; margin-bottom: 22px; }
.lead-form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--white); margin: 0 0 6px; }
.lead-form input, .lead-form select {
  width: 100%; margin-bottom: 18px;
  padding: 12px 14px; border-radius: 9px;
  background: var(--navy-950); color: var(--white);
  border: 1px solid var(--line-strong);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2394a0b4' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.lead-form input::placeholder { color: #5f6b80; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.25); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin: 14px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.hidden-field { position: absolute; left: -9999px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--navy-950); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { color: var(--white); font-weight: 800; letter-spacing: 0.12em; margin: 0 0 6px; }
.footer-tag { color: var(--blue-bright); font-weight: 600; margin: 0 0 6px; }
.footer-meta { color: var(--muted); margin: 0; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--platinum); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- thank-you page ---------- */
.thanks { min-height: calc(100vh - 77px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks .card { max-width: 620px; margin: 0 auto; padding: 48px 36px; }
.thanks .icon { margin: 0 auto 24px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .main-nav { gap: 22px; }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid, .service-grid, .offer-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  .call-label { display: none; }
  .call-link {
    width: 44px; height: 44px; justify-content: center;
    border-radius: 10px; background: var(--blue);
  }
  .call-link svg { color: var(--white); }
  .header-actions { margin-left: auto; gap: 10px; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--navy-950); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 18px; border: 0; padding: 0.9em 1.2em; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; height: 68px; }
  .main-nav { top: 68px; padding: 8px 16px 20px; }
  html { scroll-padding-top: 76px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.5em; }
  .hero-buttons .btn { width: 100%; }
  .card { padding: 26px 22px; }
  .lead-form { padding: 26px 20px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .float-badge { right: 8px; }
  .eyebrow { letter-spacing: 0.22em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
