/* Coming Soon page styles */

/* ==========================================================
   1. Reset / base — mobile-first, no horizontal scroll
   ========================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000;
}

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

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

/* ==========================================================
   2. Hero container
   Full-viewport positioning context. The logo, status/loading
   group, social links, and footer are each positioned
   independently (via vh-based offsets on top of this relative
   container) so they can be placed against specific parts of the
   background photo (car windows, gravel, etc.) rather than being
   laid out as a single top-to-bottom flex stack.
   ========================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* ==========================================================
   3. Logo
   Positioned independently of the flex flow so it can be dropped
   over a specific part of the background image (between the car's
   back windows) using a viewport-height offset rather than being
   pinned to the top of the layout.
   ========================================================== */
.logo {
  position: absolute;
  top: clamp(60px, 24vh, 220px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 34vw, 320px);
  height: auto;
  margin: 0;
}

/* On mobile (.hero-mobile is toggled by script.js at the same 768px
   breakpoint used everywhere else), the car sits lower/closer in the
   portrait mobile hero photo, so the logo needs to sit higher up —
   above the car rather than between its windows — and larger, since
   the narrower viewport gives it comparatively more headroom. */
.hero-mobile .logo {
  top: clamp(70px, 17vh, 150px);
  width: clamp(190px, 58vw, 300px);
}

/* ==========================================================
   4. Status group — status text + loading bar
   Positioned independently over the gravel area of the background
   photo (roughly the vertical middle of the image) using a
   viewport-height offset, rather than being pinned to the bottom
   of the layout alongside the social icons.
   ========================================================== */
.status-group {
  position: absolute;
  top: 84vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 1.25rem);
  width: 100%;
  padding: 0 clamp(0.5rem, 3vw, 1.5rem);
}

/* On mobile, sit a bit higher than the desktop placement. */
.hero-mobile .status-group {
  top: 76vh;
}

/* ==========================================================
   5. Status text
   ========================================================== */
.status-text {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: clamp(0.3em, 0.6vw, 0.5em);
  text-align: center;
}

/* ==========================================================
   6. Loading bar (layout + animation, see section 10 for keyframes)
   ========================================================== */
.loading-bar {
  position: relative;
  width: min(60vw, 22rem);
  height: clamp(2px, 0.4vw, 4px);
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background-color: #ffffff;
  border-radius: 999px;
  animation: loading-bar-sweep 1.5s ease-in-out infinite alternate;
}

/* ==========================================================
   7. Social icon links
   Positioned independently, just above the footer bar's copyright
   text, separate from the status-text/loading-bar group which sits
   higher up over the gravel area.
   ========================================================== */
.social-links {
  position: absolute;
  bottom: clamp(2.5rem, 6.5vh, 3.75rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.85rem, 3.2vw, 1.35rem);
  height: clamp(0.85rem, 3.2vw, 1.35rem);
  color: #ffffff;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* On mobile, icons are a bit larger and sit slightly higher than the
   desktop placement. */
.hero-mobile .social-links {
  bottom: clamp(2.75rem, 7vh, 4rem);
}

.hero-mobile .social-icon {
  width: clamp(1.1rem, 5.5vw, 1.75rem);
  height: clamp(1.1rem, 5.5vw, 1.75rem);
}

/* ==========================================================
   8. Footer bar
   Pinned to the bottom of the viewport-height hero container
   (the hero is no longer a flex column now that the logo,
   status group, and social links are positioned independently).
   ========================================================== */
.footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 5vw, 2rem);
}

.footer-bar a {
  display: inline-block;
  color: #ffffff;
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  letter-spacing: clamp(0.02em, 0.1vw, 0.08em);
}

/* ==========================================================
   9. Hero background / fallback classes
   .hero-desktop / .hero-mobile set the full-viewport background
   image for the current breakpoint (toggled by script.js). Both
   use background-size: cover + center positioning so the image
   fills the viewport without stretching or distorting its
   aspect ratio, cropping as needed instead.
   ========================================================== */
.hero-desktop {
  background-image: url('assets/afterdark-hero-desktop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-mobile {
  background-image: url('assets/afterdark-hero-mobile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================
   10. Loading bar animation keyframes — implemented in 5.3
   Side-to-side sweep: the white fill slides from the left edge
   to the right edge of its track, then reverses back (via
   `alternate`), continuously ping-ponging back and forth forever.
   ========================================================== */
@keyframes loading-bar-sweep {
  0% {
    left: 0%;
  }
  100% {
    left: 65%;
  }
}
