/* ============================
   Reset & Base
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden; /* ✅ prevent sideways scroll */
}

body {
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* ============================
   Header
   ============================ */
.site-header {
  background: #0d1b2a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 45px;
  width: auto;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: 0.3s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: #ffb703;
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.btn-quote {
  background: #ffb703;
  color: #0d1b2a;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-quote:hover {
  background: #fb8500;
  color: #fff;
}

/* ============================
   Content Base
   ============================ */
.content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  word-wrap: break-word;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #0d1b2a;
}

.content p {
  margin-bottom: 15px;
}

ul, ol {
  margin: 10px 0 20px 20px;
}

/* Global images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Section images (desktop control) */
.about-section img,
.service-section img,
.project-section img,
.contact-section img {
  max-width: 500px;
  margin: 20px auto;
}

/* ============================
   Sections (Desktop)
   ============================ */
.about-section,
.service-section,
.project-section,
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 60px 0;
}

.about-text,
.service-text,
.project-text,
.contact-details,
.contact-form {
  flex: 1;
  padding: 10px;
}

.service-section.reverse,
.project-section.reverse {
  flex-direction: row-reverse;
}

/* ============================
   Contact Form
   ============================ */
.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.contact-form button {
  margin-top: 10px;
}

/* ============================
   CTA
   ============================ */
.cta {
  background: #0d1b2a;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 8px;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  margin-bottom: 20px;
}

/* ============================
   Footer
   ============================ */
footer {
  background: #0d1b2a;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  margin-top: 40px;
}

.footer-links a {
  color: #ffb703;
  text-decoration: none;
  margin: 0 8px;
}

.footer-links a:hover {
  color: #fff;
}

/* ============================
   Sticky Call Button
   ============================ */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,183,3, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 15px rgba(255,183,3, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,183,3, 0.7); }
}

.call-now-btn {
  display: block;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #ffb703;
  color: #0d1b2a;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.call-now-btn:hover {
  background: #fb8500;
  color: #fff;
  animation: none;
  transform: scale(1.05);
}

/* ============================
   Responsive Fixes
   ============================ */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .hero img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0d1b2a;
    padding: 10px 0;
  }

  .nav-links a {
    display: block;
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero img {
    height: 250px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .logo img {
    height: 36px;
  }

  /* ✅ Stack all sections on mobile */
  .about-section,
  .service-section,
  .project-section,
  .contact-section {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .service-section.reverse,
  .project-section.reverse {
    flex-direction: column !important;
  }

  .about-text,
  .service-text,
  .project-text,
  .contact-details,
  .contact-form {
    width: 100%;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .about-section img,
  .service-section img,
  .project-section img,
  .contact-section img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero img {
    height: 180px;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .service-section img,
  .project-section img,
  .about-section img {
    max-height: 220px;
  }

  .call-now-btn {
    bottom: 15px;
    right: 15px;
  }
}
