/* ==============================
   Full Mobile-Optimized Responsive CSS (412x915)
   ============================== */

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==============================
   Mobile Styles
   ============================== */
@media (max-width: 420px) {

  /* -------------------- Header / Navbar -------------------- */
  header {
    padding: 12px 14px;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo */
  .logo {
    width: 72px;
    height: 72px;
    margin: 0;
  }
  .logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    padding: 2px;
  }

  /* Company Name */
  .company-name {
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 20px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    max-width: calc(100% - 100px);
    margin: 0 auto;
  }

  /* Hamburger */
  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    z-index: 1300;
  }

  /* Mobile nav container */
  .nav-links-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: #163a21;
    display: flex;
    flex-direction: column;
    padding: 18px;
    box-shadow: -4px 0 18px rgba(0,0,0,0.45);
    transition: right 260ms ease-in-out;
    z-index: 1400;
  }
  .nav-links-container.active { right: 0; }

  /* Close button */
  .close-btn {
    display: block !important;
    font-size: 34px;
    color: #fff;
    background: transparent;
    border: none;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 8px;
    padding: 6px 8px;
  }

  /* Nav links vertical */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
    padding-left: 0;
  }
  .nav-links li { width: 100%; list-style: none; }
  .nav-links a {
    display: block;
    padding: 10px 6px;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
  }
  .nav-links a.btn-signup {
    background: linear-gradient(135deg,#FFD700,#FFC107);
    color: #1a472a;
    padding: 10px;
    text-align: left;
  }
  .nav-links a:hover, .nav-links a:active, .nav-links a:focus {
    color: #FFD700;
  }

  /* -------------------- Hero -------------------- */
  .hero {
    height: auto !important;
    min-height: 260px;
    background: linear-gradient(180deg,#00B44D,#007a2e) !important; /* remove images */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
  }
  .hero-overlay h1 {
    font-size: 1.6rem;
    margin: 0 6px 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
  }
  .btn-hero {
    display: inline-block;
    padding: 10px 14px;
    font-size: 0.96rem;
    border-radius: 26px;
  }
        .head p {
        font-size: 0.95rem;
        line-height: 1.45;
        text-align: justify;
    }
  /* -------------------- Services -------------------- */
  .services { padding: 20px 12px; }
  .services h2 { font-size: 1.45rem; margin-bottom: 12px; }
  .service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  .card {
    padding: 12px;
    border-radius: 10px;
    text-align: center;
  }
  .card h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .card p { font-size: 0.95rem; margin-bottom: 8px; }

  /* Force service images to fit perfectly */
  .service-grid .card img {
    
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 8px;
    margin: 0 auto 8px;
  }

  /* -------------------- About -------------------- */
  .about { padding: 20px 12px; }
  .about-container { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .about-text h2 { font-size: 1.35rem; margin-bottom: 8px; }
  .about-text p { font-size: 0.98rem; line-height: 1.45; }
  .about-image img {
    width: 100% !important;
    max-width: 180px;
    height: 180px !important;
    object-fit: contain !important;
    border-radius: 8px;
    margin: 0 auto;
  }

  /* -------------------- Why Choose Us -------------------- */
  .why-choose { padding: 20px 12px; }
  .why-choose h2 { font-size: 1.35rem; margin-bottom: 12px; }
  .why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 14px; border-radius: 10px; text-align: center; }
  .why-card img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    margin: 0 auto 8px;
  }

  /* -------------------- Consultation -------------------- */
  .consultation { padding: 18px 12px; }
  .consultation h2 { font-size: 1.25rem; margin-bottom: 12px; }
  .consultation form { width: 100%; gap: 10px; }
  .consultation input, .consultation textarea, .consultation button {
    width: 100%;
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  /* -------------------- Footer -------------------- */
  footer { padding: 18px 12px; }
  .footer-container { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .footer-left, .footer-right { width: 100%; text-align: center; }
  .footer-logo { width: 120px; margin: 0 auto 8px; }
  .footer-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-items: center; padding: 0; margin: 0; list-style: none; }
  .footer-links a { font-size: 0.9rem; }

  /* Buttons smaller */
  .btn-about, .btn-hero { font-weight: 700; font-size: 0.96rem; }
  .company-name { display: block; padding: 6px 10px; }
}
@media (max-width: 420px) {
  .contact-content {
    flex-direction: column;
    padding: 16px;
  }

  .contact-info, .consultation {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
  }

  .map-container {
    height: 250px;
  }

  .contact-hero h1 {
    font-size: 1.6rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }
}

/* Solar Advanced Responsive */
@media (max-width: 900px) {
  .solar-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }

  .solar-features {
    grid-template-columns: 1fr;
  }

  .float-icon {
    display: none;
  }
}

