/* Custom styles — editorial serif aesthetic with teal & slate palette */

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

/* Base typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero asymmetric layout fix */
#hero h1 {
  text-wrap: balance;
}

/* Nav transitions */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #14b8a6;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-title {
  color: #1e293b !important;
}

/* Mobile menu */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  transition: transform 0.2s ease;
}

.mobile-link:hover {
  transform: translateX(4px);
}

/* Scroll reveal animations — progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Card hover effects */
.group:hover .group-hover\:bg-teal-800 {
  background-color: #115e59;
}

/* Input focus ring */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

/* Button hover lift */
button,
a[href^="tel"] {
  will-change: transform;
}

button:hover,
a[href^="tel"]:hover {
  transform: translateY(-1px);
}

button:active,
a[href^="tel"]:active {
  transform: translateY(0);
}

/* Map container */
iframe {
  filter: saturate(0.8) contrast(1.05);
  transition: filter 0.3s ease;
}

iframe:hover {
  filter: saturate(1) contrast(1);
}

/* Selection color */
::selection {
  background: rgba(20, 184, 166, 0.2);
  color: #134e4a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h1 br {
    display: none;
  }

  .font-serif.text-4xl {
    font-size: 2.25rem;
  }
}
