/* V22 — visual refinements requested after the project modal and team review. */

/* Brand accents: all section labels use Energyco's bright yellow. */
.eyebrow,
.kicker,
.section-kicker,
.article-category {
  color: var(--yellow) !important;
  font-weight: 850;
}

/* Values: slightly lighter navy surfaces and a clearly visible yellow energy ring. */
.value-item {
  background: linear-gradient(145deg, #183845 0%, #245260 100%);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 18px 42px rgba(7,20,27,.17);
}
.value-item::after {
  right: -84px;
  bottom: -98px;
  border-color: rgba(255,205,0,.38);
  box-shadow: 0 0 38px rgba(255,205,0,.13);
}
.value-item__number { color: #ffdc39; }
.value-item p { color: rgba(255,255,255,.86); }
html[data-theme="dark"] .value-item {
  background: linear-gradient(145deg, #1b3d4b 0%, #285666 100%);
  border-color: rgba(255,255,255,.16);
}
html[data-theme="dark"] .value-item::after { border-color: rgba(255,205,0,.46); }

/* Team hierarchy: every tier is centred and keeps the requested 2 / 4 / 5 / 2 rhythm. */
.team-hierarchy { display: grid; gap: clamp(38px,5vw,64px); }
.team-tier { text-align: center; }
.team-tier__label {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--navy);
  text-align: center;
}
.team-grid {
  width: 100%;
  margin-inline: auto;
  justify-content: center;
  align-items: stretch;
}
.team-grid--executive {
  max-width: 720px;
  grid-template-columns: repeat(2, minmax(230px, 300px));
}
.team-grid--leadership {
  max-width: 1100px;
  grid-template-columns: repeat(4, minmax(190px, 245px));
}
.team-grid--technical {
  max-width: 1240px;
  grid-template-columns: repeat(5, minmax(170px, 220px));
}
.team-grid--commercial {
  max-width: 510px;
  grid-template-columns: repeat(2, minmax(180px, 220px));
}
.team-card { height: 100%; text-align: center; }
.team-card__body { text-align: center; }
.team-grid--commercial .team-card { padding: 18px; }
.team-grid--commercial .team-card__body h3 { font-size: .96rem; }
.team-grid--commercial .team-card__body p { font-size: .82rem; }
html[data-theme="dark"] .team-tier__label { color: #f2f6f7; }

/* Project cards: rounded action, full-card interaction and a calm image treatment. */
.project-card--interactive {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.project-card--interactive:hover {
  transform: translateY(-4px);
  border-color: rgba(255,205,0,.56);
  box-shadow: 0 22px 54px rgba(16,32,42,.16);
}
.project-card--interactive:focus-visible {
  outline: 3px solid rgba(255,205,0,.68);
  outline-offset: 4px;
}
.project-grid--two .project-card .card__image {
  overflow: hidden;
  background: #edf2f3;
}
.project-grid--two .project-card .card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  transition: transform 260ms ease;
}
.project-card--interactive:hover .card__image img { transform: scale(1.015); }
.project-card__action,
.project-card .btn--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  margin-top: auto;
  padding: 10px 19px;
  border: 1px solid rgba(16,32,42,.18);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: .86rem;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(16,32,42,.11);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.project-card__action:hover,
.project-card .btn--text:hover {
  background: #ffda35;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(16,32,42,.16);
}
.project-card__action svg,
.project-card .btn--text svg { width: 17px; height: 17px; }

/* Project popup: image on top, never cropped, scrollbar hidden inside the rounded shell. */
.project-modal { padding: clamp(12px,2vw,24px); }
.project-modal__dialog {
  display: block;
  width: min(920px,100%);
  max-height: min(92vh,900px);
  overflow: auto;
  overflow-x: hidden;
  border-radius: 28px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.project-modal__dialog::-webkit-scrollbar { display: none; }
.project-modal__media {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 26px 72px 0;
  background: linear-gradient(180deg,#eef3f4 0%,#f8faf9 100%);
}
.project-modal__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(16,32,42,.12);
}
.project-modal__content { padding: clamp(30px,4.5vw,54px); }
.project-modal__close {
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.84);
  line-height: 1;
}
.project-modal__close svg { display: block; width: 21px; height: 21px; }
html[data-theme="dark"] .project-modal__media {
  background: linear-gradient(180deg,#142832 0%,#0e2029 100%);
}

/* Map clusters: neighbouring Energyco pins merge into an explicit count while zoomed out. */
.project-map-cluster {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(16,32,42,.32);
}
.project-map-cluster::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 2px solid rgba(255,205,0,.35);
  border-radius: 50%;
}

/* Separate phone and WhatsApp cards. */
.contact-card-list { grid-template-rows: none !important; }
.contact-layout--aligned .contact-card-list { grid-template-rows: repeat(5,minmax(0,1fr)) !important; }
.contact-card--whatsapp .contact-card__icon {
  background: #25d366;
  color: #fff;
}
.contact-card--whatsapp .contact-card__icon svg { width: 22px; height: 22px; }
.contact-card--whatsapp:hover { border-color: rgba(37,211,102,.5); }

/* CTA: keep the headline compact and make the action more prominent. */
.cta-band__inner > div { max-width: 960px; }
.cta-band h2 {
  max-width: 940px;
  font-size: clamp(1.85rem,3.25vw,3rem);
  line-height: 1.08;
  text-wrap: balance;
}
.cta-band .btn {
  min-height: 52px;
  padding: 14px 25px;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 850;
  flex: 0 0 auto;
}

/* Smaller theme control; rays remain completely inside its circular boundary. */
.theme-toggle--desktop {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  margin-left: 7px;
  overflow: hidden;
}
.theme-toggle--desktop .theme-toggle__icon {
  width: 31px !important;
  height: 32px !important;
}
.theme-toggle--desktop .theme-toggle__icon::before {
  top: 42%;
  width: 30px !important;
  height: 30px !important;
  -webkit-mask: radial-gradient(circle, transparent 0 10px, #000 11px 14px, transparent 15px) !important;
  mask: radial-gradient(circle, transparent 0 10px, #000 11px 14px, transparent 15px) !important;
}
.theme-toggle--desktop .theme-toggle__lamp {
  width: 17px !important;
  height: 27px !important;
}

@media (max-width: 1120px) {
  .team-grid--technical { grid-template-columns: repeat(3,minmax(190px,230px)); max-width: 760px; }
  .team-grid--leadership { grid-template-columns: repeat(2,minmax(220px,270px)); max-width: 590px; }
}

@media (max-width: 760px) {
  .team-grid--executive,
  .team-grid--leadership,
  .team-grid--technical,
  .team-grid--commercial {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 560px;
  }
  .team-card { padding: 17px; }
  .team-tier__label { margin-bottom: 17px; }
  .project-modal__dialog { border-radius: 21px; }
  .project-modal__media { padding: 60px 14px 0; }
  .project-modal__media img { max-height: 285px; border-radius: 14px; }
  .project-modal__content { padding: 25px 20px 30px; }
  .project-modal__close { top: 11px; right: 11px; }
  .contact-card-list { grid-template-rows: none !important; }
  .cta-band h2 { font-size: clamp(1.75rem,8vw,2.45rem); }
  .cta-band .btn { min-height: 50px; padding-inline: 23px; }
}

@media (max-width: 520px) {
  .team-grid--executive,
  .team-grid--leadership,
  .team-grid--technical,
  .team-grid--commercial { grid-template-columns: 1fr; max-width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card--interactive,
  .project-card--interactive img,
  .project-card__action { transition: none !important; }
}
