@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');
/* ============================================================
   CarDesignCraft — Shared Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --black:      #111111;
  --white:      #ffffff;
 /* --bg:         rgb(249, 250, 252);*/
   --bg:     #F5F8FA;
  --navy:       rgb(22, 37, 86);
 /* --orange:     #E85000;
  --orange-lt:  #FF6A1A;*/
  --orange:     #DE7943;
  --orange-lt:  #DE7943;
  --grey-100:   #eeeff2;
  --grey-200:   #e2e3e8;
  --grey-400:   #999999;
  --grey-600:   #555555;

  --font-sans: 'Inter', sans-serif;
/* --font-sans: 'Roboto', sans-serif; */

  --nav-h:      64px;
  --max-w:      1200px;
  --radius:     12px;   /* small cards, buttons, inputs */
  --radius-lg:  20px;  /* outer group boxes */
  --transition: 200ms ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── Global Typography ──────────────────────────────────────── */
/* Single source of truth. Page classes handle layout only.     */
h1 {
  font-size: clamp(42px, 5.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-600);
}
.hero-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey-600);
  max-width: 680px;  
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 16px;
}
a.external {
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
  transition: color var(--transition);
}
a.external:hover { color: var(--orange);
}
/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--grey-200);
  height: var(--nav-h);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  width: 100px;
  visibility: hidden;
}
.nav__logo-mark {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav__logo:hover .nav__logo-mark { opacity: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--grey-600);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--black);
  background: var(--grey-100);
}
.nav__links a.active {
  color: var(--orange);
  background: transparent;
}
.nav__login {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  border: 1.5px solid var(--grey-200);
  background: var(--bg);
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.nav__login:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
/* mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--grey-200);
  padding: 28px 32px;
  margin-top: auto;
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-size: 12px;
  color: var(--grey-400);
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  font-size: 12px;
  color: var(--grey-400);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--black); }

/* ── Page wrapper ───────────────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--grey-200);
}
.btn--outline:hover {
  border-color: var(--black);
}

/* ── Hero / Landing ─────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 48px;
  max-width: 600px;
}
.hero__logo {
  height: 96px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 32px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
 /* text-transform: uppercase; */
  color: var(--orange);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--grey-600);
  margin-bottom: 40px;
  max-width: 430px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__what {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 14px;
}
.hero__features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--grey-600);
}
.hero__feature svg {
  color: var(--orange);
  flex-shrink: 0;
}
.hero__image {
  position: relative;
  overflow: hidden;
  background: #E85000;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

/* ── Prose pages (T&C, Privacy) ─────────────────────────────── */
.prose-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.prose-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 40px;
  transition: color var(--transition);
}
.prose-back:hover { color: var(--black); }
.prose-page h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.prose-page .last-updated {
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 56px;
}
.prose-page h2 {
  margin-top: 48px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-200);
}
.prose-page p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.prose-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose-page ul li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey-600);
  margin-bottom: 6px;
}
.prose-page ul li strong { color: var(--black); }
.prose-page a { color: var(--orange); text-decoration: underline; }

/* ── About page ─────────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: 80px 32px 56px;
  max-width: 680px;
  margin: 0 auto;
}
.about-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.about-mission {
  max-width: 740px;
  margin: 0 auto 72px;
  padding: 0 32px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--white);
}
.about-mission-inner { padding: 48px; }
.about-mission h2 {
  margin-bottom: 20px;
}
.about-mission p {
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-rules { padding: 0 32px 72px; }
.about-rules-inner { max-width: var(--max-w); margin: 0 auto; }
.about-rules h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}
.about-rules .subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--grey-400);
  margin-bottom: 48px;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rule-card {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
}
.rule-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  color: var(--grey-400);
}
.rule-card h3 {
  margin-bottom: 20px;
}
.rule-card p, .rule-card blockquote {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--grey-600);
  font-style: normal;
}
.about-cta {
  background: var(--grey-100);
  text-align: center;
  padding: 64px 32px;
}
.about-cta h2 {
  margin-bottom: 12px;
}
.about-cta p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}
.about-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Scores page ────────────────────────────────────────────── */
.scores-hero {
  padding: 72px 32px 48px;
  max-width: 800px;
  text-align: left;
  margin: 0 auto;
}
.scores-hero h1 {
  font-size: clamp(30px, 4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.scores-hero p {
  line-height: 1.5;
}
.scores-section {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.scores-section-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}
.scores-section-header h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scores-section-header p {
  font-size: 14px;
  color: var(--grey-600);
  margin-top: 6px;
  line-height: 1.6;
}
.scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.score-card {
  background: var(--white);
  padding: 28px 24px;
}
.score-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.score-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey-600);
}
.scores-footer-note {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 32px;
}
.scores-footer-note p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey-600);
  border-top: 1px solid var(--grey-200);
  padding-top: 24px;
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  text-align: center;
}
.contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--grey-400);
}
.contact-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.contact-page .subtitle {
  line-height: 1.7;
  margin-bottom: 48px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 36px;
  text-align: left;
}
.contact-form__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-form__sub {
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 28px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-field label span { color: var(--orange); }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--grey-400); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06);
}
.form-field--checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-field--checkbox input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-field--checkbox label {
  cursor: pointer;
  font-weight: normal;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── EVs Catalog page ───────────────────────────────────────── */
.catalog-hero {
  padding: 72px 32px 48px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.catalog-hero h1 {
  font-size: clamp(30px, 4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.catalog-hero p {
  line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__content { padding: 56px 32px 48px; max-width: 100%; }
  .hero__image { height: 300px; order: -1; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .scores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--grey-200);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav__hamburger { display: flex; }
  .nav__login { display: none; }
  .nav__logo { visibility: visible; }
  .hero-text { font-size: 16px; }
  .rules-grid { grid-template-columns: 1fr; }
  .scores-grid { grid-template-columns: 1fr; }
  .about-mission-inner { padding: 28px 24px; }
  .contact-form { padding: 24px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 14px; }
}
