/* ============================================
   Health Bridge Mexico LLC — Distributor Site
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #0e7a3d;
  --primary-dark: #065f2d;
  --primary-light: #d1fae5;
  --primary-glow: rgba(14, 122, 61, 0.15);
  --accent: #dc2626;
  --accent-light: #fef2f2;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14, 122, 61, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.4rem;
  border-radius: 8px;
  font-weight: 900;
}

.logo-text { color: var(--white); }
.navbar.scrolled .logo-text { color: var(--gray-900); }
.logo-accent { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover { color: var(--gray-900); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar.scrolled .menu-toggle span { background: var(--gray-800); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #064e24 0%, #0e7a3d 40%, #116b37 70%, #0a4a22 100%);
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.05) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #86efac, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== PRODUCTS ===== */
.products {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.35s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new { background: #7c3aed; }
.badge-popular { background: var(--accent); }

.product-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info { padding: 28px; }

.product-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.product-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.detail span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  font-weight: 600;
}

.detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-top: 2px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions .btn { flex: 1; }

/* ===== WHY PARTNER ===== */
.why-partner {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== WHOLESALE ===== */
.wholesale {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.wholesale-info .section-tag { margin-bottom: 16px; }

.wholesale-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.wholesale-info > p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.wholesale-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wholesale-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}

.wholesale-perks svg { color: var(--primary); flex-shrink: 0; }

.wholesale-form-wrap {
  position: sticky;
  top: 100px;
}

.wholesale-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.wholesale-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ===== FIND US ===== */
.find-us {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.findus-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.findus-product-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.35s ease;
}

.findus-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.findus-product-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.findus-product-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.gelmicin-accent { background: #dbeafe; color: #1d4ed8; }
.acxion-accent { background: #ede9fe; color: #7c3aed; }
.redtex-accent { background: #fef2f2; color: #dc2626; }

.findus-product-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.findus-product-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

.findus-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.findus-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  position: relative;
}

.findus-channel-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.findus-channel-btn.amazon:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.findus-channel-btn.tiktok:hover {
  border-color: #1a1a2e;
  background: #f5f3ff;
  color: #1a1a2e;
}

.findus-channel-btn.northgate:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.findus-product-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.findus-store-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.findus-channel-btn svg {
  flex-shrink: 0;
}

.findus-arrow {
  position: absolute;
  right: 18px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}

.findus-channel-btn:hover .findus-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}

.contact-item svg { color: var(--primary); flex-shrink: 0; }

.cta-card {
  background: linear-gradient(135deg, #064e24, #0e7a3d);
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-card .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.cta-card .btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  padding: 60px 0 0;
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
}

.modal-icon { margin-bottom: 20px; }

.modal h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links, .btn-nav { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .nav-links.open a { color: var(--gray-700); font-size: 1rem; }

  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .products-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .benefits-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .findus-products-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  .wholesale-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .wholesale-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .container { padding: 0 16px; }
  .product-info { padding: 20px; }
}
