/* ============================================
   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%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 360px;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  background: #111;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image-wrap.no-image {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.subscribe-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.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;
}

/* ---- 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;
}

/* ============================================
   WIDER SCREENS (≥ 480px) — inline form layout
   ============================================ */

@media (min-width: 480px) {
  .subscribe-form {
    flex-direction: row;
    gap: 0;
  }

  .subscribe-input {
    border-radius: 4px 0 0 4px;
    border-right: none;
    flex: 1;
  }

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

@media (min-width: 768px) {
  .hero {
    max-height: 900px;
  }
}
