:root {
  --green: #238a3e;
  --green-dark: #12602b;
  --green-soft: #e7f3eb;
  --graphite: #081014;
  --graphite-2: #111b20;
  --ink: #101719;
  --muted: #687176;
  --line: #dfe6e3;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(4, 12, 15, 0.2);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 20px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 16, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  padding-top: 14px;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  gap: 12px;
  min-width: 0;
  text-transform: uppercase;
}

.brand img {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.brand strong {
  color: #2ba04c;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.brand small {
  display: block;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.main-nav {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  opacity: 0.92;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta,
.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-cta,
.button-primary {
  background: var(--green);
  color: var(--white);
}

.nav-cta:hover,
.button-primary:hover {
  background: #2c9b4d;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.button-dark {
  background: var(--graphite);
  color: var(--white);
  width: 100%;
}

.button-dark:hover {
  background: #15232a;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  padding: 0;
  width: 44px;
}

.nav-toggle span {
  background: var(--white);
  display: block;
  height: 2px;
  margin: 7px 8px;
}

.hero {
  background: var(--graphite);
  color: var(--white);
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  background: url("../public/assets/hero-garage.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 12, 14, 0.94) 0%, rgba(5, 12, 14, 0.74) 36%, rgba(5, 12, 14, 0.14) 74%),
    linear-gradient(180deg, rgba(5, 12, 14, 0.25) 0%, rgba(5, 12, 14, 0.04) 52%, rgba(5, 12, 14, 0.82) 100%);
}

.hero-content {
  margin: 0 auto;
  max-width: var(--max);
  padding: 188px 28px 124px;
  position: relative;
  z-index: 2;
}

.hero-brand,
.section-label {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-brand {
  font-size: clamp(1.2rem, 3vw, 2.1rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 680px;
  text-transform: uppercase;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.58;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-cue {
  bottom: 20px;
  color: var(--green);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-cue svg {
  fill: none;
  height: 38px;
  stroke: currentColor;
  stroke-width: 2.2;
  width: 38px;
}

.section {
  display: grid;
  gap: clamp(36px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(64px, 8vw, 108px) 28px;
}

.section-copy h2,
.method-copy h2,
.sustainability h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

.section-copy > p:not(.section-label),
.method-copy > p,
.sustainability p,
.contact-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
}

.service-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
}

.service-list article {
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.service-icon {
  align-items: center;
  border: 2px solid var(--green);
  color: var(--green);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.service-list h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.service-list p {
  color: var(--muted);
  font-size: 0.88rem;
  grid-column: 2;
  line-height: 1.55;
  margin: 0;
}

.media-frame,
.tesla-visual,
.method-image {
  margin: 0;
}

.media-frame img,
.tesla-visual img,
.method-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-frame {
  aspect-ratio: 1.24;
  box-shadow: var(--shadow);
}

.method-band {
  background: var(--graphite);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  min-height: 520px;
}

.method-copy {
  align-self: center;
  justify-self: end;
  max-width: 590px;
  padding: clamp(64px, 8vw, 104px) clamp(28px, 5vw, 78px);
}

.method-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.method-image {
  min-height: 480px;
}

.method-steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.method-steps li::before {
  color: #42b963;
  content: "0" counter(step);
  counter-increment: step;
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.method-steps strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 7px;
}

.method-steps span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
}

.tesla {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.95fr);
}

.tesla-visual {
  aspect-ratio: 1.32;
}

.trust-row {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.trust-row div {
  border-top: 2px solid var(--green);
  padding-top: 16px;
}

.trust-row strong {
  display: block;
  margin-bottom: 8px;
}

.trust-row span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
}

.sustainability {
  background:
    linear-gradient(90deg, rgba(5, 12, 14, 0.95), rgba(5, 12, 14, 0.72)),
    url("../public/assets/hero-garage.png") center / cover no-repeat;
  color: var(--white);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  padding: clamp(70px, 9vw, 118px) max(28px, calc((100vw - var(--max)) / 2 + 28px));
}

.sustainability p {
  color: rgba(255, 255, 255, 0.78);
}

.sustainability-points {
  align-self: end;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}

.sustainability-points article {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 18px;
}

.sustainability-points h3 {
  font-size: 1rem;
}

.sustainability-points p {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.contact-section {
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.58fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(64px, 8vw, 102px) 28px;
}

.contact-details {
  color: var(--ink);
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  line-height: 1.6;
  margin-top: 40px;
}

.contact-details span {
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.contact-form {
  align-self: start;
  background: var(--green);
  color: var(--white);
  display: grid;
  gap: 20px;
  padding: 30px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 8px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  color: var(--graphite);
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

.contact-form textarea {
  line-height: 1.5;
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(255, 255, 255, 0.36);
}

.contact-form .button {
  justify-self: start;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
  margin: 0;
  min-height: 22px;
}

.form-status[data-state="success"] {
  color: var(--white);
}

.form-status[data-state="error"] {
  color: #ffe5e5;
}

.site-footer {
  align-items: center;
  background: var(--graphite);
  color: var(--white);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: 36px clamp(20px, 5vw, 72px);
}

.site-footer .brand img {
  height: 48px;
  width: 48px;
}

.site-footer nav {
  display: flex;
  gap: 26px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand img {
    height: 48px;
    width: 48px;
  }

  .brand strong {
    font-size: 1.02rem;
  }

  .brand small {
    font-size: 0.44rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    background: rgba(8, 16, 20, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 12px 18px 24px;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    width: 100%;
  }

  .main-nav .nav-cta {
    margin-top: 8px;
    padding: 0 18px;
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 12, 14, 0.94) 0%, rgba(5, 12, 14, 0.66) 62%, rgba(5, 12, 14, 0.4) 100%),
      linear-gradient(180deg, rgba(5, 12, 14, 0.18) 0%, rgba(5, 12, 14, 0.84) 100%);
  }

  .hero-content {
    padding: 154px 22px 96px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .section,
  .tesla,
  .method-band,
  .sustainability,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 22px;
  }

  .media-frame,
  .tesla-visual,
  .method-image {
    min-height: 320px;
  }

  .method-copy {
    justify-self: start;
    padding: 58px 22px 18px;
  }

  .method-image {
    min-height: 360px;
  }

  .sustainability {
    padding: 62px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.72rem, 12.2vw, 3.45rem);
    line-height: 0.98;
  }

  .section-copy h2,
  .method-copy h2,
  .sustainability h2,
  .contact-copy h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.5rem);
  }

  .hero-actions,
  .service-list,
  .method-steps,
  .trust-row,
  .sustainability-points,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .method-steps {
    display: grid;
  }

  .contact-form {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
