/* =========================================
   ZONE 0 — ROOT VARIABLES / GLOBALS
========================================= */

:root {

/* ===== BRAND COLORS — M&E METAL ROOFING ===== */

--primary-red: #ff4d1a;
--primary-red-dark: #cc3f15;

--accent: var(--primary-red);
--accent-deep: var(--primary-red-dark);

--steel-gray: #828A8F;
--steel-gray-dark: #5f666b;

--black: #1a1a1a;
--white: #ffffff;

/* TEXT */
--dark-text: #222222;
--medium-text: #555555;
--light-text: #777777;

--text: var(--dark-text);
--bg: var(--white);

/* BACKGROUNDS */
--light-gray: #f2f2f2;
--section-gray: #f8f8f8;
--border-gray: #e5e5e5;

/* LAYOUT */
--max: 1100px;

/* BUTTONS */
--button-bg: var(--primary-red);
--button-hover: var(--primary-red-dark);
--button-text: #ffffff;

/* SHADOWS */
--soft-shadow: 0 4px 12px rgba(0,0,0,0.08);
--medium-shadow: 0 6px 18px rgba(0,0,0,0.12);

/* RADIUS */
--radius-small: 6px;
--radius-medium: 8px;
--radius-large: 12px;

/* TRANSITIONS */
--transition-fast: 0.2s ease-in-out;
--transition-smooth: 0.3s ease;

/* COMPATIBILITY */
--dark: var(--black);
--brand: var(--steel-gray);

}

/* =========================================
   ZONE 0 — GLOBAL UI COMPONENTS
   (Buttons, Links, Reusable Elements)
========================================= */

/* BUTTON SYSTEM */

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-buttons a {
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

/* PRIMARY BUTTON */
.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
  border: 2px solid var(--button-bg);
  box-shadow: var(--soft-shadow);
}

.btn-primary:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
}

/* OUTLINE BUTTON */
.btn-outline {
  background: transparent;
  color: var(--button-bg);
  border: 2px solid var(--button-bg);
}

.btn-outline:hover {
  background: var(--button-bg);
  color: var(--button-text);
}

/* =========================================
   OUTLINE BUTTON (MATCH EXISTING SITE STYLE)
========================================= */

.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* =========================================
   GLOBAL RESET / BASE
========================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TYPOGRAPHY */
h1, h2, h3 { margin: 0; }
p { margin-bottom: 16px; }

/* LAYOUT */
.wrap {
  max-width: var(--max);
  margin: auto;
  padding: 20px 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.content-center {
  text-align: center;
}

main section {
  padding: 60px 0;
}


/* REPORT DOWNLOAD SPACING */
.report-card {
  margin-bottom: 60px;
}


/* =========================================
   ZONE 6 — SERVICES SPACING FIX
========================================= */

.service-block {
  margin-bottom: 40px;
}

/* =========================================
   ZONE 1 — UTILITY BAR
========================================= */

.utility {
  background:#2a2a2e;
  color:#fff;
  font-size:14px;
}

.utility-pills {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.pill {
  background:rgba(255,255,255,0.10);
  color:#fff;
  padding:6px 20px;
  border-radius:999px;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
  text-align:center;
  transition: all 0.2s ease;
}

.pill:hover {
  background: #ff4d1a;
}

.btn-white {
  background:#fff;
  color:#000;
}

/* =========================================
   ZONE 2 — HEADER
========================================= */

header {
  background:#1a1a1a;
  border-bottom:1px solid rgba(255,255,255,0.08);
  text-align:center;
}

.wrap.logo-wrap {
  padding-top:0;
  padding-bottom:0;
}

.logo-wrap img {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

/* =========================================
   ZONE 3 — CTA BAR
========================================= */

.cta-bar {
  background: #1a1a1d;
  color: #fff;
  padding: 28px 20px 32px;
}

.cta-bar .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-bar h2 {
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.cta-bar .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-bar .btn {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}

.cta-bar .btn:hover {
  background: #cc3f15;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* =========================================
   ZONE 4 — NAVIGATION (FINAL)
========================================= */

.nav-bar {
  background: #1a1a1d;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* NAV CONTAINER */
.pill-nav ul {
  list-style: none;
  margin: 0;
  padding: 16px 12px 18px;

  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;

  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* NAV BUTTONS */
.pill-nav a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  white-space: nowrap;
  text-align: center;

  transition: all 0.2s ease;
}

/* ACTIVE + HOVER */
.pill-nav a:hover,
.pill-nav a.active {
  background: #ff4d1a;
}

/* =========================================
   DESKTOP OVERRIDE (768px+)
========================================= */

@media (min-width: 768px) {

  .pill-nav ul {
    flex-wrap: nowrap;     /* single row */
    max-width: none;       /* remove constraint */
    justify-content: center;
    gap: 18px;             /* 🔥 improved spacing */
  }

}
/* =========================================
   ZONE 5 — HERO
========================================= */


.hero {
  position: relative;
  background: url("images/hero.jpg") center center / cover no-repeat;
  min-height: 420px; /* upgraded height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* DARK OVERLAY (CRITICAL FOR READABILITY) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* slightly stronger for better contrast */
}

/* CONTENT WRAPPER */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

/* HEADLINE */
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
  color: #fff;
}

/* SUBHEADLINE */
.hero p {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #f1f1f1;
}

/* BUTTON GROUP */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* BUTTON STYLE (uses your system vars) */
.hero .btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.hero .btn:hover {
  background: var(--button-hover);
}



/* =========================================
   ZONE 6 — PRIMARY CONTENT
========================================= */

.zone-6 {
  padding: 60px 20px;
  background: #ffffff;
}

.zone-6 h2 { 
  margin-bottom: 20px;
  color:#111;
}

.zone-6 p {
  color:#333;
}


.zone-6 h3 { 
  margin-bottom: 10px;
  color:#333;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff4d1a;
}

.expectation-item {
  margin-bottom: 30px;
  background:#f8f8f8;
  padding:20px;
  border-radius:8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}



/* =========================================
   ZONE 6 — SERVICE AREA PILLS (FINAL)
========================================= */

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* DEFAULT PILL */
.service-pill {
  display: inline-block;
  padding: 14px 24px;
  background: var(--light-gray);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 50px;

  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;

  transition: all 0.3s ease;
}

/* HOVER */
.service-pill:hover {
  background: var(--button-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ACTIVE (CURRENT CITY) */
.service-pill.active {
  background: var(--button-bg);
  color: var(--button-text);

  font-size: 17px;
  font-weight: 700;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}



/* =========================================
   ZONE 6A — ABOUT PAGE GRID (ADD THIS)
========================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}


.about-grid > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26px;
}


/* =========================================
   ZONE 6A — ABOUT VEHICLE (FULL WIDTH)
========================================= */

.about-vehicle {
  width: 100%;
  margin-top: 60px;
}

.about-vehicle img {
  width: 100%;
  display: block;
}

.about-text {
  text-align: left;
}

.about-grid img {
  border-radius: var(--radius-large);
  box-shadow: var(--soft-shadow);
}

/* CARD (What sets apart box) */
.about-card {
  background: var(--section-gray);
  border-radius: var(--radius-large);
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.about-card h3 {
  margin-top: 0;
}

/* BULLETS */
.about-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.about-list li {
  margin-bottom: 8px;
}

/* NAME UNDER IMAGE */
.inspector-name {
  text-align: center;
  margin-top: 14px;
}

.inspector-name h3 {
  margin: 0;
  font-size: 1.2rem;
}

.inspector-name p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--medium-text);
}





/* MOBILE STACK */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    text-align: left;
  }
}



/* =========================================
   ZONE 6B — REVIEWS
========================================= */

.reviews-section {
  text-align: center;
}

.reviews-badge img {
  margin: 25px auto;
}


/* =========================
   ZONE 6C — GALLERY GRID
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 70px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-medium);
  box-shadow: var(--soft-shadow);
  transition: var(--transition-fast);
}

.gallery-grid img:hover {
  transform: translateY(-4px);
}


/* =========================================
   ZONE 7 — FAQ (PLACEHOLDER)
========================================= */

/* (intentionally empty) */

/* =========================================
   ZONE 8 — MAP
========================================= */

.service-map img {
  margin: 30px auto 0;
}

/* =========================================
   ZONE 9 — CITIES
========================================= */

.service-areas {
  padding: 70px 20px;
  text-align: center;
  background: var(--section-gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  max-width: 700px;
  margin: 0 auto;
}

.service-pill {
  min-height: 60px;
  padding: 14px;
  background: #f8f8f8;
  border-radius: var(--radius-medium);
  text-decoration: none;
  font-weight: 600;
  color: #222;
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease;
}
.service-pill:hover {
  background: #cc3f15;
  color: #fff;
  transform: translateY(-3px);
}

/* =========================================
   ZONE 9B — EMBED MAP
========================================= */

.location-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 0;
  display: block;
}

/* =========================================
   ZONE 9C — FACEBOOK
========================================= */



.facebook-section {
  padding: 60px 20px;
  text-align: center;
}

.facebook-link {
  display: flex;
  justify-content: center;
}


.facebook-link img {
  max-width: 600px;   /* controls size */
  width: 100%;
  height: auto;
  margin: 0 auto;
}


/* =====================================================
   VIDEO SECTION — SINGLE FEATURED VIDEO
===================================================== */

.section-video {
  background: var(--white);
  padding: 60px 0;
  text-align: center;
}

/* Center container */
.section-video-single {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Video wrapper */
.section-video-item {
  width: 100%;
  max-width: 1000px; /* adjust if needed */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: var(--medium-shadow);
}

/* iframe */
.section-video-item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

  .section-video {
    padding: 40px 15px;
  }

  .section-video-item {
    max-width: 100%;
    border-radius: 8px;
  }

}


/* =========================================
   ZONE 9 — QR SECTION
========================================= */

.qr-section {
  padding: 60px 20px;
  text-align: center;
}

.qr-section img {
  max-width: 500px;   /* 🔥 THIS is the key */
  width: 100%;
  height: auto;
  margin: 25px auto;
  display: block;
}



/* =========================================
   ZONE 10 — FOOTER
========================================= */


/* ==============================
   FOOTER – MASTER TEMPLATE
================================ */

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 70px 20px 30px;
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner p,
.footer-inner ul {
    text-align: center;
}


.footer-business {
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-license,
.footer-service-area {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.85;
}

.footer-contact,
.footer-links,
.footer-social {
    margin-top: 30px;
}

.footer-contact h4,
.footer-links h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Remove bullets */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 6px 0;
}

/* FORCE ALL FOOTER LINKS WHITE */
.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* Hover effect */
.site-footer a:hover {
    opacity: 0.7;
}

/* Bottom section */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 15px;
    font-size: 13px;
    opacity: 0.7;
}





/* =========================================
   FLOATING CALL BUTTON
========================================= */

.floating-call {
  position: fixed;
  bottom:20px;
  right:20px;
  width:58px;
  height:58px;
  background: var(--button-bg);
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

@media (min-width: 769px) {
  .floating-call { display:none; }
}

/* =========================================
   MEDIA QUERIES
========================================= */

@media (max-width: 768px) {

  .service-grid {
    grid-template-columns:1fr;
  }

  .location-map iframe {
    height:300px;
  }

}