/* Global Styles */
@font-face {
  font-family: 'IC3Font';
  src: url('IC3font-Regular.otf') format('opentype'),
       url('IC3font-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@media (max-width: 768px) {
  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  .footer-links {
    display: flex;
    gap: 2rem;
  }
  .footer .container p {
    margin: 0.15rem 0;
  }
  .footer {
    text-align: left;
  }
  .footer-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0a1c2c;
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
nav {
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3rem;
  position: relative;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.logo-container {
  flex: 0 0 auto;
}

.logo-text {
  height: 170px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon-container {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 130px;
}

.logo-icon {
  height: 60px;
  width: auto;
}

.nav-links a {
  color: #99dffb;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'IC3Font', 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a {
  color: #99dffb;
  text-decoration: none;
}

/* Legal modal content uses white background; force black text for readability */
.legal-modal .modal-content {
  color: #000;
}

.legal-modal h1,
.legal-modal h2,
.legal-modal h3,
.legal-modal p,
.legal-modal li {
  color: #000;
}

@media (max-width: 768px) {
  /* Make the header much smaller on mobile and remove big logos */
  nav {
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.9rem;
    gap: 0.25rem;
  }

  .nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
  }

  .logo-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: auto;
    flex-wrap: nowrap;
  }

  /* Make logos smaller and place them above the links on mobile */
  .logo-container {
    align-self: center;
  }

  .logo-text {
    height: 80px;
  }

  .logo-icon-container {
    position: static;
    transform: none;
  }

  .logo img {
    height: 70px;
  }

  .logo-icon {
    height: 30px;
  }

  .nav-links {
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-left: 0;
    margin-right: 0;
    margin-inline: auto;
    text-align: center;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .nav-links .cart-link,
  .nav-links .cart-icon {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    order: 0;
  }

  .nav-links .cart-icon {
    position: static !important;
  }

  .nav-links .cart-link img,
  .nav-links .cart-icon img {
    height: 20px;
  }

  .nav-links .cart-link {
    position: relative;
  }

  .nav-links .cart-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -110%);
    background: #99dffb;
    color: #000;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
  }

  /* When page is scrolled on mobile, hide large logos so they don't cover the screen */
  body.nav-scrolled .logo-container,
  body.nav-scrolled .logo-icon-container {
    display: none;
  }

  /* When user scrolls down on mobile, hide the whole nav bar */
  body.nav-hidden nav {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }

  /* Ensure nav is visible when not hidden */
  nav {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }
}

.crew-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(153, 223, 251, 0.45);
  background: rgba(10, 28, 44, 0.95);
  color: #f5f5f5;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  align-self: center;
  line-height: 1;
  margin-top: -1px;
}

.crew-login-btn:hover {
  background: radial-gradient(circle at 50% 0, rgba(153, 223, 251, 0.3), rgba(10, 28, 44, 0.98));
  border-color: rgba(153, 223, 251, 0.95);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.crew-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .crew-login-btn {
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    margin: 0 auto;
  }
}

/* Sections */
header, section {
  padding: 3rem 2rem;
  text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #99dffb;
  font-family: 'IC3Font', 'Barlow Condensed', sans-serif;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p,
li,
span,
input,
textarea {
  color: white;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
}

/* Forms */
input, textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #333;
  color: white;
}

/* Buttons */
button, .submit-btn, .newsletter-btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

button:hover, .submit-btn:hover, .newsletter-btn:hover {
  background: #ff0000;
}
