/* =======================
   GLOBAL & BASE STYLES
======================= */
:root {
  --primary-color: #A27B5C; /* Warm brown/tan */
  --secondary-color: #DCD7C9; /* Light soft background */
  --dark-color: #3F4E4F; /* Dark text/accents */
  --light-color: #f8f8f8; /* Light backgrounds */
  --text-color: #333;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Open Sans', sans-serif;
  --border-radius: 10px;
  --transition-speed: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

ul { list-style: none; }
a { text-decoration: none; color: var(--dark-color); }
img { max-width: 100%; height: auto; display: block; }

/* =======================
   TYPOGRAPHY
======================= */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.text-center { text-align: center; }
.py-5 { padding: 5rem 0; }

/* =======================
   BUTTONS
======================= */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-speed);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  transition: all var(--transition-speed);
}
.btn-small:hover {
  background-color: var(--dark-color);
  transform: scale(1.05);
}

/* =======================
   HEADER & NAV
======================= */
.main-header {
  background-color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  font-family: var(--heading-font);
  transition: transform var(--transition-speed);
}
.logo:hover { transform: scale(1.1); }

.main-nav ul {
  display: flex;
  gap: 25px;
}
.main-nav ul li a {
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  transition: color var(--transition-speed);
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}
.main-nav ul li a:hover::after { width: 100%; }
.main-nav ul li a.btn { color: #fff; padding: 8px 20px; font-size: 0.95rem; }
.main-nav ul li a.btn:hover::after { width: 0; }

.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* =======================
   HERO SECTION
======================= */
.hero {
  height: 85vh;
  background: url('../images/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
}
.hero-content {
  z-index: 1;
  max-width: 800px;
  animation: fadeIn 1.5s ease forwards;
}
.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 0.8rem;
  color: #fff;
  animation: fadeUp 1.2s ease forwards;
}
.hero-content h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
  animation: fadeUp 1.4s ease forwards;
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  animation: fadeUp 1.6s ease forwards;
}

/* =======================
   ROOMS
======================= */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}
.room-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInScale 1s ease forwards;
  cursor: pointer;
}
.room-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.room-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.room-info {
  padding: 20px;
  text-align: center;
}
.room-info h3 {
  font-size: 1.6rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}
.room-info p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}
.room-info .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* =======================
   MODAL PREVIEW
======================= */
#imageModal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

#imageModal img {
  max-width: 90%;
  max-height: 70%;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.4s ease;
}

.modalCaption {
  color: #fff;
  text-align: center;
  margin-top: 20px;
  animation: fadeUp 0.5s ease;
}
.modalCaption h3 { font-size: 2rem; margin-bottom: 10px; }
.modalCaption p { font-size: 1rem; color: #ddd; }

.closeModal {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.closeModal:hover {
  transform: scale(1.2);
  color: var(--primary-color);
}

/* Modal navigation arrows */
.modalPrev,
.modalNext {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  user-select: none;
  transform: translateY(-50%);
  transition: background 0.3s ease, transform 0.2s ease;
}

.modalPrev { left: 30px; }
.modalNext { right: 30px; }

.modalPrev:hover,
.modalNext:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

/* =======================
   CONTACT + ABOUT
======================= */
/* =======================
   IMPROVED ABOUT SECTION
======================= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Better proportional width */
  align-items: center;
  gap: 50px;
  margin-top: 3rem;
  padding: 2rem;
}

.about-content img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.about-content div {
  text-align: left;
}

.about-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* Make About section center-aligned on mobile */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem;
  }
  .about-content img {
    margin: 0 auto;
  }
  .about-content div {
    text-align: center;
  }
}

/* =======================
   IMPROVED CONTACT SECTION
======================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* Info smaller, form bigger */
  gap: 40px;
  margin-top: 3rem;
  align-items: stretch;
}

.contact-info,
.contact-form-container {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-info h3,
.contact-form-container h3 {
  margin-bottom: 1.2rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.contact-info .social-links {
  margin-top: 1rem;
}

.contact-info .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 1.1rem;
  transition: background var(--transition-speed);
}

.contact-info .social-links a:hover {
  background: var(--dark-color);
}

/* Contact form styling */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
}

/* Stack contact section on smaller screens */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info,
  .contact-form-container {
    text-align: center;
  }
  .contact-info .social-links a {
    margin: 5px;
  }
}

/* =======================
   FOOTER
======================= */
.main-footer {
  background-color: var(--dark-color);
  color: var(--secondary-color);
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn 1.6s ease forwards;
}

/* =======================
   BACK TO TOP BUTTON
======================= */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  z-index: 1000;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--dark-color);
  transform: scale(1.1);
}

/* =======================
   ANIMATIONS
======================= */
@keyframes fadeIn { 0%{opacity:0;} 100%{opacity:1;} }
@keyframes fadeUp { 0%{opacity:0; transform:translateY(40px);} 100%{opacity:1; transform:translateY(0);} }
@keyframes fadeInScale { 0%{opacity:0; transform:scale(0.95);} 100%{opacity:1; transform:scale(1);} }
@keyframes slideDown { 0%{transform:translateY(-100%);} 100%{transform:translateY(0);} }

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 992px) {
  .main-nav ul { gap: 15px; }
  .hero-content h2 { font-size: 3rem; }
  .hero-content p { font-size: 1.2rem; }
  .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; width: 100%; position: absolute; top: 60px; left: 0; background: #fff; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
  .main-nav.active { display: flex; }
  .main-nav ul { flex-direction: column; align-items: center; width: 100%; }
  .main-nav ul li { margin: 10px 0; width: 100%; text-align: center; }
  .hamburger-menu { display: block; }
  .hero { height: 60vh; }
  .hero-content h2 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }
  .room-grid { grid-template-columns: 1fr; }
  .about-content { flex-direction: column; text-align: center; }
  .about-content img { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .modalPrev, .modalNext { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.5rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content h2 { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .modalPrev, .modalNext { font-size: 2rem; }
}

/* =======================
   GALLERY SECTION
======================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 2rem;
}

.gallery-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-card:hover img {
  transform: scale(1.05);
}
/* Logo + Header */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo {
  height: 50px; /* adjust size */
  width: auto;
}
.logo-text {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: #20b558;
}
