/* MAIN CSS - MASTER STRUCTURE */
body {
  font-family: 'Oswald', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.top-header {
  text-align: center;
  margin-top: 1.25rem;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
}

.menu-toggle {
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-nav {
  display: none;
  background-color: rgba(0, 0, 0, 0.85);
  margin: 0.25rem auto;
  padding: 0.5rem 0;
  border-radius: 6px;
  max-width: 220px;
}

.dropdown-nav.open {
  display: block;
}

.dropdown-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-nav li:last-child {
  border-bottom: none;
}

.dropdown-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease;
}

.dropdown-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* NEW universal background layout class */
.page-background {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Homepage layout */
body.homepage {
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}

body.homepage *,
body.homepage *::before,
body.homepage *::after {
  box-sizing: border-box;
}

body.homepage .brand-banner {
  margin-top: 0;
  text-align: center;
}

/* Homepage banner — matches builds.css / versys650.html */
body.homepage .banner {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #fff;
}

body.homepage .banner img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
}

body.homepage .picture-button {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

body.homepage .picture-button.garage-button {
  background-image: url('../images/garagebtn.jpg');
}

body.homepage .picture-button.studio-button {
  background-image: url('../images/studiobtn.jpg');
}

.homepage-tagline {
  color: #222;
  font-weight: bold;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 2rem;
}

/* EDITABLE INTRO PARAGRAPH — matches builds.css .builds-text */
.builds-text {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
}

.builds-text p {
  margin-bottom: 1.25rem;
}

.builds-text p:last-child {
  margin-bottom: 0;
}

.homepage-intro {
  margin: 1.5rem auto;
  text-align: center;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Match picture-button / banner column width on mobile */
@media (max-width: 768px) {
  body.homepage .homepage-intro {
    max-width: 280px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  body.homepage .homepage-intro {
    max-width: none;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  flex: 1;
}

.content-wrapper {
  text-align: center;
  padding: 50px 20px;
}

/* Homepage: remove the large top gap above the intro paragraph */
body.homepage .content-wrapper {
  padding: 0 20px 50px;
}

/* Unified HazardSports Branding */
.brand-banner {
  text-align: center;
  margin-top: 3vh;
  z-index: 10;
}

.brand-background {
  background-color: rgba(0, 0, 0, 0.83);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  text-align: center;
}

.brand-background h1 {
  font-size: 3.5rem;
  font-family: 'Oswald', sans-serif;
  text-shadow: 2px 2px 6px black;
  margin: 0;
}

.hazard {
  color: red;
}

.sports {
  color: white;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.brand-home-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Buttons */
.button {
  padding: 16px 28px;
  font-size: 20px;
  text-decoration: none;
  border-radius: 5px;
  color: #fff;
  width: 220px;
  height: 100px;
  margin: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.silhouette-button {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: white;
  font-weight: bold;
  letter-spacing: 2px;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  background-blend-mode: overlay;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
/* Blue Glow Text-Only Button (Studio Page Style) */
.textonly-button {
  background-color: rgba(0, 102, 204, 0.15);
  padding: 1.25rem 1.5rem;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  color: white;
  width: 220px;
  height: 30px;
  margin: 15px;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 10px #33ccff;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  transition: all 0.3s ease;
}

.textonly-button:hover {
  font-size: 22px;
  letter-spacing: 1.5px;
  box-shadow: 0 0 14px #33ccff, 0 0 28px #33ccff, 0 0 42px #33ccff;
}

.picture-button {
  display: inline-block;
  position: relative;
  width: 280px;
  height: 160px;
  margin: 1rem;
  border: 3px solid black;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.picture-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 150, 255, 0.85);
}

.picture-button span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  transition: font-size 0.3s ease, background 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.picture-button:hover span {
  font-size: 3.5rem;
  background: rgba(0, 0, 0, 0.6);
}

/* Versys 650 */
.versys-button {
  background-color: rgba(0, 128, 0, 0.3);
  background-image: url('../images/KLE650silhouette.png');
}
.versys-button:hover {
  background-image:
    linear-gradient(135deg, #33cc33, #006600),
    url('../images/KLE650silhouette.png');
  box-shadow: 0 0 10px #33cc33, 0 0 20px #33cc33, 0 0 40px #33cc33;
}

/* Rocket 3 Storm */
.rocket3-storm-button {
  background-color: rgba(255, 220, 0, 0.3);
  background-image: url('../images/ROCKET 3 STORM sm.png');
}
.rocket3-storm-button:hover {
  background-image:
    linear-gradient(135deg, #ffeb3b, #ffd700),
    url('../images/ROCKET 3 STORM sm.png');
  box-shadow: 0 0 10px #000, 0 0 20px #000, 0 0 40px #000;
}

/* Africa Twin */
.africa-twin-button {
  background-color: rgba(204, 51, 51, 0.3);
  background-image: url('../images/CRF1100LSilhouette.png');
}
.africa-twin-button:hover {
  background-image:
    linear-gradient(135deg, #ff4d4d, #990000),
    url('../images/CRF1100LSilhouette.png');
  box-shadow: 0 0 10px #cc3333, 0 0 20px #cc3333, 0 0 40px #cc3333;
}

/* KTM Freeride */
.ktm-button {
  background-color: rgba(255, 102, 0, 0.3);
  background-image: url('../images/KTMexceSilhouette.png');
}
.ktm-button:hover {
  background-image:
    linear-gradient(135deg, #ff8000, #cc5200),
    url('../images/KTMexceSilhouette.png');
  box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600, 0 0 40px #ff6600;
}

/* KTM SX-E 5 */
.sxe5-button {
  background-color: rgba(255, 102, 0, 0.3);
  background-image: url('../images/sxe5silhouette.png');
}
.sxe5-button:hover {
  background-image:
    linear-gradient(135deg, #ff8000, #cc5200),
    url('../images/sxe5silhouette.png');
  box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600, 0 0 40px #ff6600;
}

/* Stacyc 16e */
.stacyc-button {
  background-color: rgba(0, 0, 0, 0.3);
  background-image: url('../images/KidsBikeSilhouette.png');
}
.stacyc-button:hover {
  background-image:
    linear-gradient(135deg, #666666, #000000),
    url('../images/KidsBikeSilhouette.png');
  box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 40px #ffffff;
}

/* Balance Bike */
.balance-bike-button {
  background-color: rgba(0, 0, 0, 0.3);
  background-image: url('../images/balancebikesilhouette.png');
}
.balance-bike-button:hover {
  background-image:
    linear-gradient(135deg, #666666, #000000),
    url('../images/balancebikesilhouette.png');
  box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 40px #ffffff;
}

/* Generic Button */
.generic-button {
  background-color: rgba(0, 0, 0, 0.3);
  background-image: url('../images/generic.png');
}
.generic-button:hover {
  background-image:
    linear-gradient(135deg, #666666, #000000),
    url('../images/generic.png');
  box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 40px #ffffff;
}

/* Emergency Kit */
.emergency-kit-button {
  background-color: rgba(0, 0, 255, 0.3);
  background-image: url('../images/emergencykit.png');
}
.emergency-kit-button:hover {
  background-image:
    linear-gradient(135deg, #3399ff, #0033cc),
    url('../images/ADVsilhouette.png');
  box-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 40px #3399ff;
}

/* Road Trip */
.road-trip-button {
  background-color: rgba(0, 0, 255, 0.3);
  background-image: url('../images/ROCKET 3 STORM sm.png');
  transform: scaleX(-1);
}
.road-trip-button span {
  display: inline-block;
  transform: scaleX(-1);
}
.road-trip-button:hover {
  background-image:
    linear-gradient(135deg, #3399ff, #0033cc),
    url('../images/ROCKET 3 STORM sm.png');
  box-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 40px #3399ff;
}

/* Tire Talk */
.tiretalk-button {
  background-color: rgba(0, 0, 255, 0.3);
  background-image: url('../images/tiresilhouette.png');
}
.tiretalk-button:hover {
  background-image:
    linear-gradient(135deg, #3399ff, #0033cc),
    url('../images/tiresilhouette.png');
  box-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 40px #3399ff;
}

/* Paint Rust — CSS/SVG rust texture (no silhouette image) */
.paint-rust-button {
  background-color: rgba(0, 0, 255, 0.28);
  background-image:
    radial-gradient(ellipse 42% 34% at 18% 30%, rgba(184, 72, 18, 0.55), transparent 70%),
    radial-gradient(ellipse 38% 44% at 80% 58%, rgba(120, 48, 18, 0.5), transparent 68%),
    radial-gradient(ellipse 52% 38% at 48% 78%, rgba(196, 98, 32, 0.48), transparent 72%),
    radial-gradient(ellipse 28% 22% at 62% 18%, rgba(153, 76, 24, 0.48), transparent 65%),
    radial-gradient(ellipse 22% 28% at 35% 55%, rgba(139, 58, 20, 0.42), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='100'%3E%3Cfilter id='r' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.22 0 0 0 0 0.06 0 0 0 0.38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.paint-rust-button:hover {
  background-image:
    linear-gradient(135deg, rgba(51, 153, 255, 0.5), rgba(0, 51, 204, 0.5)),
    radial-gradient(ellipse 42% 34% at 18% 30%, rgba(184, 72, 18, 0.6), transparent 70%),
    radial-gradient(ellipse 38% 44% at 80% 58%, rgba(120, 48, 18, 0.55), transparent 68%),
    radial-gradient(ellipse 52% 38% at 48% 78%, rgba(196, 98, 32, 0.52), transparent 72%),
    radial-gradient(ellipse 28% 22% at 62% 18%, rgba(153, 76, 24, 0.52), transparent 65%),
    radial-gradient(ellipse 22% 28% at 35% 55%, rgba(139, 58, 20, 0.46), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='100'%3E%3Cfilter id='r' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.22 0 0 0 0 0.06 0 0 0 0.38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 40px #3399ff;
}

/* Young Riders */
.young-riders-button {
  background-color: rgba(0, 0, 255, 0.3);
  background-image: url('../images/KidsBikeSilhouette.png');
}
.young-riders-button:hover {
  background-image:
    linear-gradient(135deg, #3399ff, #0033cc),
    url('../images/KidsBikeSilhouette.png');
  box-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 40px #3399ff;
}

/* Layout Rows */
.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .button-row {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 90%;
    max-width: 320px;
    font-size: 1.1rem;
    padding: 12px 18px;
    height: auto;
    margin: 12px auto;
    background-size: contain !important;
  }

  .brand-background h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }
}

/* Mobile Enhancements for Portrait View */
@media screen and (max-width: 768px) {
  .button-row {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 90%;
    max-width: 320px;
    font-size: 1.1rem;
    padding: 12px 18px;
    height: auto;
    margin: 12px auto;
    background-size: contain !important;
  }

  .brand-background h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0 1rem;
  }

  .picture-button {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
}

/* Footer */
.footer {
  font-family: Arial, sans-serif;
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}
.footer a {
  color: #ccc;
  margin: 0 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer a:hover {
  text-decoration: underline;
}
