:root {
  --primary: #0b83b2;
  --primary-dark: #075f82;
  --primary-rgb: 11, 131, 178;
  --accent: #ed1c24;
  --accent-rgb: 237, 28, 36;
  --ink: #0a2837;
  --ink-rgb: 10, 40, 55;
  --muted: #5d7280;
  --line: #d6e8ef;
  --soft: #f2fbfd;
  --warm-soft: #fff5f6;
  --footer-muted: #d9edf4;
  --success: #168a66;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.row > * {
  min-width: 0;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

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

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

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

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

.btn-primary:focus,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.24);
}

.top-strip {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.top-strip a {
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.top-strip-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, 1fr);
}

.top-strip-grid > span:last-child {
  justify-self: end;
}

.top-social-links {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}

.top-social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  margin: 0;
  min-width: 32px;
  padding: 0 0.55rem;
}

.top-social-links a:hover,
.social-links a:hover,
.google-review-cta:hover {
  background: var(--primary);
  color: #fff;
}

.top-social-links .review-link {
  gap: 0.4rem;
}

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

.contact-action-link {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  min-height: 46px;
  text-align: center;
}

.site-header {
  box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.08);
}

.navbar {
  min-height: 88px;
}

.brand-mark {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark strong,
.brand-mark small {
  display: block;
  line-height: 1.1;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.brand-logo {
  background: #fff;
  border-radius: 8px;
  display: block;
  height: 72px;
  object-fit: contain;
  width: 108px;
}

.footer-logo {
  height: 82px;
  width: 122px;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
}

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

.mega-menu {
  border: 0;
  border-radius: 0;
  left: 0;
  margin-top: 0;
  padding: 1rem;
  right: 0;
}

.mega-menu a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-weight: 700;
  padding: 0.9rem;
}

.hero-section .carousel-item {
  min-height: calc(100vh - 108px);
  position: relative;
}

.hero-image {
  height: calc(100vh - 108px);
  min-height: 560px;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  align-items: center;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.9), rgba(var(--primary-rgb), 0.34));
  bottom: 0;
  display: flex;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-copy {
  color: #fff;
  max-width: 760px;
  padding-bottom: 5rem;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.6rem 0 1rem;
  overflow-wrap: anywhere;
}

.hero-copy p,
.page-hero p {
  font-size: 1.25rem;
  max-width: 680px;
}

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

.section-pad {
  padding: 5rem 0;
}

.section-kicker {
  color: var(--accent);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-heading h2,
.section-pad h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
}

.split-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.subtle-band {
  background: var(--soft);
}

.service-band {
  background: var(--ink);
  color: #fff;
}

.service-band a,
.service-band .section-kicker {
  color: #fff;
}

.stats-band {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.stats-band div {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem 1.25rem;
}

.stats-band strong {
  color: #fff;
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.stats-band span {
  color: var(--footer-muted);
  display: block;
  margin-top: 0.6rem;
}

.feature-card,
.link-card,
.service-card,
.article-card,
.testimonial-card,
.info-tile,
.value-panel,
.side-panel,
.form-panel,
.admin-module,
.editor-panel,
.news-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card,
.link-card,
.testimonial-card,
.info-tile,
.value-panel,
.side-panel,
.form-panel,
.admin-module,
.editor-panel,
.news-list-item {
  background: #fff;
}

.feature-card,
.link-card,
.testimonial-card,
.info-tile,
.value-panel,
.side-panel,
.form-panel,
.admin-module,
.editor-panel {
  height: 100%;
  padding: 1.4rem;
}

.feature-card i,
.link-card i,
.service-card i,
.admin-module i,
.hero-icon {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3,
.link-card h3,
.link-card h2,
.article-card h2,
.article-card h3,
.info-tile h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-card p,
.link-card p,
.article-card p,
.info-tile p,
.value-panel p,
.testimonial-card p {
  color: var(--muted);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.link-card,
.article-card,
.service-card {
  display: block;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover,
.article-card:hover,
.service-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 18px 34px rgba(var(--ink-rgb), 0.12);
  transform: translateY(-3px);
}

.service-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
}

.service-card i {
  color: #fff;
  margin: 0;
}

.service-card span {
  color: #fff;
  font-weight: 800;
}

.article-card {
  background: #fff;
  overflow: hidden;
}

.article-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-card span,
.news-list-item span {
  color: var(--accent);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  margin: 1rem 1rem 0.4rem;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3,
.article-card p {
  margin-left: 1rem;
  margin-right: 1rem;
}

.article-card p {
  padding-bottom: 1rem;
}

.large-card h2 {
  font-size: 1.25rem;
}

.news-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 1rem;
}

.news-row span {
  color: var(--muted);
  flex: 0 0 auto;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.about-photo-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.about-photo-stack img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-photo-stack img:last-child {
  margin-top: 2rem;
}

.gallery-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  border-radius: 8px;
  display: block;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  width: 100%;
}

.gallery-item span {
  background: rgba(var(--ink-rgb), 0.84);
  bottom: 0.8rem;
  color: #fff;
  font-weight: 800;
  left: 0.8rem;
  padding: 0.35rem 0.6rem;
  position: absolute;
  right: 0.8rem;
}

.testimonial-band {
  background: var(--warm-soft);
}

.stars {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.contact-cta {
  background: var(--primary);
  color: #fff;
}

.contact-cta .section-kicker,
.contact-cta p {
  color: #fff;
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 5rem 0;
}

.compact-hero {
  background: linear-gradient(120deg, var(--ink), var(--primary));
}

.detail-hero {
  background-position: center;
  background-size: cover;
  min-height: 470px;
}

.breadcrumb-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.breadcrumb-line a,
.breadcrumb-line span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.breadcrumb-line a::after {
  content: "/";
  margin-left: 0.5rem;
}

.check-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.check-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.9rem;
  position: relative;
}

.check-list li::before {
  color: var(--success);
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.side-panel {
  position: sticky;
  top: 130px;
}

.side-panel a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 0.75rem;
  overflow-wrap: anywhere;
  padding: 0.85rem 0;
}

.faq-accordion {
  margin-top: 2rem;
}

.accordion-button {
  font-weight: 800;
}

.narrow-content {
  max-width: 860px;
}

.news-list-item {
  margin-bottom: 1rem;
  padding: 1.4rem;
}

.news-list-item span {
  margin: 0 0 0.4rem;
}

.table small {
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}

.form-panel .form-control,
.form-panel .form-select {
  border-radius: 8px;
  min-height: 48px;
}

.map-frame {
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
}

.map-frame iframe {
  border: 0;
  height: 280px;
  width: 100%;
}

.contact-map-frame {
  margin-top: 0;
}

.contact-map-frame iframe {
  height: 460px;
}

.contact-directions-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0;
  padding: 1.25rem;
}

.directions-panel {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.contact-directions-panel.directions-panel {
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.directions-panel h3 {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 1.05rem;
  font-weight: 850;
  gap: 0.5rem;
  letter-spacing: 0;
  margin-bottom: 0.85rem;
}

.direction-list {
  display: grid;
  gap: 0.75rem;
}

.contact-directions-panel .direction-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.direction-item {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.direction-item:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--primary);
}

.direction-item strong,
.direction-item small {
  display: block;
}

.direction-item small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.direction-item > i {
  color: var(--primary);
  flex: 0 0 auto;
}

.admin-module {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-height: 86px;
}

.admin-module span {
  font-weight: 800;
}

.site-footer {
  background: var(--ink);
  color: var(--footer-muted);
  padding: 4rem 0 1.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}

.site-footer a {
  color: var(--footer-muted);
  display: block;
  margin-bottom: 0.55rem;
}

.site-footer p a {
  display: inline;
  overflow-wrap: anywhere;
}

.footer-brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand small {
  color: var(--footer-muted);
}

.footer-brand .brand-logo {
  background: #fff;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.google-review-cta {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.2rem;
}

.scroll-top {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  bottom: 1rem;
  color: #fff;
  display: none;
  height: 44px;
  justify-content: center;
  position: fixed;
  right: 1rem;
  width: 44px;
  z-index: 20;
}

.scroll-top.is-visible {
  display: inline-flex;
}

@media (max-width: 991.98px) {
  .top-strip-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .top-strip-grid > span:last-child {
    justify-self: center;
  }

  .navbar {
    min-height: auto;
    padding: 0.65rem 0;
  }

  .navbar > .container {
    gap: 0.75rem;
    position: relative;
  }

  .navbar-toggler {
    border-color: var(--line);
    display: inline-flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    margin-left: auto;
    width: 48px;
  }

  .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    width: 100%;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .nav-link {
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
  }

  .nav-link:hover {
    background: var(--soft);
  }

  .mega-menu {
    box-shadow: none !important;
    padding: 0.4rem 0;
  }

  .hero-section .carousel-item,
  .hero-image {
    height: 700px;
    min-height: 700px;
  }

  .hero-copy {
    padding-bottom: 2rem;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 575.98px) {
  main,
  header,
  footer,
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .top-strip {
    font-size: 0.8rem;
  }

  .container {
    max-width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100% !important;
  }

  .top-social-links {
    flex-wrap: wrap;
  }

  .top-social-links .review-link span {
    display: none;
  }

  .brand-mark {
    gap: 0.55rem;
    margin-right: 0;
    max-width: calc(100vw - 5.75rem);
  }

  .brand-mark strong {
    font-size: 1.1rem;
  }

  .brand-mark small {
    font-size: 0.72rem;
  }

  .brand-logo {
    height: 68px;
    width: 100px;
  }

  .navbar > .container {
    min-height: 82px;
    padding-right: 4.5rem;
  }

  .navbar-toggler {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .navbar-collapse {
    margin-right: -3.5rem;
  }

  .hero-section .carousel-item,
  .hero-image {
    height: 690px;
    min-height: 690px;
  }

  .hero-image {
    object-position: center center;
  }

  .hero-overlay {
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 1.05rem;
    max-width: calc(100vw - 2rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.05rem;
    line-height: 1.08;
    max-width: calc(100vw - 2rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .section-pad {
    padding: 3.4rem 0;
  }

  .page-hero {
    padding: 3.5rem 0;
  }

  .section-pad .container,
  .page-hero .container {
    max-width: 100%;
    overflow-x: hidden;
  }

  .detail-hero {
    min-height: 420px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .gallery-grid.two-col {
    grid-template-columns: 1fr;
  }

  .news-row {
    align-items: start;
    flex-direction: column;
  }

  .about-photo-stack {
    grid-template-columns: 1fr;
  }

  .about-photo-stack img:last-child {
    margin-top: 0;
  }

  .form-panel,
  .value-panel,
  .side-panel,
  .feature-card,
  .link-card,
  .testimonial-card,
  .info-tile {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    padding: 1.1rem;
  }

  .article-card h2,
  .article-card h3,
  .article-card p,
  .link-card h2,
  .link-card h3,
  .link-card p,
  .value-panel a,
  .value-panel p,
  .form-panel label,
  .table {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-map-frame iframe {
    height: 360px;
  }

  .contact-social-actions {
    grid-template-columns: 1fr;
  }

  .contact-action-link {
    max-width: 100%;
    white-space: normal;
  }

  .contact-directions-panel .direction-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .page-hero p,
  .hero-copy p {
    font-size: 1rem;
  }

  .page-hero h1,
  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .brand-logo {
    height: 62px;
    width: 92px;
  }

  .brand-mark strong {
    font-size: 1rem;
  }
}
