/*
Theme Name: LuminVideo
Theme URI: https://jhpsunlimited.com/luminary-ai
Author: JHPS Unlimited
Author URI: https://jhpsunlimited.com
Description: An AI-powered WordPress theme that builds your entire website for you. Answer 5 questions — Luminary AI generates your brand, hero image, cinematic video background, copy, and all pages automatically using Claude AI and FAL.ai.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: ai-generated, full-site-editing, business, one-click-setup, video-background, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
Text Domain: luminvideo

Luminary AI WordPress Theme, Copyright 2025 JHPS Unlimited
Luminary AI is distributed under the terms of the GNU GPL.

This theme uses:
 - Anthropic Claude API (api.anthropic.com) for brand and copy generation
 - FAL.ai API (fal.ai) for image and video generation
 - Three.js (threejs.org) for 3D rendering — MIT License
 - GSAP (gsap.com) for scroll animation — GreenSock Standard License
Data is only transmitted when a user explicitly runs the site generation wizard.
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --lai-bg:          #080808;
  --lai-bg-alt:      #0f0f0d;
  --lai-bg-card:     #141410;
  --lai-text:        #f0ede8;
  --lai-text-muted:  rgba(240,237,232,0.55);
  --lai-border:      rgba(240,237,232,0.08);
  --lai-accent:      #C8A96E;
  --lai-accent-dark: #A8893E;
  --lai-accent-glow: rgba(200,169,110,0.15);
  --lai-white:       #ffffff;
  --lai-error:       #e06060;
  --lai-success:     #60c890;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-glow: 0 0 40px rgba(200,169,110,0.12);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--lai-bg);
  color: var(--lai-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lai-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lai-accent-dark); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lai-text);
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p  { margin-bottom: 1.5em; color: var(--lai-text-muted); }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.lai-container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.lai-section   { padding: clamp(5rem, 10vw, 8rem) 0; }
.lai-grid-2    { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 2rem; }
.lai-grid-3    { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }

/* ===== BUTTONS ===== */
.lai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1;
}
.lai-btn--primary {
  background: var(--lai-accent);
  color: #000;
  border-color: var(--lai-accent);
}
.lai-btn--primary:hover {
  background: var(--lai-accent-dark);
  border-color: var(--lai-accent-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,169,110,0.3);
}
.lai-btn--outline {
  background: transparent;
  color: var(--lai-text);
  border-color: var(--lai-border);
}
.lai-btn--outline:hover {
  border-color: var(--lai-accent);
  color: var(--lai-accent);
  transform: translateY(-2px);
}
.lai-btn--ghost {
  background: transparent;
  color: var(--lai-text-muted);
  border-color: transparent;
  font-size: 0.75rem;
}
.lai-btn--ghost:hover { color: var(--lai-text); }

/* ===== HERO SECTION ===== */
.lai-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lai-hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lai-hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lai-hero__video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,8,0.75) 0%,
    rgba(8,8,8,0.45) 50%,
    rgba(8,8,8,0.65) 100%
  );
}
.lai-hero__image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lai-hero__image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.6);
}
.lai-hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
}
.lai-hero__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lai-accent);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(200,169,110,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(200,169,110,0.05);
}
.lai-hero__headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.lai-hero__headline em { font-style: italic; color: var(--lai-accent); }
.lai-hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--lai-text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.lai-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== FEATURE CARDS ===== */
.lai-card {
  background: var(--lai-bg-card);
  border: 1px solid var(--lai-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.lai-card:hover {
  border-color: rgba(200,169,110,0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.lai-card__icon {
  font-size: 1.75rem;
  color: var(--lai-accent);
  margin-bottom: 1rem;
  display: block;
}
.lai-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--lai-text);
  margin-bottom: 0.625rem;
}
.lai-card__desc { font-size: 0.9375rem; color: var(--lai-text-muted); line-height: 1.7; }

/* ===== SECTION HEADERS ===== */
.lai-section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lai-accent);
  margin-bottom: 1rem;
}
.lai-section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--lai-text);
}
.lai-section-desc {
  font-size: 1.0625rem;
  color: var(--lai-text-muted);
  max-width: 560px;
  line-height: 1.75;
}
.lai-section-header--center { text-align: center; }
.lai-section-header--center .lai-section-desc { margin: 0 auto; }

/* ===== CTA SECTION ===== */
.lai-cta {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.lai-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(200,169,110,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== SITE HEADER ===== */
.lai-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), border-bottom var(--transition);
}
.lai-site-header.scrolled {
  background: rgba(8,8,8,0.92);
  border-bottom: 1px solid var(--lai-border);
  backdrop-filter: blur(12px);
}
.lai-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--lai-text);
  letter-spacing: -0.02em;
}
.lai-logo img { height: 36px; width: auto; }
.lai-nav { display: flex; align-items: center; gap: 0.25rem; }
.lai-nav a {
  color: var(--lai-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.lai-nav a:hover { color: var(--lai-text); background: rgba(255,255,255,0.05); }
.lai-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--lai-border);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--lai-text);
}
.lai-nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== FOOTER ===== */
.lai-site-footer {
  border-top: 1px solid var(--lai-border);
  padding: 2.5rem 0;
}
.lai-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lai-footer-copy { font-size: 0.8125rem; color: var(--lai-text-muted); }
.lai-footer-links { display: flex; gap: 1.5rem; }
.lai-footer-links a { font-size: 0.8125rem; color: var(--lai-text-muted); }
.lai-footer-links a:hover { color: var(--lai-accent); }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--lai-accent);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; color: #000; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===== SETUP PROMPT (shown before wizard runs) ===== */
.lai-setup-prompt {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--lai-bg);
}
.lai-setup-prompt__inner { max-width: 480px; }
.lai-setup-prompt__icon { font-size: 3rem; color: var(--lai-accent); margin-bottom: 1.5rem; display: block; }
.lai-setup-prompt h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.lai-setup-prompt p { font-size: 1.0625rem; color: var(--lai-text-muted); margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .lai-nav { display: none; }
  .lai-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(8,8,8,0.98); padding: 1rem; border-bottom: 1px solid var(--lai-border); }
  .lai-nav-toggle { display: flex; }
  .lai-hero__actions { flex-direction: column; align-items: flex-start; }
  .lai-footer-inner { flex-direction: column; text-align: center; }
}
