/* Reset & base */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; line-height:1.6; color:#333; }

/* Containers */
.container { width:90%; max-width:1200px; margin:0 auto; }

/* Header */
.site-header { background:#fff; border-bottom:1px solid #e0e0e0; }
.site-header .container { display:flex; align-items:center; justify-content:space-between; padding:1rem 0; }
.logo { font-size:1.5rem; font-weight:bold; }
.nav-list { list-style:none; display:flex; gap:1rem; }
.nav-list a { text-decoration:none; color:#333; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
}

.hero img {
  width: 100%;
  display: block;
  filter: brightness(70%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #34abeb;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #2a8bc7;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for the button */
@media (max-width: 768px) {
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    width: 90%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
  }
}

/* Listings Grid */
.listings {
  padding: 4rem 0;
}

.listings h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.listings .grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 1rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  color: #333;
  text-align: center;
  padding: 0.5rem 0;
}

.card p { margin:0 0.75rem 0.75rem; color:#555; }

/* About & Contact */
.about, .contact { padding:2rem 0; }
.contact-form { display:flex; flex-direction:column; gap:1rem; }
.contact-form label { display:flex; flex-direction:column; font-weight:bold; }
.contact-form input, .contact-form textarea { padding:0.5rem; border:1px solid #ccc; border-radius:4px; }
.contact-form button { width:fit-content; }

/* Booking Modal and FAB Styles */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 160px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  border: none;
  font-size: 1rem;
  transition: transform 0.2s;
}

.fab:hover {
  transform: scale(1.05);
}

.booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.booking-modal.active {
  display: flex;
}

.booking-form {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.booking-form h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #34abeb;
  box-shadow: 0 0 0 2px rgba(52,171,235,0.2);
}

.form-group input.error,
.form-group select.error {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.form-group input.error:focus,
.form-group select.error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-group input:disabled,
.form-group select:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.7;
}

.booking-form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background-color: #34abeb;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.booking-form button[type="submit"]:hover {
  background-color: #2a8bc7;
}

.booking-form button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  background-color: rgba(220, 53, 69, 0.1);
}

.form-group .error-message {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.75rem;
}

/* Footer */
.site-footer { text-align:center; padding:1rem 0; background:#f8f8f8; margin-top:2rem; }

/* Footer Flex Layout for Facebook Icon and Copyright */
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.footer-facebook-link {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.footer-facebook-link svg {
  width: 28px;
  height: 28px;
  fill: #1877f3;
}
.footer-copyright {
  margin: 0;
  color: #333;
  font-size: 0.9rem;
}
.sr-only {
  position: fixed;
  right: 2rem;
  bottom: 6rem;
  background: #1877f3;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.1rem;
  font-size: 3rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1200;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-align: center;
}

/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
  left: 1rem;
}

.carousel-control.next {
  right: 1rem;
}

/* Cities Grid */
.cities {
  overflow: hidden;
}

.cities h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.cities-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.cities-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.cities-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cities-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.cities-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.cities-grid {
  display: inline-flex;
  gap: 2rem;
  padding: 0 1rem;
  min-width: min-content;
}

.cities .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.city-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.city-card:hover {
  transform: translateY(-5px);
}

.city-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.city-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.city-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
}

/* Project Gallery */
.project-gallery {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem;
  z-index: 10;
  overflow-y: auto;
}

.card:hover .project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

.card {
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover img:first-child {
  opacity: 0;
}

.card h3 {
  position: relative;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  margin: 0;
  text-align: center;
}

/* Zoom Modal Styles */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.zoom-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.zoom-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item {
  cursor: pointer;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 160px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  border: none;
  font-size: 1rem;
  transition: transform 0.2s;
}

.fab:hover {
  transform: scale(1.05);
}

/* Booking Form Modal */
.booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.booking-modal.active {
  display: flex;
}

.booking-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.booking-form h2 {
  margin-bottom: 1.5rem;
}

.booking-form .form-group {
  margin-bottom: 1rem;
}

.booking-form label {
  display: block;
  margin-bottom: 0.5rem;
}

.booking-form input, .booking-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.booking-form button {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
}

.booking-form .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form-group input.error {
  border-color: #dc3545;
}

/* Pesapal Container */
#pesapal-button-container {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 20px;
}

#pesapal-button-container h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

#pesapal-button-container iframe {
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.african-diaspora-info {
  background: #f8f8f8;
  padding: 2rem 1rem 1.5rem 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: inherit;
}
.african-diaspora-info h2,
.african-diaspora-info p,
.african-diaspora-info ul,
.african-diaspora-info ol,
.african-diaspora-info li {
  font-family: inherit;
}
.african-diaspora-info ul,
.african-diaspora-info ol {
  margin-bottom: 1.5rem;
  text-align: left;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.african-diaspora-info ul,
.african-diaspora-info ol {
  text-align: left;
}
.african-diaspora-info li {
  text-align: left;
}
.spaced-bold {
  font-weight: bold;
  letter-spacing: 0.2em;
}
.spaced-bold-small {
  font-weight: bold;
  letter-spacing: 0.15em;
}

#pesapal-button-container {
  display: none;
  margin-top: 20px;
}

.commitment-fee-highlight {
  background: #34abeb;
  color: #fff;
  font-weight: bold;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(52,171,235,0.08);
}

.diaspora-heading {
  text-align: center;
}
.diaspora-list {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 700px;
  padding-left: 1.5em;
  list-style-type: disc;
}
.diaspora-list ul {
  list-style-type: circle;
  margin-left: 1.5em;
}

.diaspora-list-ol {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 700px;
  padding-left: 1.5em;
  list-style-type: decimal;
}
.diaspora-list-ul {
  list-style-type: disc;
  margin-left: 2em;
  padding-left: 0;
}
.diaspora-list-ol > li {
  margin-bottom: 0.75em;
}
.diaspora-list-ul > li {
  margin-bottom: 0.5em;
}

.investment-summary {
  position: relative;
  z-index: 20;
  color: black;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: justify;
  padding: 1.5rem 2rem 1.2rem 2rem;
  border-radius: 12px;
  max-width: 1100px;
  margin: 2rem auto 0 auto;

}

@media (max-width: 768px) {
  .investment-summary {
    font-size: 1rem;
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .investment-summary {
    font-size: 0.95rem;
    padding: 0.7rem 0.3rem 0.5rem 0.3rem;
    border-radius: 6px;
  }
}

/* Carousel Intro Text */
.carousel-intro-text {
  position: relative;
  z-index: 20;
  color: black;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: justify;
  padding: 1.5rem 2rem 1.2rem 2rem;
  border-radius: 12px;
  max-width: 1100px;
  margin: 2rem auto 0 auto;
}

@media (max-width: 768px) {
  .carousel-intro-text {
    font-size: 1rem;
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .carousel-intro-text {
    font-size: 0.95rem;
    padding: 0.7rem 0.3rem 0.5rem 0.3rem;
    border-radius: 6px;
  }
}

.main-width {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.billionaire-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.billionaire-images {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.billionaire-images img {
  width: 100%;
  border-radius: 10px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.investment-summary {
  flex: 1 1 55%;
}
@media (max-width: 900px) and (min-width: 601px) {
  .billionaire-images {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  .billionaire-images img {
    max-height: 200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}
@media (max-width: 900px) {
  .billionaire-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
    .billionaire-images {
        grid-template-columns: 1fr;
    }
    .billionaire-images img {
        height: 200px;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

.billionaire-readmore-container {
  text-align: center;
  margin-top: 1.5rem;
}
.billionaire-readmore-btn {
  display: inline-block;
  min-width: 180px;
  padding: 0.8rem 1.5rem;
  background-color: #34abeb;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.billionaire-readmore-btn:hover {
  background-color: #2a8bc7;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for the 'Read More' button */
@media (max-width: 768px) {
  .billionaire-readmore-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .billionaire-readmore-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    width: 90%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .carousel-section {
    width: 100vw;
    margin-left: -2vw;
    margin-right: -2vw;
  }
  .carousel {
    width: 100vw;
    height: 220px;
    max-width: 100vw;
    border-radius: 0;
  }
  .carousel-inner {
    height: 220px;
  }
  .carousel-item,
  .carousel-item img {
    height: 220px;
    width: 100vw;
    object-fit: contain;
    border-radius: 0;
  }
}

.carousel-section {
  margin-top: 100px;
  /* Ensures carousel appears below the fixed navbar */
}

.float-right-facebook {
  position: fixed;
  right: 2rem;
  bottom: 6rem;
  background: #1877f3;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1200;
  transition: background 0.2s, transform 0.2s;
}
.float-right-facebook:hover, .float-right-facebook:focus {
  background: #145db2;
  transform: translateY(-2px) scale(1.05);
}

/* Floating Facebook Action Button */
#fab-facebook {
  position: fixed;
  /* align with the main FAB on the right */
  right: 2rem;
  /* place above the primary Book Appointment FAB which sits at 2rem */
  bottom: 5.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 6px 12px rgba(0,0,0,0.16);
  z-index: 1300;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#fab-facebook svg { display: block; width: 42px; height: 42px; }

#fab-facebook:focus {
  outline: 3px solid rgba(24,119,242,0.18);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  /* smaller screens: keep the facebook button above the book button with tighter spacing */
  #fab-facebook { right: 0.75rem; bottom: 5.25rem; }
}