/* =========================================================
   EASY WAY — RENEWABLE ENERGY SUPPORT
   Page: renewable-energy.html
   Independent layout; shares Index header/topbar/nav/footer
   and the Index desktop+mobile hero scale, but its own
   energy-chain design language (not a copy of Civil,
   Mechanical, Electrical or Engineering Services).
   ========================================================= */

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

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

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

.re-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%);
}

.re-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;
}

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

.re-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;
}

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

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

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

.re-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;
}

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

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

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

/* Hero right side — energy-chain panel: real visual with a
   Resource → Generation → Storage → Grid strip */

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

.re-hero__panel-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.re-hero__panel figcaption {
  padding: 12px 8px 4px;
}

.re-hero__strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.re-hero__strip span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(4,18,31,.45);
  color: #eef3f6;
  font-family: Consolas, "Courier New", monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.re-hero__strip i {
  font-style: normal;
  color: var(--re-accent);
  font-size: .72rem;
}

.re-hero__panel figcaption small {
  display: block;
  margin-top: 10px;
  color: #a9bccb;
  font-size: .72rem;
  line-height: 1.5;
}


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

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

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

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

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

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


/* ---------------- SYSTEM ROUTES ---------------- */

.re-routes {
  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(--re-line);
}

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

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

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

.re-route-card__code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #0b2b49;
  color: var(--re-accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.re-route-card h3 {
  margin: 0 0 10px;
  color: var(--re-ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.re-route-card p {
  margin: 0 0 16px;
  color: var(--re-text);
  font-size: .85rem;
  line-height: 1.56;
}

.re-route-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.re-route-card__tags span {
  padding: 4px 9px;
  border: 1px solid #bfe5e2;
  border-radius: 999px;
  background: #eaf8f7;
  color: #0b6a6e;
  font-size: .66rem;
  font-weight: 800;
}


/* ---------------- OUTPUTS TILES ---------------- */

.re-outputs { background: #fff; }

.re-output-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--re-line);
  border: 1px solid var(--re-line);
  border-radius: 18px;
  overflow: hidden;
}

.re-output-tile {
  position: relative;
  padding: 22px 20px;
  background: #fff;
}

.re-output-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--re-accent-deep), #18b8b0);
  opacity: .85;
}

.re-output-tile strong {
  display: block;
  margin-bottom: 7px;
  color: var(--re-ink);
  font-size: .93rem;
}

.re-output-tile span {
  display: block;
  color: var(--re-text);
  font-size: .79rem;
  line-height: 1.55;
}


/* ---------------- APPROACH (two columns) ---------------- */

.re-approach {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 105, 224, .05), transparent 46%),
    linear-gradient(180deg, #e6eef5 0%, #f4f8fb 48%, #e9f1f7 100%);
  border-bottom: 1px solid var(--re-line);
}

.re-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.re-approach-col {
  padding: 24px;
  border: 1px solid var(--re-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,35,56,.04);
}

.re-approach-col h3 {
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--re-line);
  color: var(--re-ink);
  font-size: .95rem;
}

.re-approach-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.re-approach-col ul li {
  position: relative;
  padding-left: 20px;
  color: #46617a;
  font-size: .8rem;
  font-weight: 700;
}

.re-approach-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--re-accent-deep);
  background: #fff;
}


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

.re-tools {
  background: #fff;
  border-bottom: 1px solid var(--re-line);
}

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

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

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

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

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

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

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

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


/* ---------------- GALLERY ---------------- */

.re-gallery {
  background:
    radial-gradient(circle at 88% 6%, rgba(23, 105, 224, .06), transparent 44%),
    linear-gradient(180deg, #e6eef5 0%, #f4f8fb 48%, #e9f1f7 100%);
  border-bottom: 1px solid var(--re-line);
}

.re-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.re-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--re-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;
}

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

.re-work-card img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.re-work-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(4, 18, 31, .78);
  color: var(--re-accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.re-work-card__caption {
  display: block;
  padding: 14px 16px 15px;
  border-top: 1px solid var(--re-line);
}

.re-work-card__caption strong {
  display: block;
  color: var(--re-ink);
  font-size: .92rem;
}

.re-work-card__caption small {
  display: block;
  margin-top: 2px;
  color: var(--re-accent-deep);
  font-size: .72rem;
  font-weight: 800;
}

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

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


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

.re-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%);
}

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

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

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

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

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

.re-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;
}

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

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

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


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

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

.re-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);
}

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

.re-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;
}

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

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

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


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

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


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

@media (max-width: 1100px) {
  .re-hero__inner { grid-template-columns: minmax(0, 1fr) 390px; gap: 42px; }
  .re-output-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .re-section, .re-fits { padding: 34px 0; }
  .re-hero__inner { grid-template-columns: 1fr; gap: 34px; padding: 52px 0; }
  .re-hero__panel { max-width: 560px; }
  .re-heading { grid-template-columns: 1fr; gap: 20px; }
  .re-route-grid { grid-template-columns: 1fr; }
  .re-route-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
  .re-route-card__code { grid-row: 1 / 4; margin-bottom: 0; }
  .re-tool-grid { grid-template-columns: 1fr; }
  .re-fits__box { grid-template-columns: 1fr; gap: 24px; }
  .re-fits__links { min-width: 0; }
}

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

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

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

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

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

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

  .re-hero__panel { padding: 9px; border-radius: 18px; }
  .re-hero__strip span { font-size: .6rem; letter-spacing: .05em; }
  .re-hero__panel figcaption small { font-size: .66rem; }

  .re-work-grid { grid-template-columns: 1fr; }
  .re-work-card img { height: 200px; }
}

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

  .re-route-card { display: block; padding: 21px; }
  .re-route-card__code { margin-bottom: 14px; }

  .re-output-grid { grid-template-columns: 1fr; }

  .re-approach-grid { grid-template-columns: 1fr; }

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

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