/* ============================================
   Mambrui Beach Resort & Essylang Realty
   Stylesheet
   ============================================ */

:root {
  --orange: #f4a261;
  --orange-dark: #e76f51;
  --navy: #2c3e50;
  --green: #2e7d32;
  --green-light: #4caf50;
  --whatsapp: #25d366;
  --text: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --radius: 15px;
  --radius-sm: 10px;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
}

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

a { color: inherit; }

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

section { padding: 4rem 0; }

section h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 2.3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.15rem;
}

/* ---------- Photo placeholder blocks ----------
   Drop a real photo in /images with the filename shown in the
   comment above each block, and it will replace the color block
   automatically once the file exists. */
.photo {
  background-color: #dfe7ec;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7c88;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  min-height: 200px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { font-size: 1.4rem; font-weight: 700; color: var(--orange); }
.nav-menu {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-link { font-weight: 500; text-decoration: none; color: var(--text); transition: color .3s; font-size: 0.95rem; }
.nav-link:hover { color: var(--orange); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle .bar { width: 25px; height: 3px; background: var(--text); }

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    background: #fff;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
    transition: left .3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
  }
  .nav-menu.active { left: 0; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    linear-gradient(135deg, #1a6478, #2c3e50);
}
.hero-content { max-width: 800px; padding: 2rem; z-index: 2; }
.hero h1 { font-size: 3.2rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); margin-bottom: 1.5rem; }
.hero-highlights { font-size: 0.95rem; opacity: 0.9; margin: 1rem 0 2rem; }
.hero-cta-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Buttons ---------- */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  cursor: pointer;
  text-decoration: none;
  transition: all .3s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(244,162,97,0.4); }
.cta-secondary { background: transparent; border: 2px solid #fff; color: #fff; }
.cta-secondary:hover { background: #fff; color: var(--text); }
.cta-info { background: linear-gradient(135deg, #7b1fa2, #9c27b0); }
.cta-whatsapp { background: linear-gradient(135deg, var(--whatsapp), #128c7e); }

/* ---------- About ---------- */
.about { background: var(--bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.about-card:hover { transform: translateY(-8px); }
.about-card h3 { color: var(--orange); margin: 1rem 0; }
.about-card .photo { height: 160px; margin-bottom: 1rem; }

/* ---------- Cards grid (tours / accommodations / apartments) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform .3s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); }
.card .photo { height: 200px; border-radius: 0; }
.card .card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card h3 { color: var(--navy); margin: 0; }
.card .price { color: var(--orange); font-weight: 700; font-size: 1.2rem; margin: 0; }
.card p { color: var(--text-light); margin: 0; }
.card ul { color: var(--text-light); margin: 0; padding-left: 1.1rem; }
.card .cta-button, .card a.card-btn {
  margin-top: auto;
  text-align: center;
  width: 100%;
  border-radius: 10px;
}
.card.featured { border: 3px solid var(--orange); position: relative; }
.card.featured::before {
  content: '⭐ POPULAR';
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--orange);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* section background variants */
.section-tint { background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%); }
.section-light { background: var(--bg-light); }

/* ---------- Flyer sections (Oceanfront / Ensuite) ---------- */
.flyer-image-wrap { text-align: center; margin: 2rem 0; }
.flyer-image-wrap img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.info-box {
  background: rgba(244,162,97,0.1);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  text-align: center;
}
.info-box.green { background: rgba(46,125,50,0.1); }
.info-box p { margin: 0.4rem 0; }

/* ---------- Baraka homes ---------- */
.baraka { background: linear-gradient(135deg, #fff9f0 0%, #ffe6cc 100%); }
.baraka-hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}
.baraka-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.baraka-image-grid .photo { height: 140px; }
.baraka-description {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.baraka-description h3 { color: var(--orange); margin-top: 0; }
.baraka-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.baraka-feature-item {
  background: var(--bg-light);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}
.baraka-feature-item h4 { margin: 0 0 0.4rem; color: var(--navy); }
.baraka-feature-item p { margin: 0; color: var(--text-light); font-size: 0.92rem; }
.baraka-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.baraka-detail-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.baraka-detail-card h3 { border-bottom: 2px solid var(--orange); padding-bottom: 0.5rem; color: var(--navy); }
.baraka-detail-card ul { list-style: none; padding: 0; }
.baraka-detail-card ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: var(--text-light); }
.baraka-detail-card ul li::before { content: '✓'; color: var(--green-light); font-weight: 700; position: absolute; left: 0; }
.price-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); border-radius: 8px; padding: 1rem; margin-bottom: 0.6rem; }
.price-amount { color: var(--orange); font-weight: 700; }
.baraka-video-section { background: #fff; border-radius: var(--radius); padding: 3rem 2rem; margin: 4rem 0; box-shadow: var(--shadow); text-align: center; }
.baraka-video-section video, .baraka-video-section .video-placeholder {
  width: 100%; max-width: 900px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.video-placeholder { height: 400px; background: #dfe7ec; display: flex; align-items: center; justify-content: center; color: #6b7c88; margin: 0 auto; }
.baraka-cta { text-align: center; background: #fff; border-radius: var(--radius); padding: 3rem; margin: 3rem 0; box-shadow: var(--shadow-lg); }
.baraka-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

@media (max-width: 800px) {
  .baraka-hero-content { grid-template-columns: 1fr; }
}

/* ---------- Culture / sustainability ---------- */
.culture { background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%); }
.sustainability { background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.info-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; }
.culture .info-card h3 { color: var(--orange); }
.sustainability .info-card h3 { color: var(--green); }
.info-card ul { color: var(--text-light); padding-left: 1.1rem; }
.highlight-tags { color: var(--text-light); margin-top: 1rem; font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery { background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.gallery-grid .photo { height: 180px; }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(135deg, #e1bee7 0%, #f3e5f5 100%); }
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.testimonial-card p { font-style: italic; color: var(--text-light); }
.testimonial-card h4 { color: var(--orange); margin-bottom: 0.2rem; }
.testimonial-card span { color: #999; font-size: 0.85rem; }

/* ---------- Booking ---------- */
.booking { background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%); }
.booking-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.booking-feature { background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.booking-feature h3 { color: var(--orange); }
.booking-cta { text-align: center; background: #fff; border-radius: var(--radius); padding: 2rem; margin: 3rem 0; box-shadow: var(--shadow); }
.booking-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.contact-item { background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 2rem; backdrop-filter: blur(10px); }
.contact-item h3 { color: var(--orange); margin-top: 0; }
.contact-item p { color: #f0f0f0; }
.contact-item a { color: var(--green-light); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #1a1a1a; color: #fff; padding: 3rem 0 1.5rem; }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h3, .footer-section h4 { color: var(--orange); margin-bottom: 1rem; }
.footer-section p { color: #ccc; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #ccc; text-decoration: none; }
.footer-section ul li a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: #999;
  font-size: 0.9rem;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  section h2 { font-size: 1.8rem; }
  .container { padding: 0 1.2rem; }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy); /* fallback color while video loads */
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}