/* Policy Zone Guard - Professional Color Palette Overrides */

:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --secondary: #0f766e;
  --accent: #f97316;
  --neutral-950: #0b1220;
  --neutral-900: #111827;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --bs-primary: var(--primary);
  --bs-secondary: var(--secondary);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-hover);
}

/* Base typography and links */
body {
  color: var(--neutral-900);
  background-color: #ffffff;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--neutral-900);
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--primary-hover);
}

/* Navbar refinements */
.navbar-light .navbar-brand,
.navbar-light .navbar-brand h3 {
  color: var(--primary);
}
.navbar-light .nav-link {
  color: var(--neutral-700);
}
.navbar-light .nav-link:hover,
.navbar-light .nav-link:focus {
  color: var(--primary);
}

/* Utility colors mapped to new palette */
.primary-color {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.primary-text-color {
  color: var(--primary);
}
.light-text-color { /* used across hero sections */
  color: #ffffff;
}
.text-color { /* default body text color override */
  color: var(--neutral-900);
}
.second-text-color { /* secondary text */
  color: var(--neutral-700);
}

/* Bootstrap overrides to unify palette */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Links inside buttons using primary-text-color utility */
.btn .primary-text-color {
  color: #fff;
}

/* Form styling aligned to palette */
.form-control,
.form-select,
textarea {
  border-color: #d1d5db;
  border-radius: 0.375rem;
}
.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.18);
}
label {
  color: var(--neutral-700);
}

/* Cards and subtle surfaces */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

/* Accent helpers (optional usage) */
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* Ensure outlines on light buttons remain legible on dark backgrounds */
.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--primary);
}

.site-navbar {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-navbar .navbar-brand {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.brand-name {
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}

.dropdown-menu {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 0.65rem;
}

.dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: rgba(30, 58, 138, 0.12);
  color: var(--neutral-950);
}

.dropdown-divider {
  border-top-color: rgba(226, 232, 240, 0.9);
}

.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 8.5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 700px at 10% 20%, rgba(15, 118, 110, 0.28), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(249, 115, 22, 0.22), transparent 55%),
    linear-gradient(120deg, rgba(11, 18, 32, 0.74), rgba(11, 18, 32, 0.52));
}

.page-hero > .container,
.page-hero > .container-fluid {
  position: relative;
  z-index: 1;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.78) !important;
}

.hero-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--neutral-950);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
  background: radial-gradient(900px 520px at 85% 10%, rgba(15, 118, 110, 0.2), transparent 60%),
    radial-gradient(850px 520px at 15% 0%, rgba(249, 115, 22, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.home-hero .hero-panel {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(11, 18, 32, 0.12);
}

.home-hero .hero-title {
  color: var(--neutral-950);
  letter-spacing: -0.04em;
}

.home-hero .hero-lead {
  color: var(--neutral-600);
  font-size: 1.125rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.7);
  color: var(--neutral-700);
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(180deg, #0b1220, #0a1020);
}
