/* =============================================
   Infinite Industries Pvt Ltd — Shared Styles
   ============================================= */

:root {
  --blue-dark:    #0D2B5E;
  --blue-main:    #1A56DB;
  --blue-light:   #3B82F6;
  --silver:       #8B9CB5;
  --silver-light: #D1D9E6;
  --white:        #FFFFFF;
  --off-white:    #F4F7FC;
  --text-dark:    #1A1F2E;
  --text-mid:     #4B5563;
  --text-light:   #6B7280;
  --accent:       #F59E0B;
  --border:       #E2E8F0;
  --shadow:       0 4px 24px rgba(13, 43, 94, 0.10);
  --shadow-lg:    0 8px 40px rgba(13, 43, 94, 0.16);
  --radius:       10px;
  --radius-lg:    18px;
  --transition:   0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-mid); }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 0.5rem;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue-main);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}
.btn-accent:hover { background: #D97706; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 43, 94, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo img {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  display: block;
}

.navbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.navbar-links a {
  color: rgba(255,255,255,0.82);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 500;
  transition: var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}
.navbar-links a.active { font-weight: 700; }

.navbar-cta {
  background: var(--accent);
  color: var(--text-dark) !important;
  padding: 8px 18px !important;
  border-radius: 7px !important;
  font-weight: 700 !important;
}
.navbar-cta:hover { background: #D97706 !important; color: var(--text-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- FOOTER ---- */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--blue-light); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1A3A8F 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---- DIVIDER ---- */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
  border-radius: 2px;
  margin: 16px auto 0;
}
.divider-left { margin-left: 0; }

/* ---- CARD ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(26, 86, 219, 0.1);
  color: var(--blue-main);
}

/* ---- CLIENTS MARQUEE ---- */
.clients-section {
  background: var(--white);
  padding: 70px 0 60px;
}
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: 40px;
  padding: 10px 0;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 90px;
  transition: var(--transition);
  flex-shrink: 0;
}
.client-logo:hover {
  border-color: rgba(26,86,219,0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.client-logo img {
  max-height: 54px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.client-logo:hover img { filter: grayscale(0%); }

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.whatsapp-float:hover .whatsapp-float-btn {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}
.whatsapp-float-label {
  background: #fff;
  color: #111;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .navbar-inner { height: 60px; }
  .navbar-logo img { height: 40px; }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  body { font-size: 15px; }

  .hamburger { display: flex; }

  .navbar-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 0 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .navbar-links.open {
    max-height: 400px;
    padding: 12px 20px 16px;
  }
  .navbar-links a { padding: 14px 12px; font-size: 0.95rem; }
  /* handle ul-based navbars (contact page) */
  .navbar-links li { list-style: none; }

  /* Ensure touch-friendly button sizes (min 44x44px) */
  .btn { min-height: 44px; padding: 12px 24px; font-size: 0.9rem; }
  .navbar-cta { min-height: 44px; }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-visual { display: none !important; }
  .hero-stats { gap: 18px !important; flex-wrap: wrap; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Generic 2/3-col grids → single col */
  .about-grid,
  .stats-grid,
  .strengths-grid,
  .products-grid,
  .contact-grid,
  .contact-cards,
  .features-grid,
  .industries-grid,
  .values-grid,
  .timeline {
    grid-template-columns: 1fr !important;
  }

  /* About page */
  .about-img { display: none; }
  .timeline-item { flex-direction: column !important; gap: 12px !important; }
  .timeline-year { width: auto !important; text-align: left !important; }

  /* Products page - better mobile layout */
  .filter-bar { flex-wrap: wrap; gap: 8px; padding: 16px 0; position: sticky; top: 60px; }
  .filter-btn { font-size: 0.8rem; padding: 8px 16px; min-height: 40px; }
  .product-block-inner { grid-template-columns: 1fr; }
  .product-block:nth-child(even) .product-block-inner { direction: ltr; }
  .product-visual { min-height: 250px; padding: 32px 24px; }
  .product-info { padding: 24px 20px; }
  .product-specs { grid-template-columns: 1fr !important; }
  .product-cta { flex-direction: column; }
  .product-cta .btn { width: 100%; }

  /* Sections with side-by-side layouts */
  .cta-inner { flex-direction: column !important; text-align: center; }
  .contact-map-wrap { grid-template-columns: 1fr !important; }

  /* WhatsApp float smaller on mobile */
  .whatsapp-float { bottom: 16px; right: 16px; gap: 8px; }
  .whatsapp-float-btn { width: 50px; height: 50px; }
  .whatsapp-float-label { display: none; }

  /* Form inputs mobile friendly */
  input, textarea, select { font-size: 16px; }
}

@media (max-width: 600px) {
  section { padding: 40px 0; }
  body { font-size: 14px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .container { padding: 0 16px; }
  .page-hero { padding: 45px 0 35px; }

  /* Stat numbers smaller */
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.75rem; }

  /* Client marquee cards smaller */
  .client-logo { min-width: 100px; height: 60px; padding: 10px 12px; }
  .client-logo img { max-height: 35px; max-width: 80px; }

  /* Better spacing for small screens */
  .section-label { font-size: 0.7rem; }

  /* Product cards optimized for mobile */
  .product-emoji { font-size: 48px; }
  .product-badge-row { gap: 6px; }
  .badge { font-size: 0.65rem; padding: 2px 8px; }

  /* Footer optimized */
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-contact-item { font-size: 0.8rem; gap: 8px; margin-bottom: 10px; }

  /* Navbar optimization */
  .navbar-inner { height: 56px; }
  .navbar-logo img { height: 36px; }

  /* WhatsApp button for very small screens */
  .whatsapp-float-btn { width: 48px; height: 48px; }
  .whatsapp-float-btn svg { width: 24px; height: 24px; }

  /* Breadcrumb smaller */
  .breadcrumb { font-size: 0.75rem; gap: 4px; margin-bottom: 12px; }
}
