/* Policy Zone Guard - Professional Color Palette Overrides */

:root {
  --primary: #12406A;
  --primary-hover: #0E3150;
  --secondary: #1B998B;
  --accent: #F6B10A;
  --neutral-900: #102A43;
  --neutral-700: #486581;
  --neutral-100: #F5F7FA;
}

/* 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(15, 76, 129, 0.25);
}
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);
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-heading {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  font-weight: 600;
}

.section-heading .lead {
  color: var(--neutral-700);
}

.service-card {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 64, 106, 0.12);
  border-color: rgba(15, 64, 106, 0.35);
}

.hero-overlay {
  position: relative;
  overflow: hidden;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(246, 177, 10, 0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(27, 153, 139, 0.22), transparent 55%),
              linear-gradient(135deg, rgba(18, 64, 106, 0.92), rgba(18, 64, 106, 0.86));
  z-index: 0;
}

.hero-overlay > * {
  position: relative;
  z-index: 1;
}

.hero-kpi-card {
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 64, 106, 0.18);
}

.hero-kpi-card h3 {
  font-weight: 700;
}

.badge-pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
