@import url('https://fonts.googleapis.com/css2?family=Istok+Web:wght@400;600;700&family=Pacifico&display=swap');

:root {
  --red: #b10b0a;
  --red-dark: #860a09;
  --black: #090909;
  --ink: #202020;
  --muted: #777;
  --line: rgba(255,255,255,.18);
  --cream: #f5f3ef;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Istok Web', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  color: #fff;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(8,8,8,.88);
  border-color: rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
}
.logo { width: 78px; min-width: 78px; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 9px 12px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav a:hover, .nav a.active { border-color: rgba(255,255,255,.65); }
.demo-pill {
  border: 1px solid var(--red) !important;
  color: #fff;
  background: rgba(177,11,10,.15);
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 5px;
  background: rgba(0,0,0,.25);
  color: white;
  cursor: pointer;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  background: #000;
}
.hero video,
.hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fallback {
  background: radial-gradient(circle at 70% 40%, #2c2c2c 0, #101010 35%, #000 75%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 110px clamp(24px, 6vw, 88px) 110px;
}
.eyebrow {
  color: #ddd;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 108px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.045em;
  max-width: 820px;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}
.hero-copy {
  max-width: 650px;
  margin-top: 28px;
  color: #dedede;
  font-size: clamp(15px, 1.45vw, 19px);
}
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 12px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #fff; color: #111; }
.btn.primary:hover { background: #e7e7e7; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.dark { background: #111; border-color: #111; color: #fff; }

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scroll-btn, .video-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(0,0,0,.28);
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.scroll-btn { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.section { padding: clamp(72px, 8vw, 120px) clamp(22px, 6vw, 90px); }
.section-inner { width: min(1260px, 100%); margin: 0 auto; }
.section-kicker { color: var(--red); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.section-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin-top: 8px;
}
.section-copy { margin-top: 14px; color: #666; max-width: 680px; }

.featured { background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%); overflow: hidden; }
.featured-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}
.charger-wrap { position: relative; min-height: 420px; display: grid; place-items: center; }
.charger-word {
  position: absolute;
  z-index: 0;
  font-family: 'Pacifico', cursive;
  font-size: clamp(80px, 16vw, 230px);
  color: #d8d8d8;
  opacity: .85;
  white-space: nowrap;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-5deg);
  user-select: none;
}
.charger-wrap img { position: relative; z-index: 1; width: min(880px, 100%); filter: drop-shadow(0 28px 22px rgba(0,0,0,.22)); }
.car-info h3 { font-size: clamp(34px, 4vw, 56px); font-weight: 400; }
.price { font-weight: 700; color: var(--red); margin: 8px 0 22px; }
.meta-list { display: grid; gap: 10px; color: #666; margin: 22px 0; }
.meta-list span { padding-bottom: 10px; border-bottom: 1px solid #ddd; }

.catalog-preview { background: #0f0f0f; color: #fff; }
.cards {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  overflow: hidden;
  background: #171717;
  border: 1px solid #303030;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,.2);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: #515151; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #222; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 25px; margin-bottom: 8px; }
.card-body p { color: #b8b8b8; font-size: 15px; min-height: 72px; }
.card-body .btn { margin-top: 20px; }

.notice {
  background: #f3eee9;
  color: #28221f;
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  margin-top: 28px;
  border-radius: 4px;
  font-size: 14px;
}

.page-hero {
  min-height: 42svh;
  background: radial-gradient(circle at 82% 20%, #3a1616 0, #151515 32%, #080808 75%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(22px, 6vw, 90px) 60px;
}
.page-hero-inner { width: min(1260px, 100%); margin: 0 auto; }
.page-hero h1 { font-size: clamp(44px, 7vw, 86px); letter-spacing: -.045em; }
.page-hero p { color: #bbb; max-width: 720px; margin-top: 10px; }

.catalog-page { min-height: 60svh; background: radial-gradient(circle, #fff 72%, #e3e3e3 100%); }
.catalog-list { display: grid; gap: 26px; }
.catalog-card {
  display: grid;
  grid-template-columns: 32% 1fr;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  transition: transform .25s ease;
}
.catalog-card:hover { transform: translateY(-4px); }
.catalog-card img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.catalog-card-content { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.catalog-card-content h2 { font-size: clamp(28px, 4vw, 44px); }
.catalog-card-content p { color: #656565; margin: 10px 0 22px; max-width: 720px; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.vehicle-card { border: 1px solid #ddd; border-radius: 10px; overflow: hidden; background: #fff; }
.vehicle-card .card-media { background: linear-gradient(180deg,#f7f7f7,#e6e6e6); }
.vehicle-card .card-body p { color: #666; min-height: 0; }
.vehicle-card .vehicle-price { color: var(--red); font-weight: 700; margin-top: 6px; }
.demo-action { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.faq-page { background: #fff; }
.faq-shell { position: relative; }
.faq-intro {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #202020;
  border-radius: 0 0 50% 50% / 0 0 16% 16%;
  padding: 100px 20px 120px;
}
.faq-intro h1 { font-size: clamp(42px, 6vw, 76px); }
.faq-intro p { color: #bbb; margin-top: 10px; padding-bottom: 12px; border-bottom: 1px solid #777; }
.accordion { width: min(920px, calc(100% - 44px)); margin: -58px auto 80px; position: relative; z-index: 2; display: grid; gap: 14px; }
.acc-item { background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,.12); overflow: hidden; }
.acc-head { width: 100%; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 22px 24px; cursor: pointer; font-weight: 600; }
.acc-icon { color: var(--red); font-size: 24px; transition: transform .2s ease; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc-content > div { overflow: hidden; }
.acc-content p { padding: 0 24px 24px; color: #666; }
.acc-item.open .acc-content { grid-template-rows: 1fr; }

.contact-strip { background: #f1f1f1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 28px; }
.contact-card h3 { font-size: 26px; margin-bottom: 8px; }
.contact-card p { color: #666; }
.demo-form { display: grid; gap: 12px; margin-top: 20px; }
.demo-form input, .demo-form textarea {
  width: 100%;
  border: 1px solid #c9c9c9;
  background: #fff;
  border-radius: 4px;
  padding: 12px 13px;
}
.demo-form textarea { min-height: 120px; resize: vertical; }
.map-placeholder {
  min-height: 310px;
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.15)),
    url('https://cdn.jsdelivr.net/gh/JoacohDeveloper/Iparraguirre-Motors@main/public/build/src/images/endless-road-mountain.webp') center/cover;
  border-radius: 7px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-weight: 700;
}

.site-footer { background: #111; color: #fff; padding: 52px clamp(22px, 6vw, 90px) 24px; }
.footer-grid { width: min(1260px,100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 46px; }
.site-footer h3 { font-size: 20px; margin-bottom: 13px; }
.site-footer p, .site-footer li, .site-footer a { color: #aaa; font-size: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { width: min(1260px,100%); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid #333; color: #777; font-size: 13px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.72);
  display: none;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}
.modal.open { display: grid; }
.modal-panel { width: min(520px,100%); background: #fff; color: #222; border-radius: 10px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-panel h2 { margin-bottom: 8px; }
.modal-panel p { color: #666; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 22px; }

@media (max-width: 900px) {
  .cards, .vehicle-grid { grid-template-columns: 1fr; }
  .featured-grid, .contact-grid { grid-template-columns: 1fr; }
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-card img { min-height: 240px; max-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: 68px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 28px 22px;
    background: rgba(5,5,5,.98);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 16px 12px; font-size: 15px; border-bottom: 1px solid #292929; border-radius: 0; }
  .hero-inner { padding-top: 95px; }
  .hero h1 { font-size: clamp(46px, 16vw, 76px); }
  .hero::after { background: rgba(0,0,0,.62); }
  .hero-controls { width: calc(100% - 32px); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-inline: 20px; }
  .page-hero { padding-inline: 20px; }
  .charger-wrap { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
