/* ============================================
   Illustrated Studios — Custom Styles
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #B85C38;
  color: #fff;
}

/* Section Tags */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B85C38;
  background: #fce4d9;
  border: 1px solid #f8c4b0;
  padding: 6px 14px;
  border-radius: 100px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #B85C38;
  border-radius: 50%;
}

/* Section Titles */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: #1A1614;
}

/* Section Descriptions */
.section-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #6B6460;
  font-weight: 300;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 22, 20, 0.08);
}

/* ============================================
   Hero
   ============================================ */
.hero-tag {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-image-wrapper {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.floating-card {
  animation: floatUp 0.8s ease 0.8s forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================================
   Services
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #B85C38;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

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

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

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: #fce4d9;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-image-wrapper,
  .floating-card {
    animation: none;
    opacity: 1;
  }
  .service-card::after {
    transform: scaleX(0);
  }
  .gallery-item:hover img {
    transform: none;
  }
  .mobile-link {
    opacity: 1;
    transform: none;
    transition: color 0.3s ease;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .about-img-accent {
    width: 120px;
    height: 120px;
    bottom: -4px;
    right: -4px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-image-wrapper {
    aspect-ratio: 3/4;
  }
}
