/*
Theme Name: XaaS Techs MSP
Theme URI: https://xaastechs.com
Author: XaaS Techs
Description: Lightweight marketing theme for MSP / Construction sites.
Version: 10.3
*/

/* ===========================
   CSS RESET / BASE
=========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f9fafb;
}

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

a {
    color: #ea580c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
}

/* Utility container */
.xaas-container,
.emils-container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

/* ===========================
   SITE WRAPPER
=========================== */

.xaas-site-header {
    background-color: #0b1120;
    color: #f9fafb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    z-index: 40;
}

/***********************************************
 * TOP BAR – GENERIC (XaaS / Emils)
 ***********************************************/

.xaas-topbar {
  background: #111827; /* dark slate */
  color: #e5e7eb;
  font-size: 0.9rem;
}

.xaas-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.45rem 1.25rem;
}

/* Tagline (left) */
.xaas-topbar-left {
  flex: 1 1 auto;
  line-height: 1.4;
}

/* Phone + CTA (right) */
.xaas-topbar-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xaas-topbar-phone {
  font-weight: 600;
  text-decoration: none;
  color: #facc15;
  white-space: nowrap;
}

.xaas-topbar-phone:hover {
  text-decoration: underline;
}

.xaas-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #f97316;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.4);
  white-space: nowrap;
}

.xaas-topbar-cta:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* Top bar – mobile improvements */
@media (max-width: 768px) {
  .xaas-topbar {
    font-size: 0.78rem;
  }

  .xaas-topbar-inner {
    padding-inline: 1rem;
    padding-block: 0.55rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .xaas-topbar-left {
    width: 100%;
    line-height: 1.5;
  }

  .xaas-topbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .xaas-topbar-phone {
    font-size: 0.82rem;
  }

  .xaas-topbar-cta {
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
  }
}

/***********************************************
 * MAIN NAV
 ***********************************************/

.xaas-main-nav {
    background: #020617;
    color: #e5e7eb;
}

.xaas-main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.85rem 0;
}

/* Logo */
.xaas-logo-link img {
    height: 42px;
    width: auto;
}

/* Desktop primary menu */
.xaas-primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.xaas-primary-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.xaas-primary-menu > li > a {
    color: #e5e7eb;
    font-size: 0.96rem;
    font-weight: 500;
    padding: 0.2rem 0;
    position: relative;
    text-decoration: none;
}

.xaas-primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #f97316, #facc15);
    transition: width 0.18s ease-out;
}

.xaas-primary-menu > li > a:hover::after,
.xaas-primary-menu > li.current-menu-item > a::after,
.xaas-primary-menu > li.current_page_item > a::after {
    width: 100%;
}

.xaas-primary-menu > li.current-menu-item > a,
.xaas-primary-menu > li.current_page_item > a {
    color: #facc15;
}

/* Mobile nav toggle */
.xaas-nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    position: relative;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.xaas-nav-toggle-bar,
.xaas-nav-toggle-bar::before,
.xaas-nav-toggle-bar::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
    position: relative;
}

.xaas-nav-toggle-bar::before,
.xaas-nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.xaas-nav-toggle-bar::before {
    top: -6px;
}

.xaas-nav-toggle-bar::after {
    bottom: -6px;
}

/* Toggle open state */
.xaas-nav-toggle.is-open .xaas-nav-toggle-bar {
    transform: rotate(45deg);
}

.xaas-nav-toggle.is-open .xaas-nav-toggle-bar::before {
    top: 0;
    transform: rotate(-90deg);
}

.xaas-nav-toggle.is-open .xaas-nav-toggle-bar::after {
    bottom: 0;
    opacity: 0;
}

/* Mobile nav overlay */
.xaas-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out;
    z-index: 39;
}

.xaas-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Body lock when nav open */
body.xaas-nav-open {
    overflow: hidden;
}

/* Mobile flyout content */
.xaas-mobile-nav-header {
    display: none;
    padding: 1.2rem 1.4rem 0.6rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.xaas-mobile-nav-logo img {
    height: 32px;
    margin: 0 auto;
}

.xaas-mobile-nav-footer {
    display: none;
    padding: 1rem 1.4rem 1.4rem;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.xaas-mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 1px solid rgba(248, 250, 252, 0.08);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
}

.xaas-mobile-quote-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* Mobile layout */
@media (max-width: 900px) {
    .xaas-main-nav-inner {
        padding: 0.7rem 1.25rem;
    }

    .xaas-primary-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(280px, 80vw);
        background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
        border-left: 1px solid rgba(31, 41, 55, 0.85);
        box-shadow: -18px 0 40px rgba(15, 23, 42, 0.9);
        transform: translateX(100%);
        transition: transform 0.2s ease-out;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        z-index: 40;
    }

    .xaas-primary-nav.is-open {
        transform: translateX(0%);
    }

    .xaas-primary-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.4rem 1.2rem;
        gap: 0.1rem;
    }

    .xaas-primary-menu > li > a {
        display: block;
        padding: 0.55rem 0;
        font-size: 0.98rem;
    }

    .xaas-mobile-nav-header,
    .xaas-mobile-nav-footer {
        display: block;
    }

    .xaas-nav-toggle {
        display: inline-flex;
    }
}

/***********************************************
 * FOOTER
 ***********************************************/

.xaas-site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.75rem 1.5rem;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    margin-top: 3rem;
}

.xaas-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.88rem;
}

.xaas-footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    margin: 0 0.3rem;
}

.xaas-footer-links a:hover {
    text-decoration: underline;
}

/***********************************************
 * COOKIE BANNER (GENERIC)
 ***********************************************/

.xaas-cookie-banner {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  font-size: 0.84rem;
  z-index: 60;
}

.xaas-cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.xaas-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.xaas-cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.xaas-cookie-actions a {
  color: #e5e7eb;
  text-decoration: underline;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .xaas-cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }
}

/***********************************************
 * FRONT PAGE – HERO (EMILS)
 ***********************************************/

.emils-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: url('/wp-content/themes/xaas-msp/assets/img/hero-construction.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: #fff;
}

.emils-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(10, 10, 10, 0.75),
        rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
}

.emils-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.emils-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: #facc15;
    margin-bottom: 0.7rem;
}

.emils-hero-title {
    font-size: clamp(2.4rem, 3.4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 0.8rem;
}

.emils-hero-subtext {
    font-size: 18px;
    line-height: 1.55;
    color: #f4f4f4;
    max-width: 680px;
}

/* ===========================
   GENERIC SECTIONS
=========================== */
.emils-section {
    padding: 60px 0;
    background-color: #f9fafb;
}

.emils-section.alt {
    background-color: #f3f4f6;
}

.emils-section-header {
    margin-bottom: 2rem;
}

.emils-section-header h2 {
    font-size: clamp(2rem, 2.4vw, 2.3rem);
    margin: 0 0 0.5rem;
}

.emils-section-header p {
    margin: 0;
    color: #4b5563;
    max-width: 640px;
}

@media (min-width: 900px) {
    .emils-section-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 1.5rem;
    }

    .emils-section-header p {
        text-align: right;
    }
}

/***********************************************
 * ABOUT PAGE – HERO & LAYOUT
 ***********************************************/

.emils-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

/* ABOUT HERO */
.emils-hero.emils-about-hero {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(248, 181, 84, 0.23), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617);
  overflow: hidden;
}

.emils-hero.emils-about-hero .emils-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.96)
  );
}

.emils-about-hero .emils-hero-inner {
  max-width: 740px;
}

.emils-about-hero .emils-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
}

.emils-about-hero .emils-hero-subtext {
  font-size: 0.98rem;
  max-width: 650px;
  color: rgba(241, 245, 249, 0.96);
}

/* SHARED LAYOUT */
.emils-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.emils-col p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  color: #374151;
}

.emils-key-points ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: #111827;
}

.emils-key-points li {
  margin-bottom: 0.4rem;
}

/* PROCESS GRID */
.emils-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
}

.emils-process-item {
  background: #f9fafb;
  border-radius: 0.9rem;
  padding: 1rem 0.9rem 0.9rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.emils-process-step {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.emils-process-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.emils-process-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* FOCUS GRID */
.emils-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.emils-focus-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.emils-focus-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.emils-focus-card p {
  margin: 0;
  font-size: 0.94rem;
  color: #4b5563;
}

/* SERVICE AREAS */
.emils-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.4rem;
}

.emils-service-column h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.emils-service-column h4 {
  margin: 1rem 0 0.4rem;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}

.emils-service-column ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: #374151;
}

.emils-service-column ul li {
  margin-bottom: 0.3rem;
}

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

.emils-checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
}

.emils-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-size: 0.9rem;
}

/* CTA SECTION */
.emils-section-cta {
  background: #0f172a;
  color: #e5e7eb;
}

.emils-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.emils-cta-copy h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 2.2vw, 1.9rem);
}

.emils-cta-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.emils-cta-action {
  flex-shrink: 0;
}

.emils-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.emils-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
}

.emils-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* ABOUT – RESPONSIVE TWEAKS */
@media (max-width: 900px) {
  .emils-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emils-focus-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-section {
    padding: 2.8rem 0;
  }
}

@media (max-width: 600px) {
  .emils-process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/***********************************************
 * SERVICE AREAS PAGE – LAYOUT
 ***********************************************/

.emils-service-areas-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

/* Page wrapper */
.emils-areas-hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top left, #fef3c7, #fff);
}

.emils-areas-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.emils-areas-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 2.7vw, 2.4rem);
}

.emils-areas-hero p {
  margin: 0;
  font-size: 0.98rem;
  color: #4b5563;
}

.emils-areas-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.emils-areas-tag span {
  font-size: 1rem;
}

/* Areas grid */
.emils-areas-grid {
  padding: 3rem 0;
  background: #f9fafb;
}

.emils-areas-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.emils-areas-card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.3rem 1.2rem 1.1rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.emils-areas-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.emils-areas-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.emils-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #374151;
}

.emils-areas-list li + li {
  margin-top: 0.25rem;
}

/* CTA at bottom */
.emils-areas-cta {
  padding: 3rem 0 3.2rem;
  background: #0f172a;
  color: #e5e7eb;
}

.emils-areas-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  align-items: center;
  justify-content: space-between;
}

.emils-areas-cta h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 2.2vw, 1.9rem);
}

.emils-areas-cta p {
  margin: 0;
  max-width: 520px;
  font-size: 0.95rem;
  color: #d1d5db;
}

/* Responsive */
@media (max-width: 960px) {
  .emils-areas-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-areas-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .emils-areas-grid-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-areas-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/***********************************************
 * PROJECTS PAGE (SIMPLE GRID)
 ***********************************************/

.emils-projects-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.emils-projects-hero {
  padding: 3.5rem 0 2.2rem;
  background: radial-gradient(circle at top left, #e5e7eb, #f9fafb);
}

.emils-projects-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 2.5vw, 2.3rem);
}

.emils-projects-hero p {
  margin: 0;
  color: #4b5563;
}

.emils-projects-grid {
  padding: 3rem 0 3.5rem;
}

.emils-projects-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.emils-project-card {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.emils-project-card-image {
  aspect-ratio: 4 / 3;
  background-color: #e5e7eb;
  overflow: hidden;
}

.emils-project-card-body {
  padding: 1.05rem 1rem 0.9rem;
}

.emils-project-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.emils-project-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.emils-project-meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 960px) {
  .emils-projects-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .emils-projects-grid-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/***********************************************
 * SERVICES PAGE
 ***********************************************/

.emils-services-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

.emils-services-wrapper {
  padding: 3.5rem 0 3.2rem;
}

/* Page header */
.emils-page-header {
  margin-bottom: 1.75rem;
}

.emils-page-header h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 2.4vw, 2.3rem);
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}

.emils-page-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Basic layout: intro & quick summary on right */
.emils-services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.1rem;
  align-items: flex-start;
  margin-bottom: 2.4rem;
}

.emils-services-intro p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #374151;
}

/* Quick facts / stack on right */
.emils-service-facts {
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.3rem 1.2rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
}

.emils-service-facts h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.emils-service-facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.emils-service-facts li {
  position: relative;
  padding-left: 1.1rem;
  color: #374151;
}

.emils-service-facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f97316;
}

/***********************************************
 * SERVICES STACK (3 COLUMN CARDS)
 ***********************************************/
.emils-services-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}

.emils-service-block {
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1.4rem 1.35rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.emils-service-block h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.emils-service-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.emils-service-block p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* List of details inside each block */
.emils-service-list {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #374151;
}

.emils-service-list li {
  margin-bottom: 0.25rem;
}

/***********************************************
 * SERVICE DETAIL ROWS (two-column)
 ***********************************************/
.emils-service-rows {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
}

.emils-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.emils-service-row h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #111827;
}

.emils-service-row p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.emils-service-row ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #374151;
}

.emils-service-row ul li {
  margin-bottom: 0.2rem;
}

.emils-service-highlight {
  background: radial-gradient(circle at top left, #fef3c7, #fff);
  border-radius: 1rem;
  border: 1px solid #fbbf24;
  padding: 1.2rem 1.1rem 1.05rem;
  font-size: 0.88rem;
  color: #92400e;
}

/* SERVICE CTA PANEL */
.emils-service-cta-panel {
  margin-top: 2.8rem;
  background: #0f172a;
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem 1.4rem;
  color: #e5e7eb;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.4rem;
  align-items: center;
}

.emils-service-cta-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.emils-service-cta-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: #d1d5db;
}

.emils-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #fbbf24;
  position: relative;
}

.emils-link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.45);
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform 140ms ease-out, opacity 140ms ease-out;
  opacity: 0;
}

.emils-link-arrow:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* SERVICES – RESPONSIVE */
@media (max-width: 1024px) {
  .emils-services-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-services-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emils-service-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .emils-services-wrapper {
    padding: 2.8rem 0 2.6rem;
  }

  .emils-services-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .emils-service-cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/***********************************************
 * GENERIC BUTTONS / LINKS
 ***********************************************/

.emils-inline-link {
    color: #ea580c;
    text-decoration: none;
    border-bottom: 1px solid rgba(248, 113, 22, 0.5);
}

.emils-inline-link:hover {
    text-decoration: none;
    border-bottom-color: rgba(248, 113, 22, 1);
}

/***********************************************
 * CONTACT PAGE – LAYOUT (EC-*)
 ***********************************************/

.ec-main.ec-contact-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

/* Layout */
.ec-container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.ec-section {
  padding: 3.5rem 0;
}

@media (min-width: 900px) {
  .ec-section {
    padding: 4.5rem 0;
  }
}

.ec-section-header {
  text-align: center;
  margin-bottom: 2.3rem;
}

.ec-section-header h2 {
  font-size: clamp(2rem, 2.5vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.ec-section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: #4b5563;
}

/* Buttons */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease, transform 0.06s ease, border-color 0.16s ease;
}

.ec-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35);
}

.ec-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(180, 83, 9, 0.35);
}

/* ===============================
   HERO
   =============================== */

.ec-hero {
  position: relative;
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.ec-hero-contact {
  background:
    radial-gradient(circle at top left, rgba(248, 181, 84, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(16, 76, 107, 0.7), #020617),
    url('/wp-content/themes/xaas-msp/assets/img/hero-construction.jpg') center/cover no-repeat;
}

.ec-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.92));
  mix-blend-mode: multiply;
}

.ec-hero-inner {
  position: relative;
  display: grid;
  gap: 2.2rem;
  z-index: 1;
}

@media (min-width: 960px) {
  .ec-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.ec-hero-copy {
  max-width: 640px;
}

.ec-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: #facc15;
}

.ec-hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.ec-hero-text {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(241, 245, 249, 0.95);
}

.ec-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.94rem;
}

.ec-hero-bullets li {
  position: relative;
  padding-left: 1.3rem;
}

.ec-hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  color: #22c55e;
}

.ec-hero-contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-top: 0.5rem;
}

.ec-hero-contact-inline a {
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
}

.ec-hero-contact-inline a:hover {
  text-decoration: underline;
}

/* Hero side card */
.ec-hero-contact-panel {
  display: flex;
  align-items: stretch;
}

.ec-hero-contact-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
  width: 100%;
  font-size: 0.9rem;
}

.ec-hero-contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.ec-hero-contact-card dl {
  margin: 0 0 1rem;
}

.ec-hero-contact-card dt {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ec-hero-contact-card dd {
  margin: 0.15rem 0 0.65rem;
  color: #d1d5db;
}

.ec-hero-contact-card a {
  color: #facc15;
  text-decoration: none;
}

.ec-hero-contact-card a:hover {
  text-decoration: underline;
}

.ec-hero-contact-note {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* ===============================
   CONTACT SECTION
   =============================== */

.ec-contact-section {
  background: #f8fafc;
}

.ec-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 900px) {
  .ec-contact-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* Form */
.ec-contact-form-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 1.7rem 1.6rem 1.6rem;
}

.ec-contact-form-header {
  margin-bottom: 1.2rem;
}

.ec-contact-form-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.ec-contact-form-header p {
  font-size: 0.92rem;
  color: #4b5563;
}

.ec-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 720px) {
  .ec-form-grid--two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ec-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.ec-form-label {
  font-weight: 500;
  color: #111827;
}

.ec-form-label span {
  color: #ef4444;
}

.ec-form-input,
.ec-form-select,
.ec-form-textarea {
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111827;
  background-color: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.ec-form-input:focus,
.ec-form-select:focus,
.ec-form-textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
  background-color: #fefce8;
}

.ec-form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* honeypot */
.ec-form-honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* Small text */
.ec-form-footnote {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Right column info */
.ec-contact-info {
  display: grid;
  gap: 1.2rem;
}

.ec-contact-info-block {
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: radial-gradient(circle at top left, #fef3c7, #fff);
  padding: 1.4rem 1.3rem;
  font-size: 0.9rem;
  color: #374151;
}

.ec-contact-info-block h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.ec-contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.ec-contact-info-list li a {
  color: #111827;
  text-decoration: none;
}

.ec-contact-info-list li a:hover {
  text-decoration: underline;
}

.ec-contact-hours {
  font-size: 0.86rem;
  color: #4b5563;
}

.ec-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 0.4rem;
}

/* ===============================
   FINAL CTA STRIP
   =============================== */

.ec-contact-final {
  background: #0f172a;
  color: #e5e7eb;
}

.ec-contact-final-inner {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

@media (min-width: 900px) {
  .ec-contact-final-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ec-contact-final h2 {
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.ec-contact-final p {
  max-width: 520px;
  font-size: 0.95rem;
  color: #d1d5db;
}

.ec-contact-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ec-contact-final-phone {
  font-weight: 600;
  color: #facc15;
  text-decoration: none;
}

.ec-contact-final-phone:hover {
  text-decoration: underline;
}

/***********************************************
 * MISC SHARED UTILITIES
 ***********************************************/

.emils-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #4b5563;
}

/* Simple radius list */
.emils-radius-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.emils-radius-list li {
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
}

/***********************************************
 * BACK TO TOP BUTTON (PLUGIN OVERRIDE TWEAK)
 ***********************************************/

a.yydev-back-to-top {
  border-radius: 999px !important;
}

/***********************************************
 * RESPONSIVE TWEAKS – GLOBAL
 ***********************************************/

@media (max-width: 768px) {
    .xaas-main-nav-inner {
        gap: 0.75rem;
    }

    .xaas-logo-link img {
        height: 34px;
    }

    .emils-hero {
        padding: 56px 0;
        min-height: 52vh;
    }

    .emils-hero-title {
        font-size: 2.1rem;
    }

    .emils-section {
        padding: 2.6rem 0;
    }
}

/* =========================================
   Emils Construction – Services Hero Enhancements
   ========================================= */

/* Subtle fade-up animation for services hero text only */
@keyframes emils-fade-up-soft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to the inner hero content on the Services page */
.page-services .emils-hero-inner {
  animation: emils-fade-up-soft 720ms ease-out 140ms both;
}

/* Slight text-shadow to keep hero copy readable over bright backgrounds */
.page-services .emils-hero-title,
.page-services .emils-hero-subtext {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
/* =========================================
   Emils Construction – Home Layout
   ========================================= */

.emils-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f1f5f9;
}

/* Wrapper */
#Content {
  padding-top: 0;
}

.content_wrapper {
  margin: 0;
}

/* =========================================
   HOME HERO
   ========================================= */

.emils-home-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(248, 181, 84, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.85), #020617),
    url('/wp-content/themes/xaas-msp/assets/img/hero-construction.jpg') center/cover no-repeat;
}

/* Dark overlay for readability */
.emils-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.92));
  mix-blend-mode: multiply;
}

.emils-home-hero .xaas-container {
  position: relative;
  z-index: 1;
}

/* Hero grid */
.emils-home-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
  animation: emils-hero-fadeup 0.75s ease-out forwards;
  opacity: 0;
  transform: translateY(12px);
}

@media (min-width: 980px) {
  .emils-home-hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

/* Eyebrow */
.emils-home-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #facc15;
  margin-bottom: 0.9rem;
}

/* Heading + copy */
.emils-home-hero h1 {
  font-size: clamp(2.2rem, 3.1vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.emils-home-hero-copy {
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 610px;
  color: rgba(241, 245, 249, 0.96);
}

/* Badges row */
.emils-home-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
}

.emils-home-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #e5e7eb;
}

/* CTA buttons */
.emils-home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.xaas-btn-primary,
.xaas-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.06s ease;
}

.xaas-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.45);
}

.xaas-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(180, 83, 9, 0.45);
}

.xaas-btn-outline {
  background: transparent;
  border-color: rgba(248, 250, 252, 0.55);
  color: #e5e7eb;
}

.xaas-btn-outline:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: #f97316;
  color: #fff;
}

/* Right hero panel */
.emils-home-hero-panel {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1rem;
  padding: 1.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
}

.emils-home-hero-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.emils-home-hero-panel p {
  margin-bottom: 0.9rem;
  color: #cbd5f5;
}

/* Panel list */
.emils-home-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.emils-home-hero-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  background: radial-gradient(circle at top left, rgba(248, 181, 84, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(30, 64, 175, 0.6);
}

.emils-home-hero-list li span:first-child {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.emils-home-hero-list li span:last-child {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Hero responsiveness */
@media (max-width: 768px) {
  .emils-home-hero {
    padding: 3.4rem 0 3rem;
  }

  .emils-home-hero-panel {
    margin-top: 0.75rem;
  }
}

/* Subtle hero fade-up animation */
@keyframes emils-hero-fadeup {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   HOME SECTIONS – BASE
   ========================================= */

.emils-home-section {
  padding: 3.5rem 0;
}

@media (min-width: 960px) {
  .emils-home-section {
    padding: 4.25rem 0;
  }
}

.emils-home-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.emils-home-section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #f97316;
  margin-bottom: 0.5rem;
}

.emils-home-section-header h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.emils-home-section-header p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* =========================================
   HOME – SERVICES SECTION
   ========================================= */

.emils-home-services {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.emils-services-grid-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

@media (min-width: 900px) {
  .emils-services-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.emils-service-card-home {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.emils-service-card-home h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: #111827;
}

.emils-service-card-home p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
  flex: 1 1 auto;
}

.emils-link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #ea580c;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
}

.emils-link-arrow::after {
  content: "→";
  margin-left: 0.25rem;
  transition: transform 0.14s ease;
}

.emils-link-arrow:hover::after {
  transform: translateX(2px);
}

/* =========================================
   HOME – SERVICE AREAS
   ========================================= */

.emils-home-areas {
  background: #ffffff;
}

.emils-home-areas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

@media (min-width: 980px) {
  .emils-home-areas-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    align-items: flex-start;
  }
}

/* Left text */
.emils-home-areas-text {
  font-size: 0.94rem;
  color: #374151;
  max-width: 520px;
}

.emils-home-areas-text p {
  margin-bottom: 1.1rem;
}

.emils-home-areas-cta {
  font-weight: 600;
}

/* Right columns */
.emils-home-areas-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

@media (min-width: 720px) {
  .emils-home-areas-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.emils-home-areas-col {
  background: radial-gradient(circle at top left, #fef3c7, #ffffff);
  border-radius: 0.9rem;
  padding: 1.1rem 1rem;
  border: 1px solid #e5e7eb;
}

.emils-home-areas-col h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.emils-home-areas-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
  color: #4b5563;
}

/* =========================================
   FOOTER TWEAKS (optional, matches theme)
   ========================================= */

.xaas-site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.75rem 1rem;
  border-top: 1px solid #111827;
}

.xaas-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.xaas-footer-links a {
  color: #e5e7eb;
  text-decoration: none;
}

.xaas-footer-links a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .xaas-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
/* =========================================
   Emils Construction – Services Page
   ========================================= */

.ec-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f1f5f9;
}

/* Generic container (matches home .xaas-container width) */
.ec-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Global sections on this page */
.ec-section {
  padding: 3.5rem 0;
}

@media (min-width: 960px) {
  .ec-section {
    padding: 4.25rem 0;
  }
}

.ec-section-header {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.ec-section-header h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.ec-section-header p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* =========================================
   HERO – Services
   ========================================= */

.ec-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: #f9fafb;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(248, 181, 84, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617),
    url('/wp-content/themes/xaas-msp/assets/img/hero-construction.jpg') center/cover no-repeat;
}

.ec-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.92));
  mix-blend-mode: multiply;
}

.ec-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
  opacity: 0;
  transform: translateY(12px);
  animation: ec-hero-fadeup 0.75s ease-out forwards;
}

@media (min-width: 980px) {
  .ec-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

/* Hero copy */
.ec-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #facc15;
  margin-bottom: 0.9rem;
}

.ec-hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.ec-hero-text {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 650px;
  color: rgba(241, 245, 249, 0.95);
}

/* Hero bullets */
.ec-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.4rem;
  display: grid;
  gap: 0.4rem;
}

.ec-hero-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.ec-hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 2px solid #f97316;
  box-shadow: 0 0 0 3px rgba(248, 250, 252, 0.16);
}

/* Hero CTAs */
.ec-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.06s ease;
}

.ec-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.45);
}

.ec-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(180, 83, 9, 0.45);
}

.ec-btn-outline {
  background: transparent;
  border-color: rgba(248, 250, 252, 0.55);
  color: #e5e7eb;
}

.ec-btn-outline:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: #f97316;
  color: #ffffff;
}

/* Hero inline contact */
.ec-hero-contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.ec-hero-contact-inline a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
}

.ec-hero-contact-inline a:hover {
  text-decoration: underline;
}

/* Right hero panel */
.ec-hero-panel {
  display: flex;
  align-items: stretch;
}

.ec-hero-panel-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1rem;
  padding: 1.7rem 1.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  font-size: 0.9rem;
  width: 100%;
}

.ec-hero-panel-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.ec-hero-panel-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.ec-hero-panel-card ul li {
  position: relative;
  padding-left: 1.15rem;
  color: #e5e7eb;
}

.ec-hero-panel-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f97316;
}

.ec-hero-panel-note {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Hero responsive tweaks */
@media (max-width: 768px) {
  .ec-hero {
    padding: 3.5rem 0 3rem;
  }

  .ec-hero-panel {
    margin-top: 0.6rem;
  }
}

@keyframes ec-hero-fadeup {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   SERVICES GRID SECTION
   ========================================= */

.ec-services-grid-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.ec-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

@media (min-width: 900px) {
  .ec-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ec-service-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ec-service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
  color: #111827;
}

.ec-service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

.ec-service-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.28rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.ec-service-card ul li::before {
  content: "– ";
  color: #9ca3af;
}

/* =========================================
   WHY EMILS SECTION
   ========================================= */

.ec-why-emils {
  background: #ffffff;
}

.ec-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .ec-why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ec-why-item {
  background: radial-gradient(circle at top left, #fef3c7, #ffffff);
  border-radius: 0.9rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid #e5e7eb;
}

.ec-why-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.ec-why-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

/* =========================================
   PROCESS SECTION
   ========================================= */

.ec-process {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.ec-process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.ec-process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1rem 1rem 0.2rem;
}

@media (min-width: 768px) {
  .ec-process-steps {
    gap: 1.2rem;
  }
}

.ec-step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.4);
}

.ec-step-body h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #111827;
}

.ec-step-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

/* =========================================
   SERVICE AREAS STRIP
   ========================================= */

.ec-service-areas-strip {
  background: #020617;
  color: #e5e7eb;
}

.ec-service-areas-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ec-service-areas-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  }
}

.ec-service-areas-copy h2 {
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  margin-bottom: 0.6rem;
  color: #f9fafb;
}

.ec-service-areas-copy p {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.ec-service-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ec-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

/* =========================================
   FINAL CTA
   ========================================= */

.ec-final-cta {
  background: #020617;
}

.ec-final-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  color: #e5e7eb;
}

@media (min-width: 900px) {
  .ec-final-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ec-final-cta-copy h2 {
  font-size: clamp(1.7rem, 2.3vw, 2rem);
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.ec-final-cta-copy p {
  font-size: 0.92rem;
  color: #cbd5f5;
}

.ec-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ec-final-cta-phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f97316;
  text-decoration: none;
}

.ec-final-cta-phone:hover {
  text-decoration: underline;
}

/* Small-screen spacing for main */
@media (max-width: 768px) {
  .ec-main {
    padding-bottom: 0.5rem;
  }
}
/* =========================================
   PROJECTS PAGE – HERO
   ========================================= */

/* Slightly adjust hero spacing for projects page */
.ec-hero.ec-hero-projects {
  padding-top: 4.25rem;
  padding-bottom: 3.9rem;
}

/* Hero text width */
.ec-hero-projects .ec-hero-text {
  max-width: 640px;
}

/* Tag pills under hero copy */
.ec-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
}

.ec-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.5);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e5e7eb;
}

/* Right hero panel – card with metrics */
.ec-hero-projects-panel {
  display: flex;
  align-items: stretch;
}

.ec-hero-projects-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1rem;
  padding: 1.7rem 1.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  font-size: 0.9rem;
  color: #e5e7eb;
  width: 100%;
}

.ec-hero-projects-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  color: #f9fafb;
}

/* Metrics grid in hero card */
.ec-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.ec-hero-metric {
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  background: radial-gradient(circle at top left, rgba(248, 181, 84, 0.16), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.ec-hero-metric-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5f5;
  margin-bottom: 0.15rem;
}

.ec-hero-metric-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f97316;
}

/* Hero responsiveness tweaks */
@media (max-width: 900px) {
  .ec-hero-projects-panel {
    margin-top: 0.9rem;
  }
}

@media (max-width: 640px) {
  .ec-hero-tags {
    gap: 0.4rem;
  }

  .ec-hero-tag {
    font-size: 0.75rem;
  }

  .ec-hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================
   PROJECTS PAGE – PROJECTS GRID
   ========================================= */

.ec-projects-grid-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* Filter pills bar */
.ec-projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.ec-project-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4b5563;
  background: #ffffff;
  cursor: default; /* can make pointer if you later add JS filtering */
}

.ec-project-pill--active {
  background: #0f172a;
  color: #f9fafb;
  border-color: #0f172a;
}

/* Projects card grid */
.ec-projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .ec-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ec-project-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Card header */
.ec-project-card-header {
  margin-bottom: 0.4rem;
}

.ec-project-type {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #f97316;
  margin-bottom: 0.3rem;
}

.ec-project-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
  color: #111827;
}

.ec-project-location {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Card body */
.ec-project-card-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.ec-project-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.ec-project-details li {
  position: relative;
  padding-left: 1.1rem;
}

.ec-project-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Slight hover lift */
@media (hover: hover) {
  .ec-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }
}

/* =========================================
   PROJECTS PAGE – EXPECTATIONS SECTION
   ========================================= */

.ec-projects-expect {
  background: #ffffff;
}

.ec-expect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .ec-expect-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.ec-expect-copy {
  font-size: 0.94rem;
  color: #374151;
}

.ec-expect-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
}

.ec-expect-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.ec-expect-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 2px solid #f97316;
}

.ec-expect-note {
  font-size: 0.86rem;
  color: #6b7280;
  margin-top: 0.6rem;
}

/* Side highlight card */
.ec-expect-card {
  background: radial-gradient(circle at top left, #fef3c7, #fff7ed);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid #fed7aa;
  font-size: 0.9rem;
  color: #7c2d12;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Mobile spacing tweaks */
@media (max-width: 768px) {
  .ec-projects-grid-section .ec-section-header {
    margin-bottom: 2rem;
  }

  .ec-expect-card {
    padding: 1.3rem 1.2rem;
  }
}

/* =========================================
   SERVICE AREAS PAGE – HERO
   ========================================= */

/* Slight tweak so hero feels focused for service areas */
.ec-hero.ec-hero-service-areas {
  padding-top: 4.25rem;
  padding-bottom: 3.9rem;
}

/* Right hero panel wrapper */
.ec-hero-areas-panel {
  display: flex;
  align-items: stretch;
}

/* Card inside right panel */
.ec-hero-areas-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1rem;
  padding: 1.7rem 1.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  font-size: 0.9rem;
  color: #e5e7eb;
  width: 100%;
}

.ec-hero-areas-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #f9fafb;
}

/* Tag row inside hero panel */
.ec-hero-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.ec-hero-area-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(248, 181, 84, 0.14), rgba(15, 23, 42, 0.95));
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e5e7eb;
}

/* On smaller screens, give the right card a little breathing room */
@media (max-width: 900px) {
  .ec-hero-areas-panel {
    margin-top: 0.9rem;
  }
}

/* =========================================
   SERVICE AREAS – REGION CARDS
   ========================================= */

.ec-regions-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.ec-regions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

@media (min-width: 900px) {
  .ec-regions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ec-region-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ec-region-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f97316;
  margin-bottom: 0.15rem;
}

.ec-region-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  color: #111827;
}

.ec-region-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

.ec-region-cities-title {
  margin-top: 0.4rem;
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.ec-region-cities {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.3rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
  color: #4b5563;
}

.ec-region-note {
  font-size: 0.84rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

/* Slight hover lift on desktop */
@media (hover: hover) {
  .ec-region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }
}

/* =========================================
   SERVICE AREAS – RADIUS SECTION
   ========================================= */

.ec-radius-section {
  background: #ffffff;
}

.ec-radius-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .ec-radius-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.ec-radius-copy {
  font-size: 0.94rem;
  color: #374151;
}

.ec-radius-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.ec-radius-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.ec-radius-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 2px solid #f97316;
}

/* Side card explaining radius */
.ec-radius-card {
  background: radial-gradient(circle at top left, #fef3c7, #fff7ed);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid #fed7aa;
  font-size: 0.9rem;
  color: #7c2d12;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* =========================================
   SERVICE AREAS – CLARITY STRIP
   ========================================= */

.ec-clarity-strip {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.ec-clarity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .ec-clarity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ec-clarity-item {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid #e5e7eb;
}

.ec-clarity-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.ec-clarity-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

/* Slight tightening on small screens */
@media (max-width: 768px) {
  .ec-regions-section .ec-section-header,
  .ec-radius-section .ec-section-header {
    margin-bottom: 2rem;
  }

  .ec-radius-card {
    padding: 1.3rem 1.2rem;
  }
}

/* =========================================
   ABOUT PAGE – BASE LAYOUT
   ========================================= */

.emils-main {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f1f5f9;
}

/* Shared container for Emils pages */
.emils-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Generic sections on About page */
.emils-section {
  padding: 3.5rem 0;
}

@media (min-width: 960px) {
  .emils-section {
    padding: 4.25rem 0;
  }
}

.emils-section-header {
  max-width: 720px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.emils-section-header h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.emils-section-header p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Simple two-column layout */
.emils-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .emils-two-column {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.emils-col {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
}

.emils-col p + p {
  margin-top: 0.85rem;
}

/* =========================================
   ABOUT HERO
   ========================================= */

.emils-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: #f9fafb;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(248, 181, 84, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617),
    url('/wp-content/themes/xaas-msp/assets/img/hero-construction.jpg') center/cover no-repeat;
}

.emils-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.92));
  mix-blend-mode: multiply;
}

.emils-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-right: 0.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: emils-hero-fadeup 0.75s ease-out forwards;
}

.emils-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #facc15;
  margin-bottom: 0.8rem;
}

.emils-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.emils-hero-subtext {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 640px;
  color: rgba(241, 245, 249, 0.96);
}

/* Hero responsiveness */
@media (max-width: 768px) {
  .emils-hero {
    padding: 3.5rem 0 3rem;
  }
}

@keyframes emils-hero-fadeup {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   INTRO / KEY POINTS
   ========================================= */

.emils-section-intro .emils-two-column {
  align-items: flex-start;
}

.emils-key-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #374151;
}

.emils-key-points li {
  position: relative;
  padding-left: 1.2rem;
}

.emils-key-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 2px solid #f97316;
}

/* =========================================
   STORY SECTION
   ========================================= */

.emils-section-story {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* =========================================
   HOW WE WORK – PROCESS GRID
   ========================================= */

.emils-section-process {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.emils-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .emils-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.emils-process-item {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.emils-process-step {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.5);
}

.emils-process-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #111827;
}

.emils-process-item p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
}

/* =========================================
   WHAT WE FOCUS ON – CARDS
   ========================================= */

.emils-section-focus {
  background: #ffffff;
}

.emils-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .emils-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.emils-focus-card {
  background: radial-gradient(circle at top left, #fef3c7, #ffffff);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.emils-focus-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.emils-focus-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

/* =========================================
   LICENSING & SERVICE AREAS
   ========================================= */

.emils-section-service-areas {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.emils-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .emils-service-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.emils-service-column h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #111827;
}

.emils-service-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f97316;
  margin: 1.1rem 0 0.35rem;
}

.emils-service-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: #4b5563;
}

/* Checklist on right column */
.emils-checklist {
  margin-top: 0.4rem;
}

.emils-checklist li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: #374151;
}

.emils-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: #16a34a;
}

/* =========================================
   CTA STRIP
   ========================================= */

.emils-section-cta {
  background: #020617;
  color: #e5e7eb;
}

.emils-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .emils-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.emils-cta-copy h2 {
  font-size: clamp(1.7rem, 2.3vw, 2rem);
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.emils-cta-copy p {
  font-size: 0.92rem;
  color: #cbd5f5;
}

.emils-cta-action {
  flex-shrink: 0;
}

/* CTA button */
.emils-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.06s ease;
}

.emils-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.45);
}

.emils-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(180, 83, 9, 0.45);
}

/* Small-screen spacing */
@media (max-width: 768px) {
  .emils-main {
    padding-bottom: 0.75rem;
  }
}

/* ===========================
   FRONT-PAGE HERO ANIMATION
   =========================== */

/* Base hero selector – adjust if your class name is different */
.front-page .construction-hero,
.front-page .xaas-hero,
.home .construction-hero,
.home .xaas-hero {
  position: relative;
  overflow: hidden;
}

/* Animated color overlay (subtle) */
.front-page .construction-hero::before,
.front-page .xaas-hero::before,
.home .construction-hero::before,
.home .xaas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Soft gradient that slowly moves */
  background: linear-gradient(
    135deg,
    rgba(235, 120, 52, 0.40),   /* warm orange */
    rgba(9, 132, 227, 0.32),    /* construction blue */
    rgba(39, 174, 96, 0.30)     /* subtle green */
  );
  background-size: 250% 250%;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  animation: emilsHeroGradient 22s ease-in-out infinite alternate;
}

/* Keyframes for slow, smooth color movement */
@keyframes emilsHeroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Optional: slight hover “pop” on hero buttons */
.front-page .construction-hero .xaas-btn,
.front-page .xaas-hero .xaas-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.front-page .construction-hero .xaas-btn:hover,
.front-page .xaas-hero .xaas-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
/* ===========================
   HEADER & TOP BAR SPACING
   =========================== */

/* Top bar: a bit taller, more breathing room */
.xaas-topbar {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

/* Header main row – make it taller and comfy */
.xaas-header-main {
  padding: 0.85rem 0; /* increase vertical padding */
}

/* Inner header layout – make sure items have room */
.xaas-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Keep the CTA from getting squished in the flex row */
.xaas-header-cta {
  margin-left: auto;
  flex-shrink: 0; /* prevents it from being compressed */
}

/* “Request a Quote” button – more padding + better click target */
.xaas-header-cta .xaas-btn,
.xaas-header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap; /* keeps it on one line */
}

@media (max-width: 768px) {
  /* On mobile, stack logo/nav/CTA nicely */
  .xaas-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.75rem;
  }

  .xaas-header-cta {
    margin-left: 0;
  }
}

/* ===========================
   FRONT-PAGE HERO: COLOR + LIGHTNING
   =========================== */

/* Base hero wrapper */
.home .emils-home-hero {
  position: relative;
  overflow: hidden;
}

/* Ensure hero content sits above overlays */
.home .emils-home-hero > * {
  position: relative;
  z-index: 2;
}

/* Animated color overlay (subtle) */
.home .emils-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    135deg,
    rgba(235, 120, 52, 0.40),   /* warm orange */
    rgba(9, 132, 227, 0.32),    /* construction blue */
    rgba(39, 174, 96, 0.30)     /* subtle green */
  );
  background-size: 250% 250%;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  animation: emilsHeroGradient 22s ease-in-out infinite alternate;
  z-index: 1;
}

/* Lightning sweep – thin diagonal highlight */
.home .emils-home-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -40%;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0) 75%
  );
  opacity: 0;
  transform: translateX(-130%) skewX(-10deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: emilsHeroLightning 7s ease-in-out infinite;
  z-index: 1;
}

/* Slow, smooth color movement */
@keyframes emilsHeroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Quick sweep "flash" */
@keyframes emilsHeroLightning {
  0%, 60% {
    opacity: 0;
    transform: translateX(-130%) skewX(-10deg);
  }
  62%, 64% {
    opacity: 0.8;
  }
  80%, 100% {
    opacity: 0;
    transform: translateX(230%) skewX(-10deg);
  }
}

/* Eyebrow with tiny lightning bolt */
.emils-home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.emils-home-hero-eyebrow::before {
  content: "⚡";
  font-size: 1rem;
  color: #f6b10f; /* warm construction yellow */
  animation: emilsBoltPulse 2.4s ease-in-out infinite;
}

@keyframes emilsBoltPulse {
  0%, 70%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  72%, 75% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Hero CTA buttons – subtle hover lift */
.home .emils-home-hero .xaas-btn-primary,
.home .emils-home-hero .xaas-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home .emils-home-hero .xaas-btn-primary:hover,
.home .emils-home-hero .xaas-btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ===========================
   HEADER & TOP BAR SPACING
   =========================== */

/* Top bar: a bit taller, more breathing room */
.xaas-topbar {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

/* Header main row – make it taller and comfy */
.xaas-header-main {
  padding: 0.85rem 0; /* increase vertical padding */
}

/* Inner header layout – make sure items have room */
.xaas-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Keep the CTA from getting squished in the flex row */
.xaas-header-cta {
  margin-left: auto;
  flex-shrink: 0; /* prevents it from being compressed */
}

/* “Request a quote” button – more padding + better click target */
.xaas-header-cta .xaas-btn,
.xaas-header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* On mobile, stack logo/nav/CTA nicely */
  .xaas-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.75rem;
  }

  .xaas-header-cta {
    margin-left: 0;
  }
}

/* ===========================
   MOBILE FULL-SCREEN NAV – EMILS
   =========================== */

@media (max-width: 900px) {
  /* Keep header/nav on top of everything */
  .xaas-main-nav {
    position: relative;
    z-index: 1000;
  }

  .xaas-nav-toggle {
    position: relative;
    z-index: 1100; /* so the toggle stays above the panel */
  }

  /* Full-screen mobile panel */
  .xaas-primary-nav {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: #0b1b26;
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 4.5rem 1.75rem 5.5rem; /* top padding for header/admin bar */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* When JS adds .is-open */
  .xaas-primary-nav.is-open {
    transform: translateX(0);
  }

  /* Logo at top center */
  .xaas-mobile-nav-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .xaas-mobile-nav-logo img {
    max-width: 170px;
    height: auto;
  }

  /* Centered vertical menu items */
  .xaas-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1.1rem;
  }

  .xaas-primary-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0;
  }

  .xaas-primary-menu > li.current-menu-item > a {
    border-bottom: 2px solid #f6b10f;
  }

  /* CTA at bottom center */
  .xaas-mobile-nav-footer {
    text-align: center;
    margin-top: 2rem;
  }

  .xaas-mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    background: #f6b10f;
    color: #0b1b26;
    text-decoration: none;
    font-weight: 600;
  }

  /* Dark overlay behind nav (still used, just under the panel) */
  .xaas-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 900;
  }

  .xaas-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Lock scroll when menu open */
  body.xaas-nav-open {
    overflow: hidden;
  }
}


/* ===========================
   HERO LIGHTNING EFFECTS
   Base + per-page variants
=========================== */

/* Base hero wrapper */
.emils-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /* Default lightning "theme" (home gets its own below too) */
    --hero-light-1: rgba(250, 204, 21, 0.30);  /* warm yellow */
    --hero-light-2: rgba(248, 113, 113, 0.35); /* soft red */
    --hero-dark:    #020617;

    --hero-angle:   110deg;
    --hero-speed:   18s;

    background:
        radial-gradient(circle at 0% 0%, rgba(250, 250, 250, 0.05), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(148, 163, 184, 0.10), transparent 55%),
        linear-gradient(135deg, #020617, #0f172a 45%, #111827 100%);
    color: #f9fafb;
}

/* Glowing animated lightning layer */
.emils-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    pointer-events: none;
    z-index: -1;

    background:
        conic-gradient(
            from var(--hero-angle),
            transparent 0deg,
            var(--hero-light-1) 40deg,
            var(--hero-light-2) 85deg,
            transparent 140deg
        );

    mix-blend-mode: screen;
    opacity: 0.85;
    filter: blur(26px);

    animation: heroLightning var(--hero-speed) linear infinite alternate;
}

/* Soft moving haze over the bottom of the hero */
.emils-hero::after {
    content: "";
    position: absolute;
    inset-inline: -10%;
    bottom: -25%;
    height: 60%;
    pointer-events: none;
    z-index: -1;

    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.18), transparent 60%),
        linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);

    opacity: 0.9;
    filter: blur(12px);

    animation: heroHaze 32s ease-in-out infinite alternate;
}

/* Animation keyframes (shared) */
@keyframes heroLightning {
    0% {
        transform: translate3d(-10%, -5%, 0) rotate(0deg) scale(1.1);
        opacity: 0.9;
    }
    25% {
        transform: translate3d(8%, 4%, 0) rotate(3deg) scale(1.05);
        opacity: 0.75;
    }
    50% {
        transform: translate3d(-4%, 6%, 0) rotate(-4deg) scale(1.15);
        opacity: 1;
    }
    75% {
        transform: translate3d(6%, -2%, 0) rotate(2deg) scale(1.08);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(-6%, 3%, 0) rotate(-3deg) scale(1.18);
        opacity: 0.95;
    }
}

@keyframes heroHaze {
    0% {
        transform: translate3d(-4%, 6%, 0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(6%, 0, 0) scale(1.05);
        opacity: 0.75;
    }
    100% {
        transform: translate3d(-2%, -4%, 0) scale(1.08);
        opacity: 0.95;
    }
}

/* ===========================
   PER-PAGE VARIANTS
   (Adjust body classes as needed)
=========================== */

/* Home hero – bold warm lightning */
.home .emils-hero {
    --hero-light-1: rgba(250, 204, 21, 0.55);  /* bright yellow */
    --hero-light-2: rgba(248, 113, 113, 0.45); /* warm red */
    --hero-angle: 95deg;
    --hero-speed: 20s;
}

/* Services hero – clean orange / copper streaks */
.page-services .emils-hero {
    --hero-light-1: rgba(251, 146, 60, 0.55);  /* bright orange */
    --hero-light-2: rgba(249, 115, 22, 0.40);  /* deeper orange */
    --hero-angle: 140deg;
    --hero-speed: 24s;
}

/* Projects / gallery hero – cooler blue electricity */
.page-projects .emils-hero,
.page-our-work .emils-hero {
    --hero-light-1: rgba(56, 189, 248, 0.50);  /* sky blue */
    --hero-light-2: rgba(59, 130, 246, 0.45);  /* royal blue */
    --hero-angle: 200deg;
    --hero-speed: 26s;
}

/* Contact hero – subtle teal / lime (a bit calmer) */
.page-contact-us .emils-hero,
.page-contact .emils-hero {
    --hero-light-1: rgba(45, 212, 191, 0.40);  /* teal */
    --hero-light-2: rgba(190, 242, 100, 0.35); /* lime */
    --hero-angle: 260deg;
    --hero-speed: 32s;
}

/* ======================================
   CONTACT HERO – LIGHTNING BACKGROUND
   (no HTML changes required)
====================================== */

.ec-hero-contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f9fafb;

  /* Base gradient under the lightning */
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.20), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.20), transparent 55%),
    linear-gradient(135deg, #020617, #0f172a 45%, #111827 100%);
}

/* Lightning streak layer */
.ec-hero-contact::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;           /* behind overlay + content */
  pointer-events: none;

  background:
    conic-gradient(
      from 280deg,
      transparent 0deg,
      rgba(45, 212, 191, 0.55) 45deg,   /* teal */
      rgba(56, 189, 248, 0.45) 95deg,   /* blue */
      rgba(190, 242, 100, 0.40) 130deg, /* lime */
      transparent 180deg
    );

  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(26px);

  animation: ecContactLightning 28s linear infinite alternate;
}

/* Soft moving haze near the bottom */
.ec-hero-contact::after {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -25%;
  height: 60%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.20), transparent 60%),
    linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);

  opacity: 0.95;
  filter: blur(14px);

  animation: ecContactHaze 34s ease-in-out infinite alternate;
}

/* Make sure overlay + inner sit above the lightning */
.ec-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* optional: slight dark veil */
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.95));
}

.ec-hero-inner {
  position: relative;
  z-index: 2;
}

/* Animations specific to contact hero */
@keyframes ecContactLightning {
  0% {
    transform: translate3d(-12%, -6%, 0) rotate(0deg) scale(1.05);
    opacity: 0.8;
  }
  25% {
    transform: translate3d(6%, 4%, 0) rotate(3deg) scale(1.08);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-4%, 8%, 0) rotate(-4deg) scale(1.12);
    opacity: 1;
  }
  75% {
    transform: translate3d(8%, -2%, 0) rotate(2deg) scale(1.1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(-6%, 3%, 0) rotate(-3deg) scale(1.15);
    opacity: 0.95;
  }
}

@keyframes ecContactHaze {
  0% {
    transform: translate3d(-4%, 6%, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(6%, 0, 0) scale(1.04);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(-2%, -4%, 0) scale(1.08);
    opacity: 0.95;
  }
}

/* ======================================
   ABOUT HERO – LIGHTNING BACKGROUND
   (no HTML changes required)
====================================== */

.emils-about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f9fafb;

  /* Base gradient under the lightning */
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.20), transparent 55%),  /* soft amber */
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.18), transparent 55%), /* soft blue */
    linear-gradient(135deg, #020617, #0b1120 40%, #111827 100%);
}

/* Lightning streak layer – calmer, warm */
.emils-about-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;

  background:
    conic-gradient(
      from 220deg,
      transparent 0deg,
      rgba(251, 191, 36, 0.55) 30deg,   /* amber */
      rgba(249, 115, 22, 0.45) 80deg,   /* orange */
      rgba(59, 130, 246, 0.35) 130deg,  /* blue accent */
      transparent 190deg
    );

  mix-blend-mode: screen;
  opacity: 0.85;
  filter: blur(24px);

  animation: emilsAboutLightning 30s linear infinite alternate;
}

/* Soft moving haze toward the bottom */
.emils-about-hero::after {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -25%;
  height: 60%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.22), transparent 60%),
    linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);

  opacity: 0.9;
  filter: blur(14px);

  animation: emilsAboutHaze 36s ease-in-out infinite alternate;
}

/* Make sure overlay + inner sit above lightning */
.emils-about-hero .emils-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.96));
}

.emils-about-hero .emils-hero-inner {
  position: relative;
  z-index: 2;
}

/* Animations specific to ABOUT hero */
@keyframes emilsAboutLightning {
  0% {
    transform: translate3d(-8%, -4%, 0) rotate(0deg) scale(1.03);
    opacity: 0.8;
  }
  30% {
    transform: translate3d(4%, 2%, 0) rotate(2deg) scale(1.06);
    opacity: 0.9;
  }
  60% {
    transform: translate3d(-3%, 6%, 0) rotate(-3deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate3d(5%, -2%, 0) rotate(1deg) scale(1.12);
    opacity: 0.85;
  }
}

@keyframes emilsAboutHaze {
  0% {
    transform: translate3d(-3%, 6%, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(5%, 0, 0) scale(1.03);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(-1%, -4%, 0) scale(1.07);
    opacity: 0.92;
  }
}

/* ======================================
   SERVICE AREAS HERO – LIGHTNING BACKGROUND
   (no HTML changes required)
====================================== */

.ec-hero-service-areas {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f9fafb;

  /* Base gradient: slightly more "map / region" feeling */
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.20), transparent 55%),   /* sky blue */
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.22), transparent 55%), /* teal */
    linear-gradient(135deg, #020617, #02091a 35%, #0b1120 70%, #020617 100%);
}

/* Lightning streak layer – cooler, regional vibe */
.ec-hero-service-areas::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;

  background:
    conic-gradient(
      from 260deg,
      transparent 0deg,
      rgba(56, 189, 248, 0.55) 40deg,   /* blue */
      rgba(45, 212, 191, 0.50) 90deg,   /* teal */
      rgba(96, 165, 250, 0.45) 140deg,  /* lighter blue */
      transparent 200deg
    );

  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(26px);

  animation: ecServiceLightning 30s linear infinite alternate;
}

/* Soft moving haze near the bottom */
.ec-hero-service-areas::after {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -25%;
  height: 60%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 75% 0%, rgba(56, 189, 248, 0.20), transparent 60%),
    linear-gradient(to top, rgba(15, 23, 42, 0.96), transparent);

  opacity: 0.95;
  filter: blur(14px);

  animation: ecServiceHaze 34s ease-in-out infinite alternate;
}

/* ec-hero-overlay and ec-hero-inner are already styled globally
   and reused here to sit above the lightning layer */

/* Animations specific to SERVICE AREAS hero */
@keyframes ecServiceLightning {
  0% {
    transform: translate3d(-10%, -6%, 0) rotate(0deg) scale(1.04);
    opacity: 0.85;
  }
  25% {
    transform: translate3d(6%, 2%, 0) rotate(2deg) scale(1.07);
    opacity: 0.95;
  }
  55% {
    transform: translate3d(-4%, 7%, 0) rotate(-3deg) scale(1.11);
    opacity: 1;
  }
  100% {
    transform: translate3d(8%, -3%, 0) rotate(1deg) scale(1.13);
    opacity: 0.9;
  }
}

@keyframes ecServiceHaze {
  0% {
    transform: translate3d(-3%, 7%, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(5%, 0, 0) scale(1.04);
    opacity: 0.78;
  }
  100% {
    transform: translate3d(-1%, -4%, 0) scale(1.08);
    opacity: 0.94;
  }
}

/* ===========================
   MOBILE NAV REPAIR – EMILS
   (side flyout, overlay, X to close)
   =========================== */

@media (max-width: 900px) {
  /* Keep header/nav above page content */
  .xaas-main-nav {
    position: relative;
    z-index: 1000;
  }

  .xaas-main-nav-inner {
    padding: 0.7rem 1.25rem;
  }

  /* Show hamburger on mobile */
  .xaas-nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1100; /* above panel */
  }

  /* Side fly-out panel from the right */
  .xaas-primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(280px, 80vw);
    background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
    border-left: 1px solid rgba(31, 41, 55, 0.85);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.9);
    transform: translateX(100%);
    transition: transform 0.24s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    z-index: 1050;
  }

  /* When JS adds .is-open */
  .xaas-primary-nav.is-open {
    transform: translateX(0%);
  }

  /* Mobile header (logo) and footer (CTA) inside panel */
  .xaas-mobile-nav-header,
  .xaas-mobile-nav-footer {
    display: block;
  }

  .xaas-mobile-nav-header {
    padding: 1.2rem 1.4rem 0.6rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    text-align: center;
  }

  .xaas-mobile-nav-logo img {
    max-width: 170px;
    height: auto;
    margin: 0 auto;
  }

  .xaas-mobile-nav-footer {
    padding: 1rem 1.4rem 1.4rem;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    text-align: center;
  }

  .xaas-mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 1px solid rgba(248, 250, 252, 0.08);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
  }

  .xaas-mobile-quote-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
  }

  /* Menu list – stacked, left-aligned */
  .xaas-primary-menu {
    list-style: none;
    margin: 0;
    padding: 1rem 1.4rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    font-size: 1.02rem;
  }

  .xaas-primary-menu > li > a {
    display: block;
    width: 100%;
    padding: 0.55rem 0;
    color: #ffffff;
    text-decoration: none;
  }

  .xaas-primary-menu > li.current-menu-item > a,
  .xaas-primary-menu > li.current_page_item > a {
    color: #facc15;
    border-bottom: 2px solid #facc15;
  }

  /* Dark overlay behind panel */
  .xaas-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
  }

  .xaas-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Lock scroll when mobile nav open */
  body.xaas-nav-open {
    overflow: hidden;
  }
}
/* ===========================
   MOBILE NAV – FULL SCREEN PANEL
   (Overrides previous mobile nav rules)
   =========================== */

@media (max-width: 900px) {
  /* Keep header/nav above everything */
  .xaas-main-nav {
    position: relative;
    z-index: 1000;
  }

  .xaas-main-nav-inner {
    padding: 0.7rem 1.25rem;
  }

  /* Show hamburger on mobile */
  .xaas-nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1200; /* always above panel */
  }

  /* Full-screen mobile panel */
  .xaas-primary-nav {
    position: fixed;
    inset: 0; /* full viewport */
    width: 100%;
    background: #0b1b26;
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.5rem 1.75rem 5rem; /* room for logo & CTA */
    z-index: 1100;
  }

  /* When JS adds .is-open */
  .xaas-primary-nav.is-open {
    transform: translateX(0);
  }

  /* Logo at top center */
  .xaas-mobile-nav-header {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .xaas-mobile-nav-logo img {
    max-width: 170px;
    height: auto;
    margin: 0 auto;
  }

  /* Centered vertical menu in the middle */
  .xaas-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    font-size: 1.05rem;
  }

  .xaas-primary-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 0;
  }

  .xaas-primary-menu > li.current-menu-item > a,
  .xaas-primary-menu > li.current_page_item > a {
    color: #f6b10f;
    border-bottom: 2px solid #f6b10f;
  }

  /* CTA at bottom center */
  .xaas-mobile-nav-footer {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
  }

  .xaas-mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: #f6b10f;
    color: #0b1b26;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  }

  .xaas-mobile-quote-btn:hover {
    background: #fbbf24;
  }

  /* Dark overlay behind panel */
  .xaas-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1050;
  }

  .xaas-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Lock scroll when menu open */
  body.xaas-nav-open {
    overflow: hidden;
  }
}
/* =====================================
   MOBILE NAV – FULL SCREEN, NO OVERLAY,
   TOGGLE "X" IN TOP RIGHT
   ===================================== */

@media (max-width: 900px) {
  /* Make sure main nav is above content */
  .xaas-main-nav {
    position: relative;
    z-index: 1000;
  }

  /* Full-screen panel */
  .xaas-primary-nav {
    position: fixed;
    inset: 0;            /* full viewport */
    width: 100%;
    background: #0b1b26;
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.5rem 1.75rem 5rem;
    z-index: 1100;
  }

  .xaas-primary-nav.is-open {
    transform: translateX(0);
  }

  /* Logo at top center */
  .xaas-mobile-nav-header {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .xaas-mobile-nav-logo img {
    max-width: 170px;
    height: auto;
    margin: 0 auto;
  }

  /* Centered vertical menu */
  .xaas-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    font-size: 1.05rem;
  }

  .xaas-primary-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 0;
  }

  .xaas-primary-menu > li.current-menu-item > a,
  .xaas-primary-menu > li.current_page_item > a {
    color: #f6b10f;
    border-bottom: 2px solid #f6b10f;
  }

  /* CTA at bottom center */
  .xaas-mobile-nav-footer {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
  }

  .xaas-mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: #f6b10f;
    color: #0b1b26;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  }

  .xaas-mobile-quote-btn:hover {
    background: #fbbf24;
  }

  /* Hamburger / X toggle in top-right */
  .xaas-nav-toggle {
    display: inline-flex;
    position: fixed;        /* pin to viewport */
    top: 0.9rem;
    right: 1rem;
    z-index: 1200;          /* above panel */
  }

  /* Adjust for WP admin bar if logged in */
  body.admin-bar .xaas-nav-toggle {
    top: 3.2rem;
  }

  /* Kill the separate overlay on mobile */
  .xaas-nav-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Still lock scroll when menu open */
  body.xaas-nav-open {
    overflow: hidden;
  }
}

/* =====================================
   MOBILE NAV – FULL SCREEN
   Hamburger stays in header when closed,
   becomes X in top-right when open,
   no dark overlay
===================================== */

@media (max-width: 900px) {
  /* Full-screen mobile panel */
  .xaas-primary-nav {
    position: fixed;
    inset: 0;              /* full viewport */
    width: 100%;
    background: #0b1b26;
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.5rem 1.75rem 5rem;
    z-index: 1100;
  }

  .xaas-primary-nav.is-open {
    transform: translateX(0);
  }

  /* Logo at top center inside the panel */
  .xaas-mobile-nav-header {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .xaas-mobile-nav-logo img {
    max-width: 170px;
    height: auto;
    margin: 0 auto;
  }

  /* Centered vertical menu */
  .xaas-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    font-size: 1.05rem;
  }

  .xaas-primary-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 0;
  }

  .xaas-primary-menu > li.current-menu-item > a,
  .xaas-primary-menu > li.current_page_item > a {
    color: #f6b10f;
    border-bottom: 2px solid #f6b10f;
  }

  /* CTA at bottom center */
  .xaas-mobile-nav-footer {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
  }

  .xaas-mobile-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: #f6b10f;
    color: #0b1b26;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  }

  .xaas-mobile-quote-btn:hover {
    background: #fbbf24;
  }

  /* HAMBURGER: keep original placement when closed,
     but move to top-right when OPEN as an X */
  .xaas-nav-toggle {
    /* keep its header position; just bump z-index */
    z-index: 1200;
  }

  .xaas-nav-toggle.is-open {
    position: fixed;
    top: 0.9rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    padding: 0.2rem;
  }

  /* Adjust for WP admin bar if logged in */
  body.admin-bar .xaas-nav-toggle.is-open {
    top: 3.2rem;
  }

  /* No separate dark overlay takeover */
  .xaas-nav-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Still lock scroll when menu open */
  body.xaas-nav-open {
    overflow: hidden;
  }
}

/* ===========================
   TOP BAR – FULL WIDTH
   =========================== */

/* Let the top bar content stretch edge-to-edge */
.xaas-topbar .xaas-topbar-inner {
  width: 100%;
  max-width: none;
  padding-inline: 1.25rem;
}



/* ===========================
   MOBILE NAV – HAMBURGER IN NAV BAR
   (full-screen panel kept)
   =========================== */

@media (max-width: 900px) {

  /* Keep the hamburger in the header row */
  .xaas-nav-toggle {
    display: inline-flex;
    position: relative;   /* back in normal flow */
    top: auto;
    right: auto;
    z-index: 1200;
  }

  /* When open, keep it in the same nav bar spot,
     just use your existing bar animation for the X */
  .xaas-nav-toggle.is-open {
    position: relative;
    top: auto;
    right: auto;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    padding: 0; /* or 0.1rem if you want a bit more click area */
  }

  /* Full-screen panel remains as previously set */
  .xaas-primary-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    background: #0b1b26;
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.5rem 1.75rem 5rem;
    z-index: 1100;
  }

  .xaas-primary-nav.is-open {
    transform: translateX(0);
  }

  /* No dark overlay takeover */
  .xaas-nav-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.xaas-nav-open {
    overflow: hidden;
  }
}
