/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .font-serif {
  color: #0f2140 !important;
}

#navbar.scrolled .text-mint-600 {
  color: #2a8a56 !important;
}

#navbar.scrolled .menu-line {
  background: #0f2140 !important;
}

#navbar.scrolled .mobile-link {
  color: #0f2140 !important;
}

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

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

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

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

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

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 20px;
}

/* ========== HERO ========== */
#hero {
  position: relative;
}

/* ========== CUSTOM SELECTION ========== */
::selection {
  background: rgba(95, 191, 140, 0.3);
  color: #0f2140;
}

/* ========== FOCUS STYLES ========== */
*:focus-visible {
  outline: 2px solid #5fbf8a;
  outline-offset: 2px;
}

/* ========== INPUT FOCUS ========== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(95, 191, 140, 0.15);
}

/* ========== BUTTON HOVER LIFT ========== */
button[type="submit"],
a[href="#contact"],
a[href="tel:+16154854173"] {
  will-change: transform;
}

/* ========== IMAGE LAZY LOAD TRANSITION ========== */
img {
  image-rendering: auto;
}

/* ========== GALLERY HOVER ========== */
.grid .rounded-2xl {
  overflow: hidden;
}

/* ========== SUBTLE GRAIN TEXTURE ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}
