/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark: #003e7a;
  --blue-mid:  #336798;
  --blue-light: #3974ab;
  --orange:    #396798;
  --dark:      #202021;
  --gray:      #f1f8ff;
  --text:      #333;
  --white:     #ffffff;
  --inner-hero-margin-top: -10px;
  --inner-hero-mobile-margin-top: 190px;
  --inner-hero-mobile-padding-y: 0.5rem;
  --home-hero-mobile-width: 94%;
  --home-hero-mobile-max-width: 94%;
  --home-hero-mobile-container-padding-x: 0;
}

html { scroll-behavior: smooth; }

/* Fluid scaling removed to restore standard desktop widths */

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad { padding: 4rem 0; }
.bg-light { background: var(--gray); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #555;
}

.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: .4rem;
}

.section-header { margin-bottom: 2.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: 2px solid transparent;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-blue   { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.header-top { background: var(--white); padding: .75rem 0; }
@media (min-width: 768px) {
  .header-top .container {
    padding: 0 3.5rem;
  }
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: flex-end; /* Align bottoms of HP and Plumbing text */
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  height: 3.35rem; /* Converted from 53.6px to scale proportionally */
  width: auto;
}

.logo-text {
  height: 3.85rem; /* Converted from 61.6px to scale proportionally */
  width: auto;
}

.call-now {
  border-right: 1px solid rgba(0,0,0,0.18);
  padding-right: .85rem;
  display: flex;
  align-items: center;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-contact-btn { font-size: .85rem; padding: .7rem 1.1rem; white-space: nowrap; }

.call-now a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
}
.call-now a:hover { color: var(--orange); }

/* NAV */
.main-nav { background: var(--blue-dark); }
.nav-inner { display: flex; align-items: center; position: relative; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: .9rem .25rem;
}

.nav-menu {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  color: var(--white);
  padding: .85rem 1.15rem;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .03em;
  transition: background .2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li:focus-within > a { background: var(--blue-light); }

/* DROPDOWNS */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue-dark);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 200;
}

@media (hover: hover) and (min-width: 769px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
}

.dropdown li a {
  display: block;
  color: var(--white);
  padding: .6rem 1.1rem;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.dropdown li a:hover { background: var(--blue-light); }

/* ===== HERO ===== */
.hero {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1009 / 392 !important;
  height: auto !important;
  min-height: 0 !important;
  background-color: #002f6c !important; /* Brand dark blue */
  overflow: hidden !important;
}
.hero .hero-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: fill !important;
  object-position: center center !important;
  filter: brightness(1.20) contrast(1.12) saturate(1.30) sepia(0.06);
  z-index: 0 !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: 
    linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 60%), /* Left side dark overlay for text readability */
    radial-gradient(circle at 80% 0%, rgba(255, 235, 180, 0.25) 0%, rgba(255, 255, 255, 0) 70%) !important; /* Right side golden sunlight glow */
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%),
      radial-gradient(circle at 50% 0%, rgba(255, 235, 180, 0.2) 0%, rgba(255, 255, 255, 0) 80%) !important;
  }
}

.hero > .container {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 68.125rem !important;
  z-index: 2 !important;
  padding: 0 1.25rem !important;
  pointer-events: none !important;
}

.hero-content {
  position: absolute !important;
  left: 1.25rem !important;
  bottom: 2rem !important;
  max-width: 25.5rem;                 /* 408px wide */
  color: var(--white);
  background: rgba(0, 0, 0, 0.12);   /* More transparent background */
  backdrop-filter: blur(8px);       /* Smooth blur for premium look */
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;          /* Comfortable padding around content */
  border-radius: 12px;              /* Match CTA button corner radius */
  border: 1px solid rgba(255, 255, 255, 0.12); /* Subtle white border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  pointer-events: auto !important;
}

@media (min-width: 769px) {
  .hero-content {
    padding: 1.25rem 1.5rem;
  }
  .hero .hero-content {
    position: absolute !important;
    left: 24px !important;
    bottom: 18px !important;
    top: auto !important;
    transform: none !important;
    padding: 0.9rem 1.5rem !important; /* Shrunk vertical padding by 28% to reduce box height */
  }
  .hero .hero-content .hero-eyebrow {
    margin-bottom: 0.4rem !important;
  }
  .hero .hero-content h1 {
    margin-bottom: 0.5rem !important;
  }
  .hero .hero-content .hero-cta-container {
    margin-top: 0.35rem !important;
  }
  .inner-hero-content {
    margin-top: var(--inner-hero-margin-top, -10px) !important;
  }
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;                /* Shrunk eyebrow font */
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-content h1 {
  font-size: 1.45rem;                /* Even smaller headline */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== TRUST BAR ===== */
.trust-bar {
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.trust-icon-box {
  background: rgba(243, 112, 33, 0.1);
  color: var(--orange);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(243, 112, 33, 0.2);
}

.trust-text-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}

.trust-text-box p {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0;
}

.nav-menu > li > .hero-top-reviews-badge {
  position: absolute;
  top: calc(100% + 4px);
  right: 1.1rem;
  background: var(--white);
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-size: 0.68rem;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: #3c4043;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  z-index: 100;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-menu > li > .hero-top-reviews-badge:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transform: translateY(1px);
}

.nav-menu > li > .hero-top-reviews-badge .rating-val {
  font-weight: 700;
  color: #202124;
}

.nav-menu > li > .hero-top-reviews-badge .stars {
  color: #f5b000;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.nav-menu > li > .hero-top-reviews-badge .reviews-text {
  color: #5f6368;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-menu > li > .hero-top-reviews-badge {
    position: relative;
    top: 0;
    right: 0;
    margin: 0.5rem 1.5rem;
    display: inline-flex;
    align-self: flex-start;
  }
}


/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,62,122,.15);
}

.service-img { overflow: hidden; width: 100%; aspect-ratio: 3 / 2; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .service-img img { transform: scale(1.04); }

.service-body { padding: 1.25rem; }
.service-body h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: .5rem;
}
.service-body p { font-size: .88rem; color: #555; margin-bottom: .9rem; }

.cta-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s;
}
.cta-link:hover { gap: .6rem; }

/* ===== EMERGENCY BANNER ===== */
.emergency-banner {
  background: var(--blue-dark);
  padding: 1.8rem 0;
  margin-top: -2.2rem;
}
.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 55rem;
  margin: 0 auto;
}
@media (min-width: 601px) {
  .emergency-inner {
    flex-direction: row;
    justify-content: center;
    gap: 12rem;
    text-align: left;
  }
}
.emergency-inner h2 {
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.emergency-cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 0.6rem 1.65rem;
  text-align: center;
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.emergency-cta-btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  opacity: 1;
  transform: translateY(-1px);
}
.emergency-cta-btn .cta-small {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.emergency-cta-btn .cta-large {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-top: 4px solid var(--blue-dark);
  transition: border-color .2s;
}
.why-card:hover { border-color: var(--orange); }

.why-icon {
  font-size: 2.2rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}
.why-card p { font-size: .88rem; color: #555; }

/* ===== TRUST SECTION ===== */
.trust-section { background: var(--blue-dark); color: var(--white); }

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.trust-text {
  padding-left: 2.5rem;
}

.trust-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: .5rem;
}
.trust-text h3 {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.2rem;
}
.trust-text p { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: .9rem; }
.trust-text .license { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 1.5rem; }
.trust-text .btn-blue { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.trust-text .btn-blue:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.trust-img {
  display: flex;
  justify-content: flex-end;
  padding-right: 2.5rem;
}
.trust-img img { border-radius: 8px; }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 6px;
  height: 220px;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-cta { text-align: center; margin-top: 2rem; }

.testimonials {
  padding-top: 2rem;
  padding-bottom: 0rem;
}
/* Reduce Google reviews box by 20% and center it */
#reviews .container {
  max-width: 825px !important;
}
.recent-projects {
  padding-top: 0rem;
  padding-bottom: 4rem;
  margin-top: 2rem;
}
#recent-jobs .section-sub { max-width: 900px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-left: 4px solid var(--orange);
}

.stars { color: #f5c518; font-size: 1rem; margin-bottom: .75rem; }
.testimonial-card p { font-size: .88rem; color: #444; font-style: italic; margin-bottom: 1rem; }
.testimonial-card strong { font-size: .82rem; color: var(--blue-dark); }

.review-cta { text-align: center; margin-top: 2rem; }


/* ===== MAP ===== */
.map-section iframe { box-shadow: 0 2px 12px rgba(0,0,0,.1); }


.service-areas {
  padding-top: 2.5rem !important;
}

/* ===== SERVICE AREAS ===== */
.areas-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem 1rem;
  margin-top: 2rem;
  text-align: center;
}

.areas-list li {
  background: var(--white);
  border-radius: 4px;
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  border-left: 3px solid var(--orange);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.contact-form button[type="submit"] {
  display: block;
  margin: 1.5rem auto 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: .3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.form-check input { width: auto; margin-top: .3rem; }
.form-check label { font-size: .78rem; color: #666; }

.form-trust-badge-bottom {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 500;
}
.form-trust-badge-bottom i {
  color: #4285F4;
}
.form-trust-badge-bottom .stars {
  color: #f5b000;
  font-size: 0.9rem;
}

/* ===== CTA BAR ===== */
.cta-bar { background: var(--dark); padding: 1.5rem 0; }
.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-phone {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cta-phone:hover { color: var(--orange); }

/* ===== FOOTER ===== */
.site-footer { background: var(--blue-dark); color: var(--white); padding: 3rem 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo { height: 55px; width: auto; margin-bottom: 1rem; border-radius: 4px; background: #fff; padding: 4px; }

.footer-brand address p {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-brand address a { color: rgba(255,255,255,.75); }
.footer-brand address a:hover { color: var(--orange); }

.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: background .2s;
}
.social-links a:hover { background: var(--orange); }

.footer-col h4 {
  font-size: .9rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  color: rgba(255,255,255,.75);
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  font-size: .83rem;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

.payment-img { max-width: 160px; margin-top: .5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

/* ===== INNER PAGE HERO ===== */
.inner-hero {
  position: relative;
  aspect-ratio: 1009 / 392 !important;
  height: auto !important;
  min-height: 0 !important;
  background-color: #002f6c;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-image: none !important;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/heises-plumbing-team-photo.jpg');
  background-size: 100% 100% !important;
  background-repeat: no-repeat;
  background-position: center center !important;
  filter: brightness(1.20) contrast(1.12) saturate(1.30) sepia(0.06);
  z-index: 0;
}
.inner-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 60%), /* Left side dark overlay for text readability */
    radial-gradient(circle at 80% 0%, rgba(255, 235, 180, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}
.inner-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 68.125rem;
  margin: 0 auto;
  padding-top: 13.5rem;
  padding-bottom: 2rem;
}
.inner-hero-content {
  max-width: 25.5rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.inner-hero-content .hero-eyebrow {
  display: none !important;
}
.inner-hero-content h1 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.inner-hero-content p {
  display: none !important;
}

/* ===== SERVICE PAGE LAYOUT ===== */
.page-intro { max-width: 1090px; margin: 0 auto 3rem; text-align: center; }
.page-intro p { color: #555; font-size: .95rem; }

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-item {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 1px solid #f3f4f6;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,62,122,.15);
  border-color: #f3f4f6;
}
.service-item .icon { font-size: 1.8rem; color: var(--blue-dark); margin-bottom: .75rem; }
.service-item h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: .5rem;
  font-weight: 700;
}
.service-item p {
  font-size: .88rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col img { border-radius: 8px; width: 100%; object-fit: cover; }
.two-col-text h2 { color: var(--blue-dark); margin-bottom: 1rem; }
.two-col-text p { color: #555; font-size: .9rem; margin-bottom: .9rem; }

/* ===== SITEMAP PAGE ===== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.sitemap-col h3 {
  color: var(--blue-dark);
  font-size: 1rem;
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray);
}
.sitemap-col li { margin-bottom: .55rem; }
.sitemap-col a { color: #555; font-size: .9rem; }
.sitemap-col a:hover { color: var(--orange); }

/* ===== ABOUT PAGE ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat-box {
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.stat-box .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-box p { font-size: .85rem; color: #555; font-weight: 600; }

.value-list { list-style: none; margin-top: 1rem; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid #eee;
  font-size: .9rem;
  color: #444;
}
.value-list li i { color: var(--orange); margin-top: .15rem; flex-shrink: 0; }

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { color: var(--blue-dark); margin-bottom: 1.25rem; }
.contact-info p { font-size: .9rem; color: #555; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.25rem;
}
.contact-detail .icon {
  width: 42px;
  height: 42px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; color: var(--blue-dark); font-size: .85rem; margin-bottom: .2rem; }
.contact-detail-text span { font-size: .9rem; color: #444; }
.contact-detail-text a { color: #444; }
.contact-detail-text a:hover { color: var(--orange); }

.nav-reviews-badge {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-contact-btn { display: none; }
  .call-now { border-right: none; padding-right: 0; }

  .nav-toggle {
    display: flex;
    font-size: 1.9rem;
    min-width: 56px;
    min-height: 56px;
    padding: .5rem;
  }

  .nav-reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: 1rem;
    white-space: nowrap;
  }

  .nav-reviews-badge .rating {
    font-weight: 700;
    color: var(--white);
  }

  .nav-reviews-badge .stars {
    color: #ffc107;
    font-size: 0.8rem;
    display: inline-flex;
    gap: 0.05rem;
  }

  .nav-reviews-badge .count {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blue-dark);
    z-index: 99;
  }
  .nav-menu.open { display: flex; }

  .nav-menu > li > a { padding: .9rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,.15);
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown > a { display: flex; justify-content: space-between; align-items: center; }

  .why-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-img { display: none; }
  .trust-text { padding-left: 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .emergency-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 420px; align-items: flex-end; }
  .hero::before { 
    background-size: cover !important; 
    background-position: center top !important; 
    background-repeat: no-repeat !important; 
  }
  .hero > .container { padding-top: 33vw !important; padding-bottom: 1.1rem; }

  /* Homepage-specific mobile hero overrides */
  body.home .hero {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    background: #002654 !important;
    overflow: hidden !important;
    display: block !important;
  }

  body.home .hero .hero-image {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
    filter: brightness(1.35) contrast(1.10) saturate(1.35) sepia(0.08) !important;
  }

  body.home .hero > .container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 68.125rem !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 1.25rem !important;
    padding-left: var(--home-hero-mobile-container-padding-x, 0) !important;
    padding-right: var(--home-hero-mobile-container-padding-x, 0) !important;
  }

  body.home .hero .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: -15px auto 0 !important; /* Overlaps bottom of the 145px tall mobile photo */
    z-index: 2 !important;
    width: var(--home-hero-mobile-width, 94%) !important;
    max-width: var(--home-hero-mobile-max-width, 94%) !important;
  }

  /* Mobile Inner Page Hero Overrides */
  body:not(.home) .inner-hero {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 22px !important;
    overflow: visible !important;
    background: #002654 !important;
  }

  body:not(.home) .inner-hero::before {
    content: "" !important;
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1009 / 392 !important;
    flex: none !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: brightness(1.35) contrast(1.10) saturate(1.35) sepia(0.08) !important;
    z-index: 1 !important;
  }

  body.about-us .inner-hero::before {
    background-position: center 25% !important;
  }

  body:not(.home) .inner-hero > .container {
    display: block !important;
    height: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body:not(.home) .inner-hero-content {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: -15px auto 0 !important;
    padding: 20px 20px 18px !important;
    overflow: visible !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
    border: 2px solid #ffffff !important;
    background: #002654 !important;
  }

  body:not(.home) .inner-hero-content h1,
  body:not(.home) .inner-hero-content p,
  body:not(.home) .inner-hero-content .hero-actions,
  body:not(.home) .inner-hero-content .hero-cta-container,
  body:not(.home) .inner-hero-content .hero-cta-pill {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }

  body:not(.home) .inner-hero-content h1 {
    margin: 0 0 12px !important;
  }

  body:not(.home) .inner-hero-content p {
    margin: 0 0 16px !important;
  }

  body:not(.home) .inner-hero-content .hero-actions,
  body:not(.home) .inner-hero-content .hero-cta-pill {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body:not(.home) .inner-hero-content .hero-actions a,
  body:not(.home) .inner-hero-content .hero-cta-pill a,
  body:not(.home) .inner-hero-content .btn {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-col { order: -1; margin-bottom: 2rem; }

  /* Mobile Header & Logo scaling */
  .header-top-inner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  .logo-link {
    justify-content: center;
  }
  .logo-icon {
    height: 42px !important;
  }
  .logo-text {
    height: 48px !important;
  }
  .call-now-group {
    display: none !important;
  }

  /* Mobile Hero badge and social bar adjustments */
  .hero-reviews-badge {
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .hero-social-sidebar {
    display: none;
  }

  /* Mobile Hero Call-To-Action stacking */
  .hero-cta-pill {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-cta-pill .cta-or {
    display: none;
  }
  .hero-cta-pill a.cta-book, 
  .hero-cta-pill a.cta-call {
    width: 100%;
    text-align: center;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
  }
  .hero-cta-pill a.cta-book {
    padding: 0.85rem 1.5rem;
  }
  .hero-cta-pill a.cta-call {
    background: #002f6c;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .contact-form { padding: 1.5rem 1rem; }
  .call-now a { font-size: 1.05rem; white-space: nowrap; }
  .sitemap-grid { grid-template-columns: 1fr; }
}

/* ===== HEADER CALL NOW GROUP ===== */
.call-now-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.call-now-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #002f6c; /* Brand blue */
  margin-bottom: 0.1rem;
}
.header-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #002f6c; /* Brand blue */
  text-decoration: none;
  line-height: 1.1;
}
.header-phone:hover {
  color: var(--orange);
}

/* ===== HERO REVIEWS BADGE ===== */
.hero-reviews-badge {
  position: absolute;
  top: 10px; /* Moved up a little */
  left: 1.25rem;
  right: auto;
  width: 103px;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 5px 7px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  z-index: 10;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}
.hero-reviews-badge .google-logo {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-reviews-badge .google-logo .g-blue { color: #4285F4; }
.hero-reviews-badge .google-logo .g-red { color: #EA4335; }
.hero-reviews-badge .google-logo .g-yellow { color: #FBBC05; }
.hero-reviews-badge .google-logo .g-green { color: #34A853; }

.hero-reviews-badge .rating-row {
  display: flex;
  align-items: center;
  gap: 3px;
}
.hero-reviews-badge .rating-val {
  font-size: 0.62rem;
  font-weight: 700;
  color: #3c4043;
  background: #f1f3f4;
  padding: 1px 3px;
  border-radius: 2px;
}
.hero-reviews-badge .stars-val {
  color: #ffc107;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}
.hero-reviews-badge .count-row {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1a1f2c;
  margin-top: 1px;
}
.hero-reviews-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.16) !important;
  transition: all 0.2s ease-in-out;
}

/* ===== HERO SOCIAL SIDEBAR ===== */
.hero-social-sidebar {
  display: none !important;
}
.hero-social-sidebar a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.2s;
}
.hero-social-sidebar a:hover {
  filter: brightness(0.9);
}
.hero-social-sidebar .social-instagram {
  background: #3f729b;
}
.hero-social-sidebar .social-google {
  background: #dd4b39;
}
.hero-social-sidebar .social-yelp {
  background: #c41200;
}

/* ===== COMBINED HERO CTA PILL ===== */
.hero-cta-container {
  margin-top: 0.55rem;
}
.hero-cta-pill {
  display: inline-flex;
  align-items: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}
.hero-cta-pill a.cta-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #003d7c; /* Deep brand blue from screenshot */
  padding: 0.7rem 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
  width: 10rem;
  text-align: center;
  box-sizing: border-box;
  text-transform: uppercase;
}
.hero-cta-pill a.cta-book:hover {
  background: #002c5c;
}
.hero-cta-pill a.cta-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3b6f9f; /* Slate blue from screenshot */
  padding: 0.7rem 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
  width: 13rem;
  text-align: center;
  box-sizing: border-box;
  text-transform: uppercase;
}
.hero-cta-pill a.cta-call:hover {
  background: #2f5a82;
}
.hero-cta-pill .cta-or {
  background: var(--white);
  color: #003d7c;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  position: absolute;
  left: 43.48%; /* Center line relative to button rem widths: 10 / (10+13) = 43.48% */
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0.1875rem solid #3b6f9f;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ===== HERO EYEBROW RESET ===== */
.hero-content .hero-eyebrow {
  color: var(--white);
  text-transform: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: normal;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 0.3rem;
}

/* ===== CUSTOM CHAT BOX ===== */
.custom-chat-box {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 360px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  z-index: 1000;
  display: none;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  font-family: 'Poppins', sans-serif;
}
@media (min-width: 1441px) {
  .custom-chat-box {
    right: calc(50% - 720px + 25px); /* Spacing of 25px inside the 1440px body */
  }
}

.custom-chat-box.show {
  display: flex;
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  background: #f9fafb;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.chat-header-logo {
  height: 42px;
  width: auto;
  margin-right: 0.75rem;
  border-radius: 4px;
}
.chat-header-text {
  font-size: 0.76rem;
  color: #374151;
  margin: 0;
  line-height: 1.35;
  font-weight: 600;
  padding-right: 1.25rem;
}
.chat-close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}
.chat-close-btn:hover {
  color: #374151;
}
.chat-body-form {
  display: flex;
  background: var(--white);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.chat-inputs-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}
.chat-input-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.35rem 0.5rem;
}
.chat-input-row:last-child {
  border-bottom: none;
}
.chat-input-row label {
  font-size: 0.75rem;
  color: #4b5563;
  width: 80px;
  flex-shrink: 0;
  font-weight: 600;
}
.chat-input-row input {
  border: none;
  outline: none;
  font-size: 0.8rem;
  width: 100%;
  color: #1f2937;
  padding: 0.25rem 0;
  background: transparent;
}
.chat-submit-btn {
  width: 58px;
  background: #f3f4f6;
  border: none;
  border-left: 1px solid #e5e7eb;
  color: #002f6c;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 8px;
  transition: background 0.2s;
}
.chat-submit-btn:hover {
  background: #e5e7eb;
}

/* ===== CHAT BUBBLE ===== */
.chat-bubble {
  display: none !important;
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-dark); /* Updated color to match brand blue */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 999;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
@media (min-width: 1441px) {
  .chat-bubble {
    right: calc(50% - 720px + 1.75rem); /* Spacing of 1.75rem inside the 1440px body */
  }
}

.chat-bubble:hover {
  background: #001f4d; /* Darker blue hover color */
  transform: scale(1.08);
}


/* ===== RECENT PROJECTS WIDGET ===== */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  flex: 1 1 17.5rem;
  max-width: 22.5rem;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #f3f4f6;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.project-img-box {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
}
.project-img-box a {
  display: block;
  width: 100%;
  height: 100%;
}
.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-date {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  display: block;
}
.project-loc {
  font-size: 1.15rem;
  font-weight: 700;
  color: #002f6c; /* Brand blue */
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}
.project-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.project-link:hover {
  text-decoration: underline;
}

/* ===== MEET THE TEAM SECTION ===== */
.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  width: calc(25% - 1.5rem);
  min-width: 220px;
  max-width: 100%;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  text-align: center;
  transition: transform 0.2s;
}
.team-card:hover {
  transform: translateY(-5px);
}
.team-img-box {
  width: 100%;
  aspect-ratio: 2/3; /* 2:3 ratio (2 inches wide by 3 inches tall) */
  overflow: hidden;
  background: #f9f9f9;
}
.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.15) contrast(1.05) saturate(1.1);
}
.team-info {
  padding: 1.5rem 1rem;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #002f6c; /* Brand blue */
  margin-bottom: 0.25rem;
  white-space: nowrap;
}
.team-role {
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== CUSTOM MAP OVERLAY CARD ===== */
.map-wrapper {
  position: relative;
  width: 100%;
}

.custom-map-card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  width: 440px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: Roboto, Arial, sans-serif;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-map-card .card-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
  padding-right: 0.75rem;
}

.custom-map-card .card-title {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #202124;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-map-card .card-title a {
  color: inherit !important;
  text-decoration: none;
}

.custom-map-card .card-title a:hover {
  text-decoration: underline;
}

.custom-map-card .card-address {
  font-size: 0.85rem;
  color: #70757a;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-map-card .card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #70757a;
  margin-top: 0.2rem;
}

.custom-map-card .rating-val {
  color: #70757a;
  font-weight: 400;
}

.custom-map-card .star {
  color: #e7711b;
  font-size: 0.95rem;
}

.custom-map-card .reviews-link {
  color: #1a73e8;
  text-decoration: underline;
  font-weight: 400;
}

.custom-map-card .info-icon {
  color: #70757a;
  font-size: 0.85rem;
  margin-left: 0.15rem;
}

.custom-map-card .card-right {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-shrink: 0;
}

.custom-map-card .circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  text-decoration: none;
}

.custom-map-card .circle-btn:hover {
  background: #e8eaed;
}

.custom-map-card .circle-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 600px) {
  .custom-map-card {
    position: static !important;
    width: 100% !important;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  }
}

/* ===== FOOTER LOGO ===== */
.footer-logo-link {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  height: 2.2rem;
  width: auto;
  filter: invert(1) grayscale(1) brightness(3) contrast(3);
  mix-blend-mode: screen;
}

.footer-logo-text {
  height: 2.5rem;
  width: auto;
  filter: invert(1) grayscale(1) brightness(3) contrast(3);
  mix-blend-mode: screen;
}

/* Collapse empty reviews section to remove visual gaps */
#reviews:not(:has(iframe)):not(:has(div[class*="elfsight-app"] > *)) {
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== MOBILE CUSTOM CLEAN-UP OVERRIDES (Ensure Desktop remains untouched) ===== */
@media (max-width: 768px) {
  /* Mobile footer logo fixes to resolve blend-mode issues on iOS/Android */
  .footer-logo-icon {
    content: url("images/hp-logo-icon-white.png") !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }
  .footer-logo-text {
    content: url("images/heises-plumbing-text-white.png") !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  /* Hide the cluttered social sidebar on mobile */
  .hero-social-sidebar {
    display: none !important;
  }

  /* Hide the Google reviews badge on the hero on mobile */
  .hero-reviews-badge {
    display: none !important;
  }

  /* Hide the hero blue overlay on mobile to keep the photo bright and clean */
  .hero-overlay {
    display: none !important;
  }

  /* Compact header on mobile to save vertical screen space */
  .header-top {
    padding: 0.35rem 0 !important;
  }
  .header-top-inner {
    flex-direction: column !important;
    gap: 0.4rem !important;
    padding: 0.3rem 0 !important;
  }
  .logo-icon {
    height: 42px !important;
  }
  .logo-text {
    height: 48px !important;
  }
  .call-now-group {
    display: none !important;
  }
  .call-now-label {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  .header-phone {
    font-size: 1.3rem !important;
  }

  /* Adjust hero container and content padding on mobile */
  .hero {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 400px !important;
  }
  .hero > .container {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    padding-top: 4.2rem !important;
    padding-bottom: 1.25rem !important;
    height: auto !important;
    margin: 0 auto !important;
    pointer-events: auto !important;
  }
  .hero-content {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    padding: 1rem 1.25rem !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border: 2px solid #ffffff !important;
    background: #002654 !important;
  }
  .hero-content h1 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }
  .hero-eyebrow {
    font-size: 1.05rem !important;
    margin-bottom: 0.2rem !important;
    color: var(--white) !important;
  }


  .inner-hero-content h1 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }
  .inner-hero-content .hero-eyebrow {
    font-size: 0 !important;
  }
  .inner-hero-content .hero-eyebrow::before {
    content: "Trusted Since 1954" !important;
    font-size: 1.05rem !important;
    color: var(--white) !important;
  }

  /* Style CTA buttons cleanly and stack vertically on mobile */
  .hero-cta-container {
    margin-top: 0.65rem !important;
  }
  .hero-cta-pill {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto !important;
  }
  .hero-cta-pill .cta-or {
    display: none !important;
  }
  .hero-cta-pill a.cta-book, 
  .hero-cta-pill a.cta-call {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    box-sizing: border-box !important;
  }
  .hero-cta-pill a.cta-book {
    background: var(--blue-dark) !important;
    color: var(--white) !important;
    border: 2px solid var(--white) !important;
  }
  .hero-cta-pill a.cta-book:hover {
    background: var(--blue-light) !important;
  }
  .hero-cta-pill a.cta-call {
    background: #f37021 !important; /* High contrast call button */
    color: var(--white) !important;
    border: 1px solid #f37021 !important;
  }
  .hero-cta-pill a.cta-call:hover {
    background: #d65c18 !important;
  }
  body:not(.home) .inner-hero-content p:not(.hero-eyebrow) {
    display: none !important;
  }
}

/* Orange call button for mobile nav */
.nav-phone-btn {
  display: none;
}
@media (max-width: 768px) {
  .nav-toggle {
    margin-left: -0.6rem !important; /* Move hamburger menu left */
  }
  .nav-reviews-badge {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important; /* Center the reviews badge absolutely */
  }
  .nav-phone-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f37021 !important; /* Orange background */
    color: #003e7a !important; /* Dark blue phone icon matching nav background */
    width: 34px !important; /* Reduced size */
    height: 34px !important; /* Reduced size */
    border-radius: 50% !important;
    font-size: 1rem !important; /* Reduced size */
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: background 0.2s, transform 0.1s !important;
    flex-shrink: 0 !important;
    margin-left: auto !important; /* Push phone button to the right */
    margin-right: -0.4rem !important; /* Move phone symbol right */
  }
  .nav-phone-btn:active {
    transform: scale(0.95) !important;
  }
  /* Move down the first team picture (Mike) to prevent his head from being cut off on mobile */
  .team-grid .team-card:first-child .team-img-box img {
    object-position: center top !important;
  }
}

/* Styling for compact Call-to-Action on Project Detail pages only */
.project-detail-page .project-cta-box {
  grid-column: 1 / -1 !important; /* Force it to span full grid width and sit at the bottom */
  background-color: #fcfdfe !important;
  border: 2px solid #3b6f9f !important; /* Premium brand blue border/outline */
  border-radius: 12px !important;
  padding: 2.25rem 2rem !important;
  margin-top: 2rem !important;
  text-align: center !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
  max-width: 48rem !important; /* Keep it compact and centered */
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.project-detail-page .project-cta-box h3 {
  color: #003d7c !important; /* Brand dark blue matching header */
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.25rem !important;
  font-family: 'Poppins', sans-serif !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.project-detail-page .project-cta-box .project-cta-btn {
  display: inline-block !important;
  background-color: #3b6f9f !important; /* Brand blue matching the mockup */
  color: var(--white) !important;
  padding: 0.9rem 2.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background-color 0.2s, transform 0.2s !important;
  box-shadow: 0 4px 12px rgba(59, 111, 159, 0.25) !important;
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.project-detail-page .project-cta-box .project-cta-btn:hover {
  background-color: #2f5a82 !important;
  transform: translateY(-1px) !important;
}

.project-detail-page .project-cta-box .project-cta-phone {
  margin-top: 1.25rem !important;
  font-size: 1.25rem !important; /* Increased size of phone number section */
  color: #64748b !important; /* Gray text */
  font-family: 'Poppins', sans-serif !important;
}

.project-detail-page .project-cta-box .project-cta-phone a {
  color: #003d7c !important; /* Brand dark blue matching mockup */
  font-weight: 700 !important;
  text-decoration: none !important;
}

.project-detail-page .project-cta-box .project-cta-phone a:hover {
  text-decoration: underline !important;
}



