@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #555;
  margin: 0;
  padding: 0;
}

/* ── NAVBAR ── */
.nav-link {
  color: #014767;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: #004560; }

.nav-phone-btn {
  border: 2px solid #014767;
  color: #014767;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-phone-btn:hover {
  background: #014767;
  color: #fff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 16px;
  min-width: 220px;
  z-index: 100;
}
.dropdown-menu a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: #014767;
  text-decoration: none;
}
.dropdown-menu a:hover { color: #004560; font-weight: 600; }
.dropdown-group-label {
  font-size: 10px;
  font-weight: 700;
  color: #9CA0AC;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 10px 0 4px;
}
.dropdown-group-label:first-child { margin-top: 0; }

.nav-item { position: relative; }
.nav-item:hover .dropdown-menu { display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, #003d5c 0%, #014767 45%, #01354f 70%, #002d42 100%);
  padding: 52px 20px 72px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,255,255,0.04) 0%, transparent 60%),
              repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 80px);
  pointer-events: none;
}
.hero-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

.form-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 20px 5px rgba(33,33,33,0.28);
  padding: 36px 40px 40px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-card h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #333;
  line-height: 1.25;
  margin: 0 0 28px;
}

.form-select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  color: #555;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  margin-bottom: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-select:focus { border-color: #014767; }

.form-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  color: #555;
  outline: none;
  margin-bottom: 14px;
}
.form-input:focus { border-color: #014767; }

.btn-primary {
  display: block;
  width: 100%;
  background: #014767;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.btn-primary:hover { background: #004560; }

.consent-text {
  font-size: 11px;
  color: #9CA0AC;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: #014767;
  padding: 20px 20px;
}
.stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.bbb-badge {
  background: #003f5e;
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.1;
}
.bbb-badge .bbb-rating { font-size: 22px; font-weight: 800; color: #fff; }
.bbb-badge .bbb-label { font-size: 9px; color: #cde; }
.stat-label { font-size: 11px; color: #a8d4e6; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 15px; font-weight: 700; color: #fff; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ── LOGO BAR ── */
.logo-bar { background: #fff; padding: 28px 20px; border-bottom: 1px solid #eee; }
.logo-bar img, .logo-bar .logo-text {
  height: 36px;
  display: flex;
  align-items: center;
  color: #9CA0AC;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* ── SECTIONS ── */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: #9CA0AC;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 2px 18px -2px rgba(180,192,193,0.9);
  padding: 28px 24px;
}

/* Steps */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #014767;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ── CTA SECTION ── */
.cta-section {
  background: #014767;
  padding: 60px 20px;
  text-align: center;
}
.btn-outline-white {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover { background: #fff; color: #014767; }

/* ── FOOTER ── */
footer {
  background: #004560;
  color: #a8d4e6;
  padding: 40px 20px 24px;
}
footer a { color: #a8d4e6; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
.footer-heading { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }

/* Utilities */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-success { color: #10B981; }

/* ── MOBILE NAV ── */
#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #014767;
  font-size: 24px;
  line-height: 1;
}
#mobile-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 8px 0 16px;
  z-index: 49;
}
#mobile-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #014767;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:active { background: #f8f9fb; }
.mobile-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #9CA0AC;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px 4px;
}

/* ── RESPONSIVE MEDIA QUERIES ── */

/* NAV: three-tier responsive behavior */
@media (max-width: 900px) {
  #nav-desktop { display: none !important; }
  #nav-phone-desktop { display: none !important; }
  #nav-mobile-controls { display: flex !important; }
  #mobile-menu-btn { display: block !important; }
}
@media (max-width: 360px) {
  #nav-mobile-phone { display: none !important; }
}

@media (max-width: 768px) {
  /* GRID LAYOUTS — use !important to override inline styles */
  .two-col-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .three-col-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .four-col-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* TYPOGRAPHY */
  .section-title { font-size: 22px !important; }
  .page-h1 { font-size: 26px !important; line-height: 1.25 !important; }
  .page-h2 { font-size: 22px !important; }
  .hero { padding: 40px 16px 52px !important; }
  .form-card { padding: 24px 20px 28px !important; }
  .form-card h1 { font-size: 22px !important; }

  /* STATS BAR */
  .stat-divider { display: none !important; }
  .stats-bar > div { gap: 24px !important; }

  /* CTA */
  .cta-section { padding: 48px 16px !important; }

  /* HERO HEADINGS — inner pages */
  section h1 { font-size: 26px !important; line-height: 1.25 !important; }
  section h2[style*="font-size:28px"],
  section h2[style*="font-size:30px"] { font-size: 22px !important; }

  /* LOGO — shrink slightly on mobile */
  #main-nav span[style*="font-size:20px"] { font-size: 17px !important; }
}
