/* Base Layout */
body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  background-color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  box-sizing: border-box;
}

nav img {
  height: 70px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #ccc;
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: #acfa30;
}

/* Ticker */
.ticker-wrapper {
  background-color: #bf59c4;
  height: 30px;
  overflow: hidden;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 1099;
  font-family: 'Bebas Neue', sans-serif;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  will-change: transform;
  animation: ticker-scroll 15s linear infinite;
  color: white;
  font-weight: bold;
  line-height: 30px;
  font-size: 18px;
  padding-left: 100%;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Main Layout */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 8rem 2rem 3rem;
  text-align: center;
  background-color: #0f0f0f;
  box-sizing: border-box;
}

.container {
  max-width: 800px;
  width: 100%;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  color: #fff;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.section {
  margin: 3rem 0;
}

/* Contact Info */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-info li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #ccc;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
  color: #acfa30;
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

button {
  padding: 0.75rem 1.2rem;
  background-color: #acfa30;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 1rem;
  align-self: flex-start;
}

button:hover {
  background-color: #8cd400;
}

/* Map */
.map-container {
  border: 0px solid #333;
  border-radius: 10px;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 0rem;
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  background-color: #0f0f0f;
  padding: 1rem 0; /* vertical padding for entire footer */
}

footer p {
  margin: 0;       /* remove default spacing */
  padding: 0;      /* remove any padding */
}

.email-warning {
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 4px;
  font-family: inherit;
  flex-basis: 100%;
  order: 999;
  text-align: left;
  padding-left: 0.25rem;
}

.form-warning {
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 4px;
  font-family: inherit;
  text-align: left;
  padding-left: 0.25rem;
}

/* Hamburger button hidden by default */
.menu-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    z-index: 10 /* above ticker*/
  }

  /* Logo */
  nav img {
    height: 50px;
    margin: 0;
  }

  /* Hamburger button visible on mobile */
  .menu-toggle {
    all: unset; /* strips ALL browser styles */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    background: none !important;
    outline: none !important;
  }

  .menu-toggle:focus,
  .menu-toggle:active {
    outline: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #acfa30; /* neon green */
    border-radius: 2px;
    transition: background-color 0.2s ease-in-out; /* smooth color change */
  }

  .menu-toggle:hover .bar {
    color: #95db28;
  }

  /* Mobile menu */
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center; /* center text */
    gap: 0; /* no gap between items so borders touch */
    position: absolute;
    right: 0;
    top: 100%;
    right: 0; /* stick to the right edge */
    width: 40%; /* 40% of screen width */
    background-color: inherit; /* match nav bar color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out;
    z-index: 10;
  }

  nav ul.show {
    transform: scaleY(1);
  }

    /* Menu items styling */
  nav ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid currentColor; /* thin border same as text color */
  }
  
  nav ul li a {
    display: block;
    padding: 0.75rem 0;
    color: inherit; /* match nav text color */
    text-decoration: none;
  }
  
  /* Remove last border */
  nav ul li:last-child {
    border-bottom: none;
  }

  /* Ticker adjustment */
  .ticker-wrapper {
    position: relative;
    top: 0;
    margin: 0;
    width: 100%;
    z-index: 1; /* keeps ticker under the menu */
    font-size: 0.65rem;
  }

  /* Prevent navbar from covering content */
  main {
    padding: 6rem 1rem 2rem;
    align-items: center;
  }

  /* Buttons consistent */
  button,
  input[type="submit"] {
    color: black !important;
    background-color: #acfa30;
    border: none;
  }
}
