/* ============================
   Click N Check — Bold Motorsport Theme
   ============================ */
:root {
  --bg: #0c0c0e;
  --bg-alt: #131315;
  --surface: #18181b;
  --text: #f5f5f3;
  --muted: #98989d;
  --accent: #ff1e2d;
  --accent2: #ffb400;
  --border: #2a2a2e;
  --max-width: 1240px;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  font-family: var(--font-display);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.01em;
  font-weight: 400;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  cursor: pointer;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent2);
  color: #0c0c0e;
  transform: translateY(-1px);
}

/* ============================
   Header
   ============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.logo span,
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--accent2); opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================
   Hero — diagonal cut
   ============================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 62%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 60px;
  max-width: 640px;
}

.hero-content .eyebrow {
  color: var(--accent2);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}


.hero-sub {
  color: var(--muted);
  margin: 26px 0 34px;
  max-width: 420px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================
   Ticker
   ============================ */
.ticker {
  background: var(--accent);
  color: #0c0c0e;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-track span {
  padding: 0 28px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================
   Gallery — asymmetric grid
   ============================ */
.gallery-section {
  padding: 110px 0 100px;
  background: var(--bg);
}

.gallery-grid {
  column-count: 4;
  column-gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 14px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ============================
   About
   ============================ */
.about-section {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
}

.about-num {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
}

.about-text .section-title em {
  font-style: normal;
  color: var(--accent);
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .about-tagline {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================
   Contact
   ============================ */
.contact-section {
  padding: 100px 0 120px;
  background: var(--bg);
}

.contact-intro {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
}

.social-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.social-cta {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1d1d20;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-cta svg { fill: var(--text); transition: fill 0.25s ease; }

.social-cta:hover { transform: translateY(-3px); }
.social-cta:hover svg { fill: #fff; }

.social-cta--wa:hover { background: #25D366; }
.social-cta--ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social-cta--fb:hover { background: #1877F2; }
.social-cta--tt:hover { background: #000; box-shadow: 0 0 0 1px #25F4EE, 0 0 0 2px #000, 0 0 0 3px #FE2C55; }

.social-cta span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-form {
  max-width: 560px;
}

.form-row {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-note.success { color: var(--accent2); }
.form-note.error { color: var(--accent); }

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.social-links a:hover { color: var(--accent2); }

.copyright {
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .copyright { width: auto; margin-top: 0; }
}

/* ============================
   Lightbox
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 6, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 10px;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; color: var(--accent2); }

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .hero-img { width: 100%; opacity: 0.3; clip-path: none; }
  .hero-content { padding-left: 24px; padding-right: 24px; }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 720px) {
  .header-inner, .hero-content, .section-inner { padding-left: 24px; padding-right: 24px; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 14, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open { max-height: 300px; }

  .main-nav a {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .gallery-grid { column-count: 1; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .about-section, .contact-section, .gallery-section { padding-top: 80px; padding-bottom: 80px; }
  .lightbox-prev, .lightbox-next { font-size: 1.3rem; padding: 6px; }
  .ticker-track { font-size: 0.85rem; }
}
