/* ============================================
   Eric's Sewing Machine Service - Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #FAF9F6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.5);
}

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

#navbar.scrolled {
  background: rgba(7, 14, 7, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #0D0D0D, transparent);
  pointer-events: none;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(201, 168, 76, 0.06);
  pointer-events: none;
}

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

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

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

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

/* Hamburger Animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement: content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-30px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(30px);
  }

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

/* ============================================
   Input Focus Styles
   ============================================ */
input:focus,
textarea:focus {
  outline: none;
}

/* ============================================
   Button Hover Glow
   ============================================ */
a[href^="tel:"],
button[type="submit"] {
  position: relative;
}

/* ============================================
   Map Container
   ============================================ */
#contact iframe {
  transition: filter 0.3s ease;
}

#contact iframe:hover {
  filter: grayscale(40%) invert(92%) contrast(90%);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .font-display {
    word-spacing: -0.02em;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-card {
    padding: 1.5rem !important;
  }
}
