/* ========================================
   Puregiene Website - Styles
   Brand Colors: #1a3a6b (navy), #2563eb (blue), #ffffff
   ======================================== */

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

:root {
  --navy: #1a3a6b;
  --navy-dark: #0f2548;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --green-accent: #6fbf73;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--gray-200); box-shadow: var(--shadow-sm); }

.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.logo-text { font-size: 1.5rem; font-weight: 300; letter-spacing: 1px; color: var(--navy); }
.logo-text sup { font-size: 0.5em; top: -0.8em; }

.nav-links { display: flex; align-items: center; list-style: none; gap: 8px; }
.nav-links a {
  text-decoration: none; color: var(--gray-600); font-size: 0.9rem; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover { color: var(--navy); background: var(--gray-100); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.3), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(37,99,235,0.15), transparent 50%),
              linear-gradient(135deg, var(--navy-dark), var(--navy) 40%, #1e4a8a);
}
.hero-bg::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.05);
  animation: float 20s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }

.hero-content { position: relative; z-index: 1; padding: 120px 0 80px; }
.hero-text { max-width: 650px; }
.hero-title { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.hero-title-line { display: block; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255,255,255,0.9); font-weight: 500; margin-bottom: 12px; letter-spacing: 0.5px; }
.hero-description { font-size: 1.1rem; color: rgba(255,255,255,0.65); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 0.95rem; font-weight: 600; font-family: inherit;
  text-decoration: none; border: 2px solid transparent; border-radius: 10px;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ========================================
   Sections
   ======================================== */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; }

/* ========================================
   About / Stats
   ======================================== */
.about { background: var(--gray-50); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.stat-card { background: var(--white); padding: 36px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--gray-200); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }
.stat-icon { width: 48px; height: 48px; background: var(--blue-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--blue); }
.stat-icon svg { width: 24px; height: 24px; }
.stat-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.stat-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

/* ========================================
   Products
   ======================================== */
.products { background: var(--white); }

.product-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 24px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
  border: 2px solid var(--gray-200); border-radius: 50px; background: var(--white);
  color: var(--gray-600); cursor: pointer; transition: var(--transition);
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.product-panel { display: none; animation: fadeIn 0.4s ease; }
.product-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.product-category { margin-bottom: 48px; }
.product-category-header { margin-bottom: 28px; }
.product-category-header h3 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-category-header p { font-size: 0.95rem; color: var(--gray-500); }
.product-note { font-size: 0.85rem !important; color: var(--blue) !important; font-weight: 500; margin-top: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }

.product-image {
  height: 200px; display: flex; align-items: center; justify-content: center; position: relative;
}
.product-card h4 { padding: 16px 16px 4px; font-size: 0.95rem; font-weight: 600; color: var(--gray-800); }
.product-variant { padding: 0 16px 16px; font-size: 0.8rem; color: var(--gray-500); }

/* Product image backgrounds */
.pi-white { background: linear-gradient(135deg, #f8f9fa, #edf0f4); }
.pi-navy { background: linear-gradient(135deg, #1a2744, #2c3e6b); }
.pi-green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.pi-chrome { background: linear-gradient(135deg, #e8e8e8, #d4d4d4); }
.pi-dark { background: linear-gradient(135deg, #2c2c2c, #1a1a1a); }
.pi-warm { background: linear-gradient(135deg, #f5ebe0, #e8d5c0); }

/* ---- Dispenser CSS illustrations ---- */
.dispenser { position: relative; }

/* Manual Soap Dispenser */
.manual-soap { width: 76px; height: 110px; }
.manual-soap .dispenser-body {
  width: 76px; height: 110px; border-radius: 12px 12px 6px 6px;
  background: #fff; border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
}
.manual-soap .dispenser-body::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border: 2px solid #c0c0c0; border-radius: 50%;
  opacity: 0.5;
}
.manual-soap .dispenser-button {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 14px; background: #e8e8e8; border-radius: 4px; border: 1px solid #d0d0d0;
}
.manual-soap.navy .dispenser-body { background: #1a2f5c; border-color: #0f1f40; }
.manual-soap.navy .dispenser-body::before { border-color: rgba(255,255,255,0.3); }
.manual-soap.navy .dispenser-button { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }
.manual-soap.green .dispenser-body { background: #fff; border-color: #6fbf73; }
.manual-soap.green .dispenser-body::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: #6fbf73; border-radius: 12px 0 0 6px;
}
.manual-soap.green .dispenser-button { background: #c8e6c9; border-color: #6fbf73; }

/* Auto Soap Dispenser */
.auto-soap { width: 80px; height: 120px; }
.auto-soap .dispenser-body {
  width: 80px; height: 120px; border-radius: 22px;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  border: 2px solid #c0c0c0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  position: relative;
}
.auto-soap .dispenser-body::before {
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border: 2px solid #aaa; border-radius: 50%; opacity: 0.4;
}
.auto-soap .dispenser-body::after {
  content: ''; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: #bbb; border-radius: 50%;
}
.auto-soap.dark .dispenser-body { background: linear-gradient(135deg, #333, #1a1a1a); border-color: #555; }
.auto-soap.dark .dispenser-body::before { border-color: rgba(255,255,255,0.2); }
.auto-soap.dark .dispenser-body::after { background: #555; }
.auto-soap.graphic .dispenser-body { background: #fff; border-color: #d0d0d0; }
.auto-soap.graphic .dispenser-body::before { border-color: var(--blue); opacity: 0.3; }

/* Towel Dispenser */
.towel { width: 120px; height: 72px; }
.towel .dispenser-body {
  width: 120px; height: 72px; border-radius: 22px 22px 6px 6px;
  background: #fff; border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: relative;
}
.towel .dispenser-body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  border-radius: 22px 22px 0 0;
}
.towel .dispenser-body::after {
  content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border: 1.5px solid #c0c0c0; border-radius: 50%; opacity: 0.4;
}
.towel.wood .dispenser-body::before { background: #b8834a; }
.towel.dark .dispenser-body { background: #1a1a1a; border-color: #333; }
.towel.dark .dispenser-body::before { background: #333; }
.towel.dark .dispenser-body::after { border-color: rgba(255,255,255,0.2); }

/* Jumbo Roll Dispenser */
.jumbo-roll { width: 110px; height: 110px; }
.jumbo-roll .dispenser-body {
  width: 110px; height: 110px; border-radius: 50%;
  background: #fff; border: 3px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: relative;
}
.jumbo-roll .dispenser-body::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border: 1.5px solid #c0c0c0; border-radius: 50%; opacity: 0.4;
}
.jumbo-roll.navy .dispenser-body { border-color: var(--navy); }
.jumbo-roll.navy .dispenser-body::after {
  content: ''; position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px;
  border-radius: 50%; border: 2px solid rgba(26,58,107,0.15);
}

/* Compaq Duo Dispenser */
.compaq { width: 120px; height: 80px; }
.compaq .dispenser-body {
  width: 120px; height: 80px; border-radius: 18px;
  background: #fff; border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: relative;
}
.compaq .dispenser-body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  border-radius: 18px 18px 0 0;
}
.compaq .dispenser-body::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border: 1.5px solid #c0c0c0; border-radius: 50%; opacity: 0.4;
}
.compaq.wood .dispenser-body::before { background: #b8834a; }
.compaq.dark .dispenser-body { background: #fff; border-color: var(--navy); }
.compaq.dark .dispenser-body::before { background: var(--navy); }

/* Sanitiser Dispenser */
.sanitiser { width: 76px; height: 120px; }
.sanitiser .dispenser-body {
  width: 76px; height: 120px; border-radius: 14px;
  background: #fff; border: 2px solid #d0d0d0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: relative;
}
.sanitiser .dispenser-body::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border: 1.5px solid #c0c0c0; border-radius: 50%; opacity: 0.4;
}
.sanitiser .dispenser-label {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 30px; background: #e74c3c; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5px; color: #fff; font-weight: 700; text-align: center; line-height: 1.1;
  padding: 2px;
}
.sanitiser.auto-san .dispenser-body { background: linear-gradient(135deg, #e8e8e8, #f5f5f5); border-color: #bbb; border-radius: 20px; }
.sanitiser.auto-san .dispenser-label { background: #2563eb; }

/* Customisation Banner */
.customisation-banner {
  margin-top: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius-lg); padding: 48px; text-align: center;
}
.customisation-content h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 12px; }
.customisation-content p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 28px; line-height: 1.7; }

/* ========================================
   Partner
   ======================================== */
.partner { background: var(--gray-50); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.partner-card {
  background: var(--white); padding: 36px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }
.partner-card.full-width { grid-column: 1 / -1; }
.partner-icon {
  width: 52px; height: 52px; background: var(--blue-pale); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--blue);
}
.partner-icon svg { width: 24px; height: 24px; }
.partner-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.partner-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* Benefits */
.benefits-box { background: var(--white); border-radius: var(--radius-lg); padding: 48px; border: 2px solid var(--blue-pale); }
.benefits-box h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 28px; text-align: center; }
.benefits-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.benefit-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--gray-50); transition: var(--transition); }
.benefit-item:hover { background: var(--blue-pale); }
.benefit-item svg { width: 20px; height: 20px; color: var(--green-accent); flex-shrink: 0; }
.benefit-item span { font-size: 0.95rem; font-weight: 500; color: var(--gray-700); }

/* ========================================
   Contact
   ======================================== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 60px; }

.contact-card {
  text-align: center; padding: 36px 24px; background: var(--gray-50);
  border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-pale); }

.contact-avatar { margin-bottom: 20px; }
.avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue)); display: inline-flex;
  align-items: center; justify-content: center; color: var(--white); font-weight: 700;
  font-size: 1.3rem; border: 3px solid var(--green-accent);
}

.contact-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.contact-email, .contact-phone { display: block; text-decoration: none; font-size: 0.9rem; color: var(--gray-500); margin-bottom: 6px; transition: var(--transition); }
.contact-email:hover, .contact-phone:hover { color: var(--blue); }

/* Mailto CTA */
.contact-cta {
  max-width: 600px; margin: 0 auto; text-align: center;
  background: var(--gray-50); padding: 48px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.contact-cta h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.contact-cta p { color: var(--gray-500); margin-bottom: 28px; line-height: 1.7; }

/* ========================================
   Footer
   ======================================== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-img { width: 32px; height: 32px; object-fit: contain; }
.footer-logo .logo-text { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; text-decoration: none; color: rgba(255,255,255,0.5); font-size: 0.9rem; padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.35); }

/* ========================================
   Animations
   ======================================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 24px; gap: 4px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md); transform: translateY(-110%); transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .hero-content { padding: 100px 0 60px; }
  .section { padding: 60px 0; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .customisation-banner { padding: 32px 24px; }
  .benefits-box { padding: 32px 24px; }
  .partner-grid { grid-template-columns: 1fr; }
  .contact-cta { padding: 28px; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
  .product-tabs { gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: 0.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
