:root {
  --page-bg: #ebe7e0;
  --surface: #ffffff;
  --surface-soft: #f7f5f1;
  --header-bg-top: #faf8f4;
  --header-bg-bottom: #f2ede6;

  --text: #352f2a;
  --text-soft: #5f5a54;
  --muted: #75685d;

  --border: #d9d2c8;
  --border-dark: #3f4f68;

  --nav-top-border: #274c8f;
  --nav-bg-top: #3d4658;
  --nav-bg-bottom: #252c38;
  --nav-link: #f5f7fb;
  --nav-link-hover: rgba(255, 255, 255, 0.10);

  --menu-surface: #f8f5f0;
  --menu-border: #d7d0c6;

  --accent: #1b56c4;
  --accent-dark: #103a7a;

  --green: #2f6f46;
  --blue: #2a5fb8;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

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

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

.page-gutter {
  padding-left: 1.9rem;
  padding-right: 1.9rem;
}
/*
.boxed-site {
  max-width: 1240px;
  overflow: visible;
}
*/
.site-top {
  z-index: 1030;
}

.site-chrome {
  position: relative;
  background: linear-gradient(180deg, var(--header-bg-top) 0%, var(--header-bg-bottom) 100%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.topbar {
  background: linear-gradient(180deg, #f6f3ee 0%, #ebe5dc 100%);
  border-bottom: 1px solid #d8d1c6;
}

.topbar-inner {
  padding: 0.85rem 0;
  text-align: center;
  color: #4b443d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.dot {
  display: inline-block;
  margin: 0 0.6rem;
}

.header-inner {
  max-width: 98%;
  padding: 2rem 22rem 1.55rem 0;
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.brand-kicker span {
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(125, 106, 84, 0.3), rgba(125, 106, 84, 0));
}

.brand-kicker span:last-child {
  background: linear-gradient(90deg, rgba(125, 106, 84, 0), rgba(125, 106, 84, 0.3));
}
/*margin: 0 0 1rem;*/
.site-title {
  position: relative;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 4rem);
  text-shadow: 4px 4px 3px rgba(0,0,0,.22);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #1b56c4;
}

@supports (-webkit-background-clip: text) {
  .site-title {
    background: linear-gradient(
      to bottom,
      #0037b8 0%,
      #0b4fd0 38%,
      #1d73ea 78%,
      #37a1ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .site-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: rgba(0, 0, 0, 0.28);
    transform: translate(3px, 3px);
    pointer-events: none;
  }
}

.site-subtitle {
  max-width: 610px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.7;
}

.header-dog {
  position: absolute;
  right: 1.6rem;
  bottom: 0;
  z-index: 6;
  width: 332px;
  height: auto;
  display: block;
  pointer-events: none;
}

.site-nav {
  min-height: 64px;
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, var(--nav-bg-top) 0%, var(--nav-bg-bottom) 100%);
  border-top: 5px solid var(--nav-top-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav .container-fluid {
  padding-right: 23.75rem;
}

.site-nav .navbar-brand,
.site-nav .nav-link {
  color: var(--nav-link);
}

.site-nav .nav-link {
  padding: 1rem 0.95rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.show,
.site-nav .nav-link.active {
  color: #ffffff;
  background: var(--nav-link-hover);
  text-decoration: none;
}

.site-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.8);
}

.site-nav .navbar-toggler-icon {
  color:#ffffff;
  /*filter: invert(1);*/
}

.site-nav .dropdown-menu {
  margin-top: 0;
  border: 1px solid var(--menu-border);
  border-radius: 0.5rem;
  background: var(--menu-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.site-nav .dropdown-item {
  padding: 0.75rem 1rem;
  color: #384050;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  color: #183761;
  background: #eef3fb;
}

.navbar .has-megamenu {
  position: static;
}

.megamenu {
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 3.8rem));
  padding: 0;
  overflow: hidden;
}

.megamenu-panel {
  background: var(--menu-surface);
  border: 1px solid var(--menu-border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.megamenu-toplinks {
  border-bottom: 1px solid #e6dfd5;
}

.megamenu-linkblock {
  padding: 1rem 1.25rem;
}

.megamenu-linkblock-end {
  border-left: 1px solid #e6dfd5;
}

.megamenu-link {
  display: block;
  color: #354055;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}

.megamenu-link:hover,
.megamenu-link:focus {
  color: #183761;
  background: #eef3fb;
}

.megamenu-heading {
  padding: 1rem 1.25rem 0.75rem;
  text-align: center;
  font-weight: 700;
  color: #33445d;
  border-bottom: 1px solid #ddd6cc;
}

.megamenu-body {
  padding: 1.25rem;
}

.results-column {
  height: 100%;
}

.results-badge {
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.results-badge-green {
  background: var(--green);
}

.results-badge-blue {
  background: var(--blue);
}

.results-list li + li {
  margin-top: 0.35rem;
}

.results-list a {
  display: block;
  padding: 0.15rem 0;
  color: #33445d;
}

.results-list a:hover,
.results-list a:focus {
  color: #183761;
  background: #eef3fb;
}

.site-content {
  background: var(--surface);
}

.content-card {
  max-width: 1160px;
  background: #f9f7f3;
  border: 1px solid #dad3c9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 3rem 3.3rem;
}

.content-title {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 500;
}

.title-rule {
  width: min(100%, 1040px);
  margin-top: 1.5rem;
  border: 0;
  border-top: 1px solid var(--border);
  opacity: 1;
}

.lead-copy {
  font-size: 1.08rem;
  line-height: 1.8;
}

.lead-copy p {
  margin-bottom: 1.35rem;
}

.contact-card {
  /*background: var(--surface-soft);*/
  background: #eef3fb;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1.05rem;
}

.site-footer {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.9rem;
}

#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 20px;
  z-index: 99;
  display: none;
  border: 0;
  border-radius: 10px;
  outline: none;
  background-color: #163d84;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px 10px;
  font-size: 20px;
}

#back-to-top:hover {
  background-color: #111;
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 1199.98px) {
  .header-inner {
    padding-right: 20rem;
  }

  .header-dog {
    width: 300px;
  }

  .site-nav .container-fluid {
    padding-right: 21rem;
  }
}

@media (max-width: 991.98px) {
  .page-gutter {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    max-width: 100%;
    padding: 1.75rem 0 1.2rem;
    text-align: center;
  }

  .brand-kicker {
    justify-content: center;
  }

  .site-subtitle,
  .site-title {
    max-width: 100%;
  }

  .header-dog {
    position: static;
    width: min(280px, 75vw);
    margin: 1rem auto 0;
  }

  .site-nav .container-fluid {
    padding-right: 1rem;
  }

  .navbar .has-megamenu {
    position: relative;
  }

  .megamenu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.25rem;
  }

  .megamenu-linkblock-end {
    border-left: 0;
    border-top: 1px solid #e6dfd5;
  }

  .content-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .topbar-inner {
    padding: 0.7rem 0;
    font-size: 0.85rem;
  }

  .brand-kicker {
    gap: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .site-title {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }

  .site-subtitle {
    font-size: 1rem;
  }

  .site-nav .nav-link {
    padding: 0.85rem 0.75rem;
  }

  .content-card {
    padding: 1.5rem 1.1rem;
  }
}

.divider {
  display: flex;
  align-items: center; /* vertically aligns lines with text midpoint */
  text-align: center;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ccc;
}

.divider > * {
  margin: 0 1rem;
}

/* =========================================================
   Namespaced Bootstrap 5 lightbox gallery styles
   Added to avoid conflicts with existing site classes.
   ========================================================= */

  .pg-lightbox-trigger {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    /*border-radius: 12px;*/
    vertical-align: top;
  }

  .pg-lightbox-trigger img {
    display: block;
    max-width: 100%;
    height: auto;
    /*border-radius: 12px;*/
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .pg-lightbox-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='11' cy='11' r='6.5' stroke='white' stroke-width='2' fill='none'/><line x1='16' y1='16' x2='21' y2='21' stroke='white' stroke-width='2' stroke-linecap='round'/></svg>");
  }

  .pg-lightbox-trigger:hover img,
  .pg-lightbox-trigger:focus-visible img {
    opacity: 0.65;
    transform: scale(1.02);
  }

  .pg-lightbox-trigger:hover::after,
  .pg-lightbox-trigger:focus-visible::after {
    opacity: 1;
  }

  .pg-lightbox-trigger:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 4px;
  }

  .pg-lightbox-modal-content {
    background: rgba(0, 0, 0, 0.96);
    border: 0;
  }

  .pg-lightbox-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .pg-lightbox-figure {
    margin: 0;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .modal.show .pg-lightbox-figure {
    transform: scale(1);
    opacity: 1;
  }

  .pg-lightbox-image {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    /*border-radius: 10px;*/
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .pg-lightbox-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    text-align: center;
  }

  .pg-lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: center;
    margin: 0;
  }

  .pg-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    z-index: 1056;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .pg-lightbox-close:hover,
  .pg-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.32);
  }

  @media (max-width: 576px) {
    .pg-lightbox-title {
      font-size: 1.25rem;
    }

    .pg-lightbox-caption {
      font-size: 0.95rem;
    }

    .pg-lightbox-trigger::after {
      width: 56px;
      height: 56px;
    }

    .pg-lightbox-body {
      padding: 1.25rem;
    }
  }
