/* ============================================
   HOPE DEALER - Navigation Redesign
   Clean nav with Contact Us button (far right)
   + Mobile hamburger dropdown
   ============================================ */

/* --- DESKTOP NAV LAYOUT (single row) --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  min-height: 70px;
}

.site-header .site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 30px;
}

/* Scale logo down to fit single row */
.site-header .site-branding .custom-logo {
  max-height: 55px;
  width: auto;
}

.site-navigation {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-navigation ul.menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* All nav links */
.site-navigation ul.menu > li > a {
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-navigation ul.menu > li > a:hover {
  color: #2F50EB;
}

/* --- CONTACT US BUTTON (far right) --- */
.menu-btn-contact {
  margin-left: auto !important;
}

.menu-btn-contact > a {
  background-color: #2F50EB !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.03em !important;
  transition: background-color 0.25s ease, transform 0.15s ease !important;
  display: inline-block !important;
  line-height: 1.4 !important;
  border: none !important;
  text-transform: uppercase !important;
}

.menu-btn-contact > a:hover {
  background-color: #1a38cc !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* --- MOBILE HAMBURGER MENU --- */
.hdms-hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}

.hdms-hamburger span,
.hdms-hamburger span::before,
.hdms-hamburger span::after {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #1a1a2e;
  position: relative;
  transition: all 0.3s ease;
}

.hdms-hamburger span::before,
.hdms-hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
}

.hdms-hamburger span::before { top: -8px; }
.hdms-hamburger span::after  { top:  8px; }

.hdms-hamburger.is-open span { background: transparent; }
.hdms-hamburger.is-open span::before { transform: rotate(45deg); top: 0; }
.hdms-hamburger.is-open span::after  { transform: rotate(-45deg); top: 0; }

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
    flex-wrap: nowrap !important;
    min-height: 60px;
  }

  .site-header .site-branding {
    margin-right: 0;
  }

  /* Show hamburger */
  .hdms-hamburger {
    display: block;
    margin-left: auto;
  }

  /* Hide desktop nav */
  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    flex: none !important;
  }

  .site-navigation.is-open {
    max-height: 500px;
  }

  /* Stack menu vertically */
  .site-navigation ul.menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 16px;
  }

  .site-navigation ul.menu > li {
    width: 100%;
  }

  .site-navigation ul.menu > li > a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  /* Mobile Contact Us button */
  .menu-btn-contact {
    margin-left: 0 !important;
    margin-top: 8px;
  }

  .menu-btn-contact > a {
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    border-radius: 6px !important;
    border-bottom: none !important;
  }
}

/* ============================================
 *    HOPE DEALER - Typography & Color Fixes
 *    Fix corrupted H2 color + text hierarchy
 *    ============================================ */

/* --- FIX CORRUPTED H2 COLOR (Elementor kit bug) --- */
h2,
.elementor-widget-text-editor h2,
.elementor-kit-218 h2 {
	  color: #E87722 !important;
}

/* --- H1: Dark navy/black --- */
h1,
.elementor-widget-text-editor h1 {
	  color: #1A1A2E !important;
}

/* --- H3: Blue emphasis --- */
h3,
.elementor-widget-text-editor h3 {
	  color: #2F50EB !important;
}

/* --- H4, H5, H6: Dark --- */
h4, h5, h6,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6 {
	  color: #1A1A2E !important;
}

/* --- Body text: Near-black (no more gray) --- */
body,
p,
li,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
	  color: #1A1A2E;
}

/* --- Heading widget color overrides --- */
.elementor-widget-heading .elementor-heading-title {
	  color: inherit;
}

/* --- CTA BUTTONS: All consistent blue styling --- */
.elementor-button,
.elementor-widget-button .elementor-button,
a.elementor-button {
	  background-color: #2F50EB !important;
	  color: #ffffff !important;
	  border-color: #2F50EB !important;
	  border-radius: 6px !important;
	  font-weight: 600 !important;
	  letter-spacing: 0.5px !important;
	  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.elementor-button:hover,
.elementor-widget-button .elementor-button:hover,
a.elementor-button:hover {
	  background-color: #1a3bd4 !important;
	  color: #ffffff !important;
	  border-color: #1a3bd4 !important;
}

/* Keep green "Free Consultation" button in footer as blue too */
.elementor-button[style*="background-color: rgb(0, 128, 0)"],
.elementor-button[style*="background: green"],
.wp-block-button__link {
	  background-color: #2F50EB !important;
	  color: #ffffff !important;
}

/* --- MOBILE HAMBURGER: Remove purple tap highlight --- */
.hdms-hamburger,
.hdms-hamburger:focus,
.hdms-hamburger:active,
button,
button:focus,
button:active {
	  -webkit-tap-highlight-color: transparent !important;
	  outline: none;
}

/* Remove tap highlight globally on mobile */
* {
	  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* --- HEADING SIZE IMPROVEMENTS --- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.3; }

/* --- SECTION SPACING: Consistent padding --- */
.elementor-section,
.e-con {
	  scroll-margin-top: 80px;
}


/* --- HAMBURGER: Reset button styles - don't apply blue to hamburger --- */
.hdms-hamburger,
.hdms-hamburger:hover,
.hdms-hamburger:focus,
.hdms-hamburger:active {
	  background-color: transparent !important;
	  background: transparent !important;
	  color: #333333 !important;
	  border: none !important;
	  border-radius: 0 !important;
	  box-shadow: none !important;
	  padding: 8px 10px !important;
	  font-size: 24px !important;
	  letter-spacing: normal !important;
	  font-weight: normal !important;
}
}

/* Fix: dark text on dark background in 'Why we serve churches' section */
.elementor-element-1202497 li,
.elementor-element-1202497 ol li {
	  color: #ffffff !important;
}
}