/* ============================================================
   trackdays.css  |  Track Days page styles
   ============================================================ */

/* ---- HERO ---- */
.hero-td { min-height: 75vh; }

.td-hero-cnt {
  position: relative;
  z-index: 10;
  padding: 0 40px 80px;
  margin-top: auto;
}
.td-hero-cnt h1 {
  font-size: clamp(80px, 16vw, 180px);
  line-height: 0.85;
  letter-spacing: -3px;
  margin-bottom: 20px;
}
.td-hero-cnt h1 .h1-exp {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.85);
}
.td-hero-cnt h1 .h1-thrill {
  display: block;
  color: var(--orange);
  -webkit-text-stroke: 0;
}

.td-tagline {
  font-family: var(--fh);
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
  margin: 24px 0 36px;
  -webkit-text-stroke: 1px rgba(255,255,255,.15);
}
.td-tagline span {
  color: var(--orange);
  -webkit-text-stroke: 0;
}

/* ---- PRICE BAR ---- */
.price-bar { background: var(--orange); }

.price-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}
.pb-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
}
.pb-item { text-align: center; padding: 28px 20px; }
.pb-num {
  font-family: var(--fh);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.pb-lbl {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}

/* ---- INCLUDES GRID ---- */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.include-card {
  background: var(--surf);
  border: 1px solid var(--bdr);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.include-card:hover { border-color: var(--orange); }
.include-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s ease;
}
.include-card:hover::before { transform: scaleY(1); }
.ic-num {
  font-family: var(--fh);
  font-size: 56px;
  font-weight: 900;
  color: var(--bdr);
  line-height: 1;
  margin-bottom: 16px;
  transition: color .3s;
}
.include-card:hover .ic-num { color: var(--orange); }
.ic-title {
  font-family: var(--fh);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}
.ic-desc { color: var(--grey); font-size: 19px; line-height: 1.75; }

/* ---- SCHEDULE + CIRCUIT ---- */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.schedule-list { list-style: none; margin-top: 32px; }
.schedule-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--bdr);
}
.schedule-list li:last-child { border-bottom: none; }
.sch-time {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  min-width: 52px;
  flex-shrink: 0;
}
.sch-event { font-size: 20px; color: rgba(255,255,255,.8); line-height: 1.4; }

.circuit-intro {
  color: var(--grey);
  font-size: 20px;
  line-height: 1.75;
  margin-top: 24px;
  margin-bottom: 32px;
}
.circuit-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bdr);
  border: 1px solid var(--bdr);
}
.cs-item {
  background: var(--black);
  padding: 24px 20px;
  transition: background .3s;
}
.cs-item:hover { background: var(--surf2); }
.cs-num {
  font-family: var(--fh);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.cs-unit { font-size: 24px; }
.cs-lbl {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

/* ---- OPPORTUNITIES ---- */
.opp-intro {
  color: rgba(255,255,255,.7);
  font-size: 21px;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 48px;
}
.opp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.opp-card {
  background: var(--surf);
  border: 1px solid var(--bdr);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.opp-card:hover { border-color: var(--orange); }
.opp-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s ease;
}
.opp-card:hover .opp-accent { transform: scaleY(1); }
.opp-title {
  font-family: var(--fh);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.opp-desc { color: var(--grey); font-size: 20px; line-height: 1.75; }

/* ---- TESTIMONIALS ---- */
.tst-grid {
  display: grid;
  /* auto-fit + a max track width: a photo-plus-text card needs ~860px, so one
     sits per row on desktop and further cards stack below without restyling. */
  grid-template-columns: repeat(auto-fit, minmax(340px, 860px));
  gap: 20px;
  align-items: start;
  margin-top: 48px;
}
.tst-card {
  background: var(--black);
  border: 1px solid var(--bdr);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
  /* Portrait beside the copy; `start` keeps it top-aligned instead of
     stretching down the card when the full testimonial is expanded. */
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.tst-card:hover { border-color: var(--orange); }

.tst-photo {
  width: 100%;
  /* height:auto is required — the img's width/height attributes would
     otherwise give it a definite height and aspect-ratio would be ignored. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--bdr);
}
.tst-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s ease;
}
.tst-card:hover .tst-accent { transform: scaleY(1); }

.tst-quote {
  font-family: var(--fh);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--orange);
  max-width: 26ch;
  margin-bottom: 26px;
}

.tst-body p {
  color: rgba(255,255,255,.7);
  font-size: 20px;
  line-height: 1.75;
  max-width: 65ch;
  margin-bottom: 18px;
}
.tst-body p:last-child { margin-bottom: 0; }

/* Read more / less — native <details>, no JS */
.tst-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  padding: 6px 0;
  transition: color .3s;
}
.tst-more > summary::-webkit-details-marker { display: none; }
.tst-more > summary::after {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}
.tst-more > summary:hover { color: #fff; }
.tst-more > summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.tst-more[open] > summary { margin-bottom: 18px; }
.tst-more .tt-close       { display: none; }
.tst-more[open] .tt-open  { display: none; }
.tst-more[open] .tt-close { display: inline; }

.tst-attr {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bdr);
}
.tst-name {
  font-family: var(--fh);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.tst-role {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 8px;
}

/* ---- BOOKING ---- */
.book-section { text-align: center; }
.book-section .rule { margin: 16px auto 24px; }
.book-intro {
  color: rgba(255,255,255,.7);
  font-size: 21px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 48px;
}
.book-contacts {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.book-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 48px;
  border: 1px solid var(--bdr);
  transition: border-color .3s, background .3s;
}
.book-contact:hover {
  border-color: var(--orange);
  background: rgba(255,94,0,.05);
}
.bc-label {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}
.bc-value {
  font-family: var(--fh);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}
.book-cta { margin-top: 40px; }


/* ============================================================
   RESPONSIVE  —  768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  .td-hero-cnt { padding: 0 20px 60px; }

  .price-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .pb-div          { display: none; }
  .pb-item         { padding: 20px 12px; }

  .includes-grid  { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; gap: 48px; }
  .opp-grid       { grid-template-columns: 1fr; }

  .tst-grid       { grid-template-columns: 1fr; }
  .tst-card       { padding: 28px 22px; grid-template-columns: 1fr; gap: 24px; }
  .tst-photo      { max-width: 200px; }

  .book-contacts  { flex-direction: column; align-items: center; }
  .book-contact   { width: 100%; max-width: 340px; }
}

@media (max-width: 480px) {
  .includes-grid { grid-template-columns: 1fr; }
}
