/* Global styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #fafbfd;
  color: #222;
  line-height: 1.6;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
header {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  height: 56px;
  transition: transform 0.18s ease;
}

/* Bootstrap navbar tweaks */
.navbar {
  padding-top: 8px;
  padding-bottom: 8px;
}
.navbar .nav-link {
  color: #2b2b2b;
  font-weight: 800;
  margin-inline-start: 10px;
}
.navbar .navbar-toggler { border: none; }
.navbar-light .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav a {
  color: #2b2b2b;
  font-weight: 800;
  transition: color 0.25s, transform 0.25s;
}

nav a:hover {
  color: #0d6efd;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.12));
  border-radius: 12px;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-btn {
  padding: 12px 28px;
  background: linear-gradient(90deg,#ff6b4a,#ff4f6a);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,80,80,0.18);
}

/* Offers */
.offers {
  background: transparent;
  padding: 64px 0;
  text-align: center;
}

.offers h2 {
  margin-bottom: 30px;
  font-weight: 900;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(19,24,32,0.06);
  background: linear-gradient(180deg,#ffffff,#fbfcff);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  background: linear-gradient(180deg,#f6f7fb,#ffffff);
}

.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(19,24,32,0.09); }

/* About */
.about {
  padding: 72px 0;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 900;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(31,41,55,0.06);
}

/* Projects (Wells & Mosques) */
.projects {
  padding: 72px 0;
  background: transparent;
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 900;
}

.section-lead {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.project {
  background: linear-gradient(180deg,#ffffff,#fbfbff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31,41,55,0.04);
  transition: transform 0.24s cubic-bezier(.2,.9,.3,1), box-shadow 0.24s;
  text-align: center;
}

.project img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.4s ease;
  background: linear-gradient(180deg,#f6f7fb,#ffffff);
}

.project h3 {
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(31,41,55,0.08);
}

.project:hover img { transform: scale(1.04); }

/* Footer */
footer {
  background: linear-gradient(180deg,#0b1220,#0f1724);
  color: #e8eef8;
  padding: 48px 0;
}

.footer-content {
  text-align: center;
}

.footer-content h2 {
  margin-bottom: 15px;
  font-weight: 900;
  color: #fff;
}

.footer-content p { color: #dfe7f3; }
.footer-content .contact-list li { color: #dfe7f3; }
.footer-content .text-light { color: #fff !important; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  line-height: 2;
}

.contact-list a {
  color: #ffd48a;
  font-weight: 800;
}

.copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .about-flex {
    flex-direction: column;
  }
  nav ul {
    gap: 10px;
  }
}

/* Floating action buttons */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  direction: ltr;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(14,21,42,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-btn svg { display: block; }

.floating-btn.whatsapp { background: #25D366; }
.floating-btn.phone { background: #007BFF; }

.floating-btn:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

@media (max-width: 480px) {
  .floating-actions { right: 14px; bottom: 18px; }
  .floating-btn { width: 44px; height: 44px; }
}

/* Ensure Bootstrap icon inside button is centered and sized */
.floating-btn .bi {
  font-size: 22px;
  color: #fff;
  line-height: 1;
  display: inline-block;
}

/* small screens tweaks */
@media (max-width: 768px) {
  .container { width: 94%; }
  .hero { min-height: 56vh; }
  .hero h1 { font-size: 1.9rem; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 480px) {
  .floating-actions { right: 12px; bottom: 14px; }
  .floating-btn { width: 46px; height: 46px; }
  .logo { height: 48px; }
}

/* Horizontal carousel behavior for large screens */
@media (min-width: 992px) {
  .cards, .project-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cards > .card, .project-grid > .project {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
    min-width: 220px;
  }

  .cards::-webkit-scrollbar, .project-grid::-webkit-scrollbar { height: 8px; }
  .cards::-webkit-scrollbar-thumb, .project-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 8px; }

  /* Carousel controls */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(10,20,30,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  /* hide controls on small widths */
  @media (max-width: 1199px) {
    .carousel-btn { display: none; }
  }
}