/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Selection ── */
::selection {
  background: #F07665;
  color: #FAFAF8;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FAFAF8;
}
::-webkit-scrollbar-thumb {
  background: #36454F;
  border-radius: 3px;
}

/* ── Header ── */
#header {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(54, 69, 79, 0.06);
}

#header.scrolled {
  box-shadow: 0 1px 0 rgba(54, 69, 79, 0.06);
}

/* ── 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;
}

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

/* ── Hero ── */
.hero-image-wrapper {
  overflow: hidden;
}

.hero-image {
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-wrapper.loaded .hero-image {
  transform: scale(1);
}

/* ── Scroll Indicator ── */
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ── Service Cards ── */
.service-card {
  transition: background-color 0.3s ease;
}

.service-card:hover {
  background: rgba(240, 118, 101, 0.03);
}

/* ── Form Inputs ── */
.form-input {
  width: 100%;
}

.form-input:focus {
  border-bottom-color: #F07665 !important;
}

.form-input::placeholder {
  color: rgba(54, 69, 79, 0.3);
}

select.form-input {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="%2336454F" stroke-width="1.5"%3E%3Cpath d="M2 4l4 4 4-4"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* ── Button ── */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

.btn-submit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.btn-submit:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Area Items ── */
.area-item {
  transition: transform 0.3s ease;
}

.area-item:hover {
  transform: translateX(4px);
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .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-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── 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; }
}
