/*
Theme Name: HPLC India
Theme URI: https://www.hplcindia.com
Author: HPLC Dev
Description: Clone of HPLC India - High Purity Laboratory Chemicals Pvt. Ltd.
Version: 1.0
*/

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', Arial, sans-serif; color: #333; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --red: #c0392b;
  --dark: #1a1a2e;
  --blue: #003a70;
  --light-bg: #f4f7fb;
  --border: #e0e0e0;
  --text: #333;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding img { height: 65px; width: auto; }
.site-title { font-size: 1.1rem; font-weight: 700; color: var(--blue); line-height: 1.3; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 16px; }
.search-icon-btn { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: #555; padding: 6px; }
.search-icon-btn:hover { color: var(--red); }
.lang-selector select { border: 1px solid #ccc; padding: 4px 8px; font-size: 0.85rem; border-radius: 4px; cursor: pointer; }

/* ===== NAVIGATION ===== */
.main-nav { background: #fff; border-top: 1px solid var(--border); }
.main-nav ul { display: flex; justify-content: flex-end; padding: 0 20px; margin: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a { color: var(--red); border-bottom-color: var(--red); }
.main-nav > ul > li > a .arrow { font-size: 0.7rem; margin-left: 4px; }

/* Dropdown */
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
  z-index: 999;
}
.main-nav > ul > li:hover .dropdown { display: block; }
.main-nav .dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.main-nav .dropdown li a:hover { background: #fdf0f0; color: var(--red); padding-left: 24px; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
}
.search-box form { display: flex; gap: 10px; }
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--red);
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
}
.search-box button[type=submit] {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.search-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
}

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; height: 500px; }
.slide { display: none; position: relative; height: 500px; }
.slide.active { display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,30,30,0.82);
  color: #fff;
  padding: 40px 50px;
  max-width: 500px;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.slide-caption h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.slide-caption p { font-size: 1rem; margin-bottom: 20px; color: #ddd; }
.slide-caption .btn-more {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}
.slide-caption .btn-more:hover { background: #fff; color: #222; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.slider-arrow:hover { background: rgba(255,255,255,0.6); color: #222; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dots span {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; transition: background 0.2s;
}
.slider-dots span.active { background: #fff; }

/* ===== QUICK LINKS ===== */
.quick-links { padding: 50px 20px; background: var(--light-bg); }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 40px; font-size: 0.95rem; }
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.quick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.quick-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-top: 3px solid var(--red); }
.quick-card .icon { font-size: 2.5rem; margin-bottom: 14px; color: var(--red); }
.quick-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.quick-card p { font-size: 0.85rem; color: #666; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 60px 20px; background: #fff; }
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.about-text p { color: #555; line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.stat-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.stat-card .number { font-size: 2rem; font-weight: 700; color: var(--red); }
.stat-card .label { font-size: 0.82rem; color: #666; margin-top: 4px; }
.about-image img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }

/* ===== PRODUCTS SECTION ===== */
.products-section { padding: 60px 20px; background: var(--light-bg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.product-card-body p { font-size: 0.85rem; color: #666; line-height: 1.6; }
.product-card-body a {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
}
.product-card-body a:hover { text-decoration: underline; }

/* ===== INDUSTRIES ===== */
.industries-section { padding: 60px 20px; background: var(--blue); color: #fff; }
.industries-section .section-title { color: #fff; }
.industries-section .section-subtitle { color: #aac4e0; }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.industry-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
  cursor: pointer;
}
.industry-item:hover { background: rgba(255,255,255,0.18); }
.industry-item .icon { font-size: 2rem; margin-bottom: 10px; }
.industry-item p { font-size: 0.8rem; color: #cde; }

/* ===== WHY CHOOSE US ===== */
.why-section { padding: 60px 20px; background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.why-card { padding: 30px; border: 1px solid var(--border); border-radius: 8px; text-align: center; }
.why-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.why-card .icon { font-size: 2.5rem; color: var(--red); margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.why-card p { font-size: 0.85rem; color: #666; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--red), #8b0000);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; margin-bottom: 28px; opacity: 0.9; }
.btn-white {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--red);
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-white:hover { background: var(--dark); color: #fff; }

/* ===== CERTIFICATIONS ===== */
.cert-section { padding: 50px 20px; background: var(--light-bg); text-align: center; }
.cert-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.cert-logos .cert-badge {
  background: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== FOOTER ===== */
.site-footer { background: #1a1a2e; color: #bbb; padding: 50px 20px 20px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: #bbb; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-col .contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; }
.footer-col .contact-item .ci-icon { color: var(--red); min-width: 16px; }
.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #bbb; }
.footer-bottom a:hover { color: var(--red); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-links a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== INNER PAGES ===== */
.page-banner {
  background: linear-gradient(135deg, var(--blue), #005b9f);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}
.page-banner h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }
.page-content { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-form-wrap h2, .contact-info-wrap h2 { font-size: 1.5rem; color: var(--blue); margin-bottom: 20px; font-weight: 700; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #444; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd;
  border-radius: 4px; font-size: 0.9rem; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { height: 130px; resize: vertical; }
.btn-submit {
  background: var(--red); color: #fff; padding: 12px 32px;
  border: none; border-radius: 4px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: #a93226; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon { font-size: 1.4rem; color: var(--red); min-width: 24px; padding-top: 2px; }
.info-text strong { display: block; color: var(--blue); margin-bottom: 4px; font-size: 0.9rem; }
.info-text span { font-size: 0.85rem; color: #555; line-height: 1.6; }
.map-embed { margin-top: 30px; }
.map-embed iframe { width: 100%; height: 280px; border: none; border-radius: 8px; }

/* Downloads Page */
.downloads-table { width: 100%; border-collapse: collapse; }
.downloads-table th {
  background: var(--blue); color: #fff; padding: 12px 16px;
  text-align: left; font-size: 0.88rem;
}
.downloads-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 0.88rem; }
.downloads-table tr:hover td { background: #fdf0f0; }
.downloads-table .dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; padding: 6px 14px;
  border-radius: 4px; font-size: 0.8rem; font-weight: 600;
  transition: background 0.2s;
}
.downloads-table .dl-btn:hover { background: #a93226; }

/* Products Archive */
.products-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn {
  padding: 8px 18px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s; background: #fff; color: #555;
}
.filter-btn:hover, .filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.products-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Events Page */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.event-card img { width: 100%; height: 200px; object-fit: cover; }
.event-card-body { padding: 20px; }
.event-date { font-size: 0.78rem; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.event-card-body h3 { font-size: 1rem; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.event-card-body p { font-size: 0.85rem; color: #666; }

/* ===== MOBILE NAV ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue);
  padding: 6px;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  padding: 20px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close { float: right; font-size: 1.5rem; cursor: pointer; color: #888; background: none; border: none; }
.mobile-nav ul { margin-top: 20px; }
.mobile-nav ul li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav ul li a { display: block; padding: 12px 4px; font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.mobile-nav ul li a:hover { color: var(--red); }
.mobile-nav .mobile-sub { padding-left: 16px; display: none; }
.mobile-nav .mobile-sub.open { display: block; }
.mobile-nav .has-sub > a::after { content: ' ▾'; font-size: 0.75rem; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; }
.mobile-overlay.open { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .products-archive-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-nav { display: block; }
  .site-branding img { height: 50px; }
  .site-title { font-size: 0.9rem; }
  .hero-slider, .slide { height: 350px; }
  .slide-caption { max-width: 280px; padding: 20px 24px; clip-path: none; }
  .slide-caption h2 { font-size: 1.3rem; }
  .slide-caption p { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-archive-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .quick-links-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-slider, .slide { height: 260px; }
  .slide-caption { padding: 16px; right: 0; left: 0; top: auto; bottom: 40px; transform: none; }
}

/* ===== ELEMENTOR COMPATIBILITY ===== */
.elementor-page .page-banner,
.elementor-page .hplc-page-banner-default { display: none !important; }

/* Remove theme container padding when using Elementor */
.elementor-template-full-width .page-content,
.elementor-template-full-width .entry-content,
.elementor-page-template-page-elementor-fullwidth .page-content,
.elementor-page-template-page-elementor-fullwidth .entry-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure Elementor sections are truly full-width */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Fix for Elementor Pro Theme Builder */
.elementor-location-header .top-bar { box-shadow: none; border: none; }
.elementor-location-footer .site-footer { padding: 0; background: none; }

/* Hide theme defaults when Elementor Pro templates are active */
body.elementor-pro-active .site-header,
body.elementor-pro-active .site-footer {
    display: none;
}
