:root {
  --site-primary: #0070a9;
  --site-primary-dark: #004382;
  --site-accent: #eb5c00;
  --site-secondary: #4b72ab;
  --site-primary-light: #36acd9;
  --site-surface: #ffffff;
  --site-text-secondary: #526067;
  --bs-body-bg: #f2fafe;
  --bs-body-color: #0c181d;
  --bs-body-font-family: 'Newsreader', sans-serif;
  --bs-link-color: #0070a9;
  --bs-link-hover-color: #004382;
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', serif;
}

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

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

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}

.bg-primary {
  background-color: var(--site-primary) !important;
}

.text-primary {
  color: var(--site-primary) !important;
}

.border-primary {
  border-color: var(--site-primary) !important;
}

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

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

.btn {
  border-radius: 9999px;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border-width: 2px;
}

.btn:hover,
.btn:focus {
  transform: scale(1.02);
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 4px;
  border: 2px solid rgba(12, 24, 29, 0.18);
  padding: 0.8rem 0.95rem;
  box-shadow: none;
  background-color: var(--site-surface);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--site-primary);
  box-shadow: none;
}

.card,
.section-card,
.contact-panel,
.niche-tile {
  border-radius: 16px;
  border: 3px solid var(--site-accent);
  box-shadow: none;
  background: var(--site-surface);
}

.hero-image,
.section-image,
.logo-mark-large,
.hero-mosaic img {
  border-radius: 24px;
}

.navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 24, 29, 0.1);
}

.navbar-brand {
  font-weight: 700;
  color: var(--bs-body-color);
}

.nav-link {
  font-weight: 500;
  color: var(--bs-body-color);
}

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

.brand-text small {
  display: block;
  color: var(--site-text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.logo-mark-large {
  width: 104px;
  height: 104px;
  object-fit: cover;
}

.hero {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.section-shell {
  padding: 1rem 0 0;
}

.section-card {
  padding: 2rem;
}

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

.hero-mosaic .tall {
  grid-row: span 2;
  min-height: 100%;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border: 2px solid rgba(0, 112, 169, 0.18);
}

.niche-tile,
.service-card {
  padding: 1.35rem;
  height: 100%;
}

.service-check {
  color: var(--site-accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

.meta-list,
.footer-links,
.simple-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-list li,
.footer-links li,
.simple-links li {
  margin-bottom: 0.55rem;
}

.contact-panel {
  padding: 1.5rem;
  height: 100%;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
}

.footer-main {
  min-height: 280px;
}

.footer-note,
.text-secondary-custom,
.section-intro,
.cookie-copy,
.tagline {
  color: var(--site-text-secondary);
}

.footer-main a {
  text-decoration: none;
}

.footer-main a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1055;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: var(--site-surface);
  border: 3px solid var(--site-accent);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.cookie-banner.hidden {
  display: none;
}

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

.section-card h2,
.section-card h1,
.contact-panel h3 {
  margin-bottom: 1rem;
}

.legal-shell {
  max-width: 900px;
}

.notfound-shell {
  max-width: 760px;
}

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

  .section-card {
    padding: 1.5rem;
  }

  .footer-main {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-mosaic {
    grid-template-columns: 1fr;
  }

  .hero-mosaic .tall {
    grid-row: span 1;
  }
}
