@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f68734;
  --orange-heading: #f6931e;
  --header: #8f8e8e;
  --body: #5b5a5a;
  --body-2: #7d7b7b;
  --muted: #a4a4a4;
  --bg-warm: #efecec;
  --bg: #ffffff;
  --footer: #242424;
  --white: #ffffff;
  --max: 1180px;
  --font-body: "Open Sauce Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: Anton, "Arial Black", sans-serif;
  --font-section: "League Spartan", "Open Sauce Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.45;
}

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

a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--white);
  color: var(--footer);
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  color: var(--white);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo img {
  height: 42px;
  width: auto;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.nav a:hover,
.nav a:focus-visible { color: #fff; opacity: 0.85; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 6px;
}
.btn:hover,
.btn:focus-visible { filter: brightness(1.05); }
.btn--hire {
  padding: 12px 22px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background: #1a1612 url("hero-background.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 90px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 24px;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.7vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}
.hero h1 .line { display: block; }
@media (min-width: 900px) {
  .hero h1 .line:first-child { white-space: nowrap; }
}
.hero h1 .accent { color: var(--orange); }
.hero p {
  margin: 0 0 36px;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.4;
  color: #f3f3f3;
  font-weight: 400;
}
.hero__mark {
  justify-self: end;
  width: min(360px, 100%);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}

/* About */
.about {
  background: var(--bg-warm);
  padding: 88px 28px 100px;
  text-align: center;
}
.about__inner,
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow,
.section-title {
  margin: 0 0 18px;
  font-family: var(--font-section);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-heading);
}
.about__lead {
  margin: 0 auto 56px;
  max-width: 720px;
  color: var(--body-2);
  font-size: 18px;
  line-height: 1.55;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.about-card {
  background: var(--white);
  padding: 36px 18px 28px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.about-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 22px;
}
.about-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--body);
}

/* Solutions */
.solutions {
  background: var(--bg);
  padding: 88px 28px 40px;
  text-align: center;
}
.solutions .section-title { margin-bottom: 48px; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: start;
}
.solution-card {
  position: relative;
  text-align: left;
  color: var(--white);
}
.solution-card img {
  width: 100%;
  height: auto;
  display: block;
}
.solution-card__body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 28px 18px 16px;
}
.solution-card__body::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--orange);
  margin-bottom: 16px;
}
.solution-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.solution-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
}

/* Products */
.products {
  background: var(--bg-warm);
  padding: 88px 28px 100px;
  text-align: center;
}
.products .section-title { margin-bottom: 48px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  text-align: center;
  background-color: #2a231c;
  background-size: cover;
  background-position: center;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.55) 100%);
}
.product-card img {
  position: relative;
  z-index: 1;
  width: 72%;
  max-height: 260px;
  object-fit: contain;
  margin: 44px auto 4px;
}
.product-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.02em;
}

/* Partners */
.partners {
  position: relative;
  background: #2a231c url("partners-background.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 88px 28px 96px;
}
.partners::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 22, 0.42);
}
.partners__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}
.partners .section-title {
  color: var(--orange-heading);
  margin-bottom: 48px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  align-items: center;
  justify-items: center;
}
.partners-grid img {
  max-height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* Logos are already white; invert would ruin SolarEdge's mixed mark.
   They are white on transparent, so no filter needed. */
.partners-grid img { filter: none; }
.partners-grid .span-row {
  grid-column: 1 / -1;
}

/* Contact */
.contact {
  position: relative;
  background: #2a231c url("contact-background.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 88px 28px 100px;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
}
.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}
.contact .section-title {
  text-align: center;
  color: var(--white);
  margin-bottom: 12px;
}
.contact__lead {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.5;
  color: #f2f2f2;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.form-row--message { align-items: start; }
.form-row label {
  font-size: 16px;
  font-weight: 500;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(168, 168, 168, 0.55);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.85);
  text-transform: lowercase;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.contact-form .btn { margin-left: 126px; margin-top: 8px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.contact-details a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
}
.contact-details img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #d8d8d8;
  padding: 56px 28px 40px;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 1fr 0.5fr;
  gap: 32px;
}
.footer-brand {
  color: var(--white);
}
.footer-brand img {
  width: 120px;
  margin-bottom: 16px;
}
.footer-brand p,
.footer-brand a {
  margin: 0 0 6px;
  font-size: 14px;
  color: #d0d0d0;
  text-decoration: none;
}
.footer-brand a:hover { color: var(--white); }
.site-footer h3 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin: 0 0 10px; }
.site-footer li a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}
.site-footer li a:hover { color: var(--white); }
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
}
.footer-social img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .hero__inner,
  .contact__grid,
  .products-grid,
  .about-grid { grid-template-columns: 1fr 1fr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; }
  .hero__mark { justify-self: center; width: min(280px, 70%); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-form .btn { margin-left: 0; }
}

@media (max-width: 760px) {
  .site-header__inner { padding: 0 16px; min-height: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    margin: 0;
  }
  .is-open .nav { display: flex; }
  .nav a,
  .nav .btn--hire {
    padding: 14px 20px;
    border-radius: 0;
  }
  .hero__inner,
  .about-grid,
  .solutions-grid,
  .products-grid,
  .partners-grid,
  .contact__grid,
  .footer__inner { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero__inner { padding: 56px 20px 64px; text-align: left; }
  .hero h1 .line { display: inline; }
  .hero h1 .line::after { content: " "; }
  .about, .solutions, .products, .partners, .contact { padding: 64px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .partners-grid .span-row { grid-column: auto; }
}
