/* ==========================================================
   AMERICAN CLASSIC CAR CLUB — Stylesheet
   ========================================================== */

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* ============ VARIÁVEIS ============ */
:root {
  --ink: #010101;
  --ink-2: #0f0a05;
  --signal: #E96C10;
  --paper: #efe7d6;
  --paper-2: #e5dcc7;
  --line: rgba(239,231,214,.16);
  --line-dark: rgba(1,1,1,.16);
  --muted: #8f8676;
  --muted-dark: #6e6555;
  --error: #e64545;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

/* ============ BASE ============ */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ NOISE ============ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.95'/></svg>");
}

/* ============ LAYOUT ============ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; position: relative; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.4) contrast(1.15) brightness(.85);
}
/* Scale pro parallax (só quando movimento é permitido) */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img {
    transform: scale(1.15);
    will-change: transform;
  }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1,1,1,1) 0%,
    rgba(1,1,1,.75) 25%,
    rgba(1,1,1,.25) 55%,
    transparent 80%
  );
}
@media (max-width: 900px) {
  .hero-bg { width: 100%; opacity: .35; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(1,1,1,1) 0%,
      rgba(1,1,1,.5) 40%,
      transparent 75%
    );
  }
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 120px max(28px, 5vw) 80px;
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.hero-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.hero-text {
  color: #cbc2ae;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 460px;
}

.hero-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

.hero-info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-info-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--signal);
}
.hero-info-icon svg { width: 26px; height: 26px; }

.hero-info-item .val {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--paper);
  line-height: 1.2;
}

@media (min-width: 600px) {
  .hero-info { grid-template-columns: repeat(3, 1fr); }
}

/* ============ HERO ENTRANCE ============ */
.hero-logo,
.hero-text,
.hero-info-item,
.hero-left > .btn {
  opacity: 0;
  animation: heroIn .8s var(--ease-out) forwards;
}
.hero-logo { animation-delay: .1s; }
.hero-text { animation-delay: .25s; }
.hero-info-item:nth-child(1) { animation-delay: .4s; }
.hero-info-item:nth-child(2) { animation-delay: .5s; }
.hero-info-item:nth-child(3) { animation-delay: .6s; }
.hero-left > .btn { animation-delay: .75s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s ease,
    transform .8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s ease,
    transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--signal);
  color: var(--paper);
  padding: 18px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--signal);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  align-self: flex-start;
  font-weight: 500;
}
.btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(6px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--ink);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee-track span { display: flex; gap: 56px; align-items: center; }
.marquee-track .star { color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 42s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SEC HEAD ============ */
.sec-head { margin-bottom: 72px; }
.sec-head h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.sec-head h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}
.sec-head h2 .sig { color: var(--signal); -webkit-text-stroke: 0; }

/* ============ PAPER ============ */
.paper { background: var(--paper); color: var(--ink); }
.paper p { color: #2a2419; }
.paper .display, .paper h2, .paper h3 { color: var(--ink); }

/* ============ COMO VAI FUNCIONAR ============ */
.como-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
}
.como-block { display: flex; flex-direction: column; }
.como-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
}
.como-title .sig { color: var(--signal); }
.como-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.como-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #2a2419;
}
.como-list li .arrow {
  color: var(--signal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}
.como-list li strong { font-weight: 500; color: var(--ink); }

/* ============ ATRAÇÕES ============ */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.spec { display: flex; flex-direction: column; }
.spec h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--paper);
  line-height: 1.05;
}
.spec h3 .sig { color: var(--signal); }
.spec p {
  font-size: 0.9rem;
  color: #a3998a;
  line-height: 1.6;
}

.mercado-block { margin-top: 80px; }
.mercado-block > h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1.05;
  margin-bottom: 14px;
}
.mercado-block > h3 .sig { color: var(--signal); }
.mercado-block > p {
  font-size: 0.95rem;
  color: #a3998a;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 32px;
}
.vendor-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.vendor-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  font-size: 0.92rem;
  color: #cbc2ae;
}
.vendor-list li .arrow {
  color: var(--signal);
  font-family: 'JetBrains Mono', monospace;
}
.vendor-list li strong { color: var(--paper); font-weight: 500; }

/* ============ GALERIA ============ */
.galeria {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 120px 0;
}
.galeria-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.galeria-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.4) contrast(1.15) brightness(.55);
}
.galeria-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1,1,1,1) 0%,
    rgba(1,1,1,.75) 30%,
    rgba(1,1,1,.75) 70%,
    rgba(1,1,1,1) 100%
  );
}
.galeria .wrap { position: relative; z-index: 2; }
.galeria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.galeria-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.4) contrast(1.1) brightness(.9);
  transition: transform .5s ease, filter .4s ease;
}
.galeria-item:hover img {
  transform: scale(1.05);
  filter: sepia(.25) contrast(1.1) brightness(1);
}

/* ============ PATROCINADORES (sem caixas) ============ */
.sponsors {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.sponsors-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.05;
  margin-bottom: 40px;
  text-align: center;
}
.sponsors-title .sig { color: var(--signal); }
.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 560px) {
  .sponsors-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-height: 100px;
  background: transparent;
  transition: all .25s ease;
}
.sponsor-item img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: .85;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.sponsor-item:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* ============ LOCALIZAÇÃO (sem linhas, mapa sem filtro) ============ */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: stretch;
}
.loc-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-content: center;
}
.loc-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 0;
}
.loc-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--signal);
}
.loc-icon svg { width: 28px; height: 28px; }
.loc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loc-body .val {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
}
.loc-body .val .sig { color: var(--signal); }
.loc-body .loc-note {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-dark);
  line-height: 1.5;
}
.loc-map {
  position: relative;
  min-height: 400px;
  background: var(--paper-2);
  overflow: hidden;
}
.loc-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* ============ CTA FINAL ============ */
.cta-final {
  background: var(--ink);
  padding: 130px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.cta-final .mega {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 7.5vw, 7.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--paper);
}
.cta-final .mega .sig { color: var(--signal); }
.cta-final .foot {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}
.cta-final .foot p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #a3998a;
  letter-spacing: 0.04em;
  max-width: 520px;
  line-height: 1.6;
  text-transform: uppercase;
}
.cta-final .foot p strong { color: var(--paper); font-weight: 500; }
.cta-final .foot .btn { align-self: center; }

/* ============ CRÉDITOS ============ */
.credits {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.credits-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.credits-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.credits-logo {
  display: inline-flex;
  align-items: center;
  opacity: .8;
  transition: opacity .2s ease;
}
.credits-logo:hover { opacity: 1; }
.credits-logo img {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ============ TO TOP ============ */
.to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: var(--ink);
  border: 1px solid var(--signal);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .3s ease,
    visibility .3s ease,
    transform .45s var(--ease-out),
    background .2s ease;
}
.to-top svg { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.to-top:hover { background: var(--signal); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============ MODAL (com animação) ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1,1,1,.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--ink);
  padding: 44px 36px 40px;
  margin: auto;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition:
    opacity .35s ease,
    transform .45s var(--ease-out);
}
.modal.is-open .modal-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: .05s;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all .2s ease;
  font-family: 'Inter', sans-serif;
}
.modal-close:hover {
  background: var(--signal);
  color: var(--paper);
}

.modal-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 10px;
  line-height: 1;
}
.modal-title .sig { color: var(--signal); }

.modal-sub {
  font-size: 0.92rem;
  color: #a3998a;
  margin-bottom: 32px;
  line-height: 1.55;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field input {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}
.form-field input:focus {
  border-color: var(--signal);
  background: #0a0603;
}
.form-field input::placeholder { color: #6e6555; }
.form-field input.is-invalid {
  border-color: var(--error);
  background: rgba(230,69,69,.06);
}
.form-field input.is-invalid:focus { border-color: var(--error); }

.form-field-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--error);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  padding-left: 2px;
}

.form-feedback {
  margin: 4px 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  color: var(--error);
}
.form-feedback[data-variant="success"] { color: var(--signal); }

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  align-self: stretch;
}

.modal-success {
  margin-top: 20px;
  color: var(--signal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.5;
}
.modal-success:not([hidden]) {
  animation: successIn .5s var(--ease-out);
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVO ============ */
@media (min-width: 640px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .como-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .vendor-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .loc-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; }
}

/* ============ PREFERS-REDUCED-MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
}