body { font-family: 'Roboto', sans-serif; font-size: 18px; }
h1, h2, h3, h4, h5, h6 { font-family: 'DM Serif Text', serif; }

.text-serif
{ font-family: 'DM Serif Text', serif; }

.text-newmount { color: rgb(54,125,162); }
.bg-newmount { background: rgb(54,125,162); }
.bg-newmount-40 { background: rgba(54,125,162,0.4); }
.bg-dark-newmount { background: rgb(31, 72, 93); }
.bg-dark-newmount a { color: #fff; }
.bg-dark-newmount a:hover { color: rgb(54,125,162); }
.btn-outline-newmount
{ color: rgb(54,125,162); border-color: rgb(54,125,162); }

.btn-outline-newmount:hover
{ color: #ffffff; background-color: rgb(54,125,162); border-color: rgb(54,125,162); }

.btn-outline-newmount:not(:disabled):not(.disabled).active, .btn-outline-newmount:not(:disabled):not(.disabled):active, .show>.btn-outline-newmount.dropdown-toggle {
color: #ffffff;
background-color: rgb(54,125,162);
border-color: rgb(54,125,162);
}

article
{ font-size: 21px; }

/* Homepage photo. The photo layer extends --hero-shift above and below the
   banner, which is the spare room the scroll parallax moves it through. */
.hero { --hero-shift: 40px; position: relative; height: 350px; overflow: hidden; }
.hero-photo { position: absolute; left: 0; right: 0; top: calc(var(--hero-shift) * -1); bottom: calc(var(--hero-shift) * -1); background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; }
.hero-overlay { position: relative; background: rgba(54,125,162,0.4); }

@media (min-width: 768px) {
  .hero { --hero-shift: 80px; }
}

/* Mobile: light tint that deepens behind the text at the bottom. --hero-trim cuts
   that much off the top of the banner without moving or resizing the photo. */
@media (max-width: 575.98px) {
  .hero { --hero-shift: 35px; --hero-trim: 60px; height: calc(400px - var(--hero-trim)); }
  .hero-photo { top: calc(var(--hero-shift) * -1 - var(--hero-trim)); background-position: 70% 50%; }
  .hero-overlay { background: linear-gradient(to top, rgba(31,72,93,0.85), rgba(31,72,93,0.75) 80px, rgba(54,125,162,0.1) 145px); }
}

/* Homepage welcome text: on mobile, closes to three lines, fading out, and a Read more pill */
.read-more
{ display: flex; align-items: center; gap: 0.4rem; position: relative; width: fit-content; min-height: 34px; margin: 0.5rem auto 0; padding: 0 1rem; background: rgba(54,125,162,0.12); border: 0; border-radius: 999px; color: rgb(31, 72, 93); font-size: 0.9rem; }

/* invisible: brings the pill's tap area up to 44px */
.read-more::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }

.read-more svg { transition: transform 0.3s ease; }
.read-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.read-more:focus-visible
{ outline: 2px solid rgb(54,125,162); outline-offset: 2px; }

@media (max-width: 575.98px) {
  .welcome-more { display: grid; grid-template-rows: 1fr; position: relative; transition: grid-template-rows 0.35s ease; }
  .welcome-more.is-closed { grid-template-rows: 0fr; }
  .welcome-more-inner { min-height: 4.5em; overflow: hidden; }
  .welcome-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.25em; background: linear-gradient(rgba(255,255,255,0), #fff); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
  .welcome-more.is-closed::after { opacity: 1; }
  /* keeps links in the hidden text out of the keyboard order */
  .welcome-more a { transition: visibility 0.35s; }
  .welcome-more.is-closed a { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-more, .welcome-more::after, .welcome-more a, .read-more svg { transition: none !important; }
}

/* Homepage banners (home/_banners). Stacked on phones, two across on tablets.
   On desktop the last banners share out the final row: 1 = full width, 2 = halves,
   3 = thirds, 4 = 2+2, 5 = 3+2, 6 = 3+3, 7 = 3+2+2 and so on. */
.banners { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.banners-wrap:not(:has(.banner)) { display: none; }
.banner { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--banner-bg); color: var(--banner-fg); }
.banner-body { position: relative; padding: 1.5rem; }
.banner-photo, .banner-tint { position: absolute; inset: 0; }
.banner-photo { background-size: cover; background-repeat: no-repeat; }
.banner-corner .banner-photo { background-size: contain; background-position: right bottom; }
.banner-corner .banner-text { max-width: 80%; }
.banner-tint-dark { background: rgba(0,0,0,0.5); }
.banner-tint-light { background: rgba(255,255,255,0.65); }
.banner-img { width: 100%; height: auto; }
.banner-logo { display: block; max-width: 200px; max-height: 120px; margin-bottom: 1.5rem; }
.banner-text > :last-child { margin-bottom: 0; }
.banner-text a, .banner-services a, .banner-latest a { color: inherit; }
.banner-latest { margin: 1rem 0 0; }
.banner-when { margin-bottom: 1rem; }
.banner-side { flex-flow: row wrap; }
.banner-side .banner-img, .banner-side .banner-body { flex: 1 1 260px; min-width: 0; }
.banner-side .banner-img { object-fit: cover; }
.banner-side .banner-body { align-self: center; }
.banner-services { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: 1.5rem; }
.banner-service-name { font-family: 'DM Serif Text', serif; font-size: 1.25em; line-height: 1.2; }
.banner-btn, .banner-btn:focus-visible { color: inherit; border-color: currentColor; }
.banner-btn:hover { color: inherit; border-color: currentColor; background: rgba(127,127,127,0.35); }
.banner-poster-inner img { display: block; width: 100%; height: auto; }
.banner-poster-inner.has-backdrop { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; background-size: cover; background-position: center; }
.banner-poster-inner.has-backdrop img { width: auto; max-width: 100%; max-height: 400px; margin: 0 auto; }

@media (min-width: 768px) {
  .banner-body { padding: 3rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  .banners { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .banner { grid-column: span 2; }
  .banner:only-child { grid-column: 1 / -1; }
  .banner:nth-last-child(2):nth-child(3n+1), .banner:nth-last-child(2):nth-child(3n+1) ~ .banner,
  .banner:nth-last-child(4):nth-child(3n+1), .banner:nth-last-child(4):nth-child(3n+1) ~ .banner { grid-column: span 3; }
}

/* Line under the homepage banners: even gaps of 12px on phones and tablets, 24px on
   desktop. The bottom margin is smaller because the empty Promos row below adds 8px. */
.home-rule { margin: 0.75rem 0 0.25rem; }

@media (min-width: 992px) {
  .home-rule { margin: 1.5rem 0 1rem; }
}

/* Weekly tiles (home/_weekly): stacked on phones, two across on tablets, one row on desktop */
.weekly { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.weekly-wrap:not(:has(.weekly-tile)) { display: none; }
.weekly-tile { position: relative; display: flex; flex-direction: column; padding: 1rem; background: var(--banner-bg); color: var(--banner-fg); font-size: 1rem; }
.weekly-name { margin: 0 0 0.5rem; font-size: 1.25rem; }
.weekly-name a { color: inherit; text-decoration: none; }
.weekly-tile:hover .weekly-name a { text-decoration: underline; }
.weekly-name a:focus-visible::after { outline: 3px solid currentColor; outline-offset: -6px; }
.weekly-when { margin-top: auto; padding-top: 0.75rem; font-weight: 700; }
.weekly-text { font-size: 0.95rem; line-height: 1.4; }
.weekly-text > :last-child { margin-bottom: 0; }
.weekly-text a { position: relative; z-index: 2; color: inherit; }

@media (min-width: 576px) and (max-width: 991.98px) {
  .weekly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  .weekly { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* About pages: on phones the section links fold into a bar above the page */
.section-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 1rem; padding: 0 1rem; background: rgba(54,125,162,0.12); border: 0; border-radius: 6px; color: rgb(31, 72, 93); font-size: 1rem; text-align: left; }
.section-toggle svg { transition: transform 0.3s ease; }
.section-toggle:not(.collapsed) svg { transform: rotate(180deg); }
.section-toggle:focus-visible { outline: 2px solid rgb(54,125,162); outline-offset: 2px; }

@media (max-width: 767.98px) {
  .section-nav .active { font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  .section-toggle svg, .footer-toggle svg { transition: none !important; }
}

/* Footer: three columns from tablet up. On phones it stacks and the link lists fold */
.site-footer { font-size: 1rem; }
.site-footer h2 { margin-bottom: 0.5rem; font-family: 'Roboto', sans-serif; font-size: 1.1rem; font-weight: 700; }
.site-footer address, .site-footer p { margin-bottom: 0.5rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-block; padding: 0.35rem 0; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.footer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.footer-toggle svg { transition: transform 0.3s ease; }
.footer-toggle:not(.collapsed) svg { transform: rotate(180deg); }
.footer-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-footer-legal { margin-top: 1.5rem; padding: 0.75rem 0; background: rgb(21, 50, 65); font-size: 0.875rem; }
.site-footer-legal .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 1.25rem; text-align: center; }

@media (max-width: 767.98px) {
  .site-footer h2 { margin-bottom: 0; }
}

/* Mobile menu: button sits left of the logo, menu opens below the logo band */
.menu-button
{ left: 0.5rem; width: 48px; height: 48px; padding: 8px; background: none; border: 0; border-radius: 6px; color: #fff; line-height: 0; }

.menu-button:focus-visible
{ outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 991.98px) {
  .main-nav.navbar { padding: 0; background: rgb(31, 72, 93) !important; }
  .main-nav .navbar-nav { padding: 0.5rem 0; }
  .main-nav .navbar-nav .nav-link { color: #fff; padding: 0.65rem 0.5rem; }
  .main-nav .navbar-nav .nav-link.active { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }
}

/*
@media (prefers-color-scheme: dark) {
	body
	{background: #212529; color: #abb2bf;}
	
	.text-dark
	{color: #dee2e6 !important;}
	
	.bg-light
	{background: #353b45 !important;}
	
	
	h1, h2, h3, h4, h5, h6
	{color: #dee2e6 !important;}
	
	a
	{color: #dee2e6;}
	
    a:hover:
	{color: #fff;}
	
	nav a
	{color: #dee2e6 !important;}


  	img {
	  opacity: .75;
	  transition: opacity .5s ease-in-out;
	}
	img:hover {
	  opacity: 1;
	}
  
}*/