/* ============================================================================
   Great Scott — Night Sky theme layer  (loads AFTER style.css so it wins)
   Client brief (W28, screenshots): whole-site night-sky background in blues &
   purples with smoke/clouds; every section sits in a "boarded" box with soft
   corners; BTTF branding rammed hard. Pure-CSS sky (no raster) so it stays
   crisp on small phones — fixes Scott's "quality very poor on a small phone".
   ========================================================================== */

:root {
  --gs-navy-1: #05070f;
  --gs-navy-2: #0a1030;
  --gs-purple: #2a1258;
  --gs-blue:   #123a8a;
  --gs-glow-blue:   rgba(45,156,206,0.55);
  --gs-glow-purple: rgba(123,60,190,0.55);
  --gs-board-bg: rgba(12, 17, 38, 0.68);
  --gs-board-border: rgba(120, 150, 255, 0.16);
  --gs-board-shadow: 0 24px 60px rgba(0,0,0,0.45);
  --gs-ink-light: #eef3ff;
  --gs-ink-muted: rgba(224,231,255,0.72);
}

/* ---- 1. Site-wide stormy night sky ------------------------------------- */
html { background: var(--gs-navy-1); }

body {
  background: transparent !important;
  color: var(--gs-ink-light);
  position: relative;
}

/* Fixed sky lives behind all content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 18% 8%,  rgba(45,110,206,0.30) 0%, transparent 55%),
    radial-gradient(120% 90% at 88% 22%, rgba(123,60,190,0.34) 0%, transparent 55%),
    radial-gradient(90% 70% at 70% 100%, rgba(45,156,206,0.22) 0%, transparent 60%),
    radial-gradient(80% 80% at 10% 95%,  rgba(90,37,208,0.26) 0%, transparent 60%),
    linear-gradient(160deg, #070b1c 0%, #0a1030 42%, #0b0a22 72%, #05060f 100%);
  background-attachment: fixed;
}

/* Drifting smoke / cloud layer */
body::after {
  content: "";
  position: fixed;
  inset: -20% -20% -20% -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(38% 26% at 25% 30%, rgba(70,120,220,0.20) 0%, transparent 70%),
    radial-gradient(32% 22% at 72% 42%, rgba(120,70,200,0.18) 0%, transparent 70%),
    radial-gradient(30% 20% at 50% 78%, rgba(60,150,210,0.16) 0%, transparent 70%);
  filter: blur(6px);
  animation: gs-smoke-drift 46s ease-in-out infinite alternate;
}
@keyframes gs-smoke-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.08); }
}

/* Star field — tiny, subtle, tiled */
main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.2px 1.2px at 120px 80px, rgba(255,255,255,0.40), transparent),
    radial-gradient(1.6px 1.6px at 200px 160px, rgba(200,220,255,0.50), transparent),
    radial-gradient(1.1px 1.1px at 300px 60px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.3px 1.3px at 260px 220px, rgba(255,255,255,0.45), transparent);
  background-repeat: repeat;
  background-size: 340px 260px;
  opacity: 0.6;
  animation: gs-twinkle 6s ease-in-out infinite alternate;
}
@keyframes gs-twinkle { 0% { opacity: 0.35; } 100% { opacity: 0.7; } }

@media (prefers-reduced-motion: reduce) {
  body::after, main::before { animation: none; }
}

/* ---- 2. "Boarded" sections floating over the sky ----------------------- */
/* Top-level sections go transparent; their inner container becomes the board. */
html body[data-service] .reviews-section,
html body[data-service] .usp-section,
html body[data-service] .awards-section,
html body[data-service] .services-section,
html body[data-service] .why-choose,
html body[data-service] .faq-section,
html body[data-service] .about-service-description,
html body[data-service] .gallery-section,
html body[data-service] .contact-main-section,
html body[data-service] .blog-listing-section,
html body[data-service] .projects-listing-section,
html body[data-service] .related-articles-section,
html body[data-service] .booking-section {
  background: transparent !important;
}

html body[data-service] .usp-container,
html body[data-service] .awards-container,
html body[data-service] .services-container,
html body[data-service] .why-choose-container,
html body[data-service] .faq-container,
html body[data-service] .reviews-container,
html body[data-service] .about-service-description-container,
html body[data-service] .gallery-container,
html body[data-service] .contact-container,
html body[data-service] .blog-listing-container,
html body[data-service] .projects-listing-container,
html body[data-service] .related-articles-container,
.gs-board {
  background: var(--gs-board-bg) !important;
  border: 1px solid var(--gs-board-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--gs-board-shadow);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  padding: clamp(24px, 4vw, 56px) clamp(18px, 3.5vw, 48px) !important;
  margin-left: auto;
  margin-right: auto;
}

/* Section-level headings on the dark boards go white. Targeted at section
   titles / direct board headings only, so white inner cards keep dark text. */
html body[data-service] .section-title,
html body[data-service] .usp-container > h2,
html body[data-service] .awards-container > h2,
html body[data-service] .services-container > h2,
html body[data-service] .why-choose-heading,
html body[data-service] .why-choose-content > h2,
html body[data-service] .facebook-reviews-header h2,
html body[data-service] .rating-summary h2,
html body[data-service] .about-service-description-container > h1,
html body[data-service] .about-service-description-container > h2,
html body[data-service] .contact-container > .section-title,
html body[data-service] .blog-listing-container > .section-title {
  color: #ffffff !important;
}
/* Section-level supporting copy -> muted light (direct children of the board,
   not text inside white cards). */
html body[data-service] .usp-lede,
html body[data-service] .awards-lede,
html body[data-service] .usp-eyebrow,
html body[data-service] .why-choose-content > p,
html body[data-service] .about-service-description-container > .about-service-description > p,
html body[data-service] .reviews-header p {
  color: var(--gs-ink-muted) !important;
}

/* ---- 3. Keep white content cards readable (dark text stays dark) ------- */
.service-card, .service-card *, .blog-card, .blog-card *,
.reviews-card, .reviews-card *, .about-specs-main-item, .about-specs-secondary-item,
.faq-item, .faq-item *, .card, .contact-card, .contact-card *,
.phone-form-content, .phone-form-content * {
  /* let their own template colors apply — don't inherit the light board text */
}
.service-card, .blog-card { color: #14203a; }

/* USP feature list items — glass chips on the board */
.usp-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px 18px;
}
.usp-feature strong { color: #fff; }
.usp-feature span { color: var(--gs-ink-muted); }

/* ---- 4. Hero eyebrow (BTTF pun) ---------------------------------------- */
.hero-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: clamp(12px, 1.5vw, 15px);
  color: var(--color-accent, #F7DC11);
  text-shadow: 0 0 14px rgba(247,220,17,0.5);
  margin-bottom: 10px;
}

/* ---- 5. CTA banner subhead --------------------------------------------- */
.cta-banner-subhead {
  color: rgba(255,255,255,0.9);
  font-size: clamp(14px, 1.6vw, 17px);
  margin: 6px 0 16px;
  max-width: 640px;
}

/* ---- 6. Bigger, full-colour social icons ------------------------------- */
.social-links--brand { gap: 16px; }
.social-links--brand .social-link {
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 14px;
  transition: transform 0.18s ease, filter 0.18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.social-links--brand .social-link svg { width: 100%; height: 100%; }
.social-links--brand .social-link:hover {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(120,160,255,0.55));
}

/* ---- 7. Big BTTF brand logo band in the footer ------------------------- */
.footer-bigbrand {
  text-align: center;
  padding: clamp(36px, 6vw, 72px) 20px clamp(20px, 3vw, 40px);
  background: transparent;
}
.footer-bigbrand-logo {
  width: min(680px, 82vw);
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.55));
}
.footer-bigbrand-tag {
  margin-top: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent, #F7DC11);
  font-size: clamp(14px, 2vw, 19px);
  text-shadow: 0 0 12px rgba(247,220,17,0.45);
}

/* Footer over the sky: translucent so the sky reads through the top edge */
.footer { background: rgba(6, 9, 20, 0.72) !important; }
body[data-service="home"] .footer,
body[data-service="home"] .footer .footer-bottom { background: rgba(6, 9, 20, 0.82) !important; }

/* ============================================================================
   DeLorean 88mph run-through  (home hero only)
   Drives in from the left, accelerates, hits 88 MPH, flashes and vanishes,
   leaving a twin fire-trail burning on the road — then fades. Loops ~10s.
   ========================================================================== */
.hero--delorean { position: relative; overflow: hidden; }
.hero--delorean .hero-content { position: relative; z-index: 3; }

.delorean-stage {
  position: absolute;
  left: 0; right: 0;
  bottom: 6%;
  height: 130px;
  pointer-events: none;
  z-index: 1;
}

/* faint neon road line the car travels along */
.delorean-road {
  position: absolute;
  left: 0; right: 0;
  bottom: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143,208,255,0.30) 18%, rgba(143,208,255,0.30) 82%, transparent);
}

/* twin fire trails left behind on vanish */
.fire-trail {
  position: absolute;
  left: 4%;
  height: 6px;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,60,0,0) 0%, #ff3c00 28%, #ffab1a 68%, #fff2b0 100%);
  box-shadow: 0 0 20px 5px rgba(255,90,0,0.65);
  opacity: 0;
  animation: gs-fire 10s linear infinite;
}
.fire-trail--top    { bottom: 28px; }
.fire-trail--bottom { bottom: 18px; }
@keyframes gs-fire {
  0%, 50%  { width: 0;    opacity: 0; }
  54%      { width: 68vw; opacity: 1; }
  72%      { width: 68vw; opacity: 1; }
  90%      { width: 68vw; opacity: 0; }
  100%     { width: 0;    opacity: 0; }
}

/* 88 MPH readout that lights up just before the jump */
.delorean-88 {
  position: absolute;
  bottom: 66px;
  right: 26%;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 0.9;
  color: #8fd0ff;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 0 18px rgba(143,208,255,0.95), 0 0 4px rgba(143,208,255,0.9);
  opacity: 0;
  animation: gs-88 10s ease-out infinite;
}
.delorean-88 span { display: block; font-size: 0.42em; letter-spacing: 4px; margin-top: 2px; }
@keyframes gs-88 {
  0%, 42%  { opacity: 0; transform: scale(0.8); }
  47%      { opacity: 1; transform: scale(1.12); }
  53%      { opacity: 1; transform: scale(1); }
  58%      { opacity: 0; transform: scale(1.2); }
  100%     { opacity: 0; }
}

/* white burst at the point of departure */
.delorean-flash {
  position: absolute;
  bottom: 6px;
  left: 64vw;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(143,208,255,0.85) 32%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  animation: gs-flash 10s ease-out infinite;
}
@keyframes gs-flash {
  0%, 51%  { opacity: 0; transform: scale(0.2); }
  55%      { opacity: 1; transform: scale(1); }
  63%      { opacity: 0; transform: scale(2.1); }
  100%     { opacity: 0; }
}

/* the car itself */
.delorean-rig {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 210px;
  animation: gs-drive 10s cubic-bezier(0.55, 0, 0.9, 0.35) infinite;
}
.delorean-car {
  width: 210px;
  height: auto;
  display: block;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,0.55));
}
.dl-taillight { filter: blur(2px); animation: gs-tail 10s linear infinite; }
@keyframes gs-tail {
  0%, 40% { opacity: 0.25; } 48% { opacity: 1; } 54% { opacity: 1; } 57% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes gs-drive {
  0%   { transform: translateX(-260px); opacity: 0; }
  7%   { opacity: 1; }
  48%  { transform: translateX(56vw);  opacity: 1; }
  52%  { transform: translateX(63vw);  opacity: 1; }
  56%  { transform: translateX(72vw);  opacity: 0; }
  100% { transform: translateX(72vw);  opacity: 0; }
}

@media (max-width: 700px) {
  .delorean-rig, .delorean-car { width: 150px; }
  .delorean-stage { height: 96px; bottom: 4%; }
  .delorean-88 { bottom: 48px; right: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .delorean-rig { animation: none; transform: translateX(6vw); opacity: 1; }
  .fire-trail, .delorean-flash, .delorean-88, .dl-taillight { animation: none; opacity: 0; }
}

/* ---- 8. Heading contrast on dark boards (beat body[data-service] scoping) - */
body[data-service] .section-title,
body[data-service] .usp-container .section-title,
body[data-service] .awards-container .section-title,
body[data-service] .services-container .section-title,
body[data-service] .facebook-reviews-header h2,
body[data-service] .rating-summary h2,
body[data-service] .reviews-container h2,
body[data-service] .why-choose-heading,
body[data-service] .why-choose-content h2,
body[data-service] .about-service-description-container h1,
body[data-service] .gallery-container .section-title,
body[data-service] .faq-section .section-title,
body[data-service] .faq-category-title {
  color: #ffffff !important;
}
/* muted supporting copy on boards */
body[data-service] .usp-lede,
body[data-service] .awards-lede,
body[data-service] .reviews-header p,
body[data-service] .why-choose-content p,
body[data-service] .services-container > p,
body[data-service] .about-service-description-container > .about-service-description p {
  color: rgba(224,231,255,0.78) !important;
}

/* ---- 9. Stubborn white containers -> dark board (ultra-specific) -------- */
html body[data-service] .services-section .services-container,
html body[data-service] .services-section .services-grid,
html body[data-service] .contact-main-section .contact-container,
html body[data-service] .blog-listing-section .blog-listing-container,
html body[data-service] .projects-listing-section .projects-listing-container {
  background: var(--gs-board-bg) !important;
  background-image: none !important;
}
html body[data-service] .services-section .services-grid {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}
/* Service cards: crisp white tiles that pop on the dark board */
html body[data-service] .service-card-compact {
  box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

/* ---- 10. Remaining dark-on-dark section text -> light ------------------- */
html body[data-service] .award-caption,
html body[data-service] .faq-category-title,
html body[data-service] .awards-container .award-caption {
  color: #eef3ff !important;
}
html body[data-service] .faq-category-title { opacity: 0.9; }

/* ---- 11. Service / about / content page body copy -> light ------------- */
html body[data-service] .about-service-description-container p,
html body[data-service] .about-service-content p,
html body[data-service] .about-service-content li,
html body[data-service] .about-service-content h2,
html body[data-service] .about-service-content h3,
html body[data-service] .contact-container p,
html body[data-service] .contact-container .contact-intro,
html body[data-service] .blog-listing-container > p {
  color: rgba(226, 232, 255, 0.86) !important;
}
html body[data-service] .about-service-content h2,
html body[data-service] .about-service-content h3 { color: #ffffff !important; }
