/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: #ECAE10;
}
.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: #ECAE10;
}

body.nav-open {
  overflow: hidden;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  font: inherit;
  color: #fff;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-link:focus-visible,
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid #ECAE10;
  outline-offset: 2px;
}

/* Mobile dropdown collapse */
@media (max-width: 991px) {
  .nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.open .nav-dropdown {
    max-height: 500px;
  }
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a2e;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.site-nav.open {
  transform: translateX(0);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-link:hover { color: #ECAE10; }

.dropdown-arrow {
  width: 10px;
  height: 10px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.3);
}

.nav-dropdown li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item {
  display: block;
  padding: 12px 0 12px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-transform: uppercase;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  color: #ECAE10;
  text-decoration: none;
  background-color: transparent;
}

/* Contact Form */
#contact-form input,
#contact-form select,
#contact-form textarea,
#contact-form button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 15px;
}

#contact-form input::placeholder { color: rgba(255,255,255,0.5); }

#contact-form button {
  background: #ff5100;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

/* hCaptcha widget — inlined with form dark theme */
.h-captcha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  min-height: 74px;
  overflow: hidden;
}

.h-captcha-wrap iframe {
  border-radius: 3px;
}

/* hCaptcha-specific error state */
.h-captcha-wrap.has-error {
  border-color: rgba(255, 81, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 81, 0, 0.15);
}

/* Legal content pages (Terms, Privacy Policy) */
.legal-content {
  text-align: left;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.legal-content p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.legal-content a {
  color: #ECAE10;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #ff5100;
}

/* Form feedback states */
.form-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
}

.form-feedback--error {
  background: rgba(255, 81, 0, 0.12);
  border: 1px solid rgba(255, 81, 0, 0.35);
  color: #ff9e7a;
}

.form-feedback__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.form-feedback__text {
  line-height: 1.4;
}

/* Inline success replacement */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(236, 174, 16, 0.12);
  margin-bottom: 24px;
}

.success-icon svg {
  color: #ecae10;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.success-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Button loading state */
#contact-form button[type="submit"].loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

#contact-form button[type="submit"].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Desktop */
@media (min-width: 992px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
  }

  .nav-menu {
    display: flex;
    gap: 5px;
  }

  .nav-item {
    border: none;
  }

  .nav-link {
    padding: 10px 15px;
  }

  .dropdown-arrow { display: none; }

  /* Desktop dropdown - hover, focus-within, or click to show */
  .has-dropdown > .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 5px 0;
  }

  .has-dropdown:hover > .nav-dropdown,
  .has-dropdown:focus-within > .nav-dropdown,
  .has-dropdown.open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown li { border: none; }

  .dropdown-item {
    padding: 10px 20px;
  }
}