/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

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

#site-header.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

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

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

#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; }

/* Hamburger Animation */
#menu-btn.active #menu-icon-1 {
  transform: translateY(7px) rotate(45deg);
}
#menu-btn.active #menu-icon-2 {
  opacity: 0;
  transform: scaleX(0);
}
#menu-btn.active #menu-icon-3 {
  transform: translateY(-7px) rotate(-45deg);
  width: 1.25rem;
}

/* ===== FLOATING CARDS ===== */
.floating-card-1 {
  animation: floatCard1 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: floatCard2 7s ease-in-out infinite;
}
.floating-card-3 {
  animation: floatCard3 5.5s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(-50%) translateX(0px); }
  50% { transform: translateY(calc(-50% + -10px)) translateX(5px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-0.5deg); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(20, 184, 166, 0.15);
}

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
  transition: transform 0.4s ease;
}

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

.gallery-item img {
  aspect-ratio: 3 / 2;
}

/* ===== HOURS ROWS ===== */
.hours-row {
  transition: background 0.2s ease;
}

.hours-row:hover {
  background: rgba(20, 184, 166, 0.03);
  border-radius: 8px;
  padding-left: 8px;
  margin-left: -8px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .floating-card-1,
  .floating-card-2,
  .floating-card-3 {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .floating-card-1 { display: block; }
  .floating-card-2 { display: none; }
  .floating-card-3 { display: block; }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
