/* ========================================
   HygieneCare Factory - B2B Website Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary: #1a5fb4;
  --primary-dark: #154a8c;
  --primary-light: #e8f0fe;
  --accent: #e67e22;
  --accent-dark: #d35400;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition); }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Container */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 1.5rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }

/* Desktop Nav */
.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  position: relative; padding: 4px 0;
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.dropdown-toggle svg { width: 16px; height: 16px; transition: var(--transition); }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 260px; padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  font-size: 0.9rem; color: var(--text);
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu .d-icon { width: 32px; height: 32px; background: var(--primary-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }

/* Header CTA */
.header-cta {
  display: flex; align-items: center; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Language Switcher */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); }
.lang-switch select { border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; background: #fff; cursor: pointer; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: calc(var(--header-height) + 80px) 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: rgba(255,255,255,0.03); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero-subtitle { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 520px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  padding: 6px 14px; border-radius: 20px; font-size: 0.85rem;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  background: rgba(255,255,255,0.1); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(255,255,255,0.3); font-size: 0.9rem; opacity: 0.7;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.section-header p { font-size: 1.05rem; color: var(--text-light); }

/* ========================================
   PRODUCTS GRID (Home)
   ======================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
  aspect-ratio: 16/10; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text-light);
}
.product-card-body { padding: 24px; }
.product-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.product-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.product-card .btn { width: 100%; }

/* ========================================
   FEATURES / WHY CHOOSE US
   ======================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-item {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; border: 1px solid var(--border); transition: var(--transition);
}
.feature-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon {
  width: 56px; height: 56px; background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem;
}
.feature-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; color: var(--text-light); }

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: var(--bg-dark); color: #fff; padding: 48px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.95rem; opacity: 0.8; margin-top: 4px; }

/* ========================================
   TRUST ELEMENTS
   ======================================== */
.trust-section { padding: 48px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.trust-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-light); }
.trust-item svg { width: 24px; height: 24px; color: var(--primary); }

/* ========================================
   PRODUCT LANDING PAGE
   ======================================== */
.product-hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}
.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.product-hero .subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 24px; }
.product-hero .features-list { margin-bottom: 28px; }
.product-hero .features-list li {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 0.95rem;
}
.product-hero .features-list li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.product-hero-image {
  background: var(--bg-alt); border-radius: var(--radius-lg); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); color: var(--text-light); font-size: 0.9rem;
}

/* Product Details Tabs */
.tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab-btn { padding: 12px 24px; font-weight: 600; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.specs-table th { background: var(--bg-alt); font-weight: 600; font-size: 0.9rem; }
.specs-table td { font-size: 0.9rem; color: var(--text-light); }

/* ========================================
   OEM / ODM PAGE
   ======================================== */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 32px; }
.process-step {
  text-align: center; padding: 32px 20px; background: #fff;
  border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative;
}
.process-step .step-num {
  width: 40px; height: 40px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 16px;
}
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--text-light); }

/* ========================================
   ABOUT / QUALITY
   ======================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
  background: var(--bg-alt); border-radius: var(--radius-lg); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); color: var(--text-light); font-size: 0.9rem;
}
.about-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; }

/* Certifications Grid */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.cert-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); text-align: center; transition: var(--transition);
}
.cert-card:hover { border-color: var(--primary); }
.cert-card-img {
  aspect-ratio: 3/4; background: var(--bg-alt); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 0.8rem; color: var(--text-light);
}
.cert-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cert-card p { font-size: 0.85rem; color: var(--text-light); }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
  aspect-ratio: 16/10; background: var(--bg-alt); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); color: var(--text-light); font-size: 0.85rem;
  overflow: hidden;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-detail svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-detail h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 0.95rem; color: var(--text-light); }
.contact-detail a:hover { color: var(--primary); }

/* Map Placeholder */
.map-placeholder {
  background: var(--bg-alt); border-radius: var(--radius-lg); height: 300px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); color: var(--text-light); font-size: 0.9rem;
  margin-top: 24px;
}

/* ========================================
   FORMS
   ======================================== */
.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.form-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; }
.form-group label .required { color: #dc2626; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; }

/* ========================================
   THANK YOU PAGE
   ======================================== */
.thank-you {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.thank-you-card { max-width: 560px; }
.thank-you-icon {
  width: 80px; height: 80px; background: #dcfce7; color: #16a34a;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 2rem;
}
.thank-you h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.thank-you p { color: var(--text-light); margin-bottom: 32px; }

/* ========================================
   PRIVACY / TERMS PAGES
   ======================================== */
.legal-page { padding: calc(var(--header-height) + 40px) 0 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-light); font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-light); margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-page ul li { margin-bottom: 8px; }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--bg-dark); color: #cbd5e1; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.9rem; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; opacity: 0.6; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.85rem; opacity: 0.6; }
.footer-legal a:hover { opacity: 1; }

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4); transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08); padding: 20px 0;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { font-size: 0.9rem; color: var(--text-light); max-width: 700px; }
.cookie-inner a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions .btn { padding: 8px 20px; font-size: 0.9rem; }

/* ========================================
   MODAL (PDF Download)
   ======================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  max-width: 480px; width: 90%; box-shadow: var(--shadow-lg);
  transform: scale(0.95); transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.modal p { color: var(--text-light); margin-bottom: 20px; font-size: 0.9rem; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-light);
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .hero-inner, .product-hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .product-hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .nav-desktop, .header-cta .btn-outline, .lang-switch { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: calc(var(--header-height) + 48px) 0 64px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}

/* Mobile Nav Panel */
.mobile-nav {
  position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; padding: 24px; transform: translateX(100%);
  transition: transform 0.3s ease; overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav .mobile-cta { margin-top: 24px; }
.mobile-nav .mobile-cta .btn { width: 100%; margin-bottom: 12px; }

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
