/* ============================================
   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;
}
/* ---------- Online payments (Paystack) ---------- */
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.card .card-actions .cta-button { margin-top: 0; }
.cta-button.wa-secondary {
  background: #fff;
  color: #128c7e;
  border: 2px solid var(--whatsapp);
  padding: calc(1rem - 2px) 2rem;
}
.cta-button.wa-secondary:hover { background: var(--whatsapp); color: #fff; }
button.cta-button { font-family: inherit; }

.pay-modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: none;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.pay-modal::backdrop { background: rgba(20,30,40,0.6); }
.pay-modal h3 { margin: 0 2rem 0.2rem 0; color: var(--navy); font-size: 1.4rem; }
.pay-rate { margin: 0 0 1.25rem; color: var(--orange-dark); font-weight: 700; }
.pay-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2.25rem; height: 2.25rem;
  border: none; border-radius: 50%;
  background: var(--bg-light); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.pay-close:hover { background: #e9ecef; }
.pay-modal form { display: flex; flex-direction: column; gap: 0.9rem; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.pay-modal label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.pay-modal input, .pay-modal textarea {
  font: inherit; font-weight: 400;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #d5dbe0; border-radius: 8px;
  color: var(--text); background: #fff;
  width: 100%;
}
.pay-modal input:focus, .pay-modal textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,162,97,0.25); }
.pay-total { white-space: pre-line; line-height: 1.7; margin: 0.25rem 0 0; padding: 0.9rem 1rem; background: var(--bg-light); border-radius: 8px; font-weight: 700; color: var(--navy); }
.pay-submit { width: 100%; border-radius: 10px; }
.pay-submit:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.pay-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--orange-dark); text-align: center; }
.pay-secure { margin: 0; font-size: 0.8rem; color: var(--text-light); text-align: center; }
.pay-done { text-align: center; }
.pay-done-icon { font-size: 3rem; }
.pay-done p { color: var(--text-light); }

@media (max-width: 520px) {
  .pay-modal { padding: 1.5rem 1.1rem; }
  .pay-row { grid-template-columns: 1fr; }
}

/* ---------- Multi-page layout ---------- */
.nav-logo { text-decoration: none; }
.nav-menu { gap: 1.1rem; }
.nav-link.active { color: var(--orange); font-weight: 700; }
.container.narrow { max-width: 760px; }

.page-hero {
  padding: 8rem 0 3.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1a6478, var(--navy));
}
.page-hero h1 { margin: 0 0 0.75rem; font-size: 2.6rem; }
.page-hero p { margin: 0 auto; max-width: 720px; font-size: 1.15rem; opacity: 0.95; }
.page-hero.green-hero { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
@media (max-width: 600px) { .page-hero h1 { font-size: 1.9rem; } }

.nav-card { text-decoration: none; color: inherit; }
.nav-card img { width: 100%; height: 200px; object-fit: cover; }
.nav-card .more { color: var(--orange-dark); font-weight: 700; margin-top: auto; }

.home-cta { background: var(--navy); color: #fff; text-align: center; }
.home-cta h2 { color: #fff; }
.home-cta .cta-button { margin: 0.4rem; }

/* ---------- Forms ---------- */
.site-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.site-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.site-form input, .site-form select, .site-form textarea {
  font: inherit; font-weight: 400; padding: 0.7rem 0.85rem;
  border: 1.5px solid #d5dbe0; border-radius: 8px; background: #fff; color: var(--text); width: 100%;
}
.site-form input:focus, .site-form select:focus, .site-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,162,97,0.25);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.site-form .consent { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: var(--text-light); }
.site-form .consent input { width: auto; margin-top: 0.25rem; }
.site-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-form button { width: 100%; border-radius: 10px; font-family: inherit; }
.site-form button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; min-height: 1.2em; text-align: center; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--orange-dark); }
.form-alt { text-align: center; margin-top: 1rem; color: var(--text-light); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .site-form { padding: 1.4rem 1.1rem; } }

/* ---------- Green page ---------- */
.law-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.law-table th, .law-table td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #eceff1; font-size: 0.95rem; }
.law-table th { width: 38%; color: var(--green); }
.law-table td { color: var(--text-light); }
.fineprint { font-size: 0.85rem; color: var(--text-light); margin-top: 1rem; }
@media (max-width: 600px) { .law-table th, .law-table td { display: block; width: 100%; } .law-table th { border-bottom: 0; padding-bottom: 0; } }
.legal-text h2 { text-align: left; font-size: 1.4rem; margin-top: 2rem; }
.legal-text h2:first-child { margin-top: 0; }


/* ===== Essylang Realty additions ===== */
.gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem; margin:2rem 0; }
.gallery figure { margin:0; border-radius:var(--radius-sm); overflow:hidden; box-shadow:var(--shadow); background:#fff; }
.gallery img { width:100%; height:240px; object-fit:cover; }
.gallery figcaption { padding:.6rem .9rem; font-size:.9rem; color:var(--text-light); }
.gallery.wide { grid-template-columns:repeat(auto-fit,minmax(380px,1fr)); }
.gallery.wide img { height:300px; }
.plan-wrap { text-align:center; margin:2rem 0; }
.plan-wrap img { margin:0 auto; border-radius:var(--radius-sm); box-shadow:var(--shadow); background:#fff; max-height:640px; width:auto; }
.stat-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; margin:2rem 0; text-align:center; }
.stat { background:#fff; border-radius:var(--radius-sm); padding:1.2rem; box-shadow:var(--shadow); }
.stat strong { display:block; font-size:1.5rem; color:var(--orange-dark); }
.ext-link::after { content:" \2197"; }
.steps { counter-reset:step; list-style:none; padding:0; display:grid; gap:1rem; }
.steps li { counter-increment:step; background:#fff; border-radius:var(--radius-sm); padding:1rem 1rem 1rem 3.4rem; position:relative; box-shadow:var(--shadow); }
.steps li::before { content:counter(step); position:absolute; left:1rem; top:1rem; width:1.8rem; height:1.8rem; border-radius:50%; background:var(--orange-dark); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
.notice { background:#fff8e1; border-left:4px solid var(--orange); padding:1rem 1.2rem; border-radius:var(--radius-sm); margin:1.5rem 0; font-size:.95rem; }
.brand-bar { background:#1a1a1a; color:#ddd; font-size:.85rem; text-align:center; padding:.4rem 1rem; }
.brand-bar a { color:var(--orange); }
