/* ==========================================================================
   CHICAGO LIGHTCRAFT — Custom Creative Studio Stylesheet
   Color Tokens:
   - Midnight Navy:      #08111F
   - Deep Charcoal:      #0D1727
   - Secondary Dark Blue: #15253A
   - Cool Off-White:     #F2F6FF
   - Pale Blue:          #E1EBFF
   - Electric Blue:      #1769FF
   - Bright Hover Blue:  #3D83FF
   - Pure White:         #FFFFFF
   - Muted Slate:        #8A9AB3
   ========================================================================== */

:root {
  --color-midnight: #08111F;
  --color-charcoal: #0D1727;
  --color-dark-blue: #15253A;
  --color-cool-white: #F2F6FF;
  --color-pale-blue: #E1EBFF;
  --color-electric-blue: #1769FF;
  --color-hover-blue: #3D83FF;
  --color-pure-white: #FFFFFF;
  --color-muted-slate: #8A9AB3;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-midnight);
  color: var(--color-cool-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Editorial Serif Headings */
.font-editorial {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Selection */
::selection {
  background-color: var(--color-electric-blue);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08111F;
}
::-webkit-scrollbar-thumb {
  background: #15253A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1769FF;
}

/* Architectural Grid & Subdued Line Details */
.architectural-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.architectural-grid-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(23, 105, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 105, 255, 0.05) 1px, transparent 1px);
}

/* Atmospheric Hero Overlay */
.hero-city-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 17, 31, 0.78) 0%,
    rgba(8, 17, 31, 0.88) 50%,
    rgba(8, 17, 31, 0.98) 100%
  );
}

/* Card Transitions */
.artwork-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(13, 23, 39, 0.12), 0 0 0 1px rgba(23, 105, 255, 0.15);
}

.artwork-card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(23, 105, 255, 0.35);
}

/* Button & Link Hover micro-effects */
.btn-electric {
  background-color: var(--color-electric-blue);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-electric:hover {
  background-color: var(--color-hover-blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(23, 105, 255, 0.4);
}

.btn-outline-electric {
  border: 1px solid rgba(23, 105, 255, 0.35);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-outline-electric:hover {
  border-color: var(--color-electric-blue);
  background-color: rgba(23, 105, 255, 0.08);
  transform: translateY(-1px);
}

/* Underline link animation */
.animated-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}
.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.animated-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Accordion Transition */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-content.open {
  grid-template-rows: 1fr;
}
.faq-content-inner {
  overflow: hidden;
}

/* Modal styling */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Form focus states */
.custom-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-input:focus {
  outline: none;
  border-color: var(--color-electric-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.15);
}

/* Mobile drawer menu */
#mobile-menu {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
