/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-up { transform: translateY(40px); }
  .reveal-left { transform: translateX(-40px); }
  .reveal-right { transform: translateX(40px); }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ===== Navigation ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0.5rem 0;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  padding: 0.25rem 0;
}

#navbar .nav-link {
  position: relative;
}

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

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

#navbar.nav-scrolled .nav-link {
  color: #474d57;
}

#navbar.nav-scrolled .nav-link:hover {
  color: #ff6f3f;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  animation: fadeIn 0.3s ease;
}

.mobile-menu-panel {
  animation: slideIn 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-link {
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  object-fit: cover;
  min-height: 100vh;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(17, 19, 23, 0.65) 0%,
    rgba(30, 33, 39, 0.55) 50%,
    rgba(17, 19, 23, 0.85) 100%
  );
}

.hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero-scroll {
  z-index: 10;
}

/* ===== Section Common ===== */
.section {
  position: relative;
}

.section-label {
  letter-spacing: 0.15em;
}

.section-title {
  letter-spacing: -0.02em;
}

.section-label-light {
  letter-spacing: 0.15em;
}

.section-title-light {
  letter-spacing: -0.02em;
}

/* ===== Buttons ===== */
.btn-primary {
  box-shadow: 0 4px 20px rgba(255, 111, 63, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(255, 111, 63, 0.5);
}

.btn-secondary {
  backdrop-filter: blur(8px);
}

.btn-cta-primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ===== Stats ===== */
.stat-number {
  line-height: 1;
}

.stat-label {
  line-height: 1.4;
}

/* ===== About Images ===== */
.about-image-grid {
  position: relative;
  min-height: 480px;
}

.about-img-1 {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-img-2 {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== Amenities ===== */
.amenity-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 111, 63, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.gallery-img {
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 19, 23, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

/* ===== Contact ===== */
.input-field {
  width: 100%;
}

.input-field:focus {
  box-shadow: 0 0 0 4px rgba(255, 111, 63, 0.1);
}

.input-field::placeholder {
  color: #a0a4ac;
}

.contact-info-item {
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item {
    height: 220px;
  }

  .about-image-grid {
    min-height: 320px;
  }

  .about-img-2 {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    width: 100%;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .stats-row {
    gap: 4rem !important;
  }
}

/* ===== Focus Visible ===== */
*:focus-visible {
  outline: 2px solid #ff6f3f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
  background: rgba(255, 111, 63, 0.3);
  color: #1e2127;
}
