/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Small label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: currentColor;
}

.eyebrow-primary {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
}

.btn-gold {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: 0 12px 28px -12px rgba(226, 169, 59, 0.8);
}

.btn-gold:hover {
  filter: brightness(1.07);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: 0 12px 28px -14px rgba(127, 34, 48, 0.9);
}

.btn-primary:hover {
  filter: brightness(1.15);
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--color-dark);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

/* Hero overlays */
.hero-overlay {
  background: linear-gradient(100deg, rgba(20, 17, 15, 0.96) 0%, rgba(20, 17, 15, 0.78) 45%, rgba(127, 34, 48, 0.35) 100%);
}

.page-hero-overlay {
  background: linear-gradient(110deg, rgba(20, 17, 15, 0.95) 20%, rgba(20, 17, 15, 0.7) 60%, rgba(127, 34, 48, 0.45) 100%);
}

/* Header navigation */
.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 27, 25, 0.07);
  box-shadow: 0 1px 2px rgba(30, 27, 25, 0.04), 0 14px 34px -14px rgba(30, 27, 25, 0.16);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(30, 27, 25, 0.05), 0 28px 50px -18px rgba(30, 27, 25, 0.28);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* Form fields on dark backgrounds */
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.field:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(226, 169, 59, 0.25);
}

select.field option {
  color: #1e1b19;
}

/* FAQ accordion */
.faq summary {
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  transition: transform 0.25s;
}

.faq[open] .faq-icon {
  transform: rotate(45deg);
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background: rgba(15, 12, 10, 0.94);
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
}

.lightbox button {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox button:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.lightbox .lb-close {
  top: 1rem;
  right: 1rem;
}

.lightbox .lb-prev {
  left: 1rem;
  top: 50%;
}

.lightbox .lb-next {
  right: 1rem;
  top: 50%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card-hover:hover {
    transform: none;
  }
}
