/* Le Manoir custom CSS - extends Tailwind */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle fade-in for sections as they come into view */
section {
  scroll-margin-top: 80px;
}

/* Custom underline animation on nav links */
nav a {
  position: relative;
}

nav a:not(.bg-coral-500)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease-in-out;
}

nav a:not(.bg-coral-500):hover::after {
  width: 100%;
}

/* Form focus ring softening */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 122, 93, 0.2);
}

/* Smooth section transitions */
section {
  transition: opacity 0.6s ease-out;
}

/* Scrollbar styling for desktop */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f5f0e3;
  }
  ::-webkit-scrollbar-thumb {
    background: #578eb6;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #2c5b81;
  }
}

/* Print styles */
@media print {
  nav, footer, #contact form button { display: none; }
  body { color: #000; background: #fff; }
}

/* Slight serif italic adjustment */
.font-serif em {
  font-style: italic;
  font-weight: 500;
}

/* Make placeholder text in gallery less distracting */
.italic.font-serif {
  user-select: none;
}
