body {
  background-color: #ffffff !important;
  color: #0A2A43 !important;
}

/* Missing Tailwind utilities not compiled into style.css */
.mb-10 { margin-bottom: 2.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-14 { padding-top: 3.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-28 { padding-bottom: 7rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
@media (min-width: 640px) {
  .sm\:pt-14 { padding-top: 3.5rem; }
  .sm\:pt-16 { padding-top: 4rem; }
  .sm\:pb-28 { padding-bottom: 7rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
}

section:not(.contact-bg-section) {
  background-color: #ffffff !important;
}

#about {
  background-color: #F8FAFC !important;
}

#services {
  background-color: #F8FAFC !important;
}

#contact {
  background-color: #ffffff !important;
}

/* Default button styling - only for buttons without inline bg color */
button {
  background-color: #1E73BE !important;
  color: #ffffff !important;
}

button:hover {
  background-color: #1560a0 !important;
}

/* Override for buttons with orange background class */
button[class*="bg-[#F97316]"],
button[style*="bg-[#F97316]"] {
  background-color: #F97316 !important;
  color: #ffffff !important;
}

button[class*="bg-[#F97316]"]:hover,
button[style*="bg-[#F97316]"]:hover {
  background-color: #ea6317 !important;
}

/* Social media icons hover effect */
.social-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-icon:hover {
  color: #F97316 !important;
  transform: scale(1.15) !important;
}

/* Hero section glassmorphism */
.hero-content {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}



/* Specific orange button overrides */
a:has(> button:contains("Get Your Free Quote")) button,
button:contains("Get Your Free Quote") {
  background-color: #F97316 !important;
}

a:has(> button:contains("Get Your Free Quote")) button:hover,
button:contains("Get Your Free Quote"):hover {
  background-color: #ea6317 !important;
}

/* Trust strip centered dividers — 50% height in middle with fade */
.trust-divider {
  position: relative;
  padding-left: 0;
}

.trust-divider::before {
  display: none;
}

/* Anchor hero content directly above the trust strip overlay */
.hero-info-position {
  bottom: 10rem;
}

@media (min-width: 640px) {
  .hero-info-position {
    bottom: 10.5rem;
  }
}

@media (min-width: 768px) {
  .hero-info-position {
    bottom: 8.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-info-position {
    bottom: 9rem;
  }
}

@media (min-width: 1024px) {
  .trust-divider {
    padding-left: 1.5rem;
  }

  .trust-divider::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
  }
}

/* Nav Get Quote button orange */
nav button:contains("Get Quote") {
  background-color: #F97316 !important;
}

nav button:contains("Get Quote"):hover {
  background-color: #ea6317 !important;
}

/* Services dropdown button - no background */
#desktop-services-dropdown-button {
  background-color: transparent !important;
  color: #0A2A43 !important;
}

#desktop-services-dropdown-button:hover {
  background-color: transparent !important;
  color: #1E73BE !important;
}

/* Mobile services dropdown button - white background */
#services-dropdown-button {
  background-color: #ffffff !important;
  color: #0A2A43 !important;
  box-shadow: none !important;
}

#services-dropdown-button:hover,
#services-dropdown-button:active,
#services-dropdown-button:focus {
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Mobile services dropdown menu separator when open */
#services-dropdown-menu:not(.hidden) {
  border-top: 1px solid #EAF4FF;
}

/* Very subtle click animation for services button */
@keyframes verySubtleClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

#services-dropdown-button:active {
  animation: 0.1s ease-out verySubtleClick !important;
}

/* Disable all animations on services button except active */
#services-dropdown-button {
  animation: none !important;
}

/* Benefits cards: clearer hover lift and shadow */
.benefit-card {
  background-color: #ffffff !important;
  will-change: transform, box-shadow, border-color, background-color;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(10, 42, 67, 0.16), 0 10px 22px rgba(30, 115, 190, 0.2) !important;
}

/* Mobile menu button styling */
#mobile-menu-button {
  background-color: #1E73BE !important;
  color: #ffffff !important;
  padding: 0.25rem !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
}

#mobile-menu-button:hover {
  background-color: #1560a0 !important;
}

/* Updated font family for better readability */
:root {
  --font-display-var: "Inter", sans-serif;
  --font-body-var: "Inter", sans-serif;
}

/* Services dropdown links: clearer hover/focus feedback */
#desktop-services-dropdown-menu a,
#services-dropdown-menu a {
  border-radius: 0.4rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#desktop-services-dropdown-menu a:hover,
#desktop-services-dropdown-menu a:focus-visible,
#services-dropdown-menu a:hover,
#services-dropdown-menu a:focus-visible {
  background-color: #eaf4ff !important;
  color: #1E73BE !important;
  transform: translateX(3px);
}

@keyframes chevronNudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(4px);
  }
}

#scroll-to-about {
  transform: translateX(-50%);
  bottom: -15rem !important;
  animation: chevronNudge 1.8s ease-in-out infinite;
  outline: 3px solid #0A2A43;
  box-shadow: 0 0 0 4px rgba(10, 42, 67, 0.35), 0 6px 16px rgba(10, 42, 67, 0.2);
}

@media (min-width: 640px) {
  #scroll-to-about {
    bottom: -15rem !important;
  }
}

@media (min-width: 768px) {
  #scroll-to-about {
    bottom: -15rem !important;
  }
}

@media (min-width: 1024px) {
  #scroll-to-about {
    bottom: -15rem !important;
  }
}

#scroll-to-about:hover,
#scroll-to-about:focus-visible,
#scroll-to-about:active {
  animation: chevronNudge 1.8s ease-in-out infinite;
  transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(10, 42, 67, 0.2);
}

#scroll-to-about svg {
  position: relative;
  left: -3px;
}

#scroll-to-about::after {
  display: none;
}

/* Shrink nav after user scrolls down */
#site-nav {
  box-shadow: inset 0 -1px 0 rgba(10, 42, 67, 0.9);
}

footer {
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background-color: #1E73BE;
  opacity: 0.7;
}

#site-nav,
#site-nav-main-row,
#site-nav-utility,
#site-logo {
  transition: all 0.28s ease;
}

#site-nav-utility {
  max-height: 3rem;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
}

#site-nav.nav-compact {
  box-shadow: 0 8px 18px rgba(10, 42, 67, 0.12);
}

#site-nav.nav-compact #site-nav-main-row {
  height: 3.5rem;
}

#site-nav.nav-compact #site-logo {
  height: 2.5rem !important;
}

/* Hero left-sweep overlay: hard cut exactly at nav bottom */
.hero-overlay-masked {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 4rem, black 4rem);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 4rem, black 4rem);
}

@media (min-width: 640px) {
  .hero-overlay-masked {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 5rem, black 5rem);
    mask-image: linear-gradient(to bottom, transparent 0, transparent 5rem, black 5rem);
  }
}

@media (min-width: 1024px) {
  .hero-overlay-masked {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 8rem, black 8rem);
    mask-image: linear-gradient(to bottom, transparent 0, transparent 8rem, black 8rem);
  }
}

/* Unified inner-page hero treatment */
.page-hero-section {
  position: relative;
  /* Mobile: main nav only (h-16 = 4rem) */
  padding-top: 4rem !important;
  background-color: #ffffff !important;
}

@media (min-width: 640px) {
  .page-hero-section {
    /* sm: main nav only (h-20 = 5rem) */
    padding-top: 5rem !important;
  }
}

@media (min-width: 1024px) {
  .page-hero-section {
    /* lg: blue utility bar (h-12 = 3rem) + main nav (h-20 = 5rem) = 8rem */
    padding-top: 8rem !important;
  }
}

.page-hero-media {
  position: relative;
  isolation: isolate;
  height: 340px !important;
  background-position: center 40% !important;
}

/* Neutral dark gradient rising from bottom — clean legibility */
.page-hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

@media (min-width: 640px) {
  .page-hero-media {
    height: 420px !important;
  }
}

@media (min-width: 1024px) {
  .page-hero-media {
    height: 470px !important;
  }
}

.page-hero-content-wrap {
  position: relative;
  z-index: 1;
}

/* Strip the white card — text lives directly on the image */
.page-hero-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  max-width: 48rem;
}

.page-hero-card h1 {
  color: #ffffff !important;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  font-size: clamp(2.05rem, 5.2vw, 3.75rem) !important;
}

/* Keep the gold accent line */
.page-hero-card .gold-accent-line {
  background-color: #c9a961 !important;
  width: 4rem;
  height: 3px;
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 52ch;
  text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .page-hero-subtitle {
    font-size: 0.98rem !important;
  }
}

/* Non-home visual refresh: scoped to pages that use page-hero-section */
.page-hero-section ~ section {
  position: relative;
}

.page-hero-section ~ section h2 {
  letter-spacing: -0.015em;
}

.page-hero-section ~ section .gold-accent-line {
  background: linear-gradient(90deg, #1E73BE 0%, #4f97d3 100%) !important;
}

.page-hero-section ~ section [class*="bg-[#F8FAFC]"][class*="rounded-lg"] {
  border: 1px solid rgba(30, 115, 190, 0.12) !important;
  box-shadow: 0 10px 26px rgba(10, 42, 67, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-hero-section ~ section [class*="bg-[#F8FAFC]"][class*="rounded-lg"]:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 115, 190, 0.28) !important;
  box-shadow: 0 18px 36px rgba(10, 42, 67, 0.12);
}

.page-hero-section ~ section button {
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(30, 115, 190, 0.22);
}

.page-hero-section ~ section button:hover {
  transform: translateY(-1px);
}

.page-hero-section ~ section .grid img.rounded-lg {
  border: 1px solid rgba(10, 42, 67, 0.12);
  box-shadow: 0 14px 30px rgba(10, 42, 67, 0.12) !important;
}

#map {
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(10, 42, 67, 0.15) !important;
}
