/* ==========================================================================
   nordenergo.ro — stylesheet
   Sections: tokens → base → layout → header → hero → sections → components
             → contact → footer → utilities → responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (sampled from the vector logo + letterhead) */
  --c-primary: #1e8ab8;
  --c-primary-dark: #166688;
  --c-accent: #0f9ed5;
  --c-sky: #47b3e1;
  --c-pale: #91d2ed;
  --c-navy: #0b3546;
  --c-ink: #07212c;

  /* Neutrals */
  --c-bg: #ffffff;
  --c-bg-alt: #f3f8fb;
  --c-text: #17303d;
  --c-muted: #55707d;
  --c-line: #d9e6ee;

  /* Type */
  --f-head: Bahnschrift, "Barlow", "Segoe UI", system-ui, sans-serif;
  --f-body: Aptos, "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 53, 70, 0.10);
  --shadow-sm: 0 2px 8px rgba(11, 53, 70, 0.08);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }

.section__head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.6rem;
}

.lead { font-size: 1.15rem; color: var(--c-muted); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--c-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.5rem; align-items: center; }
.nav__list a {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--c-navy);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav__list a:hover { text-decoration: none; color: var(--c-primary); border-color: var(--c-primary); }

.lang {
  display: inline-flex;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang a, .lang span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--c-muted);
  line-height: 1;
}
.lang a:hover { text-decoration: none; color: var(--c-primary); }
.lang [aria-current="page"] { background: var(--c-navy); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--c-navy);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-sky); color: var(--c-ink); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { color: var(--c-navy); border-color: var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(71, 179, 225, 0.28), transparent 60%),
    linear-gradient(135deg, var(--c-ink) 0%, var(--c-navy) 45%, var(--c-primary-dark) 100%);
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 8vw, 6.5rem);
}
.hero__mark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: clamp(360px, 48vw, 720px);
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
  filter: saturate(0.6) brightness(1.4);
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 720px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-pale);
  margin-bottom: 1.4rem;
}
.hero__kicker::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-sky);
  box-shadow: 0 0 0 4px rgba(71, 179, 225, 0.25);
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--c-sky); }
.hero__lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }

.stats { display: flex; flex-wrap: wrap; gap: 1rem; }
.stat {
  flex: 1 1 160px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.stat__value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: #fff;
}
.stat__label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.25rem; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__text p { font-size: 1.08rem; }
.about__panel {
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about__panel::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 260px; height: 260px;
  background: url("../img/logo-mark.svg") no-repeat center / contain;
  opacity: 0.10;
}
.about__panel h3 { color: var(--c-pale); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.facts { display: grid; gap: 1rem; position: relative; z-index: 1; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; }
.facts svg { width: 40px; height: 40px; color: var(--c-sky); }
.facts strong { display: block; font-family: var(--f-head); font-size: 1.05rem; color: #fff; }
.facts span { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary-dark));
  color: #fff;
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--c-muted); }
.card--featured { border-color: var(--c-sky); box-shadow: 0 0 0 4px rgba(71, 179, 225, 0.15), var(--shadow-sm); }
.card__tag {
  align-self: flex-start;
  font-family: var(--f-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  background: rgba(71, 179, 225, 0.18);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ---------- Project ---------- */
.project { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.project__figures { display: grid; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.75rem; }
.figure {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.figure__value { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--c-primary); line-height: 1.1; }
.figure__label { font-size: 0.85rem; color: var(--c-muted); margin-top: 0.2rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-weight: 600; font-size: 0.85rem;
  color: var(--c-primary-dark);
  background: rgba(71, 179, 225, 0.16);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 158, 213, 0.5); }
  60% { box-shadow: 0 0 0 7px rgba(15, 158, 213, 0); }
}
.checks { display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checks svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--c-accent); margin-top: 0.15rem; }

.project__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-navy), var(--c-ink));
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.project__visual svg.grid-art { position: absolute; inset: 0 0 auto 0; width: 100%; height: calc(100% - 110px); padding: 1rem 1rem 0; opacity: 0.95; }
.project__visual .caption { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.project__visual .caption { position: relative; z-index: 1; }
.project__visual .caption strong { display: block; font-family: var(--f-head); font-size: 1.25rem; }
.project__visual .caption span { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* ---------- REMIT ---------- */
.remit { border-top: 1px solid var(--c-line); }
.remit .section__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.remit__panel {
  max-width: 820px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.remit__panel p { font-size: 1.05rem; color: var(--c-navy); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2rem; }
.contact__card {
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.contact__list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.contact__list .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-bg-alt); color: var(--c-primary);
}
.contact__list .ico svg { width: 22px; height: 22px; }
.contact__list small { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); font-family: var(--f-head); font-weight: 600; }
.contact__list a, .contact__list address { font-style: normal; font-size: 1.05rem; color: var(--c-navy); font-weight: 500; }
.contact__list a:hover { color: var(--c-primary); }
.contact__note { display: block; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--c-line); font-size: 0.95rem; color: var(--c-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, 0.75); padding-block: 3rem 2rem; font-size: 0.95rem; }
.footer__grid { display: grid; gap: 2rem; align-items: start; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 380px; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--c-sky); }
.footer__links li, .footer__contact li { margin-bottom: 0.45rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1.15fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .project { grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--c-line); }
  .nav__list a:hover { border-color: var(--c-line); }
  .lang { align-self: flex-start; margin-top: 1rem; }
  .hero__mark { right: -30%; opacity: 0.08; }
  .project__figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .figure { padding: 0.8rem; }
}
@media (max-width: 480px) {
  .project__figures { grid-template-columns: 1fr 1fr; }
  .stat { flex-basis: 100%; }
}

/* No-JS fallback: keep nav reachable */
.no-js .nav { display: flex; position: static; box-shadow: none; }
.no-js .nav-toggle { display: none; }
