/* ============================================
   Karla K's Creations — Custom Styles
   ============================================ */

:root {
  --navy-950: #0C1E3A;
  --navy-900: #132D54;
  --navy-800: #1A3A6B;
  --navy-700: #234B82;
  --navy-600: #2D5C99;
  --navy-500: #366DB0;
  --navy-300: #7BA3CC;
  --navy-200: #B0CCE0;
  --navy-100: #D8E5F0;
  --navy-50: #ECF3FA;
  --gold-500: #C9A84C;
  --gold-400: #D4B965;
  --gold-300: #E0CC8A;
  --gold-600: #B8943F;
  --gold-100: #F5EDD8;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Typography */
.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 30, 58, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-bar {
  transition: all 0.3s ease;
}

#menu-toggle.active .menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-bar:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Hero Section
   ============================================ */
.hero-headline {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.hero-desc {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.hero-cta {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.hero-stats {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

.hero-image-wrapper {
  animation: heroImageIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #0C1E3A;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: #C9A84C;
  color: #0C1E3A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #0C1E3A;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid #0C1E3A;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background: #0C1E3A;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Scroll line animation */
.scroll-line-fill {
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  opacity: 1;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   Reveal Animations (scroll-based)
   Progressive enhancement: content is visible
   by default; JS adds the animated state.
   ============================================ */
.reveal {
  /* Content is visible by default for no-JS fallback */
}

.reveal.animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.animated.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem !important;
  }

  .hero-image-wrapper img {
    height: 400px !important;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2rem !important;
  }

  .hero-image-wrapper img {
    height: 320px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-headline,
  .hero-subtitle,
  .hero-desc,
  .hero-cta,
  .hero-stats,
  .hero-image-wrapper {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal.animated {
    opacity: 1;
    transform: none;
  }

  .scroll-line-fill {
    animation: none;
  }

  .gallery-item img {
    transition: none;
  }

  .service-card {
    transition: none;
  }
}
