/* Logan Plaza — Custom Styles */

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background-color: #FDF8F4;
  color: #5C3A2E;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
  background: #d4522a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b83d1e;
}

/* Selection */
::selection {
  background: #d4522a;
  color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Navbar */
#navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(92, 58, 46, 0.1);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(92, 58, 46, 0.15);
}

.card-hover img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover img {
  transform: scale(1.05);
}

/* Buttons */
.btn-primary {
  background: #d4522a;
  color: #fff;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #b83d1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 61, 30, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #d4522a;
  border: 2px solid #d4522a;
  border-radius: 9999px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #d4522a;
  color: #fff;
  transform: translateY(-2px);
}

/* Nav links */
.nav-link {
  color: #5C3A2E;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4522a;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #d4522a;
}

/* Mobile nav links */
.mobile-nav-link {
  color: #5C3A2E;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  background: #FDF0EC;
  color: #d4522a;
}

/* Hero */
.hero-bg {
  background: linear-gradient(135deg, #3a1109 0%, #96301a 50%, #d4522a 100%);
  position: relative;
}

/* Form inputs */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 82, 42, 0.2);
}

/* Reveal animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
  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);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 1;
    transform: none;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Map container */
iframe {
  border-radius: 0 0 1.5rem 1.5rem;
}

/* Footer links */
footer a {
  text-decoration: none;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4522a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
