@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   Demers Law: Guardian Prestige Art Deco Core Patterns
   ========================================================================== */

:root {
  /* Core Variables */
  --primary-navy: #0a0b14;
  --primary-gold: #C5962B;
  --accent-gold: #D4A94A;
  --light-editorial: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-muted: #666666;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--light-editorial);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
}

/* ==========================================================================
   Gilded Shimmer Text
   ========================================================================== */
.gilded-text {
  background: linear-gradient(135deg, #C5962B 0%, #f0d78c 25%, #C5962B 50%, #a07a20 75%, #f0d78c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s ease-in-out infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ==========================================================================
   The Triple-Layer 'Picture Frame'
   ========================================================================== */
.triple-frame {
  position: relative;
  padding: 12px;
  background: transparent;
  z-index: 1;
}

.triple-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 3px solid var(--primary-gold);
  background: radial-gradient(circle at center, rgba(197, 150, 43, 0.05) 0%, transparent 70%);
  z-index: -2;
}

.triple-frame::after {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid rgba(197, 150, 43, 0.5);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  z-index: -1;
  pointer-events: none;
}

.triple-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(197, 150, 43, 0.3);
  overflow: hidden;
  background: #fff;
}

.triple-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.triple-frame:hover .triple-frame-inner img {
  transform: scale(1.05);
}

/* ==========================================================================
   Parallax Backgrounds
   ========================================================================== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 11, 20, 0.8), rgba(10, 11, 20, 0.4));
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.reveal-up.active, .reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   Editorial Grid
   ========================================================================== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.editorial-col {
  position: relative;
}

@media (min-width: 768px) {
  .editorial-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    bottom: 0;
    width: 1px;
    background: rgba(0,0,0,0.1);
  }
  
  .dark-theme .editorial-col:not(:last-child)::after {
    background: rgba(255,255,255,0.1);
  }
}

/* Return Button styling */
.proto-return-btn {
  background: rgba(10, 11, 20, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-gold);
  color: #fff;
  transition: all 0.3s ease;
}
.proto-return-btn:hover {
  background: var(--primary-gold);
  color: var(--primary-navy);
}
