/* style.css */
/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #F5F2EB;
  color: #1F3D2B;
  overflow-x: hidden;
  overflow-wrap: break-word; /* Improvement: Prevent text overflow on mobile */
}

/* Improvement: Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover,
a:focus,
a:active,
a:visited {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a img {
  border: none;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.small-text {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.section-title {
  font-size: 32px;
  max-width: 700px;
  line-height: 1.4;
  margin-bottom: 50px;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  inset-block-start: 0;
  inline-size: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 500;
  color: white;
}

.logo img {
  block-size: 40px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -4px;
  block-size: 1px;
  inline-size: 0;
  background: currentColor;
  transition: inline-size 0.3s ease;
}

.nav a:hover::after {
  inline-size: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px; /* Adjusted for consistency */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #000;
  color: white !important;
}

.btn-primary:hover {
  background: #D2A45C;
  transform: translateY(-2px);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  inline-size: 0;
  block-size: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: inline-size 0.5s ease, block-size 0.5s ease;
}

.btn-primary:hover::before {
  inline-size: 250px;
  block-size: 250px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  block-size: 100vh;
  position: relative;
}

.hero-img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-content {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 120px;
  font-weight: 400;
}

.hero-sub {
  margin-block-start: 10px;
  font-size: 16px;
  opacity: 0.8;
}

/* ==========================================================================
   CARDS (generic)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transition: transform 0.3s ease; /* Beautification: Add hover effect */
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  block-size: 220px;
  object-fit: cover;
}

.card p {
  padding: 15px;
  font-size: 14px;
}

/* ==========================================================================
   WIDE IMAGE SECTION
   ========================================================================== */
.wide-image {
  block-size: 70vh;
  position: relative;
}

.wide-image img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.wide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.25);
}

.wide-overlay h2 {
  color: white;
  font-size: 36px;
  max-inline-size: 800px;
}

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.experience .huge-text {
  font-size: 120px;
  font-weight: 400;
  opacity: 0.08;
  line-height: 1;
}

.huge-text.right {
  text-align: right;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.exp-item {
  transition: transform 0.3s ease; /* Beautification: Add hover effect */
}

.exp-item:hover {
  transform: translateY(-5px);
}

.exp-item img {
  block-size: 300px;
  object-fit: cover;
  border-radius: 15px;
}

.exp-item a {
  display: block;
  margin-block-start: 10px;
  font-size: 14px;
  text-decoration: underline;
}

/* ==========================================================================
   ROOMS
   ========================================================================== */
.rooms {
  padding-block-start: 80px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.room-card {
  cursor: pointer;
  transition: transform 0.3s ease; /* Beautification: Add hover effect */
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-img {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.room-img img {
  inline-size: 100%;
  block-size: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  inset-block-start: 15px;
  inset-inline-start: 15px;
  background: #D2A45C;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
  z-index: 2;
}

.room-meta {
  display: flex;
  justify-content: space-between;
  margin-block-start: 12px;
  font-size: 13px;
  color: #666;
}

.room-meta .left span {
  margin-inline-end: 15px;
}

.price {
  font-weight: 600;
  color: #333;
}

.price span {
  font-weight: 400;
  font-size: 12px;
  color: #777;
}

.room-title {
  margin-block-start: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: 120px 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #1F3D2B;
  color: white;
  border-radius: 20px;
  overflow: hidden;
}

.cta-left {
  padding: 60px;
}

.cta-left h3 {
  font-size: 28px;
  margin-block-end: 20px;
}

.cta-left p {
  opacity: 0.8;
  margin-block-end: 30px;
}

.cta-icons {
  display: flex;
  gap: 30px;
  margin-block-end: 30px;
}

.cta-icons span {
  font-size: 24px;
}

.cta-right img {
  block-size: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-title {
  font-size: 70px;
  margin-block-end: 40px;
}

.contact-grid {
  display: flex;
  gap: 50px;
}

.label {
  font-size: 12px;
  opacity: 0.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #111;
  color: #aaa;
  padding: 30px;
  text-align: center;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  inline-size: 55px;
  block-size: 55px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-right {
  display: none;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  inline-size: 22px;
  block-size: 2px;
  background: white;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  inset-block-start: 0;
  inset-inline-end: -100%;
  inline-size: 80%;
  block-size: 100vh;
  background: #000;
  padding: 100px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: inset-inline-end 0.4s ease;
  z-index: 999;
}

.mobile-menu.active {
  inset-inline-end: 0;
}

.mobile-menu a {
  color: white;
  font-size: 22px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav,
  .desktop-btn {
    display: none;
  }
  .mobile-right {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 90px;
  }

  .cards,
  .exp-grid,
  .cta-box,
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .room-img img {
    block-size: 250px;
  }

  .contact-grid {
    flex-direction: column;
  }

  .huge-text {
    font-size: 50px;
  }

  /* Improvement: Ensure no horizontal scroll on mobile */
  body, .container {
    max-width: 100%;
    overflow-x: hidden;
  }
}