/* CSS for Kailash Industries Website */
:root {
  --primary-color: #0d2b56; /* Dark Blue */
  --secondary-color: #f39c12; /* Industrial Orange/Yellow */
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --grey-light: #e0e0e0;
  --grey-dark: #555555;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  max-height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 24px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white) !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-size: 32px;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-col > a {
  color: var(--grey-light);
  display: block;
  margin-bottom: 10px;
}

.footer-col > a:hover {
  color: var(--secondary-color);
}

.footer-col p a {
  color: inherit;
  text-decoration: none;
}

.footer-col p a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .nav-links li {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .hamburger {
    display: block;
    margin-right: 10px;
  }
  
  /* Typography Adjustments */
  h1 {
    font-size: 2.2rem !important;
  }
  h2 {
    font-size: 1.8rem !important;
  }
  h3 {
    font-size: 1.4rem !important;
  }
  p {
    font-size: 1rem !important;
  }
  
  /* Section Padding */
  section {
    padding: 40px 0;
  }
  
  .hero {
    padding: 80px 0 !important;
  }
  
  .logo h1 {
    font-size: 20px !important;
  }
  
  /* Flex & Grid adjustments */
  .container > div[style*="display: flex"] {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  /* Ensure grids shrink enough on small screens */
  .footer-inner,
  .product-grid,
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Contact page specific responsiveness */
  .contact-wrapper {
    flex-direction: column !important;
  }
  
  .contact-info, .contact-form-container {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem !important;
  }
  .logo-img {
    max-height: 30px;
  }
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0 !important;
  }
}

/* WhatsApp Floating Button */
.whatsapp-wrapper {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
  position: relative;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-popup {
  background: #ffffff;
  color: #333;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateX(20px);
  animation: popup-slide-in 0.4s ease 1.5s forwards, popup-fade-out 0.4s ease 6s forwards;
  pointer-events: none;
  position: relative;
}

.whatsapp-popup::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #ffffff;
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
}

@keyframes popup-slide-in {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes popup-fade-out {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(20px); }
}

@media (max-width: 768px) {
  .whatsapp-wrapper {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-popup {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}
