/* CSS Reset and Global Styles */
:root {
  --color-primary: #cda45e; /* Gold accent */
  --color-dark: #0d2f3f; /* Deep Ocean Blue */
  --color-light: #ffffff; /* Clean white */
  --color-bg-alt: #f9f7f4; /* Sandy Off-white */
  --color-text-body: #4a636e; /* Muted Teal/Blue */

  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;

  --container-width: 1200px;
  --section-padding: 6rem 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-light);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- FIX: Prevent text selection on UI elements --- */
.nav__logo,
h1,
h2,
h3,
.btn,
.nav__link {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-light);
  border-color: var(--color-light);
}

.btn-outline:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: padding 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-dark);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-weight: 700;
  color: var(--color-text-body);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__toggle {
  display: none; /* For mobile */
  font-size: 1.8rem; /* Made icon slightly larger */
  cursor: pointer;
  color: var(--color-dark);
  z-index: 1001;
  transition: all 0.2s ease-in-out;
  line-height: 1; /* Helps with vertical alignment */
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_800,f_auto,q_auto/HeroResort_b1sxoi.jpg') no-repeat center center/cover;
}

@media (min-width: 768px) {
  .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_1200,f_auto,q_auto/HeroResort_b1sxoi.jpg') no-repeat center center/cover;
  }
}

/* For Laptops and Desktops */
@media (min-width: 1200px) {
  .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_1200,f_auto,q_auto/HeroResort_b1sxoi.jpg') no-repeat center center/cover;
  }
}

/* For High-Resolution Desktops */
@media (min-width: 1920px) {
  .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_2560,f_auto,q_auto/HeroResort_b1sxoi.jpg') no-repeat center center/cover;
  }
}

.hero__content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--color-light);
  margin-bottom: 1rem;
}

.hero__content .subtitle {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Introduction Section */
.intro {
  background-color: var(--color-bg-alt);
}

/* Rooms & Suites Section */
.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--color-light);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card__image {
  height: 250px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__content {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Pricing Section */
.pricing-card {
  background: var(--color-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card--recommended {
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(205, 164, 94, 0.3);
  position: relative;
  z-index: 1;
}

.pricing-card--recommended:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card__plan {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.pricing-card__price {
  margin-bottom: 2rem;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--color-text-body);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2.5rem;
  text-align: left;
  padding-left: 1rem;
  flex-grow: 1;
}

.pricing-card__features li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
}

.pricing-card__features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Full-width CTA Section (Spa) */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_800,f_auto,q_auto/SanctuaryBackground_aafjhk.jpg') no-repeat center center/cover;
  color: var(--color-light);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_1200,f_auto,q_auto/SanctuaryBackground_aafjhk.jpg') no-repeat center center/cover;
  }
}

/* For Laptops and Desktops */
@media (min-width: 1200px) {
  .cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_1920,f_auto,q_auto/SanctuaryBackground_aafjhk.jpg') no-repeat center center/cover;
  }
}

/* For High-Resolution Desktops */
@media (min-width: 1920px) {
  .cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
     url('https://res.cloudinary.com/doqstezie/image/upload/w_2560,f_auto,q_auto/SanctuaryBackground_aafjhk.jpg') no-repeat center center/cover;
  }
}

.cta-section .section-title,
.cta-section h3 {
  color: var(--color-light);
}

.cta-section__content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section__content p {
  margin-bottom: 2rem;
}

.cta-section .brand-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
}

/* Testimonial Section */
.testimonial {
  background-color: var(--color-bg-alt);
}

.testimonial__content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.testimonial__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
}

.testimonial__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial__author {
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-container {
  position: relative;
}

.about__image {
  border-radius: 5px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about__subtitle {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: block;
}

.about__list {
  list-style: none;
  margin-top: 1.5rem;
}

.about__list-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.about__list-item::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Gallery Section */
.gallery {
  background-color: var(--color-bg-alt);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 1rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: 5px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__item--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery__item--2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.gallery__item--3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}
.gallery__item--4 {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 5rem 0 2rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer__widget h4 {
  color: var(--color-light);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer__widget p {
  color: rgba(255, 255, 255, 0.7);
}

.footer__widget ul li {
  margin-bottom: 0.5rem;
}

.footer__widget a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer__widget a:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  font-size: 1.2rem;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-3-cols,
  .footer__grid,
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__grid {
    grid-template-columns: 1fr;
  }

  /* --- FIX: Hamburger Menu Functionality --- */
  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    gap: 0; /* Reset gap for vertical layout */
  }

  .nav__list--active {
    display: flex;
  }

  .nav__list li {
    padding: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav__toggle {
    display: block;
  }
  /* --- END FIX --- */

  .gallery__item--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .gallery__item--4 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .gallery__item--2 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .gallery__item--3 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
  .gallery__grid {
    grid-template-rows: repeat(3, 250px);
  }
}

@media (max-width: 768px) {
  .hero__content h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .grid-3-cols,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  /* --- FIX: Reduce button size on mobile --- */
  .nav .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 250px);
  }
  .gallery__item {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Booking Page Specific Styles */
.booking-form-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background-color: var(--color-bg-alt);
}

.booking-form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-light);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-body);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(205, 164, 94, 0.2);
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}
