/* ============================================
   BIDLAKE RACING — Homepage Styles
   ============================================ */

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,8,0.93) 45%, rgba(10,10,8,0.35) 100%),
    linear-gradient(to top, rgba(10,10,8,0.95) 0%, transparent 50%),
    url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?w=1800&q=80') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* Racing colours band — left edge */
.hero-colours {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.hero-colours span { flex: 1; }
.hero-colours .hc-black { background: var(--black); }
.hero-colours .hc-yellow { background: var(--yellow); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 70px 110px;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(60px, 8vw, 108px);
  line-height: 0.92;
  margin-bottom: 28px;
  color: var(--white);
}

.hero h1 em { color: var(--yellow); font-style: italic; }

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(245,242,236,0.72);
  max-width: 460px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: 64px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(0.55); }
}

/* Hero entrance animations */
.hero-content > * {
  animation: heroUp 0.85s cubic-bezier(0.16,1,0.3,1) both;
  opacity: 0;
}
.hero-content .eyebrow   { animation-delay: 0.05s; }
.hero-content h1          { animation-delay: 0.2s; }
.hero-content .hero-sub   { animation-delay: 0.38s; }
.hero-content .hero-actions { animation-delay: 0.52s; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RACING STRIPE ── */
.race-stripe-home {
  display: flex;
  height: 5px;
  overflow: hidden;
}
.race-stripe-home span:nth-child(odd)  { flex: 1; background: var(--yellow); }
.race-stripe-home span:nth-child(even) { flex: 1; background: var(--black); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 36px 40px;
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── ABOUT GRID ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  position: relative;
}

.about-photo-main {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
}

.about-photo-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.6s ease;
}
.about-photo-main:hover img { transform: scale(1.03); }

.racing-colours-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10,10,8,0.85);
  overflow: hidden;
}

.rc-b, .rc-y { display: block; width: 8px; height: 32px; }
.rc-b { background: var(--black); border: 1px solid var(--yellow); }
.rc-y { background: var(--yellow); }

.rc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 0 12px;
}

.about-photo-side {
  display: contents;
}

.about-photo-side img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 0.5s ease;
}
.about-photo-side img:hover { transform: scale(1.04); }

/* ── GRASSROOTS SECTION ── */
.grassroots-section {
  position: relative;
  overflow: hidden;
  padding: 100px 60px;
}

.grassroots-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 16vw, 240px);
  font-weight: 900;
  color: rgba(245,200,0,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.grassroots-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grassroots-text p {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.8;
}

.grassroots-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.grass-card {
  background: var(--black);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.grass-card:hover { background: #0f0f0a; }

.grass-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.grass-card:hover::after { transform: scaleX(1); }

.grass-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: rgba(245,200,0,0.07);
  line-height: 1;
  margin-bottom: 12px;
}

.grass-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.grass-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── HORSES PREVIEW ── */
.horses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 24px;
}

.horse-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.horse-preview-card {
  display: block;
  text-decoration: none;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--border-dim);
  overflow: hidden;
  transition: border-color 0.3s;
}
.horse-preview-card:hover { border-color: rgba(245,200,0,0.35); }

.hpc-img {
  position: relative;
  overflow: hidden;
}
.hpc-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.4s;
}
.horse-preview-card:hover .hpc-img img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}

.hpc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
}
.hpc-badge.available { background: var(--yellow); color: var(--black); }
.hpc-badge.lease { background: rgba(10,10,8,0.85); color: var(--yellow); border: 1px solid var(--yellow); }

.hpc-body { padding: 24px 24px 28px; }

.hpc-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hpc-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.hpc-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* ── PHOTO WALL ── */
.photo-wall { overflow: hidden; }

/* ── HOW IT WORKS ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--yellow), rgba(245,200,0,0.15), var(--yellow));
}

.how-step { text-align: center; padding: 0 12px; }

.step-circle {
  width: 54px;
  height: 54px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--panel);
  position: relative;
  z-index: 1;
}

.step-circle span {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
}

.how-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-step p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ── AUTHORISED STRIP ── */
.authorised-strip {
  background: rgba(245,200,0,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.authorised-strip p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-content { padding: 0 40px 90px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .grassroots-inner { grid-template-columns: 1fr; gap: 50px; }
  .grassroots-section { padding: 80px 32px; }
  .horse-preview-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .how-steps::before { display: none; }
  .horses-header { flex-direction: column; align-items: flex-start; }
  .authorised-strip { padding: 20px 32px; }
}

@media (max-width: 640px) {
  .hero-content { padding: 0 24px 80px; }
  .hero-scroll { display: none; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 20px; }
  .stat-num { font-size: 36px; }
  .horse-preview-grid { grid-template-columns: 1fr; }
  .grassroots-cards { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .authorised-strip { flex-direction: column; text-align: center; padding: 20px; }
}
