/* ============================================
   Edward Duvall — Tailwind companion styles
   Only what Tailwind CDN can't handle inline
   ============================================ */

/* Smooth anchor scrolling with offset for fixed nav */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* -- Force nav fixed (inline style handles position, this is fallback) -- */
#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* -- Nav links -- */
.nav-link {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f5f0ea;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* -- Pink pill CTA button -- */
.cta-btn {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f5f0ea;
  background: #d9859c;
  padding: 1rem 3rem;
  border-radius: 50px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #c87389;
  transform: translateY(-1px);
}

/* -- Form inputs (translucent on dark background) -- */
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #f5f0ea;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 240, 234, 0.25);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: rgba(245, 240, 234, 0.5);
}

.form-input:focus {
  border-color: #d9859c;
}

/* Select dropdown styling */
.form-select {
  color: rgba(245, 240, 234, 0.5);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5f0ea' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select:not(:invalid) {
  color: #f5f0ea;
}

.form-select option {
  background: #2b2b2b;
  color: #f5f0ea;
}

/* -- Hamburger toggle (hidden on desktop) -- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s, opacity 0.3s;
}

/* X animation when active */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -- Mobile menu backdrop -- */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 49;
}

.nav-backdrop.open {
  display: block;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  /* Slide-in menu panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(43, 43, 43, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s;
    z-index: 50;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-toggle {
    right: 1.25rem;
  }
}
