/**
 * Turamance — Natural Path to Better Performance
 * Premium Men's Sexual & Intimate Wellness Design System
 * Confidential. Clinical. Modern. Trustworthy.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  /* ==========================================================================
     TURAMANCE BRAND PALETTE (DERIVED FROM OFFICIAL LOGO)
     ========================================================================== */
  
  /* Primary Clinical Forest Green */
  --primary: #143822;
  --primary-hover: #0d2617;
  --primary-light: #eef6ed;
  --primary-subtle: #f4faf2;
  --primary-gradient: linear-gradient(135deg, #0e2b19 0%, #174226 55%, #4ea310 100%);
  --primary-glow: rgba(20, 56, 34, 0.28);

  /* Performance Green Accent (Logo M & ANCE) */
  --accent: #4ea310;
  --accent-hover: #3d830b;
  --accent-light: #edf8e7;
  --accent-gradient: linear-gradient(135deg, #4ea310 0%, #68bf22 100%);
  --accent-glow: rgba(78, 163, 16, 0.35);

  /* Secondary Midnight Emerald / Botanical */
  --secondary: #0a2114;
  --secondary-hover: #06150d;
  --secondary-light: #e8f3e6;
  --secondary-gradient: linear-gradient(135deg, #0a2114 0%, #154228 100%);

  /* Trust & Medical Status */
  --success: #15803d;
  --success-light: #dcfce7;
  --success-text: #14532d;
  --success-gradient: linear-gradient(135deg, #15803d 0%, #22c55e 100%);

  --danger: #dc2626;
  --danger-light: #fee2e2;
  --danger-text: #991b1b;

  --warning: #d97706;
  --warning-light: #fef3c7;
  --warning-text: #92400e;

  /* Masculine Deep Obsidian/Forest Dark Surfaces */
  --dark-950: #06110a;
  --dark-900: #0a1b10;
  --dark-800: #102919;
  --dark-700: #173b24;

  /* Modern Slate Neutrals */
  --gray-50: #f8faf8;
  --gray-100: #eef3ed;
  --gray-200: #e0e9df;
  --gray-300: #cbd5cb;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;
  --body-bg: #f9fbf8;
  --card-bg: #ffffff;
  --text-main: #0f172a;       /* Slate 900 for high clinical readability */
  --text-muted: #475569;      /* Slate 600 */
  --border-color: #e2ece1;    /* Soft herbal-tinted gray border */
  --border-subtle: #edf4ec;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 33, 20, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 33, 20, 0.06);
  --shadow-md: 0 10px 22px -4px rgba(10, 33, 20, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 18px 36px -8px rgba(10, 33, 20, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 26px 54px -12px rgba(10, 33, 20, 0.18), 0 8px 24px -4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 12px 30px rgba(78, 163, 16, 0.28);
  --shadow-glow-primary: 0 12px 30px rgba(20, 56, 34, 0.32);

  /* Radius Tokens */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Dimensions */
  --sidebar-width: 280px;
  --topbar-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Grid & Containers */
.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -14px;
  margin-right: -14px;
}

[class*="col-"] {
  padding-left: 14px;
  padding-right: 14px;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1024px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 18px; }
.gap-4 { gap: 26px; }
.gap-5 { gap: 36px; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 6px !important; }
.mt-2 { margin-top: 12px !important; }
.mt-3 { margin-top: 18px !important; }
.mt-4 { margin-top: 26px !important; }
.mt-5 { margin-top: 36px !important; }
.mb-1 { margin-bottom: 6px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mb-4 { margin-bottom: 26px !important; }
.mb-5 { margin-bottom: 36px !important; }
.mr-1 { margin-right: 6px !important; }
.mr-2 { margin-right: 10px !important; }
.mr-3 { margin-right: 16px !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 12px !important; }
.p-3 { padding: 18px !important; }
.p-4 { padding: 26px !important; }
.p-5 { padding: 36px !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 18px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d2617 0%, #153d23 50%, #3e880b 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(20, 56, 34, 0.42);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-gradient);
  color: var(--white);
  box-shadow: 0 4px 18px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #3d830b 0%, #56a81b 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(78, 163, 16, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--gray-800);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.32);
}

.btn-success:hover {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.42);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #b91c1c;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary {
  background-color: rgba(20, 56, 34, 0.04);
  border-color: rgba(20, 56, 34, 0.35);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow-primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); border: 1px solid rgba(20, 56, 34, 0.2); }
.badge-accent { background-color: var(--accent-light); color: var(--accent-hover); border: 1px solid rgba(78, 163, 16, 0.25); }
.badge-success { background-color: var(--success-light); color: var(--success-text); border: 1px solid rgba(21, 128, 61, 0.2); }
.badge-danger { background-color: var(--danger-light); color: var(--danger-text); border: 1px solid rgba(220, 38, 38, 0.2); }
.badge-warning { background-color: var(--warning-light); color: var(--warning-text); border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-secondary { background-color: #f1f6f0; color: #204e30; border: 1px solid var(--border-color); }
.badge-info { background-color: var(--primary-light); color: var(--primary); border: 1px solid rgba(20, 56, 34, 0.2); }

.badge-duration {
  background: var(--primary-gradient);
  color: #fff;
  padding: 6px 16px;
  font-size: 0.8125rem;
  box-shadow: 0 2px 10px rgba(20, 56, 34, 0.25);
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(78, 163, 16, 0.35);
}

.card-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
}

.card-body {
  padding: 26px;
}

.card-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--border-color);
  background-color: var(--gray-50);
}

/* Modern Forms */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--gray-900);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Alerts & Flash Notifications */
.flash-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 440px;
  width: calc(100% - 48px);
}

.alert {
  padding: 16px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xl);
  border-left: 5px solid transparent;
  position: relative;
  backdrop-filter: blur(8px);
}

.alert-success {
  background-color: #f0fdf4;
  color: var(--success-text);
  border-color: var(--success);
}

.alert-danger {
  background-color: #fef2f2;
  color: var(--danger-text);
  border-color: var(--danger);
}

.alert-warning {
  background-color: #fffbeb;
  color: var(--warning-text);
  border-color: var(--warning);
}

.alert-info {
  background-color: #eef6ed;
  color: #143822;
  border-color: #4ea310;
}

.alert .btn-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: inherit;
  margin-left: auto;
  padding-left: 14px;
  opacity: 0.7;
}

.alert .btn-close:hover { opacity: 1; }

/* Progress Bar Engine */
.progress-bar-container {
  width: 100%;
  background-color: #e2ece1;
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.9375rem;
}

.table th {
  background-color: #eef6ed;
  color: #143822;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.18s ease;
}

.table tbody tr:hover {
  background-color: #f4faf2;
}

/* Empty State Illustration Component */
.empty-state-wrap {
  padding: 50px 24px;
  text-align: center;
}

.empty-state-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Confidential Seal Badge */
.confidential-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 56, 34, 0.08);
  border: 1px solid rgba(78, 163, 16, 0.35);
  color: #143822;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS SYSTEM (320px to 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Prevent iOS Safari and Chrome mobile zoom on input focus across entire site */
  .form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
    font-size: 16px !important;
    max-width: 100%;
  }

  h1 { font-size: 1.85rem; }
  h2, .section-title, .why-choose-title, section h2 { font-size: 1.62rem !important; line-height: 1.25 !important; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.15rem; }

  .flash-container {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .container-fluid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .row {
    margin-left: -8px;
    margin-right: -8px;
  }

  [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  .p-4 { padding: 16px !important; }
  .p-5 { padding: 20px !important; }

  .card {
    border-radius: var(--radius-md);
  }

  .card-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .card-body {
    padding: 16px;
  }

  .card-footer {
    padding: 14px 16px;
  }

  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 13px 22px;
    font-size: 0.95rem;
    width: 100%;
  }

  .empty-state-wrap {
    padding: 32px 14px;
  }

  .empty-state-img {
    width: 120px;
    height: 120px;
  }

  h1 { font-size: 1.7rem; }
  h2, .section-title, .why-choose-title, section h2 { font-size: 1.45rem !important; line-height: 1.25 !important; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 360px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }

  .p-3 { padding: 12px !important; }
  .p-4 { padding: 12px !important; }
  .p-5 { padding: 14px !important; }

  .card-header {
    padding: 12px 10px;
  }

  .card-body {
    padding: 12px 10px;
  }

  .card-footer {
    padding: 12px 10px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  h1 { font-size: 1.5rem; }
  h2, .section-title, .why-choose-title, section h2 { font-size: 1.3rem !important; line-height: 1.25 !important; }
}
