/* PROACTIVEMENSHEALTH - Stylesheet */
:root {
  --primary: #0A192F;
  --primary-light: #1E3A8A;
  --primary-dark: #030B17;
  --accent: #3B82F6;
  --accent-light: #DBEAFE;
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 19px;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.logo-text span {
  color: var(--accent);
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-menu li {
  white-space: nowrap;
}
.nav-menu a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-switch {
  display: inline-flex;
  background: #E5E7EB;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.2s;
}
.lang-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cart-btn-head {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cart-btn-head:hover {
  background: #E5E7EB;
}
.cart-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.btn-header {
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-header:hover {
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 64px 0 54px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 56, 44, 0.2);
  text-decoration: none !important;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--primary) !important;
  border: 1px solid var(--border);
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-alt);
}

.hero-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}
.hero-card-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-card-name {
  font-weight: 800;
  color: var(--primary);
  font-size: 17px;
}
.hero-card-title {
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections & Layout */
.section-pad { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* Warning & Comparison Table */
.warning-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.warning-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.warning-row:last-child { border-bottom: none; }
.warning-row:nth-child(even) { background: var(--bg-alt); }
.warning-label { font-weight: 700; color: var(--primary); font-size: 15px; }
.warning-desc { color: var(--text-muted); font-size: 15px; }

/* Interactive Quiz */
.quiz-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}
.quiz-progress-bar {
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 20%;
  transition: width 0.3s ease;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-title {
  font-size: 21px;
  margin-bottom: 18px;
  color: var(--primary);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.quiz-option {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s;
  color: var(--text-dark);
}
.quiz-option:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}
.quiz-option.selected {
  border-color: var(--primary);
  background: var(--accent-light);
  color: var(--primary);
}
.quiz-btn-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
}

.quiz-result-box {
  display: none;
  background: var(--bg-alt);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}
.quiz-result-box.active { display: block; }

/* Article Cards */
.article-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.article-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.article-tag {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}
.article-card h3 { font-size: 18px; margin-bottom: 10px; }
.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
}
.article-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.article-link:hover { text-decoration: underline; }

/* Order Page Layout & Selection Flow */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: start;
}
.product-showcase {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: static;
  margin-bottom: 24px;
}
.product-showcase img {
  max-width: 220px;
  height: auto;
  margin: 0 auto 16px;
}
.cert-badges-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cert-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

/* Package Cards on Order Page */
.package-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}
.package-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s;
  position: relative;
}
.package-card:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}
.package-card.selected {
  border-color: var(--primary) !important;
  background: var(--accent-light) !important;
  box-shadow: var(--shadow-sm);
}
.pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pkg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: #E5E7EB;
  color: #374151;
  margin-bottom: 6px;
}
.package-card.selected .pkg-badge {
  background: var(--primary) !important;
  color: #FFFFFF !important;
}
.pkg-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
}
.pkg-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.pkg-prompt-select {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: #FFFFFF;
  border: 1px solid var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.package-card.selected .pkg-prompt-select {
  display: none !important;
}
.pkg-price-row {
  display: none !important;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  justify-content: space-between;
  align-items: center;
}
.package-card.selected .pkg-price-row {
  display: flex !important;
}
.pkg-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.pkg-save {
  font-size: 12px;
  color: #DC2626;
  font-weight: 800;
  background: #FEE2E2;
  padding: 2px 6px;
  border-radius: 4px;
}

.order-summary-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}

/* Checkout Form */
.checkout-form-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 56, 44, 0.15);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cod-badge {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin: 18px 0;
  font-weight: 600;
  line-height: 1.4;
}

/* Slide-in Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-head h3 { font-size: 18px; }
.cart-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}
.cart-drawer-body {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-weight: 700; font-size: 14px; color: var(--primary); }
.cart-item-price { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cart-item-remove {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.cart-drawer-foot {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Map */
#contactMap {
  width: 100%;
  height: 380px;
  min-height: 380px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin-top: 20px;
}

/* Footer */
footer {
  background: #111827;
  color: #F9FAFB;
  padding: 54px 0 24px;
  border-top: 1px solid #374151;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a, .footer-col ul li button {
  color: #9CA3AF;
  font-size: 14px;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.2s;
}
.footer-col ul li a:hover, .footer-col ul li button:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.6;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .nav-menu { gap: 12px; }
  .nav-menu a { font-size: 13px; }
  .header-actions { gap: 8px; }
  .cart-btn-head { padding: 6px 10px; font-size: 12px; }
  .btn-header { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
    gap: 14px;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .hero-grid, .order-grid, .grid-3, .grid-2, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .warning-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
