/* theme.css - Visual theme for Spotlight Projector V1 - Classic Cinematic */

/* Theater curtain texture background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(122, 31, 31, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgb(245, 197, 66, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgb(245, 197, 66, 0.05) 0%, transparent 50%),
    var(--deep-black);
}

/* Subtle curtain fold effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    rgb(58, 58, 58, 0.03) 1px,
    transparent 2px,
    transparent 60px
  );
  opacity: 0.5;
}

/* Header */
.site-header {
  position: relative;
  padding: var(--space-lg) 0;
  background: linear-gradient(180deg, rgb(0, 0, 0, 0.9) 0%, transparent 100%);
  border-bottom: 1px solid rgb(245, 197, 66, 0.1);
}

/* Animated spotlight sweep for header motif */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(245, 197, 66, 0.08) 40%,
    rgb(245, 197, 66, 0.15) 50%,
    rgb(245, 197, 66, 0.08) 60%,
    transparent 100%
  );
  animation: spotlight-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spotlight-sweep {
  0%,
  100% {
    left: -50%;
  }

  50% {
    left: 150%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before {
    animation: none;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-spotlight);
  text-decoration: none;
  transition: text-shadow var(--transition-base);
}

.logo:hover {
  color: var(--gold-spotlight);
  text-shadow: 0 0 20px rgb(245, 197, 66, 0.5);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo:focus-visible {
  outline: 2px solid var(--gold-spotlight);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  color: var(--warm-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--gold-spotlight);
  background-color: rgb(245, 197, 66, 0.1);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--gold-spotlight);
  outline-offset: 2px;
}

.main-nav a[aria-current='page'] {
  color: var(--gold-spotlight);
  background-color: rgb(245, 197, 66, 0.15);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  padding: var(--space-sm);
  background: transparent;
  border: 1px solid var(--soft-shadow-gray);
  border-radius: 4px;
  color: var(--warm-white);
  cursor: pointer;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--gold-spotlight);
  color: var(--gold-spotlight);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--gold-spotlight);
  outline-offset: 2px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero section with letterbox effect */
.hero {
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}

/* Letterbox bars - top */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--deep-black) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Letterbox bars - bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(0deg, var(--deep-black) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Soft spotlight glow - separate element inside hero */
.hero-spotlight {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgb(245, 197, 66, 0.12) 0%,
    rgb(255, 184, 77, 0.06) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero typography */
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-glow);
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 40px rgb(245, 197, 66, 0.3);
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--warm-white);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  min-height: var(--touch-target);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background-color: var(--gold-spotlight);
  color: var(--deep-black);
}

.btn--primary:hover {
  background-color: var(--amber-glow);
  color: var(--deep-black);
  box-shadow: 0 0 30px rgb(245, 197, 66, 0.4);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--gold-spotlight);
  outline-offset: 2px;
}

.btn--secondary {
  background-color: transparent;
  color: var(--warm-white);
  border: 1px solid var(--soft-shadow-gray);
}

.btn--secondary:hover {
  border-color: var(--gold-spotlight);
  color: var(--gold-spotlight);
}

.btn--secondary:focus-visible {
  outline: 2px solid var(--gold-spotlight);
  outline-offset: 2px;
}

/* CTA group */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Sections */
.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: rgb(58, 58, 58, 0.2);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

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

.section-header p {
  color: rgb(255, 247, 230, 0.8);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.4) 0%, rgb(58, 58, 58, 0.2) 100%);
  border: 1px solid rgb(245, 197, 66, 0.1);
  border-radius: 8px;
  padding: var(--space-xl);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgb(245, 197, 66, 0.3);
  box-shadow:
    0 8px 30px rgb(0, 0, 0, 0.3),
    0 0 20px rgb(245, 197, 66, 0.1);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--gold-spotlight);
}

.feature-card-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--gold-spotlight);
}

.feature-card p {
  color: rgb(255, 247, 230, 0.85);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, rgb(58, 58, 58, 0.3) 0%, rgb(0, 0, 0, 0.9) 100%);
  border-top: 1px solid rgb(245, 197, 66, 0.1);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-spotlight);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col a {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: rgb(255, 247, 230, 0.75);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold-spotlight);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgb(58, 58, 58, 0.5);
}

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: rgb(255, 247, 230, 0.85);
  margin-bottom: var(--space-sm);
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgb(0, 0, 0, 0.95);
    border-top: 1px solid rgb(245, 197, 66, 0.1);
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    justify-content: center;
  }
}
