/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ @import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type="button"],[type="reset"],[type="submit"],button{-webkit-appearance:button}[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

html, button, input, select, textarea{
	color: #232323;	
}
html {
	font-size: 15px;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
* {
	box-sizing: inherit;
}
html, body{
	min-height: 100%; /* stretch background gradient */
}
body{
	font-weight: normal;
	margin:0;
	padding:0;
}
body#tinymce{
	font-size: 15px;
}

::-moz-selection {
	background: #0F6680;
	text-shadow: none;
	color: #fff;
}
::selection {
	background: #0F6680;
	text-shadow: none;
	color: #fff;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #eee;
	margin: 2em 0;
	padding: 0;
}
audio, canvas, iframe, img, svg, video {
	vertical-align: middle;
}
fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}
textarea {
	resize: vertical;
}

/*
body img.respFix{
	width: 100%;
	height: auto !important;
}
iframe.respFix,
object.respFix{
	width: 100%;
}
@media only screen and (max-width: 600px){
	iframe.respFix,
	object.respFix{
		height: 300px;
	}
}
*/

/* print styles */
@media print {
	*,
	*:before,
	*:after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}
	a, a:visited {
		text-decoration: underline;
	}
	a[href]:after {
		content: " (" attr(href) ")";
	}
	abbr[title]:after {
		content: " (" attr(title) ")";
	}
	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}
	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}
	thead {
		display: table-header-group;
	}
	tr, img {
		page-break-inside: avoid;
	}
	img {
		max-width: 100% !important;
	}
	p, h2, h3 {
		orphans: 3;
		widows: 3;
	}
	h2, h3 {
		page-break-after: avoid;
	}
}
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #EAF5F6;

  --fg: #0C345F;
  --fg-soft: #455667;
  --muted: #526475;
  --border: #CBD8DF;

  --primary: #087F92;
  --primary-light: #066B7B;

  --accent: #0C345F;
  --accent-hover: #082747;

  --gold: #F5AB00;
  --coral: #F15B50;
  --success: #456927;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm:
    0 1px 3px rgba(0,0,0,0.06),
    0 1px 2px rgba(0,0,0,0.04);

  --shadow-md:
    0 4px 12px rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.03);

  --shadow-lg:
    0 8px 30px rgba(0,0,0,0.08),
    0 4px 10px rgba(0,0,0,0.04);
}

/* ═══════ Bennett's Bridge design system ═══════ */
    /* ─── Design Tokens ─── */
    
    /* ─── Reset & Base ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: var(--fg);
      background: var(--bg);
      line-height: 1.6;
      min-height: 100vh;
    }

    img { max-width: 100%; display: block; }
    a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
    a:hover { color: var(--accent); }

    /* ─── Typography ─── */
    h1, h2, h3, h4 { font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; line-height: 1.2; color: var(--fg); }
    h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
    h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -0.01em; }
    h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
    h4 { font-size: 1.125rem; }
    p { margin-bottom: 1rem; max-width: 65ch; }

    /* ─── Layout Utilities ─── */
    .cms_Search,
    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 1em clamp(1rem, 4vw, 2.5rem);
    }

    .section-head {
      text-align: center;
      margin-bottom: clamp(2rem, 5vw, 3rem);
    }
    .section-head h2 { margin-bottom: 0.75rem; }
    .section-head p { color: var(--fg-soft); font-size: 1.125rem; }

    /* ─── Header / Navigation ─── */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(8px);
      background: color-mix(in srgb, var(--surface) 90%, transparent);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 800;
      font-size: 1.25rem;
      color: var(--primary);
      letter-spacing: -0.02em;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: var(--primary);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 800;
      font-size: 1rem;
    }

    .nav-desktop {
      display: none;
      gap: 2px;
    }

    @media (min-width: 900px) {
      .nav-desktop { display: flex; }
    }

    .nav-link {
      padding: 0.5rem 1rem;
      border-radius: var(--radius-sm);
      font-size: 0.938rem;
      font-weight: 500;
      color: var(--fg-soft);
      transition: all 0.2s;
      cursor: pointer;
      user-select: none;
    }
    .nav-link:hover, .nav-link.active {
      color: var(--fg);
      background: var(--surface-alt);
    }

    /* Mobile nav toggle */
    .nav-toggle {
      display: block;
      width: 44px;
      height: 44px;
      border: none;
      background: transparent;
      cursor: pointer;
      position: relative;
    }
    @media (min-width: 900px) {
      .nav-toggle { display: none; }
    }
    .nav-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--fg);
      margin: 5px auto;
      border-radius: 2px;
      transition: all 0.3s;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Mobile menu overlay */
    .mobile-nav {
      display: none;
      position: fixed;
      top: 72px;
      left: 0;
      right: 0;
      background: var(--surface);
      z-index: 999;
      padding: 1.5rem;
      overflow-y: auto;
    }
    .mobile-nav.open {
      display: block; 
      box-shadow: 0 .5em .5em rgba(0,0,0,.25);
    }
    .mobile-nav .nav-link {
      display: block;
      width: 100%;
      padding: 1rem;
      font-size: 1.125rem;
      border-bottom: 1px solid var(--border);
    }

    /* ─── Page sections (SPA routing) ─── */
    .page { display: none; }
    .page.active { display: block; }

    /* ─── Hero ─── */
    .hero {
      padding: clamp(3rem, 6vw, 5rem) 0;
      background: linear-gradient(160deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 85%, var(--surface)) 100%);
      color: white;
      position: relative;
      overflow: hidden;
    }

    .hero::after {
      content: '';
      position: absolute;
      top: -20%;
      right: -10%;
      width: 50vw;
      height: 140%;
      background: radial-gradient(ellipse, oklch(0.68 0.17 38 / 0.12) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-bg-image {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, rgba(11, 37, 71, 0.72) 0%, rgba(8, 28, 56, 0.78) 100%);
    }
    .hero-content { position: relative; z-index: 1; }

    /* ─── Full-width section (spans to edge of hero) ─── */
    .section-full {
      position: relative;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      z-index: 1;
    }

    /* Hero map container */
    .hero-map {
      width: 200px !important;
      flex: 0 0 auto;
      margin-left: 1.5rem;
    }
    @media (max-width: 768px) {
      .hero-main { flex-direction: column-reverse !important; }
      .hero-main > div:first-child { max-width: 100% !important; }
      .hero-map { margin-left: 0; margin-bottom: 2rem; width: 100% !important; max-width: 360px !important; }
    }

    .county-map-hero {
      position: relative;
      width: 100%;
      border-radius: var(--radius-md);
      overflow: hidden;
      line-height: 0;
    }
    .county-map-hero img {
      width: 100%;
      height: auto;
      display: block;
      padding-right: 5%;
    }

    .section-banner {
      width: 100%;
      height: 240px;
      border-radius: var(--radius-md) var(--radius-md) 0 0;
      overflow: hidden;
      margin-bottom: 0;
    }
    .section-banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    #page-weatherization .section-banner img {
    	object-position: center -300px;
    }

    /* ─── Banner + Quote unified region ─── */
    .banner-quote-region {
      margin-bottom: 2.5rem;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .banner-quote-region > .section-banner {
      border-radius: var(--radius-md) var(--radius-md) 0 0;
      margin-bottom: 0 !important;
    }
    .banner-quote-region > .section-banner img {
      border-radius: 0 0 0 0;
    }

    .card-banner {
      width: 100%;
      min-height: clamp(80px, 14vw, 160px);
      overflow: hidden;
      border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .card-banner img {
      width: 100%;
      height: 100%;
      min-height: 80px;
      object-fit: cover;
      display: block;
    }

    /* ─── Page hero image banner (full-width) ─── */
    .page-hero-img {
      width: 100vw;
      margin-left: calc(-50% + 50%);
      background: var(--surface-alt);
    }
    .page-hero-img-wrap {
      max-width: 960px;
      margin: 0 auto;
      padding: 2.5rem clamp(1rem, 4vw, 3rem);
    }
    .page-hero-img-inner {
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      position: relative;
      line-height: 0;
    }
    .page-hero-img-inner img {
      width: 100%;
      height: auto;
      display: block;
    }
    .page-hero-img-caption {
      background: var(--fg);
      color: var(--surface);
      padding: 0.625rem 1rem;
      font-size: 0.8125rem;
      letter-spacing: 0.02em;
    }

    /* Contact page: Main Office + image side-by-side layout */
    .contact-main-grid {
      display: grid;
      grid-template-columns: 1fr 560px;
      gap: 2.5rem;
      align-items: start;
      margin-bottom: 3rem;
    }

    .contact-main-address {
      max-width: 36ch;
    }

    .contact-main-address h3 {
      margin-bottom: 0.75rem;
      color: var(--primary);
    }

    .contact-main-address address {
      font-style: normal;
      margin-top: 0;
      font-size: 1rem;
      line-height: 2;
    }

    @media (max-width: 920px) {
      .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
    }

    /* Contact page: Main Office photo column */
    .contact-main-img {
      position: sticky;
      top: 2rem;
    }
    .contact-main-img-inner {
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      line-height: 0;
    }
    .contact-main-img-inner img {
      display: block;
      width: 100%;
      height: auto;
    }
    .contact-main-img-caption {
      background: var(--fg);
      color: var(--surface);
      padding: 0.625rem 1rem;
      font-size: 0.8125rem;
      letter-spacing: 0.02em;
      margin-top: -2.5rem;
      position: relative;
      z-index: 1;
    }

    /* Also reset address width for mobile */
    .contact-main-address {
      max-width: 100%;
    }

    /* ─── Map + animated circles (Area Five style) ─── */
    .county-map {
      position: relative;
      max-width: 56ch;
      margin: 2rem auto 0;
      border-radius: var(--radius-md);
      overflow: hidden;
      line-height: 0;
    }
    .county-map img {
      width: 100%;
      height: auto;
      display: block;
    }
    .map-dot {
      position: absolute;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 2;
    }
    .map-dot::before {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      border: 2px solid var(--accent);
      opacity: 0.85;
      animation: mapPulse 6s ease-out infinite var(--dot-delay, 0s);
    }
    /*
    .map-dot::after {
      content: '';
      position: absolute;
      inset: -14px;
      border-radius: 50%;
      border: 1px solid var(--accent);
      opacity: 0.45;
      animation: mapPulse 6s ease-out infinite calc(var(--dot-delay, 0s) + 0.3s);
    }
    */
    @keyframes mapPulse {
      0%   { transform: scale(0.9); opacity: 0.45; }
      100% { transform: scale(1.6); opacity: 0; }
    }
    .counties-we-serve-divider{
	    width: 48px;
	    height: 1px;
	    background: oklch(0.68 0.17 38);
	    margin-bottom: 0.75rem;
	}
    @media (max-width: 1023px) {
		.counties-we-serve{
			text-align: center;
		}
	}
	 @media (min-width: 1023px) {
		.county-links :first-child{
			padding-left: 0;
		}
    }
    .county-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 2rem;
      justify-content: flex-start;
    }
    .county-links :first-child{
    }
    .county-link {
      display: inline-block;
      padding: 0.5rem 1.25rem;
      background: color-mix(in srgb, var(--primary) 0.1, transparent);
      border-radius: 999px;
      font-weight: 600;
      font-size: 0.938rem;
      color: var(--fg);
      text-decoration: none;
      transition: all 0.2s;
    }
.county-link:hover {
  background: color-mix(in srgb, var(--primary) 0.18, transparent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Align first county with "Counties We Serve" title on tablet/mobile */
.county-link:first-of-type {
  margin-top: calc(var(--space-4xl) - 0.5rem);
}

.comply{
	max-width: 600px;
	margin: 1.5rem auto 0;
	padding-top: 1rem;
	border-top: 1px solid oklch(0.35 0.08 255 / 0.3);
	font-size: 0.75rem;
	color: oklch(0.65 0.015 255);
	text-align: center;
}

@media (max-width: 800px) {
	.county-links {
      display: block;
    }
	.county-link{ 
		width: 30%;
		margin: 0;
	}
	.hero-map{
		padding: 0 10%;
	}
	.hero-bg-image{
		padding: 1em 0 2em;
	}
	.hero-cta{
		margin: 0 auto;
		justify-content: center;
		width: 100%;
	}
}
 
@media (max-width: 1023px) {
  .county-link:first-of-type {
    margin-top: var(--space-3xl);
  }

  /* Center phone panel on tablet/mobile, add divider line */
  .phone-panel {
    text-align: center !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-top: var(--space-2xl) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .phone-headline {
    position: relative;
    padding-top: var(--space-2xl);
  }

  .phone-headline::before {
    content: "";
    display: block;
    width: 50%;
    max-width: 280px;
    margin: 0 auto;
    height: 1px;
    background: oklch(0.97 0.01 255 / 0.07);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .phone-panel > div,
  .phone-panel a {
    text-align: center !important;
  }
}

    .hero h1 {
      color: white;
      margin-bottom: 1rem;
      font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero p {
      color: oklch(0.92 0.03 255);
      font-size: clamp(1.125rem, 2.5vw, 1.375rem);
      max-width: 56ch;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 2rem;
      padding: 0.875rem 2rem;
      background: var(--accent);
      color: white;
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 1rem;
      transition: all 0.2s;
      text-decoration: none;
      cursor: pointer;
    }
    .hero-cta:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }

    /* ─── Service Cards (Home) ─── */
    .services-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 0 1em 1em;
    }

    @media (min-width: 640px) {
      .services-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (min-width: 900px) {
      .services-grid { grid-template-columns: repeat(3, 1fr); }
    }

    .service-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 2rem;
      transition: all 0.25s;
      cursor: pointer;
    }
    .service-card:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .service-icon {
      width: 48px;
      height: 48px;
      background: color-mix(in srgb, var(--primary) 0.15, transparent);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }

    .service-card h3 { margin-bottom: 0.5rem; color: var(--fg); }
    .service-card p { color: var(--fg-soft); font-size: 0.938rem; }

    /* ─── Section Header Hero ─── */
    .section-header-hero {
      text-align: center;
      margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
      max-width: 48ch;
      margin-left: auto;
      margin-right: auto;
    }
    #page-home .section-header-hero{
   		padding-top: 2em;
   		max-width: none;
    }

    .section-eyebrow {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      background: color-mix(in srgb, var(--accent) 0.08, transparent);
      padding: 0.375rem 1rem;
      border-radius: 999px;
      margin-bottom: 1.25rem;
    }

    .section-header-hero h2 {
      margin-bottom: 1rem;
    }

    .section-accent-line {
      width: 48px;
      height: 2px;
      background: var(--accent);
      border-radius: 999px;
      margin: 1.25rem auto;
      opacity: 0.7;
    }

    .section-header-hero .section-lede {
      color: var(--fg-soft);
      font-size: 1.0625rem;
      line-height: 1.7;
      max-width: 48ch;
      margin: 0 auto;
    }

    /* ─── Page header (all pages): background image + overlay + text ─── */
    .page-hero {
      position: relative;
      padding: clamp(3rem, 7vw, 4.5rem) 0;
      background-color: var(--primary);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      overflow: hidden;
    }

    .page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, rgba(11, 37, 71, 0.72) 0%, rgba(8, 28, 56, 0.82) 100%);
      pointer-events: none;
    }

    .page-hero > .container {
      position: relative;
      z-index: 1;
    }

    .page-hero h1 {
      margin-bottom: 0.5rem;
      color: #fff;
    }

    .page-hero p {
      color: rgba(255, 255, 255, 0.82);
      font-size: 1.125rem;
    }


    /* Housing page: banner sits in content flow, directly above How to Apply */
    #page-housing .section-banner {
      border-radius: var(--radius-md);
      margin-bottom: 1.5rem;
    }

    .page-body {
      padding: clamp(2.5rem, 6vw, 5rem) 0;
    }

    /* ─── Breadcrumb Nav for subpages ─── */
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 0;
      font-size: 0.875rem;
      color: var(--fg-soft);
    }
    .breadcrumb a { color: var(--primary); }

    /* ─── Contact Cards / Staff Grid ─── */
    .staff-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    @media (minwidth: 768px) {
      .staff-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (min-width: 1024px) {
      .staff-grid { grid-template-columns: repeat(3, 1fr); }
    }

    .staff-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.5rem;
    }

    .staff-name { font-weight: 700; margin-bottom: 0.25rem; }
    .staff-title { color: var(--fg-soft); font-size: 0.875rem; margin-bottom: 0.75rem; }
    .staff-contact { font-size: 0.875rem; color: var(--fg-soft); }

    /* ─── Info Cards / Locations grid ─── */
    .locations-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    @media (min-width: 640px) {
      .locations-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (min-width: 960px) {
      .locations-grid { grid-template-columns: repeat(3, 1fr); }
    }

    @media (min-width: 1280px) {
      .locations-grid { grid-template-columns: repeat(4, 1fr); }
    }

    .location-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.75rem;
      display: flex;
      gap: 1.25rem;
    }

    .location-pin {
      width: 40px;
      height: 40px;
      background: color-mix(in srgb, var(--accent) 0.12, transparent);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      flex-shrink: 0;
    }

    /* ─── Form Styles ─── */
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { display: block; font-weight: 500; font-size: 0.938rem; margin-bottom: 0.4rem; }

    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 1rem;
      background: var(--surface);
      color: var(--fg);
      transition: border-color 0.2s;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 0.15, transparent);
    }

    .form-group textarea { min-height: 120px; resize: vertical; }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.875rem 2rem;
      background: var(--primary);
      color: white;
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-primary:hover { background: var(--primary-light); color: white; }

    /* ─── Events Timeline ─── */
    .event-list { display: flex; flex-direction: column; gap: 1rem; }

    .event-item {
      display: flex;
      gap: 1.5rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.5rem;
      align-items: center;
    }

    .event-date {
      min-width: 64px;
      text-align: center;
      padding: 0.75rem;
      background: color-mix(in srgb, var(--primary) 0.08, transparent);
      border-radius: var(--radius-sm);
    }

    .event-date .day {
      display: block;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
      line-height: 1.2;
    }

    .event-date .month-year {
      font-size: 0.75rem;
      color: var(--fg-soft);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .event-info h4 { margin-bottom: 0.25rem; }
    .event-tag {
      display: inline-block;
      padding: 0.15rem 0.65rem;
      font-size: 0.75rem;
      background: color-mix(in srgb, var(--accent) 0.12, transparent);
      color: var(--accent-hover);
      border-radius: 999px;
      font-weight: 600;
    }
    
    /* CMS contact form (MessageSection) — wrap in the same 1200px centered container as every other section so it aligns on wide desktops; the form itself stays 48ch per the draft. */
.MessageSection_Container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto clamp(2.5rem, 6vw, 5rem);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.MessageSection_Container .Message_Description1,
.MessageSection_Container .MessageSection_MessageForm { max-width: 48ch; }
.MessageSection_Container .MessageSection_MessageForm { margin-top: 1.5rem; }
.MessageForm_InputItem { margin-bottom: 1.25rem; }
.MessageForm_InputItem label { font-weight: 500; font-size: 0.938rem; margin-bottom: 0.4rem; }
.formFieldRequiredMarker { color: var(--accent); margin-left: 0.125rem; }
.MessageForm_InputItem input,
.MessageForm_InputItem textarea,
.MessageForm_InputItem select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.MessageSection_Container .invalidFormInput{
	color: #aa0000;
	font-size: 90%;
}
.MessageForm_InputItem input:focus,
.MessageForm_InputItem textarea:focus,
.MessageForm_InputItem select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.MessageForm_InputItem textarea { min-height: 120px; resize: vertical; }
.MessageForm_Cap { margin-bottom: 1.25rem; }
.MessageForm_Cap .capLabel label { display: block; font-weight: 500; font-size: 0.938rem; margin-bottom: 0.4rem; }
.MessageForm_Cap .capImg { display: block; margin-bottom: 0.5rem; }
.MessageForm_Cap .capImg img { display: block; border-radius: 4px; }
.MessageForm_Cap .capAnswer { margin-top: 0.4rem; }
.MessageForm_Cap .capAnswer input {
  width: 200px;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.MessageForm_Cap .capAnswer input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.MessageForm_Cap .capRefresh { margin-top: 0.35rem; font-size: 0.875rem; cursor: pointer; }
.MessageForm_Cap .capRefresh a { color: var(--fg-soft); text-decoration: none; }
.MessageForm_Cap .capRefresh a:hover { color: var(--primary); text-decoration: underline; }
.MessageForm_StatusMsg { margin-top: 1rem; font-size: 0.9375rem; }
.MessageForm_Buttons { margin-top: 0.25rem; }
.MessageForm_Buttons input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.MessageForm_Buttons input[type="submit"]:hover { background: var(--primary-light); color: white; }
.MessageForm_Buttons input[type="submit"]:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }

    /* ─── Footer ─── */
    .site-footer {
      background: var(--primary);
      color: oklch(0.85 0.02 255);
      padding: clamp(2.5rem, 6vw, 4rem) 0;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    @media (min-width: 768px) {
      .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    }

    .footer-grid h4 { color: white; margin-bottom: 0.75rem; font-size: 0.938rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .site-footer a { color: oklch(0.85 0.02 255); }
    .site-footer a:hover { color: white; }
    .site-footer h4 a { color: white; }

    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 0.4rem; }
    .footer-links a { font-size: 0.938rem; }

    .footer-about p { font-size: 0.875rem; color: oklch(0.75 0.02 255); }

    .footer-bottom {
      border-top: 1px solid oklch(0.35 0.08 255 / 0.3);
      padding-top: 1.5rem;
      text-align: center;
      font-size: 0.8125rem;
      color: oklch(0.70 0.015 255);
    }

    /* ─── Callout Banner ─── */
    .callout {
      background: color-mix(in srgb, var(--accent) 0.06, transparent);
      border-left: 3px solid var(--accent);
      padding: 1.25rem 1.5rem;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      margin-bottom: 2rem;
      font-size: 0.938rem;
    }

    .callout strong { color: var(--accent); }

    /* ─── Accessibility Note (footer boilerplate) ─── */
    .nondiscrimination {
      padding: 1.5rem 0;
      font-size: 0.8125rem;
      color: var(--fg-soft);
      text-align: center;
      border-top: 1px solid var(--border);
    }

    /* ─── Job / Openings Cards ─── */
    .job-card {
      padding: 1.75rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      margin-bottom: 1.25rem;
      transition: box-shadow 0.2s, border-color 0.2s;
    }
    .job-card:hover {
      border-color: var(--accent);
      box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 0.15, transparent);
    }
    .job-title {
      font-size: 1.1875rem;
      font-weight: 600;
      color: var(--fg);
      margin-bottom: 0.375rem;
    }
    .job-meta {
      font-size: 0.875rem;
      color: var(--fg-soft);
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .job-meta span { white-space: nowrap; }
    .job-section-title {
      font-weight: 600;
      color: var(--fg);
      font-size: 0.875rem;
      margin-top: 0.875rem;
      margin-bottom: 0.125rem;
    }
    .job-section-title:first-child { margin-top: 0; }
    .job-desc, .job-reqs {
      font-size: 0.9375rem;
      color: var(--fg-soft);
      line-height: 1.625;
    }

    /* ─── Animations / Transitions ─── */
    .fade-in {
      animation: fadeIn 0.4s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .no-margin { margin-bottom: 1rem; }

    /* ─── Full-width Mission Statement ─── */
    .section-wide {
      width: 100vw;
      margin-left: calc(-50vw + 50%);
      padding: 2.5rem 0;
      background: var(--surface-alt);
    }

    /* ─── Two-column text + image section ─── */
    .text-image-section {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 420px;
      gap: 3rem 2.5rem;
      align-items: start;
      margin-bottom: 2.5rem;
      padding-top: 2em;
      padding-bottom: 2em;
    }

    .text-image-section .section-col {
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .text-image-section .section-col:first-child{
    	border-top: 0;
    	padding-top: 0;
    }

    .text-image-section .image-col img {
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    .text-image-section .section-heading {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.5rem;
      letter-spacing: -0.01em;
    }

    /* ─── Media queries for text-image layout ─── */
    @media (max-width: 920px) {
      .text-image-section {
        grid-template-columns: 1fr;
      }
      .text-image-section .image-col img {
        border-radius: var(--radius-md);
        width: 94%;
        max-width: 480px;
        margin: 0 auto;
        display: block;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
      }
    }

    /* ─── Mission Statement Section ─── */
    .mission-statement {
      padding: 0 0 2rem 0;
    }

    .mission-quote {
      font-size: 1.0625rem;
      color: var(--fg);
      line-height: 1.75;
      font-style: italic;
      padding: 1.5rem 1.75rem;
      margin-bottom: 2rem;
      border-left: none;
      background: color-mix(in srgb, var(--accent) 3%, var(--surface-alt));
      border: 1px solid color-mix(in srgb, var(--accent) 8%, var(--border));
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      position: relative;
    }

    /* ─── Mobile: hero text overlays map, CTA below image ─── */
    @media (max-width: 768px) {
      /* Make hero-map full-width so overlay fills the section */
      .hero-map {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
      }

      /* Position hero-text overlay on top of the map image */
      .hero h1 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 1.5em 20% 0 30%;
        z-index: 3;
        color: var(--primary);
        font-size: 6.75vw;
      }

      .hero-text-overlay p {
        color: oklch(0.95 0.01 250);
        -webkit-text-stroke: 0.3px oklch(0.02 0.02 255 / 0.5);
      }

    }

    /* ─── Funds Dropdown (desktop nav) ─── */
    .nav-dropdown {
      position: relative;
    }
     .nav-dropdown-toggle {
        padding: 0.69rem 1rem;
        font-family: inherit;
        font-size: 0.938rem;
        font-weight: 500;
        color: var(--fg-soft);
        transition: color 0.2s;
        cursor: pointer;
        user-select: none;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        background: transparent;
        border: none;
        border-radius: 0;
      }
     .nav-dropdown-toggle:hover,
     .nav-dropdown-toggle.open {
       color: var(--fg);
     }
    .nav-dropdown-toggle::after {
      content: '';
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid currentColor;
      transition: transform 0.2s;
      margin-left: 0.25rem;
    }
    .nav-dropdown-toggle.open::after {
      transform: rotate(180deg);
    }
    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      min-width: 220px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-lg);
      z-index: 1100;
      padding: 0.375rem 0;
      margin-top: 0.25rem;
    }
    .nav-dropdown-menu.show {
      display: block;
      animation: dropdownFadeIn 0.15s ease-out;
    }
    .nav-dropdown-item {
      display: flex;
      align-items: center;
      gap: 0.625rem;
      width: 100%;
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
      color: var(--fg-soft);
      text-align: left;
      background: none;
      border: none;
      cursor: pointer;
      transition: all 0.15s;
    }
    .nav-dropdown-item:hover {
      color: var(--fg);
      background: var(--surface-alt);
    }
    .nav-dropdown-item.active {
      color: var(--primary);
      font-weight: 600;
    }
    .nav-dropdown-icon {
      width: 28px;
      height: 28px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.875rem;
      background: color-mix(in srgb, var(--accent) 0.1, transparent);
      flex-shrink: 0;
    }
    /* Programs parent item — whole label (text + caret) toggles the menu */
    .nav-dropdown-toggle { gap: 0.4rem; }
    .nav-dropdown-all {
      color: var(--primary);
      font-weight: 600;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.5rem;
      margin-bottom: 0.25rem;
    }
    .mobile-nav .mobile-submenu-item.mobile-submenu-all {
      color: var(--primary);
      font-weight: 600;
    }

    @keyframes dropdownFadeIn {
      from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
      to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* Mobile nav submenus (e.g. Programs) — replaces single link with expandable section */
    .mobile-nav .mobile-submenu-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 1rem;
      font-size: 1.125rem;
      border: none;
      border-bottom: 1px solid var(--border);
      background: none;
      cursor: pointer;
      color: var(--fg-soft);
      font-weight: 500;
    }
    .mobile-nav .mobile-submenu-toggle.open {
      color: var(--fg);
      background: var(--surface-alt);
    }
    .mobile-nav .mobile-submenu-toggle::after {
      content: '';
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid currentColor;
      transition: transform 0.2s;
    }
    .mobile-nav .mobile-submenu-toggle.open::after {
      transform: rotate(180deg);
    }
    .mobile-nav .mobile-submenu-items {
      display: none;
      padding-left: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .mobile-nav .mobile-submenu-items.show {
      display: block;
    }
    .mobile-nav .mobile-submenu-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      color: var(--fg-soft);
      text-decoration: none;
      border-bottom: none;
      cursor: pointer;
      transition: all 0.15s;
    }
    .mobile-nav .mobile-submenu-item:hover {
      color: var(--fg);
      background: var(--surface-alt);
      border-radius: var(--radius-sm);
    }

    /* Tablet mobile nav dropdown — same as desktop but responsive */
    @media (max-width: 899px) {
      .nav-dropdown-menu.show {
        position: fixed;
        top: calc(72px + 0.5rem);
        right: 1rem;
        left: auto;
        transform: none;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
      }
    }

/* Bennett's Bridge fonts */
body {
  font-family: 'Source Sans 3', Arial, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
}
/* Hero layout without statistics */
.bb-home-hero .home-hero-main {
  grid-template-columns: minmax(0, 1fr);
}

.bb-home-hero .home-hero-text {
  max-width: 720px;
}
/* Gold emphasis in homepage headline */
.bb-home-hero .bb-purpose {
  color: #F5AB00;
}

/* Comfortable space below the hero buttons */
.bb-home-hero {
  padding-bottom: 3rem;
}
/* More spacious homepage hero typography */
.bb-home-hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.bb-home-hero .home-hero-text {
  max-width: 800px;
}

.bb-home-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 4.1vw, 3.8rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  margin: 1.5rem 0;
}

.bb-home-hero .home-hero-text p {
  max-width: 52ch;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2rem;
}
/* Light, readable What We Offer strip */
.home-counties-strip {
  background: #EAF5F6;
  color: #0C345F;
  padding: 2rem 0;
}

.home-counties-strip .home-counties-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.home-counties-strip .home-counties-left {
  flex: 1 1 36rem;
  min-width: 0;
}

.home-counties-strip .home-counties-title {
  color: #0C345F;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.home-counties-strip .home-county-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-counties-strip .county-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.65rem 1rem;
  background: #FFFFFF;
  border: 1px solid #087F92;
  border-radius: 4px;
  color: #0C345F;
  font-size: 1.125rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-counties-strip .county-link:hover {
  background: #0C345F;
  color: #FFFFFF;
  transform: none;
}

.home-counties-strip .home-phone-headline {
  color: #0C345F;
  font-size: 1.125rem;
}

.home-counties-strip .home-phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #0C345F;
  font-size: 1.25rem;
  text-decoration: underline;
}

.home-counties-strip a:focus-visible {
  outline: 3px solid #0C345F;
  outline-offset: 4px;
}
/* Correct conflicting What We Offer colors */
section.home-counties-strip {
  background: #EAF5F6 !important;
  color: #0C345F !important;
}

.home-counties-strip .home-counties-title,
.home-counties-strip .home-phone-headline,
.home-counties-strip a.home-phone-link {
  color: #0C345F !important;
}

.home-counties-strip a.county-link {
  background: #FFFFFF !important;
  color: #0C345F !important;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 1.125rem !important;
}

.home-counties-strip a.county-link:hover {
  background: #0C345F !important;
  color: #FFFFFF !important;
}

.home-counties-strip .home-phone-panel {
  border-left-color: #CBD8DF !important;
}
/* Correct conflicting What We Offer colors */
section.home-counties-strip {
  background: #EAF5F6 !important;
  color: #0C345F !important;
}

.home-counties-strip .home-counties-title,
.home-counties-strip .home-phone-headline,
.home-counties-strip a.home-phone-link {
  color: #0C345F !important;
}

.home-counties-strip a.county-link {
  background: #FFFFFF !important;
  color: #0C345F !important;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 1.125rem !important;
}

.home-counties-strip a.county-link:hover {
  background: #0C345F !important;
  color: #FFFFFF !important;
}

.home-counties-strip .home-phone-panel {
  border-left-color: #CBD8DF !important;
}
/* Shared header: family and donor buttons */
.bb-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.bb-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.bb-header-actions a.bb-header-apply {
  background: #087F92;
  color: #FFFFFF;
}

.bb-header-actions a.bb-header-apply:hover {
  background: #066B7B;
  color: #FFFFFF;
}

.bb-header-actions a.bb-header-donate {
  background: #F5AB00;
  color: #0C345F;
}

.bb-header-actions a.bb-header-donate:hover {
  background: #FFD06A;
  color: #0C345F;
}

.bb-header-actions a:focus-visible {
  outline: 3px solid #0C345F;
  outline-offset: 4px;
}

/* Let the header grow when its contents need more room. */
.site-header .header-inner {
  height: auto;
  min-height: 72px;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .bb-header-actions {
    width: 100%;
  }

  .bb-header-actions a {
    flex: 1;
  }
}
/* Correct stacked header logo */
.site-header .logo {
  flex-shrink: 0;
}

.site-header .logo img {
  display: block;
  width: 160px;
  height: auto;
  margin: 0;
}

.site-header .header-inner {
  height: auto;
  min-height: 130px;
}

@media (max-width: 600px) {
  .site-header .logo img {
    width: 120px;
    height: auto;
  }

  .site-header .header-inner {
    min-height: 105px;
  }
}
/* Footer logo — all pages */
.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #FFFFFF;
  border: 2px solid #0C345F;
  border-radius: 4px;
  box-sizing: border-box;
}

.site-footer .footer-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}
/* ==========================================
   BENNETT'S BRIDGE — CONTACT FORM POPUP
   Consolidated Modern Styling
   Form Region: MessageSection5
========================================== */

/* MAIN POPUP OVERLAY */
#MessageSection5 .MessageSection_Dialog1 {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: rgba(8, 29, 51, 0.72) !important;
  z-index: 99990 !important;
}

/* CENTER THE POPUP */
#MessageSection5 .MessageSection_Dialog2 {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: min(94vw, 680px) !important;
  max-width: 680px !important;
  max-height: 88dvh !important;

  background: #F4F7F8 !important;
  border: 1px solid #AFC2CE !important;
  border-radius: 8px !important;
  box-shadow: 0 25px 80px rgba(0, 20, 40, 0.38) !important;

  overflow: hidden !important;
  z-index: 99991 !important;
}

/* SCROLLABLE POPUP CONTENT */
#MessageSection5 .MessageSection_Dialog3 {
  max-height: 88dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #F4F7F8 !important;
}

/* INNER CONTAINER */
#MessageSection5 .MessageSection_DialogInner {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  background: #F4F7F8 !important;
  color: #455667 !important;
  font-family: 'Source Sans 3', Arial, sans-serif;
}

/* NAVY TITLE BAR */
#MessageSection5 .MessageSection_DialogTitle {
  background: #0C345F !important;
  color: #FFFFFF !important;
  padding: 18px 24px !important;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 21px !important;
  font-weight: 400 !important;
}

/* FORM AREA */
#MessageSection5 .MessageSection_MessageForm {
  padding: 24px !important;
  background: #F4F7F8 !important;
  color: #455667 !important;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 16px !important;
  line-height: 1.6;
}

/* TABLE LAYOUT */
#MessageSection5 .MessageSection_MessageForm table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

/* LABELS */
#MessageSection5 .MessageSection_LabelColumn {
  width: 32% !important;
  padding: 10px 15px 10px 0 !important;
  vertical-align: top !important;
  color: #0C345F !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

/* INPUT COLUMN */
#MessageSection5 .MessageSection_InputColumn {
  width: 68% !important;
  padding: 6px 0 !important;
  vertical-align: top !important;
}

/* FORM FIELDS */
#MessageSection5 .MessageSection_MessageForm input[type="text"],
#MessageSection5 .MessageSection_MessageForm input[type="email"],
#MessageSection5 .MessageSection_MessageForm input[type="tel"],
#MessageSection5 .MessageSection_MessageForm textarea,
#MessageSection5 .MessageSection_MessageForm select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding: 11px 13px !important;

  background: #FFFFFF !important;
  color: #153759 !important;

  border: 1px solid #AFC2CE !important;
  border-radius: 5px !important;

  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

/* MESSAGE BOX */
#MessageSection5 .MessageSection_MessageForm textarea {
  min-height: 110px !important;
  resize: vertical;
}

/* FOCUS */
#MessageSection5 .MessageSection_MessageForm
input:focus-visible,
#MessageSection5 .MessageSection_MessageForm
textarea:focus-visible,
#MessageSection5 .MessageSection_MessageForm
select:focus-visible {
  outline: 3px solid #087F92 !important;
  outline-offset: 2px;
}

/* CHECKBOXES */
#MessageSection5 .MessageSection_MessageForm
input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #087F92;
  vertical-align: middle;
  margin-right: 8px !important;
}

/* CHECKBOX SPACING */
#MessageSection5 .multiInputCheckbox > div {
  margin-bottom: 7px !important;
  line-height: 1.5 !important;
}

/* GOLD SUBMIT BUTTON */
#MessageSection5 .MessageSection_MessageForm
input[type="submit"],
#MessageSection5 .MessageSection_MessageForm
button[type="submit"] {
  background: #F5AB00 !important;
  color: #0C345F !important;
  border: 2px solid #F5AB00 !important;
  border-radius: 5px !important;
  padding: 13px 24px !important;
  min-height: 48px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

/* SUBMIT HOVER */
#MessageSection5 .MessageSection_MessageForm
input[type="submit"]:hover,
#MessageSection5 .MessageSection_MessageForm
button[type="submit"]:hover {
  background: #FFD06A !important;
  border-color: #FFD06A !important;
}

/* ACCESSIBLE FOCUS FOR BUTTONS */
#MessageSection5 .MessageSection_MessageForm
button:focus-visible,
#MessageSection5 .MessageSection_MessageForm
a:focus-visible {
  outline: 3px solid #087F92 !important;
  outline-offset: 3px;
}

/* MOBILE */
@media (max-width: 650px) {

  #MessageSection5 .MessageSection_Dialog2 {
    width: calc(100vw - 20px) !important;
    max-height: 92dvh !important;
  }

  #MessageSection5 .MessageSection_Dialog3 {
    max-height: 92dvh !important;
  }

  #MessageSection5 .MessageSection_MessageForm {
    padding: 18px !important;
  }

  #MessageSection5 .MessageSection_MessageForm table,
  #MessageSection5 .MessageSection_MessageForm tbody,
  #MessageSection5 .MessageSection_MessageForm tr {
    display: block !important;
    width: 100% !important;
  }

  #MessageSection5 .MessageSection_LabelColumn,
  #MessageSection5 .MessageSection_InputColumn {
    display: block !important;
    width: 100% !important;
    padding: 5px 0 !important;
  }

  #MessageSection5 .MessageSection_DialogTitle {
    padding: 15px 18px !important;
    font-size: 19px !important;
  }
}
/* ==========================================
   BENNETT'S BRIDGE — TABLET & MOBILE
========================================== */

@media (max-width: 768px) {

  #MessageSection5 .MessageSection_Dialog2 {
    width: calc(100vw - 24px) !important;
    max-width: 640px !important;
    max-height: 90dvh !important;
  }

  #MessageSection5 .MessageSection_Dialog3 {
    max-height: 90dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  #MessageSection5 .MessageSection_DialogInner {
    width: 100% !important;
    max-width: 100% !important;
  }

  #MessageSection5 .MessageSection_MessageForm table,
  #MessageSection5 .MessageSection_MessageForm tbody,
  #MessageSection5 .MessageSection_MessageForm tr {
    display: block !important;
    width: 100% !important;
  }

  #MessageSection5 .MessageSection_LabelColumn,
  #MessageSection5 .MessageSection_InputColumn {
    display: block !important;
    width: 100% !important;
    padding: 6px 0 !important;
  }

  #MessageSection5 .MessageSection_MessageForm {
    padding: 18px !important;
  }

  #MessageSection5 .MessageSection_MessageForm
  input[type="text"],
  #MessageSection5 .MessageSection_MessageForm
  input[type="email"],
  #MessageSection5 .MessageSection_MessageForm
  input[type="tel"],
  #MessageSection5 .MessageSection_MessageForm textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {

  #MessageSection5 .MessageSection_Dialog2 {
    width: calc(100vw - 16px) !important;
    max-height: 92dvh !important;
  }

  #MessageSection5 .MessageSection_Dialog3 {
    max-height: 92dvh !important;
  }

  #MessageSection5 .MessageSection_DialogTitle {
    padding: 14px 18px !important;
    font-size: 19px !important;
  }

  #MessageSection5 .MessageSection_MessageForm {
    padding: 14px !important;
  }

  #MessageSection5 .multiInputCheckbox > div {
    margin-bottom: 9px !important;
  }
}
/* ═══════ Bennett's Bridge brand additions ═══════ */
.logo img { height: 52px; width: auto; }
@media (max-width: 480px) { .logo img { height: 42px; } }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 44px; width: auto; }
