/* ============================================
   IMAGINATION OVERDRIVE - Custom Styles
   "Modern Elegance with a Touch of Magic"
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary */
  --midnight: #1a1a2e;
  --royal: #16213e;
  --gold: #d4a853;
  --gold-light: #e8c97a;

  /* Neutrals */
  --cream: #faf8f5;
  --pearl: #f0ece4;
  --stone: #8a8578;
  --charcoal: #2d2d2d;

  /* Accents */
  --blush: #e8b4b8;
  --sage: #8fae8b;
  --copper: #b87333;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.4s;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--midnight);
  line-height: 1.2;
}

/* Fluid type scale */
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

.font-accent {
  font-family: 'Cormorant Garamond', serif;
}

/* ---- Gold accent underline for headings ---- */
.heading-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.heading-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.heading-accent-left::after {
  left: 0;
  transform: none;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--gold);
  color: var(--midnight);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--duration) var(--ease-smooth);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--duration) var(--ease-smooth);
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--midnight);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: color var(--duration) var(--ease-smooth);
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--gold-light);
}

/* White variants for dark backgrounds */
.btn-primary-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: white;
  color: var(--midnight);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid white;
  cursor: pointer;
  transition: all var(--duration) var(--ease-smooth);
  text-decoration: none;
}
.btn-primary-white:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ---- Cards ---- */
.io-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.06);
  overflow: hidden;
  transition: all var(--duration) var(--ease-smooth);
}
.io-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
}

.io-card-gold {
  position: relative;
}
.io-card-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(22, 33, 62, 0.7) 50%,
    rgba(26, 26, 46, 0.6) 100%
  );
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  padding: 10rem 0 4rem;
  overflow: hidden;
}
.page-hero .hero-bg {
  animation: heroZoom 30s ease-in-out infinite alternate;
}

/* ---- Trust Bar / Client Logo Marquee ---- */
.marquee-track {
  display: flex;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo {
  height: 40px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ---- Navigation ---- */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}
.nav-scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--midnight);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav .nav-link {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Testimonial Quotes ---- */
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--charcoal);
}

/* ---- Gallery ---- */
.gallery-grid {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid { columns: 2; }
}
@media (min-width: 1024px) {
  .gallery-grid { columns: 3; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 26, 46, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border-bottom: 1px solid var(--pearl);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--midnight);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--gold);
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--gold);
}
.breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- 11Labs Voice Agent Button ---- */
.voice-agent-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  animation: voicePulse 2s ease-in-out infinite;
}
.voice-agent-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(212, 168, 83, 0.5);
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(212, 168, 83, 0.6), 0 0 0 8px rgba(212, 168, 83, 0.1); }
}

/* ---- Mobile Sticky CTA Bar ---- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--midnight);
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.mobile-cta-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: white;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.mobile-cta-bar a:hover {
  color: var(--gold);
}
.mobile-cta-bar svg {
  width: 22px;
  height: 22px;
}

/* ---- Form Styles ---- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid var(--pearl);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}
.form-input::placeholder {
  color: var(--stone);
}
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--midnight);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%238a8578'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- Gold Divider ---- */
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* ---- Star Rating ---- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--midnight);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---- Selection ---- */
::selection {
  background: var(--gold);
  color: var(--midnight);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--stone);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---- Print Styles ---- */
@media print {
  .nav-main, .mobile-cta-bar, .voice-agent-btn, .mobile-nav { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
