/* ==========================================================================
   FIREWALL & BASE WRAPPER STYLES
   ========================================================================== */
/* The Firewall: Resets inherited junk from the old template wrappers */
.site-header.desktop-header {
  position: relative;
  width: 100%;
  background-color: #ffffff;  
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 9999; /* Stays above old page content */
  font-family: 'Titillium Web';
}

/* Renamed from .header-container to escape legacy CSS */
.site-header .site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   AREA 1: COURTESY ROW (Namespaced)
   ========================================================================== */
.site-header .courtesy-row {
  background: #f2f2f2;
  padding: 8px 0;
  font-family: 'Titillium Web';
}

.site-header .courtesy-row .site-header-inner {
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

/* Courtesy Native Menu - High specificity to beat global Hubspot CSS */
.site-header .courtesy-menu-wrapper .hs-menu-wrapper > ul {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .courtesy-menu-wrapper .hs-menu-wrapper > ul > li {
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .courtesy-menu-wrapper .hs-menu-wrapper a {
  text-decoration: none;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
  background: transparent !important; /* Overrides old button styles */
  font-family: 'Titillium Web';
  max-width: unset;
}

.site-header .courtesy-menu-wrapper .hs-menu-wrapper a:hover {
  color: #A21A15;
}


.site-header .courtesy-menu-wrapper .hs-menu-wrapper > ul > li {
  position: relative; 
}

/* The hidden dropdown wrapper */
.site-header .courtesy-menu-wrapper .hs-menu-wrapper ul.hs-menu-children-wrapper {
  position: absolute;
  top: 100%;
  right: 0; /* Aligns the dropdown to the right edge so it doesn't spill off-screen */
  left: auto;
  background-color: #f2f2f2 !important;
  background: #f2f2f2;
  min-width: 220px;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  border-bottom: 2px solid #A21A15;
  padding: 10px 12px !important;
  margin: 0 !important;
  z-index: 9999;
  
  /* Smooth fade */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

/* Show the dropdown on hover */
.site-header .courtesy-menu-wrapper .hs-menu-wrapper > ul > li:hover > ul.hs-menu-children-wrapper {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

/* Child Link Styling */
.site-header .courtesy-menu-wrapper .hs-menu-wrapper ul.hs-menu-children-wrapper > li > a {
  display: block;
  padding: 10px 20px;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  text-transform: none; /* In case the emergency number forced uppercase */
}


.site-header .courtesy-menu-wrapper .hs-menu-wrapper.hs-menu-flow-horizontal > ul li a {
	display: block;
}

/* Child Link Hover */
.site-header .courtesy-menu-wrapper .hs-menu-wrapper ul.hs-menu-children-wrapper > li > a:hover {
  background-color: #f9f9f9;
  color: #A21A15;
}
/* fix the default nowrap/ellipsis dealyo */
.site-header .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
    display: block;
    white-space: normal;
    width: 140px;
    overflow: visible;
    text-overflow: inherit;
}


/* Emergency Number Override */
.site-header .courtesy-menu-wrapper .hs-menu-wrapper > ul > li:first-child > a {
  color: #A21A15;
  font-weight: 700;
  text-transform: uppercase;
}



/* Container styling for the custom search layout */
.courtesy-custom-search-form {
  display: flex;
  align-items: center;
  background: transparent; 
}

/* Button & Icon Styling */
.courtesy-custom-search-form .search-submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c2115; /* Match the Messer Maroon */
}

/* The vertical pipe separator */
.courtesy-custom-search-form .search-divider {
  height: 20px;
  width: 1px;
  padding-left: 1px;
  background-color: #626262;
  margin-right: 10px;
  display: inline-block;
}

/* Strip borders and backgrounds from the input field */
.courtesy-custom-search-form .hs-search-field__input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 0;
  box-shadow: none;
  font-size: 16px; 
  width: auto; 
}

.courtesy-custom-search-form .hs-search-field__input::placeholder {
  color: #888888;
  font-weight: normal;
}

.custom-search-results {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%; /* Sits directly below the search bar */
  right: 0;  /* Aligns with the right edge of the search bar */
  width: 250px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  padding: 0;
  margin: 5px 0 0 0;
  z-index: 9999; /* Keeps it on top of other elements */
  border-radius: 4px;
}

/* Add a hover state for the links so it feels interactive */
.custom-search-results a:hover {
  background-color: #f5f5f5;
  color: #8c2115 !important;
}

/* Hardcoded Search Bar ... previous.
   will remove once we know tings are good

.site-header .hs-search-field {
  display: flex;
  align-items: center;
  background-color: #f4f4f4;
  padding: 5px 10px;
  border-radius: 2px;
  margin: 0;
}

.site-header .hs-search-field__input {
  border: none;
  background: transparent;
  padding: 5px;
  font-size: 13px;
  color: #000;
  outline: none;
  width: 150px;
  box-shadow: none; 
}

.site-header .hs-search-field__input::placeholder {
  color: #888;
}

.site-header .search-submit-btn {
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  box-shadow: none;
}

.site-header .search-submit-btn:hover {
  color: #A21A15;
}

.site-header .hs-menu-wrapper.hs-menu-flow-horizontal > ul li a {
    display: inline-block;
    padding: 8px 0px;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    text-decoration: none;
}
*/
/* ==========================================================================
   AREA 2: MAIN NAVIGATION ROW (Top Level)
   ========================================================================== */
.site-header .main-nav-row {
  position: relative; /* Acts as the anchor for the massive flyouts */
  background-color: #ffffff;
  padding: 15px 0;
  font-family: 'Titillium Web';
}

.site-header .main-nav-row .site-header-inner {
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Logo */
.site-header .site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Main Menu List Wrapper */
.site-header .main-menu-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center; 
}

.site-header .main-menu-list {
  display: flex;
  align-items: center;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 40px;
}

/* Crucial: static positioning allows flyouts to be full-width to the row */
.site-header .main-menu-item {
  position: static; 
}

/* Top Level Toggle Buttons */
.site-header .main-menu-toggle {
  background: transparent !important;
  border: none !important;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Titillium Web';
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px; /* Space between text and caret */
  transition: color 0.2s ease;
  box-shadow: none !important;
}

.site-header .main-menu-toggle:hover,
.site-header .main-menu-toggle[aria-expanded="true"] {
  color: #A21A15;
}
{# not in the design...
/* CSS Caret Arrow */
.site-header .main-menu-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 ease;
  margin-top: 2px;
}

.site-header .main-menu-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg); /* Flips arrow up when open */
}
#}
/* CTA Wrapper */
.site-header .header-cta {
  flex-shrink: 0;
}

/* ==========================================================================
   THE FLYOUT CONTAINER (Base Hidden State)
   ========================================================================== */
.site-header .flyout-container {
  position: absolute;
  top: 100%; 
  left: 0;
  right: 0; 
  background: #ffffff;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.08);
  /*border-top: 1px solid #eaeaea;*/
  border-bottom: 2px solid #e32b26;
  z-index: 100;
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  /*transform: translateY(10px);*/
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
  
  /* Inner spacing for the content */
  padding: 40px 0; 
  
  font-family: 'Titillium Web';
}

/* Reveal flyout when JS flips aria-expanded to true */
.site-header .main-menu-toggle[aria-expanded="true"] + .flyout-container {
  opacity: 1;
  visibility: visible;
  /*transform: translateY(0);*/
}

/* ==========================================================================
/* FLYOUT FLAVORS */

/* ==========================================================================
   FLAVOR A: STANDARD DROPDOWN
   ========================================================================== */
/* Re-relativize standard dropdowns so they don't stretch full screen */
.site-header .main-menu-item.has-standard-flyout {
  position: relative; 
}

.site-header .has-standard-flyout .flyout-container {
  width: 260px;
  right: auto;
  left: -20px;
  padding: 15px 0;
  border-radius: 0 0 2px 2px;
}

.site-header .standard-dropdown-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.site-header .standard-dropdown-list a {
  display: block;
  padding: 10px 20px;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.site-header .standard-dropdown-list a:hover {
  background-color: #f9f9f9;
  color: #A21A15;
  /*padding-left: 25px; /* Subtle nudge right on hover */
}

/* ==========================================================================
   GLOBAL MEGA WRAPPERS (For Flavors B, C, D)
   ========================================================================== */
/* Constrains the wide flyouts to align with the logo/CTA */
.site-header .mega-menu-inner,
.site-header .feature-cards-inner,
.site-header .tabbed-canvas-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Common "View All" Link Styling */
.site-header .view-all-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 400;
  color: #A21A15;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.site-header .view-all-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FLAVOR B: 3-COLUMN MEGAMENU
   ========================================================================== */
.site-header .mega-columns-wrapper {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  grid-template-columns: 1fr 1fr 2fr;
  gap: 40px;
}

.site-header .mega-column-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 8px;
}

.site-header .mega-column-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .mega-column-list a {
  display: block;
  padding: 6px 0;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-header .mega-column-list a:hover {
  color: #A21A15;
  /*transform: translateX(5px);*/
}
/* weird fixes */
/* 1. Bold the links in the first column */
.site-header .mega-column:first-child .mega-column-list a {
  font-weight: 700;
}

/* 2. Remove horizontal rules under headers in columns 2 and 3 */
.site-header .mega-column:not(:first-child) .mega-column-title {
  border-bottom: none;
  padding-bottom: 0;
}

/* 3. Add a vertical 4px divider between columns 2 and 3 */
.site-header .mega-column:nth-child(3) {
  border-left: 4px solid #F7F7F7;
  padding-left: 60px; /* Pushes the text away from the new border */
}



/* ==========================================================================
   FLAVOR C: FEATURE CARDS
   ========================================================================== */
.site-header .feature-cards-inner {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 75% Cards, 25% Promo text */
  gap: 60px;
}

.site-header .feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.site-header .feature-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fdfdfd;

  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header .feature-card-link:hover {
 /* transform: translateY(-5px); */
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.site-header .feature-card-link:hover .feature-card-cta {
  text-decoration: underline; 
}
.site-header .feature-card-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9; /* Keeps images uniform */
  object-fit: cover;
}

.site-header .feature-card-content {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.site-header .feature-card-title {
  font-weight: 700;
  font-size: 16px;
  color: #000;
  margin-bottom: 8px;
}

.site-header .feature-card-desc {
  font-size: 13px;
  color: #000;
  line-height: 1.5;
  margin: 0 0 15px 0;
  flex-grow: 1; /* Pushes CTA to the bottom */
}

.site-header .feature-card-cta {
  font-size: 16px;
  font-weight: 700;
  color: #A21A15;
}

.site-header .feature-promo-column {
  border-left: 1px solid #eaeaea;
  padding-left: 40px;
}

.site-header .feature-promo-text p {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  margin-top: 0;
}
.feature-column-stacked {
display: flex; flex-direction: column; gap: 30px;
}
.feature-promo-column a.view-all-link {
  font-weight: bold;
  text-decoration: none;
}
.feature-promo-column a.view-all-link:hover {
  font-weight: bold;
  text-decoration: underline;
}

/* ==========================================================================
   FLAVOR C: STACKED CARDS (Horizontal Layout)
   ========================================================================== */
/* Set up the column itself to stack the cards vertically with a gap */
.site-header .feature-column-stacked {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Override the default vertical layout to make them side-by-side */
.site-header .stacked-card .feature-card-link {
  flex-direction: row; 
}

/* Constrain the image to the left (adjust the 40% to match your mockup) */
.site-header .stacked-card .feature-card-image-wrap {
  width: 45%;
  flex-shrink: 0;
}

/* Ensure the image stretches properly to fill the new horizontal box */
.site-header .stacked-card .feature-card-image-wrap img {
  height: 100%;
}

/* Vertically center the text next to the image */
.site-header .stacked-card .feature-card-content {
  justify-content: center; 
  padding: 20px;
}

/* ==========================================================================
   FLAVOR D: TABBED CANVAS
   ========================================================================== */
.site-header .tabbed-canvas-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
}

.site-header .tabbed-nav-column {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eaeaea;
  padding-right: 20px;
}

/* Button Layout - Merged base styles and flexbox alignments */
.site-header .tab-toggle-btn {
  display: flex;
  align-items: center;
  /*justify-content: space-between; /* Pushes the plus sign to the right */
  background: transparent !important;
  border: none !important;
  text-align: left;
  padding: 6px 15px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Titillium Web';
  color: #000;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  box-shadow: none !important;
}

.site-header .tab-toggle-btn:hover,
.site-header .tab-toggle-btn.is-active {
  background-color: #F7F7F7 !important; 
  color: #A21A15; 
}
.site-header .tab-toggle-btn .tab-label-text a { color: inherit; text-decoration: none; }
/*
.site-header .tab-toggle-btn.is-active {
  background-color: #e32b26 !important;
  color: #ffffff;
}
*/
/* The Red Plus Sign */
.site-header .tab-plus {
  color: #A21A15;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease;
  padding-left: 10px;
}
/*
.site-header .tab-toggle-btn.is-active .tab-plus {
  color: #ffffff;
}
*/
.tabbed-view-all { padding-left: 15px; }

/* Panels Area */
.site-header .tabbed-panels-column {
  min-height: 300px; /* Prevents height jumping when switching tabs */
}

.site-header .tab-panel {
  display: none; 
 /* animation: fadeIn 0.3s ease; */
}

.site-header .tab-panel.is-active {
  display: block;
}

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

.site-header .tab-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Add 4px #F7F7F7 borders between grid columns (Columns 2 & 3) */
.site-header .tab-panel-grid > div:not(:first-child) {
  border-left: 4px solid #F7F7F7;
  padding-left: 40px; 
}

/* Consolidated Header - Removed bottom borders natively */
.site-header .tab-sub-head {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.site-header .tab-sub-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .tab-sub-list a {
  display: block;
  padding: 6px 0;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-header .tab-sub-list a:hover {
  color: #A21A15;
  /*transform: translateX(5px);*/
}

.site-header .tab-promo-column {
  padding: 0 25px 25px;
}
.site-header .tab-promo-column p {
  font-size: 16px;
  padding: 15px 0 0;
  margin: 0;
}
.site-header .tab-promo-column a {
  font-weight: bold;
  text-decoration: none;
}
.site-header .tab-promo-column a:hover {
  font-weight: bold;
  text-decoration: underline;
}

/* CTA Header Override */
.site-header .header-cta .mainNav-Contact {
  background: #E22822;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 15px;
  text-align: center;
  display: inline-block;
  font-family: 'Titillium Web;
  font-weight: 700;
}


/* ==========================================================================
   DESKTOP / MOBILE SWITCHING
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header.desktop-header { display: none !important; }
}
@media (min-width: 1025px) {
  .site-header.mobile-header { display: none !important; }
}




/* ==========================================================================
 * 
 * 
   MOBILE HEADER STYLES
 *
 *
   ========================================================================== */
.site-header.mobile-header {
  position: relative;
  width: 100%;
  z-index: 9999;
}

/* Top Bar */
.mobile-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #ffffff;
/*  border-bottom: 2px solid #e32b26; */
  position: relative;
  z-index: 10000; /* Keeps bar above the overlay */
}

/* Hamburger Icon (Animates to X) */
.mobile-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger-box {
  width: 24px;
  height: 20px;
  display: inline-block;
  position: relative;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: #000;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; right: 0; }
.hamburger-inner::after { content: ""; bottom: -8px; right: 0; }

/* Hamburger Active State (The X) */
.mobile-hamburger[aria-expanded="true"] .hamburger-inner { background: transparent; }
.mobile-hamburger[aria-expanded="true"] .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
.mobile-hamburger[aria-expanded="true"] .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

/* The Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 9998;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  padding-top: 80px; /* Space for the top bar */
  padding-bottom: 40px;
}
.mobile-header.is-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Make the inner overlay a flex column to pin the CTA */
.site-header .mobile-overlay-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px); /* 100% height minus top bar and padding */
  padding: 20px;
}

/* Push the CTA block to the very bottom */
.site-header .mobile-cta-block {
  margin-top: auto; 
  padding-top: 30px;
  text-align: center; 
}
.site-header .mobile-cta-block .mainNav-Contact { 
  display: block; 
  background: #E22822; 
  color: #fff; 
  padding: 15px; 
  border-radius: 4px; 
  text-decoration: none; 
  font-weight: 700; 
}

/* Exposed Feature Cards Styling */
.site-header .mobile-exposed-features {
  margin-top: 30px;
}
.site-header .mobile-feature-section-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

/* Search Block */
.mobile-search-block .hs-search-field {
  display: flex;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 5px;
  margin-bottom: 30px;
}
.mobile-search-block input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 10px;
  outline: none;
  font-size: 16px; /* Prevents iOS auto-zoom */
}
.mobile-search-block button.search-submit-btn {
  background: transparent;
  border: none;
  color: #A21A15;
  padding: 0 15px;
}

/* Level 1 Accordions */
.mobile-accordion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-accordion-item {
  border-bottom: 1px solid #A21A15;
}
.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  text-align: left;
}
.mobile-accordion-toggle[aria-expanded="true"] { color: #A21A15; }

/* CSS Grid Smooth Accordion Trick */
.mobile-accordion-content, .mobile-sub-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.mobile-accordion-toggle[aria-expanded="true"] + .mobile-accordion-content,
.mobile-sub-toggle[aria-expanded="true"] + .mobile-sub-content {
  grid-template-rows: 1fr;
}
.mobile-accordion-inner, .mobile-sub-inner {
  overflow: hidden;
}

/* Internal Links */
.mobile-link-list { list-style: none; padding: 0 0 20px 0; margin: 0; }
.mobile-link-list li a { display: block; padding: 10px 0; color: #000; text-decoration: none; font-size: 16px; }
.mobile-section-title { font-size: 16px; font-weight: 700; color: #111; margin-top: 15px; padding-bottom: 5px; }
.mobile-view-all { color: #A21A15 !important; font-size: 16px; font-weight: 400; text-decoration: none; margin-top: 10px; }

/* Feature Cards (Simplified for mobile) */
.mobile-feature-list { padding-bottom: 20px; }
.mobile-feature-card { display: block; padding: 15px; margin-bottom: 10px; border-radius: 4px; text-decoration: none; }
.mobile-feature-title { display: block; font-weight: 700; color: #000; margin-bottom: 5px; }
.mobile-feature-cta { font-size: 16px; color: #A21A15; font-weight: 400; }

/* Nested Tabbed Canvas */
.site-header .mobile-nested-accordion { list-style: none; padding: 20px 0; margin: 0; }

/* Direct Links (No Children) */
.site-header .mobile-direct-link {
  width: 100%; display: block; padding: 15px; background: #ffffff; border: 1px solid #eaeaea; 
  font-size: 16px; font-weight: 600; color: #000; margin-bottom: 10px; border-radius: 4px; text-decoration: none;
}

/* Split Toggle Container */
.site-header .mobile-split-controls {
  display: flex;
  flex-wrap: wrap; /* Allows the content to drop down below the button */
  background: #ffffff; 
  border: 1px solid #eaeaea; 
  margin-bottom: 10px; 
  border-radius: 4px; 
  overflow: hidden; /* Keeps the rounded corners clean */
}

/* The Link Half (80% Width) */
.site-header .mobile-split-link {
  flex-grow: 1;
  padding: 15px;
  font-size: 16px; 
  font-weight: 600; 
  color: #000; 
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* The Toggle Half (Massive Touch Target) */
.site-header .mobile-sub-toggle {
  width: 55px; 
  background: #f9f9f9; 
  border: none;
  border-left: 1px solid #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Hover/Active States */
.site-header .mobile-sub-toggle[aria-expanded="true"] { background: #A21A15; border-color: #A21A15; }
.site-header .mobile-plus svg { transition: transform 0.3s ease; color: #A21A15; }
.site-header .mobile-sub-toggle[aria-expanded="true"] .mobile-plus svg { transform: rotate(45deg); color: #fff; }

/* The Expanding Sub-Content */
.site-header .mobile-sub-content {
  width: 100%; /* Forces the content to take up the full row below the link/toggle */
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  background: #fcfcfc;
}

/* Notice the general sibling combinator (~) here so the button can talk to the content! */
.site-header .mobile-sub-toggle[aria-expanded="true"] ~ .mobile-sub-content {
  grid-template-rows: 1fr;
}

.site-header .mobile-sub-inner { padding: 0px 15px; overflow: hidden; border-top: 1px solid #eaeaea; }
.site-header .mobile-sub-head { display: block; font-size: 16px; font-weight: 700; color: #111; margin-top: 20px; padding-bottom: 5px; }
.site-header .mobile-sub-link-list { list-style: none; padding: 0; margin: 0; }
.site-header .mobile-sub-link-list li a { display: block; padding: 10px 0; color: #000; text-decoration: none; font-size: 16px; }
/* Courtesy Menu Tweaks */
.courtesy-accordion .hs-menu-wrapper > ul { list-style: none; padding: 0 0 20px 0; margin: 0; }
.courtesy-accordion .hs-menu-wrapper > ul > li > a { display: block; padding: 10px 0; color: #000; text-decoration: none; font-size: 16px; }

/* CTA Block */
.mobile-cta-block { margin-top: 20px; text-align: center; }
.mobile-cta-block .mainNav-Contact { display: block; background: #E22822; color: #fff; padding: 15px; border-radius: 4px; text-decoration: none; font-weight: 700; }


/* Snazzy Pill Search Block */
.site-header .mobile-search-block {
  margin-bottom: 20px; 
}

.site-header .mobile-search-block .mobile-custom-search {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 50px;
  padding: 2px 15px; 
  margin: 0; 
  border: 1px solid #eaeaea;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.site-header .mobile-search-block .mobile-custom-search:focus-within {
  border-color: #e32b26;
}

/* Force the text input to take all available space */
.site-header .mobile-search-block .mobile-search-input {
  flex-grow: 1;
  width: 100%; 
  border: none;
  background: transparent;
  padding: 10px 5px; 
  margin: 0;
  outline: none;
  font-size: 16px; 
  color: #000;
  box-shadow: none !important;
}

/* HubSpot sometimes gives hidden inputs physical space. Kill it. */
.site-header .mobile-search-block input[type="hidden"] {
  display: none !important;
}
/*
.site-header .mobile-search-block button {
  background: transparent;
  border: none;
  color: #e32b26;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0; 
}
*/

/* ==========================================================================
   MOBILE COURTESY / CORPORATE LINKS
   ========================================================================== */
/*
.mobile-courtesy-block {
  border-bottom: 1px solid #A21A15;
}
*/
.mobile-courtesy-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.mobile-courtesy-toggle[aria-expanded="true"] {
  color: #A21A15;
}

/* The actual courtesy menu lives inside the existing accordion content */
.mobile-courtesy-menu .hs-menu-wrapper > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 15px;
}

/* All courtesy links */
.mobile-courtesy-menu .hs-menu-wrapper a {
  display: block;
  padding: 10px 0;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}

/* Courtesy links with children */
.mobile-courtesy-menu .hs-menu-wrapper ul.hs-menu-children-wrapper {
  list-style: none;
  margin: 0;
  padding: 0 0 0 15px;
}

/* Nested courtesy links */
.mobile-courtesy-menu .hs-menu-wrapper ul.hs-menu-children-wrapper a {
  font-size: 15px;
  padding: 8px 0;
}

/* Courtesy menu hover */
.mobile-courtesy-menu .hs-menu-wrapper a:hover,
.mobile-courtesy-menu .hs-menu-wrapper a:focus {
  color: #A21A15;
  text-decoration: none;
}

/* COURTESY MENU ACCORDION */
.mobile-courtesy-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.mobile-courtesy-toggle[aria-expanded="true"] + .mobile-courtesy-content {
  grid-template-rows: 1fr;
}

.mobile-courtesy-content .mobile-accordion-inner {
  overflow: hidden;
}
/* Courtesy menu child accordions */

.mobile-courtesy-menu .hs-item-has-children {
  position: relative;
}

.mobile-courtesy-menu .hs-menu-children-wrapper {
  display: none;
}

.mobile-courtesy-menu .hs-item-has-children.is-open > .hs-menu-children-wrapper {
  display: block;
}

.mobile-courtesy-menu .mobile-courtesy-sub-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-courtesy-menu .mobile-courtesy-sub-toggle::before {
  content: '+';
  font-size: 24px;
  line-height: 1;
}

.mobile-courtesy-menu .hs-item-has-children.is-open > .mobile-courtesy-sub-toggle::before {
  content: '−';
}
.header-container-wrapper .mobile-courtesy-menu .hs-menu-wrapper.hs-menu-flow-horizontal {
  display: block;
}

.mobile-courtesy-menu .hs-menu-item.hs-menu-depth-1.hs-item-has-children.is-open ul { display: block!important; }
