:root {
  --navy: #0B1E31;
  --charcoal: #1A2433;
  --orange: #FF7A1F;
  --glacier: #19B9F0;
  --ice: #8ADAF5;
  --white: #FFFFFF;
  --muted: #5c6b7a;
  --line: #e4ebf1;
  --soft: #f4f8fb;
  --wrap: min(1120px, calc(100% - 32px));
  --header: 64px;
  --sidebar: 260px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Sora", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-left: var(--sidebar);
  color: var(--charcoal);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); letter-spacing: -0.03em; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 40px); font-weight: 700; line-height: 1.15; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 14px; }
.wrap { width: var(--wrap); margin: 0 auto; }
.kicker {
  margin: 0 0 10px;
  color: var(--glacier);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede { color: var(--muted); font-size: 18px; max-width: 38rem; }

#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 80;
  background: linear-gradient(90deg, var(--orange), var(--glacier));
}

.topbar { display: none; }
.sidebar {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: var(--sidebar); height: 100vh;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 16px 18px;
  background: var(--navy); color: var(--white);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px;
}
.sidebar .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand img { height: 52px; width: auto; max-width: 160px; object-fit: contain; }
.sidebar-tag { margin: 0 0 12px; color: var(--ice); font-size: 13px; }
.navlinks { display: flex; flex-direction: column; gap: 4px; }
.navlinks a {
  color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 600;
  min-height: 44px; display: flex; align-items: center;
  padding: 0 12px; border-radius: 12px;
}
.navlinks a.active, .navlinks a:hover { background: rgba(255,255,255,0.08); }
.nav-quote { margin-top: auto; }
.nav-quote, .btn, .float-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  font-family: var(--display); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer;
}
.nav-quote, .btn.primary { background: var(--orange); color: var(--white); }
.btn.secondary { background: var(--navy); color: var(--white); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--navy); }
.sidebar-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; padding: 10px;
}
.sidebar-toggle span {
  display: block; height: 2px; margin: 6px 0; background: var(--white); border-radius: 2px;
}
.sidebar-scrim {
  position: fixed; inset: 0; background: rgba(11, 30, 49, 0.45); z-index: 30;
}

.hero { padding: 56px 0 28px; background: linear-gradient(180deg, #f7fbfe 0%, var(--white) 70%); }
.hero-grid, .contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-visual { position: relative; min-height: 320px; }
.badge-frame {
  background: var(--white); border-radius: 28px; padding: 18px;
  box-shadow: 0 18px 40px rgba(11, 30, 49, 0.08);
}
.badge-frame img { width: 100%; height: auto; }
.float-card {
  position: absolute; background: var(--white); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 10px 24px rgba(11, 30, 49, 0.1);
  min-width: 140px;
}
.float-card strong { display: block; font-family: var(--display); font-size: 14px; color: var(--navy); }
.float-card span { font-size: 13px; color: var(--muted); }
.fc1 { left: -8px; bottom: 36px; }
.fc2 { right: -6px; top: 28px; }
.fc3 { right: 18px; bottom: 8px; }

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.service-grid, .quote-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.service-card, .quote-card, .contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; min-width: 0;
}
.service-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-icon {
  width: 36px; height: 36px; display: block; margin-bottom: 14px;
  color: var(--glacier);
}
.service-card p, .quote-card p { color: var(--muted); font-size: 16px; }
.band { background: var(--navy); }
.band h2, .band .kicker { color: var(--white); }
.band .kicker { color: var(--ice); }
.band-lead { color: rgba(255,255,255,0.82); max-width: 38rem; font-size: 17px; }
.band-actions { margin-top: 28px; }
.quote-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--white); }
.quote-card p { color: var(--white); font-size: 17px; }
.quote-card footer { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.quote-card span { color: var(--ice); }
.tagline { color: var(--navy); font-family: var(--display); font-weight: 600; }

.contact-card { background: var(--soft); }
.field { margin-bottom: 14px; position: relative; }
.field label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 6px;
}
.field label span { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select, .select-trigger {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--charcoal); font: inherit; font-size: 16px;
  padding: 10px 12px;
}
.field textarea { min-height: 110px; resize: vertical; }
.botcheck { position: absolute; left: -9999px; }
.native-select { display: block; }
.select-menu {
  display: none; position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% - 4px);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.custom-select.open .select-menu { display: block; }
.select-menu button {
  display: block; width: 100%; text-align: left; background: var(--white); border: 0;
  min-height: 44px; padding: 0 12px; font: inherit; cursor: pointer;
}
.select-menu button:hover, .select-menu button.selected { background: var(--soft); }
.quote-form .btn { width: 100%; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.form-status { min-height: 1.2em; font-size: 14px; color: var(--navy); }

.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 35;
  background: var(--orange); color: var(--white);
  min-height: 48px; padding: 0 18px;
  box-shadow: 0 10px 24px rgba(11, 30, 49, 0.22);
}
footer { background: var(--navy); color: var(--white); padding: 36px 0 88px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-brand img { width: 120px; height: auto; }
.footer-tag, .footer-name { margin: 0; color: var(--ice); font-size: 14px; }
.footer-name { color: var(--white); font-family: var(--display); font-weight: 600; }
.footer-credit { margin: 8px 0 0; font-size: 13px; }
.footer-credit a { color: var(--ice); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-credit a:hover { color: var(--white); }

.reveal { opacity: 1; transform: none; }
@media (min-width: 981px) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.show { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  body { padding-left: 0; padding-top: var(--header); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 45;
    min-height: var(--header); padding: 0 12px 0 16px;
    background: var(--navy);
  }
  .topbar .brand { flex-direction: row; font-size: 14px; }
  .topbar .brand img { height: 40px; width: auto; max-width: 120px; }
  .sidebar { transform: translateX(-105%); transition: transform 0.2s ease; }
  body.nav-open .sidebar { transform: none; }
  .hero-grid, .contact-grid, .service-grid, .quote-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .custom-select { display: none; }
  .native-select { display: block; }
  .hero { padding-top: 28px; }
}

@media (max-width: 640px) {
  :root { --wrap: min(1120px, calc(100% - 24px)); --header: 64px; }
  h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .hero-actions .btn, .band-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .float-cta { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .service-card, .btn, .nav-quote, .sidebar { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
