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

:root {
  --navy:       #0A1628;
  --navy-mid:   #122040;
  --navy-light: #1C2F50;
  --green:      #059669;
  --green-mid:  #10B981;
  --green-pale: #34D399;
  --green-glow: #6EE7B7;
  --white:      #FFFFFF;
  --off-white:  #F4F6F8;
  --gray-light: #C8D0DC;
  --gray:       #8A9AAE;
  --dark:       #060D1A;
  --border:     rgba(5,150,105,0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }

/* Logo */
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }

/* Main nav links */
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }

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

.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
  color: var(--gray-light); text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-menu > li.active > a { color: var(--green-mid); }

/* Dropdown chevron */
.has-dropdown > a .chevron {
  width: 14px; height: 14px; transition: transform 0.25s;
  opacity: 0.6; flex-shrink: 0;
}
.has-dropdown.open > a .chevron,
.has-dropdown:hover > a .chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  list-style: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.dropdown li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--gray-light);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: rgba(5,150,105,0.1); color: var(--white); }
.dropdown li a:hover .dd-icon { color: var(--green-mid); }

.dd-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; opacity: 0.8; }

.dropdown .dd-divider { height: 1px; background: var(--border); margin: 6px 8px; }

/* Nav right actions */
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-linkedin {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--gray);
  text-decoration: none; padding: 7px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s; letter-spacing: 0.5px;
}
.nav-linkedin:hover { color: var(--white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--navy) !important;
  padding: 10px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 20px rgba(5,150,105,0.3);
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-cta:hover { box-shadow: 0 0 32px rgba(5,150,105,0.5); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-light); border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  border-top: 1px solid var(--border);
  overflow-y: auto; padding: 16px 5% 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}
.nav-mobile.open { transform: translateX(0); }

.mobile-menu { list-style: none; }
.mobile-menu li a {
  display: block; padding: 14px 0;
  font-size: 16px; font-weight: 600; color: var(--gray-light);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu li a:hover { color: var(--green-mid); }

.mobile-submenu { list-style: none; padding-left: 16px; margin-bottom: 8px; }
.mobile-submenu li a {
  font-size: 14px; font-weight: 500; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--gray);
}
.mobile-submenu li a:hover { color: var(--green-pale); }

.mobile-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mobile-actions .nav-cta { text-align: center; padding: 14px; font-size: 15px; }
.mobile-actions .nav-linkedin { justify-content: center; }

/* ── PAGE WRAPPER ── */
.page-content { padding-top: 72px; }

/* ── SECTION UTILITIES ── */
section { padding: 100px 5%; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--green-mid); text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800; line-height: 1.1; margin-bottom: 18px;
}
.section-desc {
  font-size: 16px; line-height: 1.75; color: var(--gray-light); max-width: 560px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--navy); padding: 15px 30px; border-radius: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  text-decoration: none; text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(5,150,105,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(5,150,105,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: 1px solid rgba(5,150,105,0.4); color: var(--green-mid);
  padding: 14px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none; text-transform: uppercase;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(5,150,105,0.1); border-color: var(--green-mid); }

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 72px 5% 36px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 14px; line-height: 1.7; color: var(--gray); margin-top: 16px; max-width: 280px;
}
.footer-logo img {
  height: 36px; width: auto;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--green-mid); text-transform: uppercase; margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--gray);
  text-decoration: none; margin-bottom: 12px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-divider { height: 1px; background: rgba(5,150,105,0.1); margin-bottom: 32px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--gray); }
.footer-copy strong { color: var(--green-mid); font-weight: 600; }

/* ── CLIENT LOGOS ── */
.clients { background: var(--navy-mid); }
.clients-intro { max-width: 560px; }
.clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px;
}
.client-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px; border-radius: 10px; min-height: 110px; gap: 14px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.25s, background 0.25s;
}
.client-card:hover { border-color: rgba(5,150,105,0.35); background: rgba(5,150,105,0.05); }
.client-card img {
  max-height: 46px; max-width: 160px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 0.25s;
  display: block;
}
.client-card:hover img { opacity: 0.9; }
.client-card img.hidden { display: none; }
.client-name {
  font-size: 13px; font-weight: 600; color: var(--gray); text-align: center;
  letter-spacing: 0.3px; line-height: 1.4;
}
@media (max-width: 768px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .clients-grid { grid-template-columns: 1fr; } }

/* ── SERVICE SUB-PAGES ── */
.svc-page-hero {
  padding: 140px 5% 80px;
  background: linear-gradient(135deg, rgba(6,13,26,0.97) 0%, rgba(10,22,40,0.93) 100%),
              url('/Images/HW-Furnace2.jpg') center/cover;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.svc-page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(34px,4vw,58px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.svc-page-hero h1 span { background: linear-gradient(135deg,var(--green-mid),var(--green-pale)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.svc-page-hero p { font-size: 17px; color: var(--gray-light); max-width: 580px; line-height: 1.75; }
.svc-breadcrumb { font-size: 12px; color: var(--gray); margin-bottom: 20px; }
.svc-breadcrumb a { color: var(--green-mid); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--green-pale); }
.svc-breadcrumb span { margin: 0 8px; opacity: 0.4; }

/* Image placeholder */
.img-ph {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 2px dashed rgba(5,150,105,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; padding: 40px;
  min-height: 260px;
}
.img-ph-icon { font-size: 40px; opacity: 0.4; }
.img-ph-label { font-size: 11px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; text-align: center; }

/* Overview layout */
.svc-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; margin-top: 52px; }
.svc-points { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 24px 0 32px; }
.svc-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--gray-light); line-height: 1.6; }
.svc-points li::before { content: '✓'; color: var(--green-mid); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* Detail cards */
.svc-detail-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.svc-detail-card {
  background: linear-gradient(160deg, rgba(28,47,80,0.7), rgba(10,22,40,0.9));
  border: 1px solid var(--border); border-radius: 12px; padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.svc-detail-card:hover { border-color: rgba(5,150,105,0.4); transform: translateY(-3px); }
.svc-detail-card-icon { font-size: 28px; margin-bottom: 14px; }
.svc-detail-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.svc-detail-card p { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* Why CEC strip */
.svc-why { background: var(--navy-mid); }
.svc-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 48px; }
.svc-why-item { background: var(--navy-mid); padding: 36px 28px; }
.svc-why-num { font-size: 32px; font-weight: 900; color: var(--green-mid); line-height: 1; margin-bottom: 8px; }
.svc-why-label { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.svc-why-desc { font-size: 14px; color: var(--gray-light); line-height: 1.65; }

/* Related services */
.related-svcs { background: var(--navy); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.related-card { background: rgba(28,47,80,0.5); border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-decoration: none; color: inherit; display: block; transition: border-color 0.2s, background 0.2s; }
.related-card:hover { border-color: rgba(5,150,105,0.4); background: rgba(28,47,80,0.8); }
.related-card-icon { font-size: 22px; margin-bottom: 10px; }
.related-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.related-card p { font-size: 12px; color: var(--gray); line-height: 1.55; }

/* Team page extras */
.team-member-card {
  background: linear-gradient(160deg, rgba(28,47,80,0.8), rgba(10,22,40,0.9));
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.team-member-card:hover { transform: translateY(-5px); border-color: rgba(5,150,105,0.35); }
.team-photo { width:100%; aspect-ratio: 3/2; overflow: hidden; position: relative; }
.team-photo .img-ph { border-radius: 0; border: none; border-bottom: 2px dashed rgba(5,150,105,0.2); min-height: 200px; }
.team-member-info { padding: 28px; }
.team-member-name { font-family:'Playfair Display',serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.team-member-title { font-size: 12px; color: var(--green-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.team-member-bio { font-size: 13px; color: var(--gray); line-height: 1.65; }
.team-member-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.team-tag { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: rgba(5,150,105,0.1); border: 1px solid rgba(5,150,105,0.25); color: var(--green-pale); letter-spacing: 0.5px; }

@media (max-width: 900px) {
  .svc-overview-grid { grid-template-columns: 1fr; }
  .svc-detail-cards { grid-template-columns: 1fr 1fr; }
  .svc-why-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc-detail-cards, .related-grid { grid-template-columns: 1fr; }
}

/* ── CTA BANNER (shared across service pages, team profiles, etc.) ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green), #047857, var(--green-mid));
  padding: 80px 5%; display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 42px); font-weight: 800;
  color: var(--navy); max-width: 560px; line-height: 1.2; margin: 0;
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white);
  padding: 16px 34px; border-radius: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  text-transform: uppercase; transition: transform 0.2s; flex-shrink: 0;
}
.btn-dark:hover { transform: translateY(-2px); }
@media (max-width: 768px) {
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner h2 { max-width: 100%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  section { padding: 72px 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
