/* =====================================================
   Four Seasons Waterfront Villas - Main Stylesheet
   ===================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: #1a2e3b;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #2a7a9e;
  margin: 14px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.btn-primary {
  background: #2a7a9e;
  color: #fff;
  border: 2px solid #2a7a9e;
}
.btn-primary:hover { background: #1f6080; border-color: #1f6080; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: #2a7a9e; }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  padding: 18px 0;
}
#site-header.scrolled {
  background: #1a2e3b;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 10px 0;
}

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

.site-logo img {
  height: 64px;
  width: auto;
  transition: height 0.3s;
}
#site-header.scrolled .site-logo img { height: 50px; }

/* Desktop Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover, .main-nav a.active { color: #7ecae0; }

.btn-book {
  background: #2a7a9e;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
}
.btn-book:hover { background: #1f6080 !important; color: #fff !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}
.hero-content .tagline {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-content .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}
.rating-badge strong { font-size: 1.3rem; color: #ffd700; }

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.dot.active { background: #fff; }

/* Scroll arrow */
.scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.8);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   INFO BAR
   ===================================================== */
.info-bar {
  background: #1a2e3b;
  color: #cde8f5;
  padding: 14px 0;
  font-size: 0.9rem;
}
.info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-item i { color: #7ecae0; }

/* =====================================================
   INTRO SECTION
   ===================================================== */
.intro-section {
  padding: 80px 0;
  background: #fff;
}
.intro-section p {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
  color: #555;
}

/* =====================================================
   FEATURE CARDS (3-up)
   ===================================================== */
.feature-cards {
  padding: 60px 0;
  background: #f2f8fc;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 24px;
}
.card-body h3 { margin-bottom: 10px; color: #2a7a9e; }
.card-body p { color: #666; font-size: 0.95rem; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  padding: 80px 0;
  background: #1a2e3b;
  color: #fff;
}
.testimonials .section-title { color: #fff; }
.testimonials .section-title::after { background: #7ecae0; }

.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}
.testimonial-item {
  min-width: 100%;
  padding: 0 40px;
  text-align: center;
}
.testimonial-item blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  color: #cde8f5;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-author {
  font-weight: 600;
  color: #7ecae0;
  font-size: 0.95rem;
}
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.t-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-btn:hover { background: rgba(255,255,255,0.3); }

/* =====================================================
   WELCOME / HOSTS SECTION
   ===================================================== */
.welcome-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}
.welcome-section p {
  max-width: 680px;
  margin: 0 auto 20px;
  color: #555;
  font-size: 1.05rem;
}

/* =====================================================
   BENEFITS GRID (6-up)
   ===================================================== */
.benefits {
  padding: 80px 0;
  background: #f2f8fc;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-item {
  background: #fff;
  padding: 32px 24px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.benefit-item:hover { transform: translateY(-4px); }
.benefit-icon {
  font-size: 2.2rem;
  color: #2a7a9e;
  margin-bottom: 14px;
}
.benefit-item h3 { margin-bottom: 10px; font-size: 1.1rem; }
.benefit-item p { color: #666; font-size: 0.92rem; }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-section {
  padding: 80px 0;
  background: #fff;
}
.gallery-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  color: #555;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:first-child img { height: 380px; }
.gallery-item:hover img { transform: scale(1.05); }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #0f1e27;
  color: #9ab4c0;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img {
  height: 70px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #7a9dac;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: #7a9dac;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #7ecae0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #7a9dac;
}
.footer-contact i { color: #7ecae0; margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid #1e3545;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #567384;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #7ecae0; }
.footer-bottom a:hover { text-decoration: underline; }

/* =====================================================
   AOS-LIKE ANIMATIONS
   ===================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 0;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero-content h1 { color: #fff; font-size: 2.8rem; }
.page-hero-content p { font-size: 1.1rem; margin-top: 10px; opacity: 0.9; }

/* =====================================================
   VILLAS PAGE
   ===================================================== */
.villa-intro { padding: 80px 0; background: #fff; text-align: center; }
.villa-intro p { max-width: 680px; margin: 0 auto 12px; color: #555; }

.villa-details { font-size: 1rem; color: #2a7a9e; font-weight: 600; margin-bottom: 20px; }

.amenities-section {
  padding: 80px 0;
  background: #f2f8fc;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.amenity-item {
  background: #fff;
  padding: 28px 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.amenity-icon {
  font-size: 2rem;
  color: #2a7a9e;
  margin-bottom: 12px;
}
.amenity-item h4 { margin-bottom: 8px; font-size: 1rem; }
.amenity-item p { color: #666; font-size: 0.88rem; }

/* Villas slider section */
.villa-slider-section { padding: 80px 0; background: #fff; }
.villa-slider { position: relative; overflow: hidden; border-radius: 8px; }
.villa-slide {
  display: none;
  text-align: center;
}
.villa-slide.active { display: block; }
.villa-slide img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 8px; }
.villa-slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.vs-btn {
  background: #2a7a9e;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-btn:hover { background: #1f6080; }
.vs-counter { font-size: 0.95rem; color: #666; }

/* =====================================================
   NEARBY PAGE
   ===================================================== */
.nearby-intro { padding: 80px 0; background: #fff; text-align: center; }
.nearby-intro p { max-width: 680px; margin: 0 auto 12px; color: #555; }

.attractions-section { padding: 60px 0; }
.attractions-section:nth-child(even) { background: #f2f8fc; }

.attraction-category {
  margin-bottom: 60px;
}
.attraction-category h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.7rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e0eef5;
}
.attraction-category h2 i { color: #2a7a9e; }

.attraction-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.attraction-card {
  background: #fff;
  border-radius: 6px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-left: 4px solid #2a7a9e;
  transition: transform 0.3s;
}
.attraction-card:hover { transform: translateY(-4px); }
.attraction-card h4 { color: #1a2e3b; margin-bottom: 6px; }
.attraction-card a {
  color: #2a7a9e;
  font-size: 0.85rem;
  font-weight: 600;
}
.attraction-card a:hover { text-decoration: underline; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section {
  padding: 80px 0;
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: #555; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-detail i { color: #2a7a9e; font-size: 1.2rem; margin-top: 2px; }
.contact-detail strong { display: block; color: #1a2e3b; margin-bottom: 2px; }
.contact-detail span, .contact-detail a { color: #555; font-size: 0.95rem; }
.contact-detail a:hover { color: #2a7a9e; }

.contact-form h2 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0dce5;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #f9fbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: #2a7a9e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42,122,158,0.12);
}
textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: #2a7a9e;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}
.btn-submit:hover { background: #1f6080; }

.map-section { padding: 0 0 80px; }
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 6px;
}

/* Success message */
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 0.95rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .cards-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content .tagline { font-size: 1rem; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #1a2e3b;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 20px; text-align: center; }
  .main-nav a { font-size: 1.1rem; padding: 10px 20px; }
  .nav-toggle { display: flex; z-index: 1001; }

  .cards-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-bar-inner { gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .attraction-list { grid-template-columns: 1fr; }
  .page-hero { height: 300px; }
  .page-hero-content h1 { font-size: 2rem; }
}
