/* =========================================================
   EASY WAY — ELECTRICAL & ELECTRONICS SUPPORT
   Page: electrical-electronics.html
   Independent layout; shares Index header/topbar/nav/footer
   and the Index desktop+mobile hero scale, but its own
   single-line-diagram design language (not a copy of Civil,
   Mechanical or Engineering Services).
   ========================================================= */

.electrical-electronics-page {
  --ee-navy: #071f35;
  --ee-navy-2: #0a3048;
  --ee-ink: #0a2942;
  --ee-text: #607589;
  --ee-line: #dbe6ed;
  --ee-accent: #5ce1da;
  --ee-accent-deep: #0b7d81;
  --ee-gold: #f2a531;
  background: #fff;
}

/* ---------------- HERO ---------------- */

.ee-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 14%, rgba(92, 225, 218, .13), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(23, 105, 224, .10), transparent 34%),
    linear-gradient(120deg, #061c31 0%, #082943 58%, #0a3352 100%);
}

.ee-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, #000 8%, transparent 92%);
}

.ee-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .78fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: center;
  padding: 44px 0 46px;
}

.ee-hero__copy { max-width: 660px; }
.ee-hero__copy .eyebrow { color: var(--ee-accent); }

.ee-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 3.2vw, 3.35rem);
  line-height: 1.01;
  letter-spacing: -.035em;
}

.ee-hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--ee-accent);
}

.ee-hero__lead {
  max-width: 610px;
  margin: 16px 0 0;
  color: #c2d2de;
  font-size: .92rem;
  line-height: 1.62;
}

.ee-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.ee-hero__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #e9f4f7;
  font-size: .68rem;
  font-weight: 800;
}

.ee-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 19px;
}

.ee-hero__actions .button { min-height: 45px; padding-inline: 18px; font-size: .79rem; }

.ee-hero__actions .button--outline {
  color: #fff;
  border-color: rgba(255,255,255,.27);
  background: rgba(255,255,255,.03);
}

/* Hero right side — a single-line network diagram panel:
   nodes connected by a spine with a split into LOAD / PROTECTION */

.ee-hero__board {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.ee-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 10px 8px 4px;
}

.ee-diagram__node {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(4,18,31,.45);
}

.ee-diagram__node i {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ee-accent);
  box-shadow: 0 0 10px rgba(92, 225, 218, .8);
}

.ee-diagram__node span {
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.ee-diagram__node small {
  color: #8fb0c0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ee-diagram__line {
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, var(--ee-accent), rgba(92,225,218,.25));
}

.ee-diagram__line--split {
  height: 26px;
  position: relative;
}

.ee-diagram__line--split::before {
  content: "";
  position: absolute;
  left: -26px;
  right: -26px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(92,225,218,.25), var(--ee-accent), rgba(92,225,218,.25));
}

.ee-diagram__row {
  display: flex;
  gap: 26px;
  margin-top: 4px;
}

.ee-hero__board figcaption {
  margin-top: 12px;
  padding: 13px 8px 3px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.ee-hero__board figcaption strong {
  display: block;
  color: #eef6ff;
  font-size: .86rem;
}

.ee-hero__board figcaption small {
  display: block;
  margin-top: 3px;
  color: #a9bccb;
  font-size: .72rem;
  line-height: 1.5;
}


/* ---------------- SHARED SECTION / HEADING ---------------- */

.ee-section {
  padding: 38px 0 40px;
}

.ee-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 50px;
  align-items: end;
  margin-bottom: 34px;
}

.ee-heading h2 {
  margin: 5px 0 0;
  color: var(--ee-ink);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ee-heading > p {
  color: var(--ee-text);
  line-height: 1.65;
}

.ee-heading .eyebrow { color: var(--ee-accent-deep); }


/* ---------------- DOMAINS ---------------- */

.ee-domains {
  background:
    radial-gradient(circle at 88% 6%, rgba(23, 105, 224, .07), transparent 44%),
    radial-gradient(circle at 4% 94%, rgba(23, 105, 224, .05), transparent 42%),
    linear-gradient(180deg, #e3ecf5 0%, #f1f6fa 48%, #e6eef5 100%);
  border-bottom: 1px solid var(--ee-line);
}

.ee-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.ee-domain-card {
  padding: 22px;
  border: 1px solid var(--ee-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,35,56,.05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ee-domain-card:hover {
  transform: translateY(-3px);
  border-color: #9fd8d4;
  box-shadow: 0 17px 38px rgba(7,35,56,.08);
}

.ee-domain-card__code {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid #bfe5e2;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f8f7, #f2fbfa);
  color: var(--ee-accent-deep);
  font-family: Consolas, "Courier New", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.ee-domain-card h3 {
  margin: 0 0 9px;
  color: var(--ee-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.ee-domain-card p {
  margin: 0;
  color: var(--ee-text);
  font-size: .85rem;
  line-height: 1.56;
}


/* ---------------- FLOW (4 steps + arrows) ---------------- */

.ee-flow {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 105, 224, .043), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfe 50%, #f6f9fc 100%);
}

.ee-flow__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ee-flow__step {
  padding: 22px 20px;
  border: 1px solid var(--ee-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,35,56,.04);
}

.ee-flow__step b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #0b2b49;
  color: var(--ee-accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: .72rem;
  font-weight: 700;
}

.ee-flow__step strong {
  display: block;
  color: var(--ee-ink);
  font-size: .93rem;
}

.ee-flow__step span {
  display: block;
  margin-top: 6px;
  color: var(--ee-text);
  font-size: .79rem;
  line-height: 1.55;
}

.ee-flow__arrow {
  align-self: center;
  color: var(--ee-accent-deep);
  font-size: 1.15rem;
  font-weight: 900;
}


/* ---------------- TOOLS ---------------- */

.ee-tools {
  background: linear-gradient(180deg, #e7eef5 0%, #f2f7fa 100%);
  border-bottom: 1px solid var(--ee-line);
}

.ee-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ee-tool-group {
  padding: 20px;
  border: 1px solid var(--ee-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,35,56,.04);
}

.ee-tool-group h3 {
  margin: 0 0 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ee-line);
  color: var(--ee-ink);
  font-size: .9rem;
}

.ee-tool-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ee-tool-group__chips span {
  padding: 6px 11px;
  border: 1px solid #bfe5e2;
  border-radius: 999px;
  background: #eaf8f7;
  color: #0b6a6e;
  font-size: .72rem;
  font-weight: 800;
}

.ee-tools__note {
  margin: 20px 0 0;
  color: var(--ee-text);
  font-size: .8rem;
}

.ee-tools__note a {
  color: var(--ee-accent-deep);
  font-weight: 900;
}

.ee-tools__note a:hover { color: #09585b; }


/* ---------------- GALLERY (split cards) ---------------- */

.ee-gallery { background: #fff; }

.ee-work-grid {
  display: grid;
  gap: 14px;
}

.ee-work-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  height: 170px;
  overflow: hidden;
  border: 1px solid var(--ee-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,35,56,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ee-work-card:hover {
  transform: translateY(-3px);
  border-color: #9fd8d4;
  box-shadow: 0 17px 38px rgba(7,35,56,.09);
}

.ee-work-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-right: 1px solid var(--ee-line);
}

.ee-work-card span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 18px 22px;
}

.ee-work-card strong {
  color: var(--ee-ink);
  font-size: .95rem;
}

.ee-work-card small {
  color: var(--ee-accent-deep);
  font-size: .74rem;
  font-weight: 800;
}

.ee-gallery__action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.ee-gallery__note {
  max-width: 720px;
  margin: 18px auto 0;
  color: #7d8ea0;
  font-size: .68rem;
  line-height: 1.6;
  text-align: center;
}


/* ---------------- FITS BAND ---------------- */

.ee-fits {
  padding: 38px 0 40px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(92, 225, 218, .11), transparent 34%),
    linear-gradient(125deg, #061c31 0%, #082943 100%);
}

.ee-fits__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
}

.ee-fits .eyebrow { color: var(--ee-accent); }

.ee-fits h2 {
  margin: 5px 0 9px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.ee-fits__box > div:first-child p {
  max-width: 640px;
  margin: 0;
  color: #b9cad6;
  line-height: 1.6;
}

.ee-fits__links {
  display: grid;
  gap: 10px;
  min-width: 320px;
}

.ee-fits__links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.05);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ee-fits__links a:hover {
  transform: translateY(-2px);
  border-color: rgba(92,225,218,.45);
  background: rgba(92,225,218,.07);
}

.ee-fits__links strong {
  color: #fff;
  font-size: .88rem;
}

.ee-fits__links span {
  color: var(--ee-accent);
  font-size: .74rem;
  font-weight: 800;
}


/* ---------------- FINAL CTA ---------------- */

.ee-final {
  padding: 76px 0;
  background: linear-gradient(180deg, #eaf1f7 0%, #f6f9fb 100%);
}

.ee-final__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 85%, rgba(92, 225, 218, .13), transparent 33%),
    #08263e;
  box-shadow: 0 24px 55px rgba(7,35,56,.13);
}

.ee-final__box > div:first-child > small {
  display: block;
  color: var(--ee-accent);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ee-final__box h2 {
  max-width: 780px;
  margin: 8px 0 9px;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ee-final__box p {
  max-width: 760px;
  margin: 0;
  color: #b9cad6;
  line-height: 1.6;
}

.ee-final__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 215px;
}

.ee-final__actions .button { justify-content: center; }


/* ---------------- CURRENT NAV ITEM ---------------- */

.electrical-electronics-page .nav-dropdown a[aria-current="page"] {
  background: rgba(11,125,129,.08);
  color: #0b7d81;
}


/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1100px) {
  .ee-hero__inner { grid-template-columns: minmax(0, 1fr) 390px; gap: 42px; }
  .ee-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ee-flow__row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    row-gap: 16px;
  }
  .ee-flow__arrow:nth-of-type(2) { display: none; }
  .ee-flow__arrow:nth-of-type(3) { display: none; }
}

@media (max-width: 900px) {
  .ee-section, .ee-fits { padding: 34px 0; }
  .ee-hero__inner { grid-template-columns: 1fr; gap: 34px; padding: 52px 0; }
  .ee-hero__board { max-width: 560px; }
  .ee-heading { grid-template-columns: 1fr; gap: 20px; }
  .ee-tool-grid { grid-template-columns: 1fr; }
  .ee-fits__box { grid-template-columns: 1fr; gap: 24px; }
  .ee-fits__links { min-width: 0; }
}

@media (max-width: 760px) {
  .ee-hero__inner { padding: 24px 0 28px; }

  .ee-hero .eyebrow {
    max-width: 290px;
    margin-bottom: 10px;
    font-size: .57rem;
    line-height: 1.55;
    letter-spacing: .11em;
  }

  .ee-hero h1 {
    max-width: 345px;
    font-size: clamp(1.72rem, 8.35vw, 2.08rem);
    line-height: 1.035;
    letter-spacing: -.03em;
    text-wrap: balance;
  }

  .ee-hero__lead {
    max-width: 345px;
    margin-top: 12px;
    font-size: .75rem;
    line-height: 1.58;
  }

  .ee-hero__tags { gap: 6px; margin-top: 14px; }
  .ee-hero__tags span { min-height: 26px; padding: 0 9px; font-size: .57rem; }

  .ee-hero__actions { gap: 8px; margin-top: 16px; display: grid; grid-template-columns: 1fr; }
  .ee-hero__actions .button { justify-content: center; min-height: 43px; padding: 10px 14px; font-size: .72rem; }

  .ee-hero__board { padding: 13px; border-radius: 18px; }
  .ee-hero__board figcaption strong { font-size: .78rem; }
  .ee-hero__board figcaption small { font-size: .66rem; }

  .ee-work-card { grid-template-columns: 1fr; height: auto; }
  .ee-work-card img { height: 170px; border-right: 0; border-bottom: 1px solid var(--ee-line); }
}

@media (max-width: 680px) {
  .ee-section, .ee-fits { padding: 28px 0; }
  .ee-heading h2 { font-size: 2rem; }

  .ee-domain-grid { grid-template-columns: 1fr; }
  .ee-domain-card { padding: 21px; }

  .ee-flow__row { grid-template-columns: 1fr; }
  .ee-flow__arrow { transform: rotate(90deg); justify-self: center; }

  .ee-final__box { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 18px; }
  .ee-final__actions { display: grid; grid-template-columns: 1fr; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ee-domain-card,
  .ee-work-card,
  .ee-fits__links a {
    transition: none;
  }
}
