/* ============================================
   BIDLAKE RACING — Main Stylesheet
   Racing colours: Black #0a0a08 + Yellow #f5c800
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Barlow+Condensed:wght@300;400;500;600;700&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --black:      #0a0a08;
  --dark:       #111109;
  --panel:      #141410;
  --panel2:     #1a1a14;
  --border:     rgba(245,200,0,0.12);
  --border-dim: rgba(255,255,255,0.06);
  --yellow:     #f5c800;
  --yellow-lt:  #ffd633;
  --yellow-dim: rgba(245,200,0,0.12);
  --white:      #f5f2ec;
  --muted:      rgba(245,242,236,0.45);
  --muted2:     rgba(245,242,236,0.65);
  --red:        #8b1a1a;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--yellow);
  flex-shrink: 0;
}

.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.center::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--yellow);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(36px, 4vw, 58px);
  margin-bottom: 20px;
  color: var(--white);
}
.section-title em { font-style: italic; color: var(--yellow); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  padding: 15px 36px;
  font-size: 13px;
}
.btn-primary:hover { background: var(--yellow-lt); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid rgba(245,200,0,0.4);
  color: var(--yellow);
  padding: 14px 32px;
  font-size: 13px;
  background: transparent;
}
.btn-outline:hover { background: var(--yellow); color: var(--black); }

.btn-ghost {
  color: var(--white);
  border-bottom: 1px solid rgba(245,242,236,0.3);
  padding-bottom: 2px;
  font-size: 13px;
  background: transparent;
}
.btn-ghost:hover { color: var(--yellow); border-color: var(--yellow); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  transition: background 0.3s, padding 0.3s;
}

nav.scrolled {
  background: rgba(10,10,8,0.97);
  backdrop-filter: blur(12px);
  padding: 16px 60px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.nav-brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-brand-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Racing stripe accent on brand */
.nav-brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--yellow); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-social a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
}
.nav-social a:hover { color: var(--yellow); }
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ── RACING STRIPE DECORATION ── */
.race-stripe {
  display: flex;
  height: 4px;
  width: 100%;
}
.race-stripe span {
  flex: 1;
  background: var(--yellow);
}
.race-stripe span:nth-child(even) {
  background: var(--black);
  border-top: 4px solid var(--yellow);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 60px 80px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* page-hero watermark removed */

.page-hero-inner { max-width: 1300px; margin: 0 auto; }

.page-hero h1 {
  font-size: clamp(48px, 6vw, 86px);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 17px;
  color: var(--muted2);
  max-width: 520px;
  line-height: 1.75;
}

/* ── SECTION WRAPPER ── */
.section {
  padding: 100px 60px;
}
.section-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.section-dark {
  background: var(--panel);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.section-panel2 { background: var(--panel2); }

/* ── PHOTO GRID ── */
.photo-grid {
  display: grid;
  gap: 3px;
}
.photo-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.photo-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.photo-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.photo-grid.asymm { grid-template-columns: 2fr 1fr 1fr; }

.photo-item {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.photo-item:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }

.photo-item.tall { min-height: 480px; }
.photo-item.medium { min-height: 320px; }
.photo-item.short { min-height: 220px; }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,10,8,0.85));
  padding: 40px 20px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-item:hover .photo-caption { opacity: 1; }

/* ── AUTHORISED BADGE ── */
.authorised-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(245,200,0,0.3);
  background: rgba(245,200,0,0.05);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.authorised-badge:hover {
  background: rgba(245,200,0,0.1);
  border-color: rgba(245,200,0,0.5);
}
.authorised-badge-icon {
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.authorised-badge-icon svg { width: 16px; height: 16px; fill: var(--black); }
.authorised-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.authorised-badge-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.authorised-badge-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.footer-stripe { height: 4px; background: var(--yellow); }

.footer-main {
  padding: 70px 60px 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-dim);
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--yellow);
  color: var(--black);
  background: var(--yellow);
}
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--yellow); }

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

.footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245,242,236,0.2);
}

/* ── MOBILE MENU ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
  transition: all 0.3s;
}
.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); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,8,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--yellow); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.4); }
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  .section { padding: 80px 32px; }
  .page-hero { padding: 130px 32px 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .photo-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .photo-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .photo-grid.asymm { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 20px; }
  .page-hero { padding: 110px 20px 50px; }
  nav { padding: 18px 20px; }
  .photo-grid.cols-2,
  .photo-grid.cols-3,
  .photo-grid.cols-4,
  .photo-grid.asymm { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-main { padding: 50px 20px 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
