/* =====================================================================
   Health By PureInfo - Minimalist Human Design System
   Rich, Comforting Color Palette & Flawless Cross-Device Search Fitting
   ===================================================================== */

:root {
  /* Rich Comforting Botanical Emerald & Pine */
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --primary: var(--emerald-700);
  --primary-hover: var(--emerald-800);
  --primary-tint: var(--emerald-50);
  --primary-border: var(--emerald-200);

  /* Deep Comforting Ink & Warm Stone Neutrals (Eliminates Glare) */
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50:  #fafaf9;

  --bg-page: #fbfbf9;      /* Warm soft porcelain - easy on eyes */
  --bg-card: #ffffff;
  --text-title: var(--stone-900);
  --text-body: var(--stone-700);
  --text-muted: var(--stone-500);
  --border-light: var(--stone-200);
  --border-hover: var(--stone-300);

  /* Warm Nutritional Accents */
  --amber-dark: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --rose-dark: #b91c1c;
  --rose-bg: #fef2f2;
  --rose-border: #fecaca;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(28, 25, 23, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(28, 25, 23, 0.05), 0 1px 2px -1px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 6px 12px -2px rgba(28, 25, 23, 0.06), 0 3px 6px -3px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 14px 24px -4px rgba(28, 25, 23, 0.08), 0 6px 8px -3px rgba(28, 25, 23, 0.03);
  --shadow-modal: 0 25px 50px -12px rgba(12, 10, 9, 0.25);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  overflow-x: hidden; /* Strict guarantee against mobile horizontal overflow */
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* =====================================================================
   HEADER & NAVBAR (FLAWLESS CROSS-DEVICE FITTING)
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(251, 251, 249, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* REQUIRED LOGO DESIGN:
   "Health By PureInfo" with "By PureInfo" in small font situated under "Health" at the right bottom part */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--stone-900);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  align-self: flex-end; /* Situated under 'Health' at the right bottom part */
  margin-top: 2px;
}

/* DESKTOP NAVIGATION MENU */
.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--stone-700);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-tint);
}

.nav-arrow {
  font-size: 0.6rem;
  color: var(--stone-400);
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* DROPDOWN FLYOUT */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  max-height: 460px;
  overflow-y: auto;
  padding: 0.4rem;
  display: none;
  z-index: 1010;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--stone-700);
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
}

.dropdown-link:hover {
  background-color: var(--primary-tint);
  color: var(--primary-hover);
  padding-left: 0.95rem;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 0.35rem 0.4rem;
}

/* HEADER ACTION BUTTONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* SLEEK SEARCH BUTTON IN HEADER (DESKTOP) */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem;
  color: var(--stone-500);
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.nav-search-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background-color: var(--primary-tint);
}

.kbd-hint {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--stone-100);
  color: var(--stone-500);
  border: 1px solid var(--stone-200);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.btn-nav-cta {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* MOBILE HEADER BUTTONS */
.mobile-header-btns {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.45rem;
  cursor: pointer;
  color: var(--stone-700);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.mobile-toggle {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.65rem;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--stone-700);
  background-color: #ffffff;
}

/* MOBILE DRAWER */
.mobile-drawer {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-search-trigger {
  margin-bottom: 1rem;
}

.mobile-inner-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background-color: var(--stone-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--stone-500);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item a {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stone-800);
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--stone-100);
}

/* =====================================================================
   UNIVERSAL GLOBAL SEARCH MODAL (FITS ALL DEVICES FLAWLESSLY)
   ===================================================================== */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 10, 9, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-light);
  overflow: hidden;
  animation: modalScaleIn 0.16s ease-out;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.search-modal-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  background-color: #ffffff;
}

.modal-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-search-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.modal-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--stone-900);
  font-family: inherit;
  background: transparent;
}

.modal-search-input::placeholder {
  color: var(--stone-400);
}

.modal-clear-btn, .modal-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--stone-400);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.modal-clear-btn:hover, .modal-close-btn:hover {
  color: var(--stone-800);
  background-color: var(--stone-100);
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--stone-50);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: nowrap;
}

.quick-tags-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stone-400);
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.quick-tag {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stone-600);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}

.quick-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-tint);
}

.modal-search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-start-message {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--stone-500);
  font-size: 0.95rem;
}

.modal-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  color: var(--stone-800);
  border-bottom: 1px solid var(--stone-100);
  text-decoration: none;
  transition: background 0.12s ease;
}

.modal-result-item:hover {
  background-color: var(--primary-tint);
  color: var(--primary-hover);
}

.modal-result-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-result-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-tint);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
}

/* =====================================================================
   IN-PAGE SEARCH & FILTER BAR (100% RESPONSIVE)
   ===================================================================== */
.search-filter-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-xs);
  width: 100%;
}

.inpage-search-wrap {
  width: 100%;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.4rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--stone-900);
  background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2378716c" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 0.85rem center;
  outline: none;
  transition: all 0.15s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

.filter-pills {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  background-color: var(--stone-100);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone-600);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pill-btn:hover, .pill-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* =====================================================================
   MAIN CONTAINER & TYPOGRAPHY
   ===================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--stone-500);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--stone-500);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs-current {
  color: var(--stone-900);
  font-weight: 600;
}

/* 30-SECOND SNAPSHOT CARD */
.snapshot-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--primary-tint) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.snapshot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.snapshot-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--stone-900);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.snapshot-text {
  font-size: 1.1rem;
  color: var(--stone-800);
  line-height: 1.72;
  max-width: 900px;
}

/* STICKY JUMP NAV */
.jump-nav {
  position: sticky;
  top: 68px;
  z-index: 850;
  background-color: rgba(251, 251, 249, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.jump-nav::-webkit-scrollbar {
  display: none;
}

.jump-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stone-600);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.jump-link:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* HERO SECTION */
.hero-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--stone-50) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-tag {
  display: inline-block;
  background-color: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--stone-900);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--stone-600);
  max-width: 860px;
  line-height: 1.7;
}

/* SECTION TITLES & CONTENT BLOCKS */
.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--stone-900);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.4rem;
  background-color: var(--primary);
  border-radius: 2px;
}

.content-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
}

/* MECHANISM LIST */
.mechanism-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mechanism-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background-color: var(--stone-50);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.mechanism-item:hover {
  border-color: var(--primary-border);
}

.mechanism-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.mechanism-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--stone-900);
  margin-bottom: 0.25rem;
}

.mechanism-text p {
  color: var(--stone-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CLINICAL TABLES */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.clinical-table th {
  background-color: var(--stone-100);
  color: var(--stone-700);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
}

.clinical-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  color: var(--stone-800);
  vertical-align: middle;
}

.clinical-table tr:nth-child(even) td {
  background-color: var(--stone-50);
}

.nutrient-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nutrient-bar-bg {
  flex: 1;
  height: 7px;
  background-color: var(--stone-200);
  border-radius: 4px;
  overflow: hidden;
  max-width: 110px;
}

.nutrient-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
}

/* ALERT PANELS */
.alert-panel {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid transparent;
}

.alert-panel.danger {
  background-color: var(--rose-bg);
  border: 1px solid var(--rose-border);
  border-left-width: 5px;
  border-left-color: var(--rose-dark);
}

.alert-panel.warning {
  background-color: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-left-width: 5px;
  border-left-color: var(--amber-dark);
}

.alert-header {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-panel.danger .alert-header { color: var(--rose-dark); }
.alert-panel.warning .alert-header { color: var(--amber-dark); }

.alert-list {
  padding-left: 1.25rem;
  line-height: 1.7;
}

.alert-panel.danger .alert-list li { color: #991b1b; margin-bottom: 0.4rem; }
.alert-panel.warning .alert-list li { color: #92400e; margin-bottom: 0.4rem; }

/* DIRECTORY CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.micro-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.micro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.micro-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.micro-card-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 0.4rem;
}

.micro-card-tagline {
  font-size: 0.88rem;
  color: var(--stone-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

.micro-card-link {
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
}

.micro-card-link:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* =====================================================================
   BODY FAT & SOMATOTYPE ENGINE (CALCULATOR)
   ===================================================================== */
.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
}

@media (max-width: 960px) {
  .calc-layout { grid-template-columns: 1fr; }
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-item label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--stone-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-item input, .field-item select {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.field-item input:focus, .field-item select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.unit-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.btn-toggle {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.results-hero {
  background: linear-gradient(145deg, #064e3b 0%, #022c22 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.results-hero-val {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #34d399;
  letter-spacing: -0.02em;
}

.results-hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a7f3d0;
}

.bf-gauge-container {
  margin: 1.25rem 0 0.5rem;
}

.bf-gauge-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.bf-gauge-segment {
  height: 100%;
}

.bf-gauge-athletic { background-color: #10b981; flex: 14; }
.bf-gauge-fitness { background-color: #38bdf8; flex: 4; }
.bf-gauge-average { background-color: #f59e0b; flex: 7; }
.bf-gauge-elevated { background-color: #ef4444; flex: 15; }

.bf-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #a7f3d0;
}

.badge-tier {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.65rem;
}

.tier-athletic { background-color: #059669; color: #ffffff; }
.tier-fitness { background-color: #0284c7; color: #ffffff; }
.tier-average { background-color: #d97706; color: #ffffff; }
.tier-elevated { background-color: #dc2626; color: #ffffff; }
.tier-none { background-color: var(--stone-600); color: #ffffff; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background-color: var(--stone-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
}

.kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--stone-900);
  margin: 0.2rem 0;
}

.btn-pdf {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.18s ease;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
}

.btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 1.25rem 2rem;
  margin-top: 4.5rem;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--stone-500);
  transition: all 0.12s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--stone-400);
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--stone-100);
  color: var(--stone-600);
  border: 1px solid var(--stone-200);
}

/* =====================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ===================================================================== */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-search-btn { display: none; }
  .mobile-header-btns { display: flex; }
  .footer-content { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .btn-nav-cta { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .hero-title, .snapshot-title { font-size: 1.9rem; }
  .form-group-grid, .kpi-grid { grid-template-columns: 1fr; }
  .search-modal-overlay { padding-top: 1rem; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
  .hero-card, .snapshot-card, .content-block { padding: 1.5rem 1.25rem; }
}
