/* ===========================================================
   carclub.org marketing page — custom CSS layered on Tailwind.
   =========================================================== */

/* ---------- Scroll behavior ---------- */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-feature-settings: "ss01", "cv11"; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
section[id], span#top { scroll-margin-top: 96px; }

/* ---------- Display typography polish ---------- */
.font-display {
  font-feature-settings: "ss01";
  /* Anton ships with generous default leading; pull it tight for huge sizes. */
  text-rendering: geometricPrecision;
}

/* Better optical kerning at huge display sizes */
h1, h2 { letter-spacing: -0.045em; }

/* ---------- FAQ <summary> marker hide ---------- */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

/* ---------- Nav state ---------- */
#site-nav { background: transparent; }
#site-nav[data-scrolled="true"] {
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(230, 230, 225, 0.6);
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms cubic-bezier(.16, .84, .32, 1),
              transform 900ms cubic-bezier(.16, .84, .32, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Gallery strip ---------- */
.gallery-strip {
  display: flex;
  gap: 14px;
  padding: 0 1.5rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip.is-dragging { cursor: grabbing; }
.gallery-strip > .gallery-card:first-child { margin-left: max(0px, calc((100vw - 80rem) / 2)); }
.gallery-strip > .gallery-card:last-child  { margin-right: max(0px, calc((100vw - 80rem) / 2)); }
@media (min-width: 1024px) {
  .gallery-strip { padding: 0 2.5rem 1.5rem; }
}

.gallery-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f5;
  scroll-snap-align: start;
}
.gallery-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(.2,.6,.2,1);
}
.gallery-card:hover img { transform: scale(1.04); }

.gallery-card__stamp {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FF5722;
  color: #fff;
  padding: 6px 10px;
  line-height: 1;
}
.gallery-card__day   { font-family: Anton, system-ui, sans-serif; font-size: 20px; line-height: 1; }
.gallery-card__month { font-family: "Archivo Black", system-ui, sans-serif; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }

/* ---------- Audience tile gradient ---------- */
.audience-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(9,9,11,0.75) 100%);
  pointer-events: none;
}

/* ---------- Form inputs (select arrow + focus polish) ---------- */
select.block, select.block-w-full, [class*="appearance-none"][class*="pr-10"] {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* ---------- Mobile panel ---------- */
[data-mobile-panel] { transition: max-height 300ms ease, opacity 300ms ease; }
[data-mobile-panel].is-open { display: block; }

/* ---------- Selection ---------- */
::selection { background: #FF5722; color: #fff; }
.bg-ink-1000 ::selection { background: #FF5722; color: #fff; }

/* ---------- Hero parallax: small base scale so transform stays clean ---------- */
[data-parallax] { transform: translate3d(0, 0, 0); will-change: transform; }
