/* =========================================================
   ECONXS – Energy & Environmental
   Static site – pure HTML5 / CSS3
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --c-black: #000000;
  --c-ink: #1a1d21;          /* dark section background */
  --c-grey: #d8d9d4;         /* light-grey section / input background */
  --c-line: #cfd0cb;
  --c-white: #ffffff;
  --c-muted-light: rgba(255, 255, 255, 0.82);

  --font-base: Arial, "Liberation Sans", Helvetica, "Helvetica Neue", sans-serif;

  --container: 1168px;
  --gutter: 24px;
  --header-h: 79px;

  --section-y: clamp(56px, 7.5vw, 112px);
  --gap: 30px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid #4a90ff; outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-black); color: var(--c-white);
  padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: var(--section-y); }
.section--grey { background: var(--c-grey); }
.section--dark { background: var(--c-ink); color: var(--c-white); }

.eyebrow {
  font-size: 0.6875rem;      /* 11px */
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow--light { color: var(--c-white); }
.eyebrow--large { font-size: 0.8125rem; letter-spacing: 0.2em; }

.section-title {
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-top: 14px;
}
.section-title--light { color: var(--c-white); }
.section-title--tight { margin-top: 2px; color: var(--c-black); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--c-black); color: var(--c-white); min-height: 40px; padding: 0 20px; }
.btn--dark:hover { background: #2b2f35; }
.btn--light { background: var(--c-white); color: var(--c-black); }
.btn--light:hover { background: var(--c-grey); }
.btn--outline-light { color: var(--c-white); border-color: rgba(255,255,255,.75); }
.btn--outline-light:hover { background: var(--c-white); color: var(--c-black); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  height: var(--header-h);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(var(--gutter), 5.25vw, 112px);
}
.site-header__logo img { width: 207px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav__list { display: flex; align-items: center; gap: 26px; }
.site-nav__list a {
  font-size: 0.9375rem; /* 15px */
  text-decoration: none; color: var(--c-black);
  padding-block: 8px;
  border-bottom: 1px solid transparent;
}
.site-nav__list a:hover { border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: none; border: 0; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle__bar {
  width: 26px; height: 2px; background: var(--c-black);
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 38vw, 707px);
  background: var(--c-black);
  color: var(--c-white);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__content { position: relative; z-index: 2; }
.hero__text { max-width: 540px; padding-block: 64px; }
.hero__title {
  margin-top: 28px;
  font-size: clamp(2.5rem, 3.4vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero__lead {
  margin-top: 40px;
  max-width: 470px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-muted-light);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero__actions .btn { min-height: 51px; padding-inline: 28px; }

.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 38%;
  z-index: 1;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 18%);
}

/* ---------- 7. About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 521px);
  gap: 48px;
  align-items: start;
}
.about__title {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.about__text p { max-width: 590px; line-height: 1.65; }
.about__text p + p { margin-top: 18px; }
.about__media img { width: 100%; aspect-ratio: 521 / 410; object-fit: cover; }

.statement-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 56px;
}
.statement {
  background: var(--c-ink); color: var(--c-white);
  padding: 34px 36px 38px;
}
.statement__title {
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.statement p { font-size: 1.0625rem; line-height: 1.65; }
.statement--outline { background: transparent; border: 1px solid rgba(255,255,255,.7); }
.statement--outline .statement__title { color: rgba(255,255,255,.85); }
.statement-grid--outline { margin-top: 40px; }

/* ---------- 8. One platform, three arms ---------- */
.arms__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 42px;
}
.arm {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  padding: 34px 36px 38px;
  color: var(--c-ink);
}
.arm--dark { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.arm .eyebrow { min-height: 2.9em; font-size: 0.625rem; letter-spacing: 0.2em; }
.arm__title {
  margin-top: 24px;
  font-size: 1.6rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em;
}
.arm__list { margin-top: 22px; }
.arm__list li {
  position: relative; padding-left: 28px;
  font-size: 0.9375rem; line-height: 1.7; margin-bottom: 4px;
}
.arm__list li::before {
  content: ""; position: absolute; left: 6px; top: 0.78em;
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.arms__note {
  margin-top: 56px; text-align: center; font-size: 0.9375rem; color: var(--c-ink);
}

/* ---------- 9. Our four platforms ---------- */
.platforms__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
}
.platforms__intro {
  max-width: 440px; padding-bottom: 6px;
  font-size: 0.9375rem; line-height: 1.75; color: var(--c-muted-light);
}
.platforms__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 35px; margin-top: 40px;
}
.platform { background: var(--c-white); color: var(--c-black); display: flex; flex-direction: column; }
.platform__img { width: 100%; aspect-ratio: 566 / 256; object-fit: cover; }
.platform__body { padding: 28px 34px 40px; flex: 1; }
.platform__body .eyebrow { font-size: 0.625rem; }
.platform__title {
  margin-top: 14px;
  font-size: 1.55rem; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.platform__desc { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; }
.platform__tags {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--c-line);
  font-size: 0.8125rem; line-height: 1.6;
}

/* ---------- 10. Core services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; margin-top: 44px;
}
.service { border-top: 1px solid var(--c-black); padding-top: 22px; }
.service__num { display: block; font-size: 2.9rem; line-height: 1.1; font-weight: 300; color: var(--c-ink); }
.service__title {
  margin: 22px 0 22px;
  font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; line-height: 1.3;
}
.service p { font-size: 0.9375rem; line-height: 1.75; max-width: 260px; }

/* ---------- 11. Energy & environmental solutions ---------- */
.solutions__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
  margin-top: 56px;
}
.solutions__row + .solutions__row { margin-top: 72px; }
.solutions__media img { width: 100%; height: 100%; object-fit: cover; }
.solutions__row:first-of-type .solutions__media img { aspect-ratio: 559 / 582; }
.solutions__media--slant { margin-right: 0; }
.solutions__media--slant img {
  aspect-ratio: 600 / 557;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
}
.solutions__body { max-width: 560px; }
.solutions__row--reverse .solutions__body { max-width: none; }
.solutions__heading {
  font-size: 1.5rem; line-height: 1.25; font-weight: 700;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--c-ink);
  margin-bottom: 26px; padding-top: 6px;
}
.solution-list__item { padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.solution-list__item:first-child { padding-top: 0; }
.solution-list__item:last-child { border-bottom: 0; }
.solution-list dt { font-size: 1.0625rem; font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.solution-list dd { margin-top: 8px; font-size: 0.9375rem; line-height: 1.75; color: var(--c-ink); }

/* ---------- 12. Industries ---------- */
.industries__grid {
  display: grid; grid-template-columns: 1fr minmax(0, 505px);
  gap: 64px; align-items: start;
}
.industries__list {
  display: grid; grid-template-columns: minmax(0, 315px) 1fr;
  column-gap: 0; row-gap: 29px;
  margin-top: 40px;
}
.industries__list li { font-size: 1.0625rem; line-height: 1.5; }
.industries__media img { width: 100%; aspect-ratio: 505 / 501; object-fit: cover; }

/* ---------- 13. Partners ---------- */
.partners__head { text-align: center; }
.partners__intro { margin-top: 14px; font-size: 0.9375rem; }
.partners__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-top: 36px; row-gap: 40px;
}
.partners__grid li {
  flex: 0 0 33.333%;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px; padding: 0 20px;
}
.partners__grid img { max-width: 100%; max-height: 118px; width: auto; height: auto; object-fit: contain; }

/* ---------- 14. Contact ---------- */
.contact { padding-block: clamp(56px, 6.5vw, 96px); }
.contact__grid {
  display: grid; grid-template-columns: 1fr minmax(0, 540px);
  gap: 56px; align-items: start;
}
.contact__title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 3.1vw, 3.1rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.035em;
  max-width: 440px;
}
.contact__lead {
  margin-top: 36px; max-width: 420px;
  font-size: 1.0625rem; line-height: 1.65; color: var(--c-muted-light);
}
.contact__mail { margin-top: 36px; font-size: 0.9375rem; }
.contact__mail a { font-weight: 700; text-underline-offset: 3px; }

.contact-form {
  border: 1px solid rgba(255,255,255,.8);
  padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 22px; }
.field label {
  font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; color: rgba(255,255,255,.92);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--c-grey); color: var(--c-ink);
  border: 1px solid transparent; border-radius: 0;
  padding: 0 14px; min-height: 52px;
  font-size: 1rem;
}
.field textarea { min-height: 150px; padding: 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #4a90ff; outline: none; }
.field .is-invalid { border-color: #e5484d; }
.contact-form .btn { min-height: 50px; padding-inline: 32px; margin-top: 4px; }
.form-status { margin-top: 18px; font-size: 0.875rem; line-height: 1.5; color: var(--c-muted-light); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--c-black); color: var(--c-white);
  border-top: 1px solid rgba(255,255,255,.7);
  padding-block: 28px;
}
.site-footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.site-footer__logo img { width: 185px; height: auto; }
.site-footer__copy { font-size: 0.6875rem; text-align: center; }
.site-footer__links { display: flex; justify-content: flex-end; gap: 22px; }
.site-footer__links a { font-size: 0.6875rem; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Laptops / small desktops */
@media (max-width: 1280px) {
  :root { --gap: 24px; }
  .arm, .statement { padding-inline: 28px; }
  .arm__title { font-size: 1.4rem; }
  .platform__title { font-size: 1.35rem; }
  .service p { max-width: none; }
}

/* Tablets */
@media (max-width: 1023px) {
  :root { --header-h: 72px; --gutter: 32px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-white);
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 14px 24px rgba(0,0,0,.12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    display: block; padding: 16px 0; font-size: 1.0625rem;
    border-bottom: 1px solid var(--c-line);
  }
  .site-nav__cta { margin-top: 20px; min-height: 52px; }

  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__text { max-width: 620px; padding-block: 64px 48px; }
  .hero__media { position: relative; width: 100%; height: 340px; }
  .hero__media::after { background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 30%); }
  .hero__media img { object-position: center; }

  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__media { max-width: 521px; }

  .arms__grid { grid-template-columns: 1fr; gap: 20px; }
  .arm .eyebrow { min-height: 0; }

  .platforms__head { grid-template-columns: 1fr; gap: 20px; }
  .platforms__grid { gap: 24px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }

  .solutions__row,
  .solutions__row--reverse { grid-template-columns: 1fr; gap: 32px; }
  .solutions__row--reverse .solutions__media { order: -1; }
  .solutions__body { max-width: none; }
  .solutions__row:first-of-type .solutions__media img { aspect-ratio: 4 / 3; }

  .industries__grid { grid-template-columns: 1fr; gap: 40px; }
  .industries__media { max-width: 505px; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__title, .contact__lead { max-width: 560px; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section-y: 56px; }
  body { font-size: 16px; }

  .site-header__logo img { width: 160px; }

  .hero__text { padding-block: 48px 40px; }
  .hero__title { margin-top: 20px; font-size: 2.4rem; }
  .hero__lead { margin-top: 24px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; min-height: 52px; }
  .hero__media { height: 260px; }

  .eyebrow { letter-spacing: 0.2em; }

  .statement-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .statement, .arm { padding: 28px 24px 30px; }
  .arm__title { font-size: 1.4rem; }
  .arms__note { margin-top: 36px; text-align: left; }

  .platforms__grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .platform__body { padding: 24px 22px 30px; }
  .platform__title { font-size: 1.3rem; }

  .services__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .service__num { font-size: 2.4rem; }
  .service__title { margin-block: 14px; }

  .solutions__row { margin-top: 36px; }
  .solutions__row + .solutions__row { margin-top: 48px; }
  .solutions__heading { font-size: 1.3rem; margin-bottom: 20px; }

  .industries__list { grid-template-columns: 1fr; row-gap: 16px; margin-top: 28px; }

  .partners__grid { row-gap: 8px; margin-top: 28px; }
  .partners__grid li { flex-basis: 50%; min-height: 110px; padding: 0 12px; }
  .partners__grid img { max-height: 80px; }

  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .btn { width: 100%; }
  .contact__title { font-size: 2.1rem; }

  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .site-footer__links { justify-content: center; flex-wrap: wrap; }
}

/* Very small phones (320px) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 2.1rem; }
  .partners__grid li { flex-basis: 100%; }
  .site-header__logo img { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
