/* MyWholeHealth Components */
/* Buttons, Cards, Navigation, Footer */

/* ===============================
   BUTTONS
   =============================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-medium);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--teal-400);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 20px rgba(210, 174, 149, 0.5), var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-500);
  border: 2px solid var(--teal-500);
}

.btn-secondary:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  border: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost:hover {
  color: var(--teal-500);
}

.btn-large {
  padding: 20px 48px;
  font-size: 18px;
  font-weight: var(--weight-bold);
}

.btn-group {
  display: flex;
  gap: var(--grid-gap-small);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===============================
   BADGES
   =============================== */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--teal-500);
  background: linear-gradient(135deg, rgba(44, 141, 113, 0.1) 0%, rgba(210, 174, 149, 0.05) 100%);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(210, 174, 149, 0.1);
}

/* ===============================
   CARDS
   =============================== */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid var(--slate-200);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(44, 141, 113, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  color: var(--navy-900);
  margin-bottom: 12px;
}

.card-description {
  color: var(--slate-600);
  line-height: var(--line-relaxed);
}

.card-teal {
  background: var(--teal-500);
  color: var(--white);
  border: none;
}

.card-teal .card-title {
  color: var(--white);
}

.card-teal .card-description {
  color: rgba(255, 255, 255, 0.9);
}

.card-orange {
  background: var(--accent-orange);
  color: var(--white);
  border: none;
}

.card-orange .card-title {
  color: var(--white);
}

.card-orange .card-description {
  color: rgba(255, 255, 255, 0.9);
}

.card-green {
  background: var(--green-accent);
  color: var(--white);
  border: none;
}

.card-green .card-title {
  color: var(--white);
}

.card-green .card-description {
  color: rgba(255, 255, 255, 0.9);
}

.card-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  color: var(--navy-900);
  border: none;
  box-shadow: 0 8px 24px rgba(210, 174, 149, 0.3);
}

.card-gold .card-title {
  color: var(--navy-900);
}

.card-gold .card-description {
  color: var(--navy-800);
}

/* ===============================
   NAVIGATION
   =============================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 0;
  z-index: 1000;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-900);
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
}

.navbar-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.navbar-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-medium);
  color: var(--navy-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-link:hover {
  color: var(--teal-500);
}

.navbar-link.active {
  color: var(--teal-500);
  border-bottom: 2px solid var(--teal-500);
  padding-bottom: 4px;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle-icon {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  display: block;
  position: relative;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  position: absolute;
  left: 0;
  transition: all var(--transition-fast);
}

.navbar-toggle-icon::before {
  top: -8px;
}

.navbar-toggle-icon::after {
  bottom: -8px;
}

@media (max-width: 968px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: left var(--transition-medium);
    box-shadow: var(--shadow-lg);
  }

  .navbar-menu.active {
    left: 0;
  }
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  background: var(--navy-900);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--grid-gap-large);
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

.footer-description {
  color: var(--slate-300);
  line-height: var(--line-relaxed);
}

.footer-section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--slate-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--teal-400);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(44, 141, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
  text-decoration: none;
  font-size: 20px;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: 30px;
  text-align: center;
  color: var(--slate-400);
  font-size: 14px;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-medium);
  }
}

/* ===============================
   ACCORDION (FAQ)
   =============================== */

.accordion {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--slate-200);
}

.accordion-header {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: var(--slate-100);
}

.accordion-icon {
  font-size: 24px;
  color: var(--teal-500);
  transition: transform var(--transition-fast);
}

.accordion.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.accordion.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--slate-600);
  line-height: var(--line-relaxed);
}

/* ===============================
   LAB TEST CARDS
   =============================== */

.lab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap-medium);
}

.lab-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-medium);
}

.lab-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-300);
}

.lab-card .lab-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: grayscale(30%);
}

.lab-card h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  color: var(--navy-900);
  margin-bottom: 12px;
}

.lab-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: var(--line-relaxed);
  margin-bottom: 16px;
}

.lab-badge {
  display: inline-block;
  background: rgba(44, 141, 113, 0.1);
  color: var(--teal-500);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===============================
   COST COMPARISON TABLE
   =============================== */

.cost-comparison-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cost-comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.cost-comparison-table thead {
  background: var(--navy-900);
  color: var(--white);
}

.cost-comparison-table th {
  padding: 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-bold);
}

.cost-comparison-table tbody tr {
  border-bottom: 1px solid var(--slate-200);
  transition: background var(--transition-fast);
}

.cost-comparison-table tbody tr:nth-child(even) {
  background: var(--slate-50);
}

.cost-comparison-table tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
}

.cost-comparison-table tbody tr.highlight {
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid var(--accent-orange);
}

.cost-comparison-table tbody tr.total {
  background: var(--teal-500);
  color: var(--white);
  border: none;
}

.cost-comparison-table tbody tr.total td {
  padding: 20px;
  font-weight: var(--weight-bold);
  font-size: 1.125rem;
}

.cost-comparison-table td {
  padding: 16px 20px;
  color: var(--slate-700);
}

.table-caption {
  text-align: center;
  padding: 16px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .cost-comparison-table {
    overflow-x: auto;
  }

  .cost-comparison-table table {
    min-width: 500px;
  }
}

/* ===============================
   INSTAGRAM ICON (SVG)
   =============================== */

.instagram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===============================
   7 DISCIPLINES GRID
   =============================== */

.disciplines-grid {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px 40px;
}

.disciplines-center {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--teal-500) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: var(--shadow-xl);
}

.disciplines-center h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--weight-bold);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.disciplines-center p {
  font-size: 1.25rem;
  color: var(--white);
  opacity: 0.98;
  font-weight: var(--weight-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.discipline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--white) 0%, var(--slate-50) 100%);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
  animation-delay: calc(var(--i) * 0.1s);
  animation-fill-mode: both;
  cursor: pointer;
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--shadow-md);
}

.discipline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--navy-900));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.discipline-item:hover::before {
  transform: scaleX(1);
}

.discipline-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.25);
  border-color: var(--teal-400);
  background: linear-gradient(135deg, var(--white) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.discipline-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discipline-item:hover .discipline-front {
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
}

.discipline-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0891b2 100%);
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
}

.discipline-item:hover .discipline-back {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.discipline-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.discipline-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  color: var(--navy-900);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.discipline-description {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.7;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
  .disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 20px;
  }

  .disciplines-center {
    padding: 40px 24px;
  }

  .disciplines-center h3 {
    font-size: 2rem;
  }

  .disciplines-center p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .disciplines-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 16px;
  }

  .discipline-item {
    padding: 32px 24px;
    min-height: 180px;
  }

  .discipline-icon {
    font-size: 48px;
  }

  .discipline-name {
    font-size: 1rem;
  }

  .discipline-description {
    font-size: 0.9rem;
  }
}

/* ===============================
   GOLD ACCENT UTILITIES
   =============================== */

.text-gold {
  color: var(--gold-500);
}

.border-gold {
  border-color: var(--gold-500);
}

.bg-gold-light {
  background: var(--gold-300);
}

/* Gold accent hover states for buttons */
.btn-primary-gold {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.btn-primary-gold:hover {
  background: var(--teal-400);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 20px rgba(210, 174, 149, 0.4);
  transform: translateY(-2px);
}
