/* =========================================
   MOBILE-FIRST STYLE
   ========================================= */

/* SEO: External Google Fonts import */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

/* SEO: CSS reset improves rendering consistency */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-bottom: 4px solid #00a651;
  border-bottom-right-radius: 50px;
  background-color: white;
}

.logo-container {
  display: flex;
  gap: 70px;
  align-items: center;
}

.logo-container img {
  width: 200px;
}

.logo-container i {
  border: 1px solid #29367d;
  padding: 5px;
  border-radius: 5px;
  &:hover {
    background-color: #00a651;
    color: white;
  }
}

/* SEO: Header info block */
.header-info {
  padding: 10px 20px;
  display: none;
}

.info-box h3 {
  font-size: 14px;
  color: #00a651;
}

.info-box p,
a {
  font-size: 12px;
  text-decoration: none;
  color: #29367d;
  font-weight: 600;
}

/* SEO: Hero background image */
.header-hero {
  background:
    linear-gradient(rgba(0, 0, 255, 0.2), rgba(0, 0, 255, 0.116)),
    url("../images/hero.webp") no-repeat;
  background-position: center -400px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* SEO: Navigation visibility */
nav {
  display: flex;
  justify-content: space-evenly;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  &:hover {
    text-decoration: 2px underline;
  }
}

nav .active {
  text-decoration: 2px underline;
  text-underline-offset: 4px;
}

.hero img {
  width: 150px;
}

/* SEO: Text contrast */
.hero p {
  color: white;
  text-align: center;
  font-size: 12px;
  margin: auto;
  width: 80%;
}

.hero button {
  padding: 7px 15px;
  margin: 30px;
  color: white;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.345),
    rgba(38, 37, 37, 0.861)
  );
  border: 1px solid #0088a6;
  border-radius: 7px;
}

/* SEO: Section spacing */
.products {
  color: #29367d;
  padding: 20px;
  text-align: center;
}

.products-grid {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
}

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(128, 128, 128, 0.47);
  border-radius: 10px;
}

.product-card a figure img {
  width: 250px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.47);
}

.facilities {
  margin: 10px 0;
}

.facilities h2 {
  color: #29367d;
  text-align: center;
  padding-bottom: 20px;
}

/* SEO: Background imagery */
.facilities .truck {
  background: url("../images/trucks.webp");
  background-size: cover;
  background-position-y: -20px;
  height: 100vh;
  border-radius: 10px;
  margin: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.truck img {
  width: 200px;
  padding: 10px;
}

.truck .text {
  background: linear-gradient(180deg, #162369ab, #29367d47);
  padding: 5px;
  width: 100%;
  color: white;
}

.truck .text h3 {
  text-align: left;
  margin-bottom: 10px;
}

.truck .text p {
  text-align: left;
  color: white;
  font-size: 12px;
  margin-bottom: 10px;
}

.facilities .vehicles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5px;
  gap: 10px;
  margin-top: 20px;
}

.facilities .vehicles img {
  width: 250px;
  border-radius: 10px;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.why-choose-us h2 {
  color: #29367d;
  margin-bottom: 30px;
  font-weight: 700;
}

.why-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-card {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid #00a651;
  transition: transform 0.3s ease;
}

.why-card i {
  font-size: 40px;
  color: #00a651;
  margin-bottom: 15px;
}

.why-card h3 {
  color: #29367d;
  font-size: 18px;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.clients h2 {
  text-align: center;
  padding: 20px;
  color: #29367d;
}

/* SEO: Horizontal sliders */
.clients {
  width: 100%;
  overflow: hidden;
}

.slider {
  width: 100%;
  overflow: hidden;
}

.clients .images {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.clients .images img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clients .images:hover {
  animation-play-state: paused;
}

.areas {
  margin-top: 40px;
  background: linear-gradient(120deg, #1f435d, #418cc3);
}

.areas h2 {
  text-align: center;
  padding: 20px;
  color: white;
}

.areas ul li,
.areas p,
.areas figcaption {
  color: white;
  font-size: 12px;
  list-style-type: circle;
  padding: 8px;
}

.areas img {
  width: 100%;
}

.restricted-timings {
  background: linear-gradient(120deg, #ff0000, #990000);
  margin-top: 50px;
}

.restricted-timings img {
  width: 100%;
}

.restricted-timings h2 {
  color: white;
  padding: 5px;
}

.restricted-timings ul {
  padding: 8px;
}

.restricted-timings ul li,
.restricted-timings p,
.restricted-timings figcaption {
  color: white;
  font-size: 12px;
  padding: 0 8px;
}

.working-hours {
  margin-top: 50px;
  color: #29367d;
  background: url("../images/factory.webp");
  height: 100vh;
  background-position: -560px -391px;
  padding: 10px;
}

.working-hours h2 {
  color: #29367d;
  text-align: left;
}

.working-hours ul li {
  font-size: 14px;
}

.working-hours .text {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 50px 20px;
  background-color: #fff;
}

.faq-section h2 {
  color: #29367d;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid rgba(41, 54, 125, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item h3 {
  background-color: #f0f2f8;
  color: #29367d;
  font-size: 15px;
  padding: 15px 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  padding: 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  background: white;
}

/* Accordion animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Arrow animation */
.arrow {
  transition: transform 0.3s ease;
  font-size: 32px;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

.location {
  margin: 50px;
}

.location h2 {
  color: #29367d;
  text-align: center;
  margin-bottom: 20px;
}

.location-address {
  font-size: 14px;
  margin-top: 5px;
}

/* SEO: Map iframe */
#map {
  margin: 0 auto;
  width: 90%;
  height: 400px;
  border: 1px solid gray;
  border-radius: 5px;
}

.form-footer {
  background: url("../images/footer.webp");
  background-size: cover;
  background-position: 0px 750px;
}

.form-footer h2 {
  padding: 10px;
  color: #fff;
  backdrop-filter: blur(5px);
}

.form-footer form {
  padding: 0 10px;
}

form input,
textarea {
  padding: 5px 10px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  &:focus {
    outline: 1px solid #1f435d;
  }
}

form textarea {
  width: 252px;
  height: 100px;
}

form button {
  padding: 5px 10px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  &:hover {
    outline: 1px solid #1f435d;
    background-color: #fff;
  }
}

footer .navbar {
  display: none;
}

footer .details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: white;
  background: linear-gradient(
    45deg,
    rgba(25, 18, 71, 0.818),
    rgba(39, 40, 112, 0.363)
  );
  padding: 10px;
  margin-top: 30px;
}

footer .details ul li a {
  font-size: 14px;
  color: white;
  font-weight: normal;
}

footer .copy {
  background-color: #00a651;
  color: white;
  font-size: 12px;
  text-align: center;
}

.whatsapp-float {
  font-size: 28px;
  color: white;
  background-color: #00a651;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 30px;
  position: fixed;
  top: 480px;
  right: 30px;
}

/* =========================================
   MEDIA QUERIES FOR TABLET & DESKTOP
   ========================================= */

@media (min-width: 768px) {
  .top-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 30px;
  }

  .header-info {
    display: flex;
    gap: 20px;
  }

  .hero p {
    font-size: 14px;
    width: 60%;
  }

  .products-grid {
    justify-content: space-around;
    flex-direction: row;
  }

  .product img {
    width: 120px;
  }

  .facilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
  }

  .why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .faq-section {
    padding: 60px 10%;
  }

  .working-hours {
    background-position: 0px -170px;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .working-hours .text {
    width: 70%;
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-info h3 {
    font-size: 16px;
  }

  .header-info p,
  a {
    font-size: 14px;
  }

  .logo-container img {
    width: 250px;
  }

  .logo-container i {
    display: none;
  }

  .header-hero {
    background-position: center -720px;
    background-size: cover;
    height: 120vh;
  }

  .hero {
    gap: 20px;
    height: 100vh;
    justify-content: flex-end;
    margin-bottom: 50px;
  }

  .hero-content {
    text-align: center;
  }
  .hero img {
    width: 400px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.4;
    width: 72%;
  }

  .hero button {
    font-size: 16px;
    padding: 10px 25px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    &:hover {
      background-color: rgb(32, 32, 32);
    }
  }

  nav {
    justify-content: center;
    margin-left: 30px;
    gap: 60px;
    padding-right: 50px;
  }

  nav a {
    font-size: 16px;
  }

  .products {
    margin-top: 70px;
  }

  .products-grid {
    justify-content: center;
    flex-direction: row;
    margin: 70px;
    gap: 40px;
  }

  .product-card {
    padding: 10px;
    transition: transform 0.3s;
  }

  .product-card h3 {
    margin: 5px 0;
  }

  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .facilities {
    display: block;
  }

  .facilities img {
    width: 300px;
  }

  .facilities .truck {
    height: 140vh;
    margin: 70px;
    background-position-y: -120px;
  }

  .truck .text {
    padding: 20px;
    background-color: #29367de2;
  }

  .truck .text h3 {
    font-size: 32px;
    margin: 10px 0;
  }

  .truck .text p {
    font-size: 16px;
  }

  .facilities .vehicles {
    justify-content: space-evenly;
    margin: 10px 70px;
  }

  .facilities .vehicles img {
    width: 300px;
    transition: 0.4s;
    cursor: pointer;
    &:hover {
      scale: 1.2;
    }
  }

  .why-choose-us {
    padding: 80px 70px;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(41, 54, 125, 0.15);
  }

  .faq-item h3 {
    font-size: 17px;
    padding: 20px 30px;
  }

  .faq-item p {
    padding: 25px 30px;
    font-size: 16px;
  }

  .clients {
    margin: 150px 0;
    margin-bottom: 200px;
  }

  .clients h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .clients .images img {
    height: 150px;
    width: 150px;
  }

  .areas,
  .restricted-timings {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 50px;
  }

  .areas h2 {
    text-align: left;
  }

  .areas p,
  .areas figcaption,
  .restricted-timings p,
  .restricted-timings figcaption {
    font-size: 16px;
  }

  .areas img,
  .restricted-timings img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
  }

  .areas div,
  .restricted-timings div {
    width: 50%;
    padding: 20px;
  }

  .areas ul li,
  .restricted-timings ul li {
    font-size: 16px;
    padding: 12px;
  }

  .working-hours {
    padding-left: 100px;
  }

  .working-hours .text {
    flex-direction: row;
    padding: 30px;
    gap: 50px;
  }

  .form-footer {
    height: auto;
    justify-content: space-around;
  }

  .form-footer h2 {
    color: white;
    margin-left: 50px;
  } 

  /* Main Contact Form Layout */
  #contactForm {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin-left: 50px;
    position: relative;
    background: transparent;
    padding: 0;
    backdrop-filter: blur(8px);
    border: none;
    box-shadow: none;
  }

  #contactForm .form-group:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }
  #contactForm .form-group:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }
  #contactForm .form-group:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }

  #contactForm .form-group:nth-of-type(4) {
    grid-column: 2;
    grid-row: 1 / span 3;
    height: 100%;
  }

  #contactForm input,
  #contactForm textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.839);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    color: #2d2d2d;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: background 0.3s ease;
  }

  #contactForm textarea {
    height: 100%;
    resize: none;
  }

  #contactForm input:focus,
  #contactForm textarea:focus {
    background: rgba(255, 255, 255, 0.952);
    outline: 1px solid #ffffff;
  }

  #submitBtn {
    position: absolute;
    bottom: 20px;
    right: 15px;
    background: #424242;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
  }

  #submitBtn::after {
    content: "➤";
    color: #2ecc71;
    font-size: 16px;
  }

  .visually-hidden {
    display: none;
  }

  .form-status {
    grid-column: 1 / span 2;
    margin-top: 10px;
  }

  footer .details {
    width: 40%;
    border-radius: 15px;
    margin-top: 0;
  }

  footer {
    background: rgba(25, 18, 71, 0.9);
  }

  footer .navbar {
    display: flex;
    gap: 20px;
    padding: 20px 0;
  }

  footer .navbar a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
  }

  footer .details {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 55px;
    width: 100%;
    padding: 0 35px;
    padding-bottom: 30px;
  }

  .copy {
    vertical-align: middle;
    font-size: 14px;
  }

  .copyrightHolder {
    padding: 10px;
  }

  .whatsapp-float {
    color: white;
    background-color: #00a651;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 32px;
    position: fixed;
    top: 570px;
    right: 50px;
  }

  .whatsapp-float:hover {
    scale: 1.2;
    background-color: #00783a;
    transition: all 0.3s;
    z-index: 200;
  }

  .location {
    margin: 50px auto;
  }

  .location-address {
    text-align: center;
    font-size: 16px;
  }
}

/* =========================================
   SCROLL ANIMATIONS — LIGHTWEIGHT
   ========================================= */

/* Base hidden state for all animated elements */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* Direction variants */
[data-animate="up"] {
  transform: translateY(60px);
}

[data-animate="down"] {
  transform: translateY(-60px);
}

[data-animate="left"] {
  transform: translateX(-80px);
}

[data-animate="right"] {
  transform: translateX(80px);
}

[data-animate="scale"] {
  transform: scale(0.85);
}

[data-animate="fade"] {
  transform: none;
}

/* Revealed state */
[data-animate].revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children delays */
[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }
[data-delay="4"] { transition-delay: 0.6s; }
[data-delay="5"] { transition-delay: 0.75s; }
[data-delay="6"] { transition-delay: 0.9s; }
[data-delay="7"] { transition-delay: 1.05s; }

/* ── Hover micro-interactions (keep these) ── */

.product-card a figure img {
  transition: transform 0.35s ease, filter 0.35s ease;
}
.product-card:hover a figure img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.why-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(41, 54, 125, 0.15);
}
.why-card i {
  transition: transform 0.3s ease;
}
.why-card:hover i {
  transform: scale(1.15);
}

.clients .images img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.clients .images img:hover {
  transform: scale(1.1);
  filter: brightness(1.08);
}

.areas img:hover,
.restricted-timings img:hover {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

#contactForm input,
#contactForm textarea {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#contactForm input:focus,
#contactForm textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

#submitBtn {
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
#submitBtn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#submitBtn:active {
  transform: translateY(0);
}

footer .navbar a {
  transition: color 0.25s ease, transform 0.25s ease;
}
footer .navbar a:hover {
  color: #00a651;
  transform: translateY(-2px);
}
footer .details ul li a {
  transition: color 0.25s ease;
}
footer .details ul li a:hover {
  color: #00a651;
}

.faq-item h3 {
  transition: background-color 0.3s ease;
}
.faq-item h3:hover {
  background-color: #e4e7f3;
}

/* WhatsApp pulse */
@keyframes softBounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.whatsapp-float {
  animation: softBounce 2.5s ease-in-out infinite;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  box-shadow: 0 6px 18px rgba(0, 166, 81, 0.35);
}

/* Clients scroll */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respects user motion preferences */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .whatsapp-float {
    animation: none !important;
  }
}