/* ---------- Header ---------- */
.lv-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: rgba(11, 29, 58, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lv-header.is-scrolled,
.lv-header.is-open {
  background: rgba(11, 29, 58, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(3, 10, 24, 0.32);
}

.lv-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lv-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lv-logo-mark {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.lv-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lv-logo-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.lv-logo-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lv-logo-word span:first-child { color: #f8fbff; }
.lv-logo-word span:last-child { color: var(--turquoise-400); }

.lv-logo-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lv-menu-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lv-menu-desktop a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.lv-menu-desktop a:hover,
.lv-menu-desktop a:focus-visible {
  color: var(--turquoise-300);
}

/* Design / Services dropdowns — plain <details>, so opening them needs zero
   JS and works identically with JS on or off. */
.lv-nav-dropdown {
  position: relative;
}

.lv-nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.lv-nav-dropdown summary::-webkit-details-marker { display: none; }
.lv-nav-dropdown summary::marker { content: ""; }

.lv-nav-dropdown summary:hover,
.lv-nav-dropdown summary:focus-visible {
  color: var(--turquoise-300);
}

.lv-nav-caret { transition: transform 0.15s ease; }
.lv-nav-dropdown[open] .lv-nav-caret { transform: rotate(180deg); }
.lv-nav-dropdown[open] summary { color: var(--turquoise-300); }

.lv-dropdown-panel {
  margin: 10px 0 0;
  min-width: 240px;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

@media (min-width: 900px) {
  .lv-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.lv-dropdown-panel li + li { margin-top: 2px; }

.lv-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

.lv-dropdown-panel a:hover,
.lv-dropdown-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--turquoise-300);
}

.lv-lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.lv-lang-switch a {
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 6px;
  border-radius: 6px;
}

.lv-lang-switch a[aria-current="page"] {
  color: var(--turquoise-300);
}

.lv-lang-switch a:hover,
.lv-lang-switch a:focus-visible {
  color: var(--white);
}

.lv-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Between the mobile breakpoint and the point where the phone number has
   room (see .lv-phone-link above), tighten spacing rather than let the row
   force-wrap — there are only three nav items plus the switcher and CTA
   here, so a smaller gap keeps everything on one line without touching
   font size or letter-spacing. */
@media (min-width: 900px) and (max-width: 1179px) {
  .lv-nav { gap: 14px; }
  .lv-menu-desktop { gap: 16px; }
}

.lv-phone-link {
  display: none;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  white-space: nowrap;
}

/* Shown only once there's genuine room for it (logo + full nav + switcher +
   phone + CTA). Between the mobile breakpoint and this point, the header
   relies on the Free Quote CTA alone rather than squeezing the phone number
   in and breaking it mid-digit — the phone stays reachable via the mobile
   sticky bar and footer in that range. */
@media (min-width: 1180px) {
  .lv-phone-link { display: inline-flex; }
}

.lv-phone-link:hover,
.lv-phone-link:focus-visible {
  color: var(--turquoise-300);
}

/* Mobile menu toggle — checkbox-free progressive enhancement:
   nav is a normal in-flow list on small screens by default (works with JS off);
   nav.js only adds the collapse/expand behavior. */
.lv-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--white);
}

.lv-menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .lv-menu-toggle { display: inline-flex; }
  .lv-menu-desktop {
    display: none;
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px 20px;
  }
  .lv-menu-desktop.is-open { display: flex; }
  .lv-menu-desktop > a,
  .lv-nav-dropdown summary {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .lv-nav-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .lv-nav-dropdown summary { border-bottom: none; }
  .lv-dropdown-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 12px;
    margin-top: 0;
  }
  .lv-dropdown-panel a { padding: 10px 4px; white-space: normal; }

  /* Reposition via flex order instead of duplicating markup: logo, then the
     always-visible language switcher, then the menu toggle. The dropdown
     nav and phone/Free-Quote cluster move into the opened drawer / the
     sticky bottom bar respectively, so header-actions hides here. */
  .lv-logo { order: 0; }
  .lv-lang-switch { order: 1; padding: 0; gap: 6px; margin-left: auto; }
  .lv-menu-toggle { order: 2; }
  .lv-menu-desktop { order: 3; }
  .lv-header-actions { display: none; }

  .lv-lang-switch a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 10.5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }
}

/* No-JS fallback: without JS the toggle button can't do anything, so the
   full nav stays statically expanded on mobile instead of hidden. */
.no-js .lv-menu-toggle { display: none; }
@media (max-width: 899px) {
  .no-js .lv-menu-desktop {
    display: flex;
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 4px 0 14px;
  }
  .no-js .lv-menu-desktop > a { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ---------- Sections & hero ---------- */
main { display: block; }

.lv-section {
  padding: 96px 0;
}

/* Padding never collapses the way margin does, so two plain .lv-section
   elements sitting directly adjacent (no dark/soft/cta background between
   them) stack their padding to 192px instead of reading as one ~96px gap.
   Every other section boundary on the page has a background-color change
   at the same point, which visually justifies the doubled space — this
   pair doesn't, so it reads as a dead, unstyled void rather than an
   intentional break. Drop the redundant top padding only where that exact
   plain-to-plain adjacency occurs, restoring the single ~96px rhythm. */
.lv-section:not(.lv-section-dark):not(.lv-section-soft):not(.lv-section-cta)
  + .lv-section:not(.lv-section-dark):not(.lv-section-soft):not(.lv-section-cta) {
  padding-top: 0;
}

/* Homepage only: #process directly follows #services, which already
   contributes its own full 96px bottom padding plus a background-color
   change (white -> soft blue-gray) that on its own announces "new section."
   A full matching 96px top padding on #process double-counts that
   breathing room, producing two stacked ~96px voids (white, then soft
   grey) instead of one intentional transition. Both ids are unique to the
   homepage template, so this doesn't touch service/design page rhythm. */
#process {
  padding-top: 56px;
}

.lv-section-soft { background: var(--slate-50); }

.lv-section-dark {
  background: var(--navy-950);
  color: var(--white);
}

.lv-section-dark .lv-eyebrow { color: var(--turquoise-300); }
.lv-section-dark p { color: rgba(255, 255, 255, 0.72); }

.lv-section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.lv-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turquoise-600);
  margin-bottom: 10px;
}

.lv-section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.lv-section-head p {
  color: var(--slate-500);
  font-size: 15.5px;
}

.lv-hero {
  padding: 152px 0 72px;
  background: linear-gradient(165deg, var(--navy-950), var(--navy-900) 68%);
  color: var(--white);
}

.lv-hero-content {
  max-width: 720px;
}

.lv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lv-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turquoise-400);
}

.lv-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.lv-gradient-text {
  background: linear-gradient(120deg, var(--turquoise-300), var(--turquoise-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lv-hero-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16.5px;
  max-width: 52ch;
  margin-bottom: 28px;
}

.lv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.lv-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.lv-proof-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.lv-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  position: relative;
  flex: 0 0 auto;
}

.lv-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--turquoise-400);
  border-bottom: 2px solid var(--turquoise-400);
  transform: rotate(40deg);
}

.lv-hero-tags {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.lv-hero-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ---------- Simple content-page hero (service/legal pages) ---------- */
.lv-page-hero {
  padding: 140px 0 56px;
  background: linear-gradient(165deg, var(--navy-950), var(--navy-900) 68%);
  color: var(--white);
}

.lv-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.lv-breadcrumbs a { color: rgba(255, 255, 255, 0.72); }
.lv-breadcrumbs a:hover { color: var(--turquoise-300); }
.lv-breadcrumbs [aria-current="page"] { color: rgba(255, 255, 255, 0.5); }

.lv-page-hero h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  max-width: 26ch;
  margin-bottom: 14px;
}

.lv-page-hero .lv-lede {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  max-width: 60ch;
}

/* ---------- Service page prose ---------- */
.lv-service-body { max-width: 78ch; }

.lv-service-body h2 {
  font-size: 22px;
  margin: 40px 0 14px;
}
.lv-service-body h2:first-child { margin-top: 0; }

.lv-service-body h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}

.lv-service-body p {
  color: var(--slate-700);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.lv-service-body ul {
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.lv-service-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--navy-900);
}

.lv-service-body ul li .lv-check {
  margin-top: 4px;
  background: rgba(0, 180, 216, 0.12);
  flex-shrink: 0;
}
.lv-service-body ul li .lv-check::after { border-color: var(--turquoise-600); }

/* Inline contextual links (cross-references inside prose) must never be
   mistakable for plain text: always-on underline + a turquoise dark enough
   to pass AA on white (#007690, ~5.3:1), not just a hover-only color swap. */
.lv-service-body a,
.lv-legal-body a {
  color: var(--turquoise-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 118, 144, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.lv-service-body a:hover,
.lv-service-body a:focus-visible,
.lv-legal-body a:hover,
.lv-legal-body a:focus-visible {
  color: var(--turquoise-600);
  text-decoration-color: currentColor;
}

/* ---------- Legal page prose ---------- */
.lv-legal {
  padding: 56px 0 88px;
}

.lv-legal-body {
  max-width: 72ch;
}

.lv-legal-body h2 {
  font-size: 19px;
  margin: 34px 0 12px;
}

.lv-legal-body h2:first-child { margin-top: 0; }

.lv-legal-body p {
  margin-bottom: 14px;
  color: var(--slate-700);
  font-size: 15px;
}

.lv-legal-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.lv-legal-body li {
  margin-bottom: 6px;
  color: var(--slate-700);
  font-size: 15px;
}

.lv-legal-updated {
  color: var(--slate-500);
  font-size: 13.5px;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.lv-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.lv-footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .lv-footer-grid { grid-template-columns: 1.3fr 0.85fr 1fr 1fr 0.85fr; }
}

.lv-footer-grid h3 {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.lv-footer-grid ul { display: grid; gap: 9px; font-size: 13.5px; }
.lv-footer-grid a:hover,
.lv-footer-grid a:focus-visible { color: var(--turquoise-300); }

.lv-footer-about p {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 30ch;
}

.lv-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}

.lv-mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 720px) {
  .lv-mobile-cta { display: none; }
}

.lv-mobile-cta a {
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}

.lv-mobile-cta a:first-child { background: var(--navy-800); }
.lv-mobile-cta a:last-child { background: var(--turquoise-500); color: var(--navy-950); }

body { padding-bottom: 0; }
@media (max-width: 719px) {
  body { padding-bottom: 62px; }
}
