* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
  /*color: #333;
  background-color: #fff;*/
  background-color: #e6f7ff; /* soft light blue, adjust as needed */
  line-height: 1.6;
}

/* Header */
header {
  background: #003366;
  /*color: white;*/
  color: #fff; /* make text readable on dark bg */
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #fff; /* adjust as per your design */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-section img.logo {
  height: 60px;      /* restore normal desktop size */
  width: auto;
  object-fit: contain;
}

/* Company name visible and properly sized */
.logo-section h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #003366;    /* or #fff if your header background is dark */
  white-space: nowrap; /* prevents wrapping in narrow widths */
}

.logo {
  height: 50px;
  margin-right: 10px;
  border-radius: 8px;
}

/* Desktop navigation menu */
/* Target the nav inside .navbar */
.navbar nav ul {
    display: flex !important;          /* make links horizontal */
    flex-direction: row !important;    /* row layout */
    flex-wrap: nowrap !important;      /* do not wrap */
    justify-content: center;           /* center horizontally */
    align-items: center;               /* align vertically */
    gap: 20px;                         /* spacing between links */
    list-style: none;                  /* remove bullets */
    margin: 0;
    padding: 0;
}

.navbar nav ul li {
    display: block;                     /* required for flex children */
}

.navbar nav ul li a {
    display: block;
    text-decoration: none;
    color: #003366;
    font-size: 1rem;
    padding: 6px 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav ul li a:hover {
    color: #00b3ff;
}

/* Social links */
.social-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links li a {
  color: #333;
  font-size: 18px;
}

.social-links li a:hover {
  background-color: #0073e6; /* hover color */
  color: white;
  transform: scale(1.1);
}
		
/* Hero Section */
/* Hero Section (REPLACEMENT) */
.hero-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  background-color: #f7f7f7;
  padding: 20px;
}

/* Slider - keep an explicit aspect ratio / min height so it never collapses */
.slider {
  position: relative;
  flex: 1 1 60%;
  overflow: hidden;
  border-radius: 10px;
  /* ensure slider keeps a visible area even if images load slowly */
  min-height: 260px;
  height: auto;
  background: #000; /* fallback while images load */
}

/* Slides container (stack images on top of each other) */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each image absolutely layered and animated via opacity */
.slides img {
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  z-index: 1;
  pointer-events: none;
}

/* The active slide is visible */
.slides img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* Slider text overlay */
.slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  padding: 12px;
  max-width: 90%;
  z-index: 3; /* above slides */
}

.slider-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.slider-text p {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.slider-text .btn-primary {
  display: inline-block;
  background-color: #ffb400;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.slider-text .phone {
  margin-top: 10px;
  font-size: 1rem;
  color: #fff;
}

/* Consultation column */
.consult-side {
  flex: 1 1 35%;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 260px;
}

/* make form layout unchanged */
.consult-side h2 { color: #003366; margin-bottom: 20px; }
.consult-form { display:flex; flex-direction:column; gap:10px; width:90%; margin:auto; }

.consult-form input, .consult-form button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.consult-form button {
  background: #00b3ff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.consult-form button:hover { background: #007acc; }

/* Make the link look exactly like the button */
a.btn-primary {
    display: inline-block;        /* behave like button */
    background: #00b3ff;          /* default color same as button */
    color: white;                 /* text color */
    border: none;                 /* no border */
    border-radius: 8px;           /* rounded corners */
    padding: 12px;                /* same padding as button */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

/* Hover effect same as button */
a.btn-primary:hover {
    background: #007acc;          /* slightly darker blue on hover */
}

/* Why Choose */
.why-choose {
  padding: 60px 20px;
  background: #f8fbff;
  text-align: center;
}
.why-choose h2 { color: #003366; margin-bottom: 40px; font-size: 2em; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  width: 90%;
  margin: auto;
}
.feature {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-6px); }

/* ===== Footer Section ===== */
footer {
    background-color: #003366;  /* dark blue, adjust as needed */
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer content columns */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;  /* allow wrapping on smaller screens */
    gap: 20px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1 1 200px;  /* grow/shrink, min width 200px */
    min-width: 200px;
}

/* Quick links list */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

/* Footer location row */
.footer-location {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Copyright */
footer .copyright {
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #007acc;
    padding-top: 10px;
}

/* ===== About Page Styling ===== */
.about-content {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  padding: 60px 20px;
  color: #222;
  text-align: center;
}

.about-content .container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #003366;
}

.about-content .highlight {
  color: #00aaff;
}

.about-content .intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 50px;
  color: #333;
}

.about-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}

.about-card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  flex: 1 1 300px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.about-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.about-card h3 {
  color: #003366;
  margin-bottom: 10px;
}

.about-bottom {
  background: #003366;
  color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: left;
}

.about-bottom h3 {
  color: #00b3ff;
  margin-bottom: 15px;
}

.about-bottom ul {
  list-style: disc;
  padding-left: 30px;
}

.about-bottom li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ===============================
   SERVICES SECTION STYLING
   =============================== */
.services-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  padding: 80px 0;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 15px;
}

.services-section .section-intro {
  color: #555;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: stretch;
}

.services-card {
  background: linear-gradient(135deg, #f7f7f7 0%, #eaeaea 100%), 
              url("images/solar_pattern.svg");
  background-repeat: repeat;
  background-size: contain;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.services-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.services-card h3 {
  color: #003366;
  margin-bottom: 10px;
}

.services-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}


.background-style {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.background-style::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* dark transparent layer */
}

.background-style .overlay {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 20px;
}

.background-style h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.background-style p {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 300px;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  background-color: #f9fafb;
  padding: 80px 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contact-info, .contact-form {
  flex: 1 1 45%;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-info h2, .contact-form h3 {
  color: #2a6f37; /* same as “Our Mission” color */
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-info a {
  color: #2a6f37;
  text-decoration: none;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form .btn-primary {
  background-color: #2a6f37;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn-primary:hover {
  background-color: #1f5129;
}

.map-container {
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Projects Section */
.projects-section {
  background-color: #f9fafb;
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #2a6f37;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background-color: #fff;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  background: rgba(42, 111, 55, 0.85);
  color: #fff;
  padding: 15px 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  transition: background 0.3s ease;
}

.project-card:hover .project-info {
  background: rgba(42, 111, 55, 0.95);
}

.project-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* --- Responsive Scaling for Tablets --- */
@media (max-width: 900px) {
  .logo-section img.logo {
    height: 50px;
  }

  .logo-section h1 {
    font-size: 1.2rem;
  }	
  nav ul {
    gap: 10px;         /* reduce space between links */
	font-size: 0.9rem;
  }

  nav ul li a {
    font-size: 0.9rem; /* slightly smaller font */
  }
  
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .slider {
    flex: 1 1 100%;
    min-height: 300px;       /* Ensure visible area */
    aspect-ratio: 16 / 9;    /* Keeps proportional height */
  }

  .slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slider-text {
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.9rem;
  }

  .consult-side {
    width: 100%;
    margin-top: 20px;
  }  

  .slider-text h2 {
    font-size: 1.5rem;
  }

  .slider-text p {
    font-size: 1rem;
  }

  .slider-text .btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-location {
    font-size: 0.8rem;
  }  
}

/* Mobile screens */
@media (max-width: 600px) {
  /* Navbar: stack elements neatly */
  .navbar {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
  }

  /* Logo + company name section */
  .logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;                /* minimal gap between logo and text */
    margin-bottom: 6px;
  }

  .logo-section img.logo {
    height: 45px;            /* consistent mobile logo size */
    width: auto;
    margin-right: 0;
    border-radius: 8px;      /* keep rounded corners */
  }
 
  .logo-section h1 {
    font-size: 1rem;
    line-height: 1.2;
    color: #003366;       /* visible on light background */
    text-align: center;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;   /* prevent text from disappearing */
  }  

  /* Social media icons row */
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 6px 0;
    order: 3;                /* place below logo section */
  }

  .social-links a {
    font-size: 1rem;
  }

  /* Navigation menu (Quick Links) */

  .nav ul {
    display: flex;
    flex-wrap: nowrap;       /* keep in one line */
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 4px 0 0 0;
    padding: 0;
  }

  .nav ul li a {
    text-decoration: none;
    color: #fff;             /* adjust per header color */
    font-size: 0.8rem;
    padding: 4px 6px;
    font-weight: 500;
  }
  
  .slider {
    min-height: 220px;       /* smaller visible area */
    aspect-ratio: 16 / 9;
  }

  /* Ensure slider-text always appears above images */
  .slider-text {
    z-index: 5;                /* higher than slide images */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #fff;               /* keep white for contrast */
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* ensures visibility even on bright images */
  }

  /* Make sure the h2 itself never collapses or hides */
  .slider-text h2 {
    display: block;
    visibility: visible;
    opacity: 1;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 8px;
    z-index: 6;
  }

  .slider-text p {
    font-size: 0.8rem;
  }

  .slider-text .btn-primary {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .slider-text .phone {
    font-size: 0.75rem;
  }
 
  footer {
    padding: 30px 15px;
    font-size: 0.85rem;
  }

  .footer-location {
    font-size: 0.75rem;
  }
}

