/* ============================================
   COMPONENTS — Reusable UI Elements
   ============================================ */

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
  color: var(--color-bg-primary);
}

.btn--gold:active {
  transform: translateY(0);
}

.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn--gold:hover::after {
  left: 100%;
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn--outline:hover {
  background: var(--color-gold-muted);
  transform: translateY(-2px);
  color: var(--color-gold-light);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(7, 13, 26, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
  opacity: 0.85;
  color: var(--color-gold);
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  fill: var(--color-gold);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-body);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-gold);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: var(--space-md);
}

/* Mobile hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- CARDS (Glassmorphism) --- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-muted), transparent);
}

.card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--color-gold);
}

.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.card__text {
  color: var(--color-text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-gold-muted);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* --- BADGE --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-gold-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-cookie);
  background: rgba(7, 13, 26, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xl) var(--container-padding);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.cookie-modal.visible {
  display: flex;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cookie-modal__content {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 550px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
}

.cookie-modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.cookie-modal__close:hover {
  color: var(--color-gold);
}

.cookie-category {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.cookie-category__name {
  font-weight: 600;
  color: var(--color-text-white);
  font-size: 0.95rem;
}

.cookie-category__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  transition: var(--transition-base);
}

.toggle input:checked + .toggle__slider {
  background-color: var(--color-gold-muted);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(20px);
  background-color: var(--color-gold);
}

.toggle input:disabled + .toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- FORM ELEMENTS --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem var(--space-lg);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text-white);
  background: rgba(15, 27, 45, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-muted);
  background: rgba(15, 27, 45, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  display: none;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  display: block;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  display: block;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-white);
  margin-bottom: var(--space-lg);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__cookie-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
  transition: color var(--transition-fast);
}

.footer__cookie-link:hover {
  color: var(--color-gold);
}

/* Mobile Sticky CTA (Hidden by default, shown in media query) */
.mobile-sticky-cta {
  display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile */
  .navbar__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 13, 26, 0.98);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-3xl);
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .navbar__menu.open {
    transform: translateX(0);
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__cta {
    margin-left: 0;
  }

  .navbar__link {
    font-size: 1.1rem;
  }

  /* Cookie Banner Mobile */
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile Sticky CTA */
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 13, 26, 0.96);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-sm) var(--space-md);
    z-index: 998; /* Below modals */
  }

  /* Push body padding to prevent overlapping contents with sticky footer */
  body {
    padding-bottom: 70px;
  }
}
