/* ============================================
   MOTORDROME — Mobile-first stylesheet
   ============================================ */

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

:root {
  --color-bg: #0a0a0a;
  --color-text: #ffffff;
  --color-accent: #e8000d;
  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

/* ---- STORE BUTTON (fixed bottom, above Instagram) ---- */

.store-btn {
  position: fixed;
  bottom: 124px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.store-btn:active {
  transform: translateX(-50%) scale(0.97);
}

/* ---- INSTAGRAM BUTTON (bottom) ---- */

.instagram-btn {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.instagram-btn:hover {
  opacity: 0.7;
}

.instagram-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.instagram-btn svg {
  width: 54px;
  height: 54px;
  display: block;
  opacity: 0.75;
}

/* ---- HERO ---- */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: var(--vh, 100vh);
  overflow: hidden;
}

/* Full-screen image wrapper — sits behind everything */
.hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image-wrap picture,
.hero-image-wrap img.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* mobile: fills edge to edge, crops if needed */
  object-position: center;
}

/* Desktop: show full image top-to-bottom, bars on sides are fine */
@media (min-width: 768px) {
  .hero-image-wrap img.hero-img {
    object-fit: contain;
  }
}

/* ---- OVERLAY — centres the subscribe box ---- */

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: var(--vh, 100vh);
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  padding-bottom: 150px; /* clears the shop button */
}

/* ---- SUBSCRIBE BOX ---- */

.subscribe-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.subscribe-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.subscribe-input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn {
  width: 100%;
  height: 50px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: background 0.2s ease, transform 0.1s ease;
}

.subscribe-btn:hover {
  background: #e0e0e0;
}

.subscribe-btn:active {
  transform: scale(0.98);
}

.subscribe-success {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  min-height: 20px;
}

/* ---- PODCAST BUTTONS ---- */

.podcast-btns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.podcast-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.podcast-btn:hover {
  opacity: 0.7;
}

.podcast-btn:active {
  transform: scale(0.95);
}

.podcast-btn img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) brightness(1.1);
  opacity: 1;
}

.podcast-btn img[src="logo_overcast.svg"] {
  width: 64px;
  height: 64px;
}

/* ---- ROTATE PROMPT ---- */

/* Hidden by default */
.rotate-prompt {
  display: none;
}

/* Show on mobile/tablet in landscape, hide everything else */
@media (max-width: 1024px) and (orientation: landscape) {
  .rotate-prompt {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    align-items: center;
    justify-content: center;
  }

  main {
    display: none;
  }
}

.rotate-prompt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.rotate-icon {
  width: 48px;
  height: 48px;
  animation: rock 1.6s ease-in-out infinite;
}

@keyframes rock {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(-90deg); }
  60%  { transform: rotate(-90deg); }
  90%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.rotate-prompt-inner p {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- MOBILE: nudge podcast buttons down ---- */

@media (max-width: 767px) {
  .podcast-btns {
    transform: translateY(12px);
  }
  .subscribe-form {
    transform: translateY(3px);
  }
}

/* ============================================
   INLINE FORM — always row layout
   ============================================ */

.subscribe-form {
  flex-direction: row;
  gap: 0;
}

.subscribe-input {
  border-radius: 4px 0 0 4px;
  border-right: none;
  flex: 1;
  min-width: 0; /* prevents input overflowing on small screens */
}

.subscribe-btn {
  width: auto;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  flex-shrink: 0;
}

