:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --ink: #172433;
  --muted: #5d6b7b;
  --line: #dbe3ec;
  --primary: #163457;
  --primary-dark: #0f2741;
  --accent: #b8945a;
  --accent-soft: #e7d8bc;
  --shadow: 0 18px 44px rgba(17, 32, 51, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 52, 87, 0.06), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.btn,
.eyebrow,
.nav-link,
.small-caps {
  font-family: "Merriweather", Georgia, serif;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
}

a:hover,
a:focus {
  color: var(--primary-dark);
}

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  z-index: 1050;
  padding: 0.75rem 1rem;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 0 0 12px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.site-topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.site-topbar a {
  color: #fff;
  text-decoration: none;
}

.site-topbar a:hover,
.site-topbar a:focus {
  color: var(--accent-soft);
}

.navbar {
  box-shadow: 0 1px 0 rgba(15, 39, 65, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--primary-dark);
}

.navbar-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.navbar-brand strong {
  display: block;
  font-size: 1rem;
}

.navbar-brand span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-link {
  color: var(--ink);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary);
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 52, 87, 0.12), rgba(184, 148, 90, 0.08));
  pointer-events: none;
}

.hero::before {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: -6rem;
  filter: blur(5px);
}

.hero::after {
  width: 18rem;
  height: 18rem;
  right: 12%;
  bottom: -7rem;
}

.hero-card,
.surface-card,
.info-card,
.article-card,
.response-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(219, 227, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: rgba(22, 52, 87, 0.28);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(22, 52, 87, 0.05);
  color: var(--primary-dark);
  border-color: rgba(22, 52, 87, 0.42);
}

.hero-aside {
  padding: 1.25rem;
}

.hero-visual {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #eef3f8 0%, #fbfcfd 100%);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.service-grid,
.feature-grid,
.article-grid {
  display: grid;
  gap: 1.25rem;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.feature-card,
.mini-card,
.article-card,
.contact-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 26px rgba(17, 32, 51, 0.04);
}

.service-card h3,
.feature-card h3,
.article-card h3,
.legal-card h3 {
  font-size: 1.25rem;
}

.service-card p,
.feature-card p,
.article-card p,
.contact-card p,
.legal-card p {
  color: var(--muted);
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 52, 87, 0.08);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.lead-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.lead-list li + li {
  margin-top: 0.4rem;
}

.info-band {
  background: linear-gradient(135deg, rgba(22, 52, 87, 0.07), rgba(184, 148, 90, 0.06));
  border: 1px solid rgba(22, 52, 87, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
}

.info-band p:last-child {
  margin-bottom: 0;
}

.accordion {
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-btn-padding-x: 1.2rem;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-active-bg: rgba(22, 52, 87, 0.05);
  --bs-accordion-active-color: var(--primary-dark);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(22, 52, 87, 0.12);
}

.accordion-button {
  font-family: "Merriweather", Georgia, serif;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.territory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.territory-list span {
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.map-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  color: var(--accent-soft);
}

.footer .small {
  color: rgba(255, 255, 255, 0.74);
}

.legal-doc {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-doc h2,
.legal-doc h3 {
  margin-top: 2rem;
}

.legal-doc h2:first-child,
.legal-doc h3:first-child {
  margin-top: 0;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body p,
.article-body li {
  color: var(--ink);
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.65rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  font-size: 1.18rem;
}

.article-body ul {
  padding-left: 1.15rem;
}

.response-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.response-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.response-card .icon-badge {
  margin-bottom: 1.25rem;
}

.form-control,
.form-select {
  border-radius: 16px;
  border-color: var(--line);
  padding: 0.9rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(22, 52, 87, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(22, 52, 87, 0.1);
}

.consent-box {
  background: rgba(22, 52, 87, 0.04);
  border: 1px solid rgba(22, 52, 87, 0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 3.5rem;
  }

  .service-grid,
  .feature-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.8rem);
  }
}

@media (max-width: 767.98px) {
  .hero-card,
  .surface-card,
  .info-card,
  .article-card,
  .response-card {
    border-radius: 18px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}
