/* ============================================
   Excel Electric Inc. — Custom Overrides
   ============================================ */

/* Brand Color Override — Electric Blue Accent */
:root {
  --excel-primary: #1a73e8;
  --excel-secondary: #f59e0b;
  --excel-dark: #111827;
  --excel-light: #f8fafc;
}

/* Temp: disable custom cursor */
.cursor,
.cursor-follower {
  display: none !important;
}

/* Logo sizing */
.logo img,
.nav-logo img,
.main-footer_logo img {
  display: block;
  width: auto;
  object-fit: contain;
}
.logo img {
  height: 68px;
  max-height: 68px !important;
}
.nav-logo img {
  height: 58px;
  max-height: 58px !important;
}
.main-footer_logo img {
  height: 64px;
  max-height: 64px !important;
}

/* Hero slider image positioning */
.slider-one_image-layer {
  background-position: center center;
  background-size: cover;
}

/* =============================================
   FIX: Counter numbers cut off on right side
   Root cause: counter-one has overflow:hidden,
   and odometer-digit-inner has overflow:hidden
   with right:0px clipping the last digit.
   ============================================= */
.counter-one {
  overflow: visible !important;
}
.counter-one .auto-container {
  overflow: visible !important;
}
.counter-block_one {
  overflow: visible !important;
}
.counter-block_one-inner {
  overflow: visible !important;
}
.counter-block_one-count {
  overflow: visible !important;
}
.odometer.odometer-auto-theme,
.odometer.odometer-theme-default {
  overflow: visible !important;
}
.odometer.odometer-auto-theme .odometer-digit,
.odometer.odometer-theme-default .odometer-digit {
  overflow: visible !important;
}
/* Keep the digit window clipped so the spinning ribbon stays masked;
   right:auto lets it size to the glyph so the last digit isn't cut off. */
.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,
.odometer.odometer-theme-default .odometer-digit .odometer-digit-inner {
  overflow: hidden !important;
  right: auto !important;
}
.counter-block_one-count sup {
  margin-left: 2px;
}

/* =============================================
   FIX: Select dropdown — match input field styling
   Gray bg, pill shape, dark text (global)
   ============================================= */
.contact-form select,
.contact-one select {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 30px;
  background: #f5f5f5;
  color: #333;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
  transition: border-color .3s;
}
.contact-form select:focus,
.contact-one select:focus {
  border-color: var(--excel-primary);
  outline: none;
}

/* =============================================
   FIX: Footer background — dark with project image
   Keep it dark so white text is readable.
   Match the theme's 40px border-radius on footer_bg.
   ============================================= */
.main-footer {
  position: relative;
  background-color: #111827;
  border-radius: 40px;
  overflow: hidden;
}
.main-footer .main-footer_bg {
  background-image: url('../Residential/optimized/custom-home-copperopolis.webp') !important;
  background-size: cover;
  background-position: center center;
  border-radius: 40px;
  opacity: 0.08;
}

/* =============================================
   Logo — circular artwork
   ============================================= */
.logo img,
.nav-logo img,
.main-footer_logo img {
  border-radius: 0;
}

/* =============================================
   FIX: Commercial service-three hover image removal
   The blue square/image that appears on card hover
   ============================================= */
.service-block_three_hover-image {
  display: none !important;
}

/* =============================================
   FIX: Testimonials — heading readability
   White text on light bg fix
   ============================================= */
.testimonial-three.style-two .sec-title.light .sec-title_heading {
  color: var(--excel-dark) !important;
}
.testimonial-three.style-two .sec-title.light .sec-title_title {
  color: var(--excel-secondary) !important;
}

/* Portfolio page grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  transition: transform .4s ease, box-shadow .4s ease;
  background: #fff;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.portfolio-card .card-content {
  padding: 24px 28px;
}
.portfolio-card .card-content .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.portfolio-card .badge.commercial {
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
}
.portfolio-card .badge.residential {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.portfolio-card .badge.multifamily {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.portfolio-card .card-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}
.portfolio-card .card-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* WHF product cards */
.whf-product-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
}
.whf-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.whf-product-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--excel-dark);
}
.whf-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.whf-spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}
.whf-spec-list li:last-child {
  border-bottom: none;
}
.whf-spec-list li strong {
  color: var(--excel-dark);
  min-width: 100px;
}
.whf-spec-list li .icon-check {
  color: #22c55e;
  font-weight: bold;
}

/* Page banner */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,.85) 0%, rgba(17,24,39,.7) 100%);
}
.page-banner .auto-container {
  position: relative;
  z-index: 2;
}
.page-banner h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}
.page-banner .breadcrumb-text {
  font-size: 18px;
  color: rgba(255,255,255,.7);
}
.page-banner .breadcrumb-text a {
  color: #fff;
  text-decoration: none;
}

/* Service detail cards */
.service-detail-card {
  position: relative;
  height: calc(100% - 30px);
  background: #fff;
  border-radius: 8px;
  padding: 34px 32px;
  box-shadow: 0 8px 28px rgba(17,24,39,.07);
  margin-bottom: 30px;
  border: 1px solid rgba(17,24,39,.08);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-detail-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--excel-primary), var(--excel-secondary));
}
.service-detail-card:hover {
  border-color: rgba(26,115,232,.22);
  box-shadow: 0 16px 42px rgba(17,24,39,.12);
  transform: translateY(-3px);
}
.service-detail-card h4 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--excel-dark);
  line-height: 1.25;
}
.service-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-detail-card ul li {
  padding: 9px 0 9px 28px;
  position: relative;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
  border-top: 1px solid rgba(17,24,39,.07);
}
.service-detail-card ul li:first-child {
  border-top: none;
}
.service-detail-card ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--excel-primary);
  border-bottom: 2px solid var(--excel-primary);
  transform: rotate(-45deg);
}

.portfolio-card .card-content > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--excel-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s ease, transform .3s ease;
}
.portfolio-card .card-content > a:hover {
  background: var(--excel-primary);
  transform: translateY(-1px);
}

/* Contact page map container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  margin-top: 40px;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .page-banner h1 {
    font-size: 34px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .whf-product-card {
    padding: 24px;
  }
}

/* Keyboard-only focus treatment; preserve the approved colors and layout. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #1559ad !important;
  outline-offset: 4px;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100000; background: #fff; color: #111; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
#main-content { scroll-margin-top: 120px; }
.main-header .main-menu .navigation > li.dropdown > a:after { visibility: hidden; }
.main-header .main-menu .navbar-collapse > ul li.dropdown > .dropdown-btn {
  display: block; right: -4px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 30px; padding: 0; border: 0; background: transparent; color: inherit;
}
.main-header .main-menu .navigation > li.keyboard-open > ul {
  display: block; opacity: 1; visibility: visible; transform: scaleY(1);
}
.main-header .main-menu .navigation > li.keyboard-open > ul > li {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* Match the existing mobile toggle's div styling after giving it button semantics. */
.mobile-menu button.dropdown-btn { padding: 0; font: inherit; background: transparent; }

.mobile-menu #mobile-navbar-content { display: block; }
