/* Overrides on top of the mirrored GoSite theme. Linked from every page by tools/mirror.py. */

/* One corner radius for every rounded box and button. (Pills like the slider stay pills.) */
:root { --mr-r: 10px; }
.theme-button, .button-style, .mr-btn, .widget-form input, .widget-form textarea, .widget-form .iti,
.mr-modal-box, .mr-flag-menu, .mr-lightbox img { border-radius: var(--mr-r) !important; }

/* GoSite's reCAPTCHA key is bound to their domains; FormSubmit/Web3Forms do their own spam filtering. */
.recaptcha-target { display: none !important; }

/* "Powered by GoSite" footer badge — site is no longer on GoSite. */
.widget:has(a[href*="gosite.com"]) { display: none !important; }

/* Mobile/tablet: the logo header overlays the first section; push that section's content below it.
   --mr-header-h is measured by site.js (0 when the overlay header isn't showing). */
.mr-hero > .grid-content { padding-top: var(--mr-header-h, 0px); }

/* Footer map is sized as a % of width, which leaves a ~70px sliver on phones. */
@media (max-width: 1024px) {
  .map-widget .widget-preserving-ratio-outer { padding-bottom: 0 !important; height: 360px; }
}

/* Footer: single left-aligned line built by site.js */
.mr-footer-line { width: 100%; max-width: 1164px; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; text-align: left;
  font: 13px/1.5 Manrope, sans-serif; color: #fff; }
.mr-footer-line a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.mr-footer-line a:hover { opacity: .8; }
.mr-footer-line .mr-footer-fb { display: inline-flex; text-decoration: none; order: 99; margin-left: auto; } /* solo, bottom right */

/* Language switcher: a flag "tab" tacked onto the bottom of the header; click for a dropdown.
   GTranslate's own links live in a hidden .mr-lang (site.js). */
.mr-flag-tab { position: relative; z-index: 50; font-family: Manrope, sans-serif; }
.mr-flag-btn { display: flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.mr-flag-btn img { width: 28px; height: 21px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.mr-flag-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #73213b; }
.mr-flag-btn[aria-expanded="true"] .mr-flag-caret { transform: rotate(180deg); }
.mr-flag-menu { position: absolute; top: calc(100% + 6px); right: 0; margin: 0; padding: 6px 0; list-style: none; background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); min-width: 140px; }
.mr-flag-menu li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 14px; color: #222; cursor: pointer; }
.mr-flag-menu li img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.mr-flag-menu li:hover, .mr-flag-menu li:focus { background: #f4eef0; outline: none; }
.mr-flag-menu li[aria-selected="true"] { font-weight: 700; color: #73213b; }
.mr-flag-tab--mobile { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* CTAs: phone number is primary, chat secondary. Phone numbers never wrap. */
.mr-phone-cta, a[href^="tel:"].theme-button, a[href^="tel:"].theme-button span { white-space: nowrap !important; }
.buttonWidget:has(.mr-phone-cta) { width: auto !important; min-width: max-content; }
.mr-header-ctas { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; }
#header-widget-1761842589315-mobile .mr-header-ctas { flex-wrap: wrap; justify-content: center; }
.mr-header-ctas a { white-space: nowrap !important; }
.mr-chat-secondary { background-color: #fff !important; color: #73213b !important; box-shadow: inset 0 0 0 2px rgba(115,33,59,.5); } /* outline at half strength */
.mr-chat-secondary:hover { background-color: #f4eef0 !important; }
/* hero secondary (white button) uses the brand burgundy text instead of green */
.theme-button.gs-chat-btn { color: #73213b !important; }

/* Footer element is taller than its green row; paint it green so no white strip shows underneath. */
.page-footer { background-color: rgb(0, 107, 70); }

/* Hero CTA pair stays side by side on phones (secondary left, primary right). */
@media (max-width: 767px) {
  .mr-hero-ctas { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center; gap: 10px; }
  .mr-hero-ctas > .widget { width: auto !important; margin: 0 !important; flex: 0 0 auto; }
  .mr-hero-ctas .theme-button { padding: 14px 18px !important; }
}

/* ---------- Header: compact, rounded, pinned on scroll ---------- */
.main-header-wrapper { position: fixed !important; transition: top .35s ease, width .35s ease; }
.header-row-main { border-radius: var(--mr-r); box-shadow: 0 6px 24px rgba(0,0,0,.10); transition: box-shadow .35s ease, border-radius .35s ease; }
.header-row-main .header-row-space { height: 0 !important; }
.header-row-main .flex-header { width: 100% !important; max-width: 1164px; margin: 0 auto !important; padding: 12px 20px !important; box-sizing: border-box; }
.main-header-wrapper .theme-logo, .main-header-wrapper .theme-logo a { width: auto !important; height: auto !important; }
.main-header-wrapper .theme-logo img { height: 62px !important; max-height: none !important; width: auto !important; transition: height .35s ease; }
.main-header-wrapper .header-widget-container .header-widget:first-child { margin-right: 32px; }
/* scrolled: slide up to the top edge, tighten, deepen shadow */
html.mr-stuck .main-header-wrapper { top: var(--mr-stuck-top, -32px); left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; transform: none !important; margin: 0 !important; padding: 0 !important; }
html.mr-stuck .header-row-main { border-radius: 0; width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
html.mr-stuck .header-row-main { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
html.mr-stuck .main-header-wrapper .theme-logo img { height: 46px !important; }
html.mr-stuck .header-row-main .flex-header { padding-top: 8px !important; padding-bottom: 8px !important; }
/* phones: the logo bar pins too */
.mobile-menu.is-absolute { position: fixed !important; top: 0; left: 0; right: 0; transition: box-shadow .35s ease; }
html.mr-stuck .mobile-menu.is-absolute { box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* ---------- Rounded containers ---------- */
.mr-round-l { border-top-left-radius: var(--mr-r) !important; border-bottom-left-radius: var(--mr-r) !important; }
.mr-round-r { border-top-right-radius: var(--mr-r) !important; border-bottom-right-radius: var(--mr-r) !important; }
.mr-round-t { border-top-left-radius: var(--mr-r) !important; border-top-right-radius: var(--mr-r) !important; }
.mr-round-b { border-bottom-left-radius: var(--mr-r) !important; border-bottom-right-radius: var(--mr-r) !important; }
.mr-round-l, .mr-round-r, .mr-round-t, .mr-round-b { overflow: hidden; }
.mr-card, .mr-photo, .mr-gallery .mr-photo img { border-radius: var(--mr-r); }
/* Floating cards (marked by site.js) get the same lift as the hero buttons and badges.
   drop-shadow follows the painted columns, so a row's transparent gaps cast nothing. */
.mr-card-row { filter: drop-shadow(0 1px 2px rgba(0,0,0,.08)) drop-shadow(0 4px 10px rgba(0,0,0,.10)); } /* quieter than the hero's: on white */
.map-widget iframe { border-radius: 0; }

/* ---------- Home hero: more punch + "The State's Best" badges (hero.js) ---------- */
.mr-hero .parallax-bg img { filter: saturate(1.35) contrast(1.12) brightness(1.06); }
.mr-hero .background-overlay {
  background: linear-gradient(180deg, rgba(25,10,18,.55) 0%, rgba(25,10,18,.22) 38%, rgba(115,33,59,.30) 72%, rgba(232,150,52,.38) 100%) !important;
}
/* One shadow language for everything floating on the photo: a tight edge for legibility + a soft lift. */
.mr-hero {
  --mr-text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 12px rgba(0,0,0,.45);
  --mr-lift: 0 1px 2px rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.30);
}
.mr-hero h1, .mr-hero p, .mr-hero p span { text-shadow: var(--mr-text-shadow); }
.mr-hero p span { font-weight: 600; } /* tagline: thin type over a busy photo was hard to read */
.mr-hero p { text-wrap: balance; } /* no lone word on the second line */
.mr-eyebrow { display: table; margin: 0 auto 16px; font: 800 13px/1 Manrope, sans-serif; letter-spacing: 3px; text-transform: uppercase;
  color: #f2c14e; background: rgba(20,10,15,.62); padding: 9px 16px; border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6); box-shadow: var(--mr-lift); }
.mr-hero .theme-button { box-shadow: var(--mr-lift) !important; }
.mr-hero .theme-button span { text-shadow: none; }

.mr-badge { width: 150px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)) drop-shadow(0 6px 18px rgba(0,0,0,.30)); }
.mr-badge img { width: 100%; height: auto; display: block; }

/* wide screens: badges flank the headline */
@media (min-width: 1100px) {
  .mr-hero--home .grid-content { position: relative; }
  .mr-badges { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; padding: 0 8px; }
  /* keep the headline clear of the badges */
  .mr-hero--home .grid-column { padding-left: 190px !important; padding-right: 190px !important; box-sizing: border-box; }
  .mr-badge--left { transform: rotate(-4deg); }
  .mr-badge--right { transform: rotate(4deg); }
}
/* narrower: a row of smaller badges above the eyebrow */
@media (max-width: 1099px) {
  .mr-badges { display: flex; justify-content: center; gap: 14px; margin: 0 0 14px; }
  .mr-badge { width: 104px; }
  .mr-eyebrow { font-size: 11px; letter-spacing: 2px; }
  .mr-eyebrow-more { display: none; }
}

/* Hero CTA pair: centered with a consistent gap at every width */
.mr-hero-ctas { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center; gap: 14px; }
.mr-hero-ctas > .widget { width: auto !important; margin: 0 !important; flex: 0 0 auto; }

/* Pinned header: buttons scale down with the logo */
.mr-header-ctas a { transition: padding .35s ease, font-size .35s ease; }
html.mr-stuck #header-widget-1761842589315 .mr-header-ctas a { padding: 9px 16px !important; font-size: 12px !important; }
html.mr-stuck .mr-flag-btn img { width: 24px; height: 18px; }

/* Header priority as space runs out (site.js measures): drop the flag picker, then MESSAGE; phone stays. */
html.mr-hide-flag .mr-flag-tab--desktop { display: none; }
html.mr-hide-msg #header-widget-1761842589315 .mr-chat-secondary { display: none; }

/* Breathing room between the hero tagline and its buttons */
.mr-hero-ctas { margin-top: 32px !important; }
@media (max-width: 767px) { .mr-hero-ctas { margin-top: 20px !important; } }
