/* Motive Energy — site styles
   Colors and type follow the original Astra/Elementor theme settings. */

:root {
  --navy: #011627;
  --text: rgba(1, 22, 39, 0.75);
  --muted: #a8a8a8;
  --red: #d94948;
  --green: #15962a;
  --green-dark: #107a22;
  --light: #f9f8f8;
  --line: rgba(1, 22, 39, 0.1);
  --container: 1200px;
  --gutter: 24px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

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

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.25rem; }

/* Size a heading differently from its level. */
.h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.h4 { font-size: 1.25rem; }

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

a { color: var(--red); }
a:hover { color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: 950px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 0;
  border-radius: 100px;
  font: 600 0.95rem/1 var(--font);
  text-decoration: none;
  color: #fff;
  background: var(--red);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { color: #fff; background: rgba(217, 73, 72, 0.85); }

.btn--green { background: var(--green); }
.btn--green:hover { background: var(--green-dark); }

/* ---------- Header (transparent, over the page hero) ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo img {
  width: 230px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: rgba(1, 22, 39, 0.5);
  color: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 100%; height: 100%; fill: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .logo img { width: 170px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--navy);
  }
  .site-nav.is-open { display: flex; }

  .site-nav ul { flex-direction: column; }
  .site-nav ul a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: none;
  }
  .site-nav ul a:hover,
  .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--green); }

  .site-nav .btn { text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 160px 0 110px;
  background: var(--navy) center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.5;
}
.hero > .container { position: relative; }
.hero h1,
.hero h2,
.hero p { color: #fff; }

.hero--home { min-height: 82vh; }
.hero--home::before { background: #0d396e; opacity: 0.25; }
.hero--home .eyebrow {
  margin-bottom: 0.4em;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.hero--home h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero--about { background-image: url("../images/hero-about.jpg"); background-position: bottom center; }
.hero--projects { background-image: url("../images/hero-projects.jpg"); background-position: bottom center; }
.hero--contact { background-image: url("../images/hero-contact.jpg"); background-position: bottom center; }
.hero--home { background-image: url("../images/hero-home.jpg"); }
.hero--projects::before { opacity: 0.6; }

/* Parallax-style fixed backgrounds only where they work well (not iOS/touch). */
@media (hover: hover) and (min-width: 1025px) {
  .hero--home,
  .hero--about,
  .hero--projects,
  .products-band { background-attachment: fixed; }
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section--tight { padding: 50px 0; }
.section--light { background: var(--light); }

.section-title { text-align: center; }

.eyebrow-label {
  display: block;
  margin-bottom: 0.6em;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Home: three approach boxes */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px;
  border: 2px groove rgba(21, 19, 150, 0.45);
  background: #fff;
}
.approach-item { text-align: center; }
.approach-item svg {
  width: 59px;
  height: 59px;
  margin: 0 auto 18px;
  fill: var(--red);
}
.approach-item h3 { font-size: 1.25rem; }

.approach-wrap {
  position: relative;
  margin-top: -70px;
  z-index: 2;
}

.statement {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Home: products band with slideshow background */
.products-band {
  position: relative;
  overflow: hidden;
  padding: 150px 0;
  color: #fff;
  background: var(--navy);
}
.slideshow {
  position: absolute;
  inset: 0;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slideshow .slide.is-active { opacity: 1; }
.slideshow .slide--1 { background-image: url("../images/products-1.jpg"); }
.slideshow .slide--2 { background-image: url("../images/products-2.jpg"); }
.slideshow .slide--3 { background-image: url("../images/products-3.jpg"); }
.products-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 22, 39, 0.85) 15%, rgba(1, 22, 39, 0.35));
}
.products-band > .container { position: relative; z-index: 1; }
.products-band .content { max-width: 620px; }
.products-band h2 { color: #fff; }
.product-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.product-list li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

/* Home: industries */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.industry img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 22px;
  transition: transform 0.3s;
}
.industry:hover img { transform: translateY(-8px); }

/* About */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.capabilities {
  margin: 0;
  padding: 0;
  list-style: none;
}
.capabilities li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.capabilities li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 30px;
}
.project img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 22px;
}

/* Contact */
.contact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 14px;
}
.contact-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  fill: var(--red);
}
.contact-list a {
  color: var(--text);
  text-decoration: none;
}
.contact-list a:hover { color: var(--red); }

.contact-intro { text-align: center; }
.contact-intro .contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
  text-align: left;
}
.contact-intro .contact-list li { margin-bottom: 0; }

.map {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

/* 404 */
.notfound-body { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 70px 0 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover { color: #dd3333; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-grid h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid li { margin-bottom: 8px; }
.footer-logo img {
  width: 230px;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .products-band { padding: 100px 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .hero { min-height: 380px; padding: 130px 0 70px; }
  .hero--home { min-height: 75vh; }

  .approach,
  .industries,
  .split,
  .projects,
  .footer-grid { grid-template-columns: 1fr; }

  .approach { padding: 30px 20px; gap: 36px; }
  .approach-wrap { margin-top: -40px; }

  .section { padding: 60px 0; }
  .products-band { padding: 80px 0; }
  .map { height: 360px; }
  .footer-bottom .container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slideshow .slide,
  .industry img { transition: none; }
}
