:root {
  --ink: #0f1f2a;
  --muted: #61717d;
  --paper: #f5f3ed;
  --white: #ffffff;
  --line: #d8e0e3;
  --green: #128c7e;
  --green-dark: #075e54;
  --gold: #d0a23b;
  --coral: #d85f43;
  --charcoal: #15232c;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 21, 28, 0.9), rgba(10, 21, 28, 0));
}

.brand,
.site-nav,
.hero-actions,
.trust-strip,
.steps,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.site-nav {
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: #f4d277;
}

.phone-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.whatsapp-link,
.primary-button,
.car-card > div > a {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 35px rgba(18, 140, 126, 0.26);
}

.whatsapp-link {
  border-radius: 8px;
  padding: 10px 15px;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  padding: 140px clamp(20px, 6vw, 78px) 62px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 20, 28, 0.9), rgba(9, 20, 28, 0.55), rgba(9, 20, 28, 0.18)),
    url("./assets/tesla-model-3.jpg")
      center / cover;
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
}

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

.primary-button,
.secondary-button,
.car-card > div > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button:hover,
.car-card > div > a:hover,
.whatsapp-link:hover {
  background: var(--green-dark);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.quick-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.quick-card span {
  display: block;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-card strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 1.6rem;
  line-height: 1.12;
}

.quick-card p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.quick-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

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

.trust-strip {
  width: min(1180px, calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(26, 38, 45, 0.15);
}

.trust-strip div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--green-dark);
  font-size: 1.25rem;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section,
.tesla-info,
.how-section,
.faq-section,
.final-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0 74px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.85;
}

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

.car-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(26, 38, 45, 0.08);
}

.featured-card {
  border-color: rgba(18, 140, 126, 0.4);
  box-shadow: 0 18px 48px rgba(18, 140, 126, 0.16);
}

.tesla-card {
  border-color: rgba(208, 162, 59, 0.42);
}

.tesla-card span {
  color: var(--green-dark);
}

.car-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.car-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.car-card span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.car-card h3 {
  min-height: 48px;
  margin-bottom: 14px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.car-card dl {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.car-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.car-card dt,
.car-card dd {
  margin: 0;
  font-size: 0.86rem;
}

.car-card dt {
  color: var(--muted);
  font-weight: 700;
}

.car-card dd {
  max-width: 62%;
  text-align: right;
  font-weight: 800;
}

.car-card > div > a {
  width: 100%;
  margin-top: auto;
}

.tesla-info {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  padding: 0 0 76px;
}

.tesla-info h2 {
  max-width: 560px;
}

.info-grid {
  display: grid;
  gap: 14px;
}

.info-grid article {
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(26, 38, 45, 0.08);
}

.info-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.info-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.how-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.steps {
  align-items: stretch;
  gap: 14px;
}

.steps article {
  flex: 1;
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(26, 38, 45, 0.08);
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-section {
  padding: 18px 0 76px;
}

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

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(26, 38, 45, 0.08);
}

.faq-grid summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.faq-grid summary::marker {
  color: var(--green);
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.final-cta {
  margin-bottom: 88px;
  border-radius: 8px;
  padding: clamp(30px, 6vw, 58px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 21, 28, 0.92), rgba(10, 21, 28, 0.7)),
    url("./assets/tesla-cybertruck.jpg")
      center / cover;
}

.final-cta h2 {
  max-width: 760px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: #0b171d;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.site-footer small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.sticky-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 18px 45px rgba(7, 94, 84, 0.32);
  font-weight: 800;
}

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

@media (max-width: 1040px) {
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .tesla-info,
  .how-section {
    grid-template-columns: 1fr;
  }

  .quick-card {
    max-width: 520px;
  }

  .steps {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-nav a:not(.whatsapp-link) {
    display: none;
  }

  .phone-link {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 18px 48px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-strip,
  .car-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    width: calc(100% - 28px);
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .tesla-info,
  .how-section,
  .faq-section,
  .final-cta {
    width: calc(100% - 28px);
  }

  .car-card h3 {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding-bottom: 88px;
  }

  .sticky-whatsapp {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}
