/* ============================================================
   EVERGREEN AIR CONDITIONING — GLOBAL THEME OVERRIDE v2.0
   Applies across ALL pages sitewide
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --eg-black:        #111a13;
  --eg-green-dark:   #162d1e;
  --eg-green:        #1a5c37;
  --eg-green-mid:    #2e7d4f;
  --eg-green-bright: #00c47a;
  --eg-cream:        #f5f0e8;
  --eg-warm-white:   #faf9f6;
  --eg-muted:        #8aaa90;
  --eg-border:       #253d2c;
  --eg-font-display: 'Fraunces', Georgia, serif;
  --eg-font-body:    'DM Sans', -apple-system, sans-serif;
}

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; }

/* Override body */
body {
  font-family: var(--eg-font-body) !important;
  background: var(--eg-black) !important;
  color: var(--eg-cream) !important;
  margin: 0 !important;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Remove any default page wrappers the parent theme adds */
.site-wrapper,
.wrapper,
.page-wrapper,
#page,
#main-content,
.site-main,
main {
  background: transparent !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── TYPOGRAPHY GLOBAL ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--eg-font-display) !important;
  color: var(--eg-cream) !important;
  letter-spacing: -0.02em;
}

p, li, td, th, span, div {
  font-family: var(--eg-font-body) !important;
}

a {
  color: var(--eg-green-bright) !important;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

/* ── HIDE PARENT THEME HEADER & FOOTER COMPLETELY ── */
.site-header,
header.header,
#header,
.main-header,
.top-header,
.header-wrapper,
.site-footer,
footer.footer,
#footer,
.main-footer,
.footer-wrapper,
.footer-widgets {
  display: none !important;
}

/* ── OUR NEW HEADER ── */
.eg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(10, 15, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--eg-border);
  transition: background 0.3s, box-shadow 0.3s;
}
.eg-header.scrolled {
  background: rgba(10, 15, 10, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.eg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}

.eg-logo {
  font-family: var(--eg-font-display) !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eg-cream) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.eg-logo-dot {
  width: 8px; height: 8px;
  background: var(--eg-green-bright);
  border-radius: 50%;
  display: inline-block;
  animation: eg-pulse 2.5s ease-in-out infinite;
}
@keyframes eg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.eg-nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0; padding: 0;
  align-items: center;
}
.eg-nav-links li { position: relative; }
.eg-nav-links > li > a {
  font-family: var(--eg-font-body) !important;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--eg-muted) !important;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.eg-nav-links > li > a:hover {
  color: var(--eg-cream) !important;
  background: rgba(255,255,255,0.05);
  opacity: 1;
}

/* DROPDOWN */
.eg-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #162d1e;
  border: 1px solid var(--eg-border);
  border-radius: 10px;
  padding: 8px;
  min-width: 210px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.eg-has-dropdown:hover .eg-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.eg-dropdown a {
  display: block;
  font-family: var(--eg-font-body) !important;
  font-size: 0.82rem !important;
  color: var(--eg-muted) !important;
  text-decoration: none !important;
  padding: 9px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}
.eg-dropdown a:hover {
  color: var(--eg-cream) !important;
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.eg-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.eg-nav-phone {
  font-size: 0.82rem;
  color: var(--eg-muted) !important;
  text-decoration: none !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.eg-nav-phone:hover { color: var(--eg-cream) !important; opacity: 1; }

.eg-nav-cta {
  background: var(--eg-green-bright) !important;
  color: var(--eg-black) !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.eg-nav-cta:hover {
  background: #00e88e !important;
  transform: translateY(-1px);
  opacity: 1;
}

/* HAMBURGER */
.eg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.eg-hamburger:hover { background: rgba(255,255,255,0.08); }
.eg-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--eg-cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.eg-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.eg-hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.eg-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* MOBILE MENU */
.eg-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--eg-border);
  background: #0a0f0a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.eg-mobile-menu.open {
  display: flex;
  max-height: 600px;
}
.eg-mobile-menu a {
  font-family: var(--eg-font-body) !important;
  font-size: 0.95rem;
  color: var(--eg-muted) !important;
  text-decoration: none !important;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.eg-mobile-menu a:hover { color: var(--eg-cream) !important; opacity: 1; }
.eg-mobile-cta {
  margin-top: 16px;
  background: var(--eg-green-bright) !important;
  color: var(--eg-black) !important;
  text-align: center;
  padding: 14px !important;
  border-radius: 8px;
  font-weight: 500 !important;
  border-bottom: none !important;
}
.eg-mobile-phone {
  text-align: center;
  color: var(--eg-green-bright) !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  margin-top: 8px;
  padding: 8px 0 !important;
}

/* CONTENT WRAP — pushes page content below fixed header */
.eg-content-wrap {
  padding-top: 68px;
  min-height: 60vh;
}

/* ── OUR NEW FOOTER ── */
.eg-footer {
  background: #0e1810;
  border-top: 1px solid var(--eg-border);
  font-family: var(--eg-font-body) !important;
}
.eg-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}
.eg-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--eg-border);
}
.eg-footer-logo {
  font-family: var(--eg-font-display) !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eg-cream) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eg-footer-brand p {
  font-size: 0.82rem;
  color: var(--eg-muted);
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 20px;
}
.eg-footer-social {
  display: flex;
  gap: 10px;
}
.eg-footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--eg-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--eg-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s;
}
.eg-footer-social a:hover {
  border-color: var(--eg-green-bright);
  color: var(--eg-green-bright) !important;
  opacity: 1;
}
.eg-footer-col h4 {
  font-family: var(--eg-font-body) !important;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eg-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.eg-footer-col a {
  display: block;
  font-size: 0.84rem;
  color: rgba(245,240,232,0.55) !important;
  text-decoration: none !important;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.eg-footer-col a:hover {
  color: var(--eg-cream) !important;
  opacity: 1;
}
.eg-footer-phone {
  font-family: var(--eg-font-display) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--eg-green-bright) !important;
  letter-spacing: -0.01em;
  margin-bottom: 6px !important;
}
.eg-footer-hours {
  font-size: 0.76rem;
  color: var(--eg-muted);
  margin: 0 0 14px;
}
.eg-footer-addr {
  font-size: 0.8rem;
  color: var(--eg-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.eg-footer-cta {
  display: inline-block;
  background: var(--eg-green-bright) !important;
  color: var(--eg-black) !important;
  padding: 11px 22px !important;
  border-radius: 100px;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  transition: background 0.2s !important;
  margin-bottom: 0 !important;
}
.eg-footer-cta:hover { background: #00e88e !important; opacity: 1; }

/* Accreditations bar */
.eg-footer-accred {
  padding: 24px 0;
  border-bottom: 1px solid var(--eg-border);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.eg-footer-accred > span {
  font-size: 0.72rem;
  color: var(--eg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eg-accred-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.eg-accred-badge {
  font-size: 0.72rem;
  color: var(--eg-muted);
  border: 1px solid var(--eg-border);
  border-radius: 100px;
  padding: 5px 14px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Footer bottom */
.eg-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.eg-footer-bottom p {
  font-size: 0.76rem;
  color: var(--eg-muted);
  margin: 0;
}
.eg-footer-bottom-links { display: flex; gap: 20px; }
.eg-footer-bottom-links a {
  font-size: 0.76rem;
  color: var(--eg-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.eg-footer-bottom-links a:hover { color: var(--eg-cream) !important; opacity: 1; }

/* ── ELEMENTOR CONTENT AREA — make dark bg work with Elementor ── */
.elementor-section,
.elementor-container,
.e-con,
.e-con-inner {
  color: var(--eg-cream);
}

/* Override Elementor white backgrounds on sections */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1140px;
}

/* ── GLOBAL BUTTON STYLES — override any ugly default buttons ── */
.elementor-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  font-family: var(--eg-font-body) !important;
  background: var(--eg-green-bright) !important;
  color: var(--eg-black) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 12px 28px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer;
  transition: background 0.2s !important;
}
.elementor-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: #00e88e !important;
  opacity: 1 !important;
}

/* ── BLOG/NEWS PAGE CARDS ── */
.eg-post-card {
  background: #162d1e;
  border: 1px solid var(--eg-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.eg-post-card:hover {
  border-color: var(--eg-green-mid);
  transform: translateY(-3px);
}

/* ── FORMS (contact page) ── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  background: #162d1e !important;
  border: 1px solid var(--eg-border) !important;
  border-radius: 8px !important;
  color: var(--eg-cream) !important;
  padding: 12px 16px !important;
  font-family: var(--eg-font-body) !important;
  font-size: 0.9rem !important;
  transition: border-color 0.2s !important;
  width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--eg-green-bright) !important;
}
input::placeholder, textarea::placeholder {
  color: var(--eg-muted) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .eg-nav { padding: 0 24px; }
  .eg-nav-links { display: none; }
  .eg-nav-phone { display: none; }
  .eg-hamburger { display: flex; }
  .eg-footer-top { grid-template-columns: 1fr 1fr; }
  .eg-footer-inner { padding: 0 24px; }
}

@media (max-width: 600px) {
  .eg-footer-top { grid-template-columns: 1fr; }
  .eg-footer-accred { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   EVERGREEN HOMEPAGE FIXES — CTA VISIBILITY + IMAGE HELPERS
   Fixes Elementor/parent theme link styling overriding custom buttons.
   ============================================================ */

/* Main CTA buttons used in the new homepage HTML */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:active,
.btn-primary:focus,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:active,
a.btn-primary:focus,
.hero-actions .btn-primary,
.cta-actions .btn-primary {
  background: var(--green-bright, var(--eg-green-bright)) !important;
  color: #071007 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: #071007 !important;
}

.btn-primary:hover,
a.btn-primary:hover,
.hero-actions .btn-primary:hover,
.cta-actions .btn-primary:hover {
  background: #00e88e !important;
  color: #071007 !important;
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-2px);
  -webkit-text-fill-color: #071007 !important;
}

/* Make sure button text/spans/icons inside the CTA inherit the readable colour */
.btn-primary *,
a.btn-primary *,
.hero-actions .btn-primary *,
.cta-actions .btn-primary * {
  color: #071007 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #071007 !important;
}

/* Outline buttons on the homepage, including phone button */
.btn-outline,
.btn-outline:link,
.btn-outline:visited,
.btn-outline:active,
.btn-outline:focus,
a.btn-outline,
a.btn-outline:link,
a.btn-outline:visited,
a.btn-outline:active,
a.btn-outline:focus,
.hero-actions .btn-outline,
.cta-actions .btn-outline {
  color: var(--cream, var(--eg-cream)) !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--cream, var(--eg-cream)) !important;
}

.btn-outline:hover,
a.btn-outline:hover,
.hero-actions .btn-outline:hover,
.cta-actions .btn-outline:hover {
  color: var(--cream, var(--eg-cream)) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--cream, var(--eg-cream)) !important;
}

/* Nav and footer CTA visibility */
.eg-nav-cta,
.eg-nav-cta:link,
.eg-nav-cta:visited,
.eg-mobile-cta,
.eg-footer-cta,
.nav-cta,
.nav-cta:link,
.nav-cta:visited {
  color: #071007 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: #071007 !important;
}

.eg-nav-cta:hover,
.eg-mobile-cta:hover,
.eg-footer-cta:hover,
.nav-cta:hover {
  color: #071007 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #071007 !important;
}

/* Reusable image class for adding old homepage images into the new page */
.section-image,
.eg-section-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border, var(--eg-border));
}

.eg-image-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border, var(--eg-border));
  background: var(--green-dark, var(--eg-green-dark));
}

.eg-image-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
}
