/* Arthrofrax Components Core */

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgba(255, 255, 255, .74);
  border-bottom: 1px solid rgba(10, 46, 115, .08);
  backdrop-filter: blur(18px);
  transition: all .3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 40px rgba(8, 17, 32, .07);
}

.nav-shell {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  font: 800 14px/1 var(--font-display);
}

.nav-link {
  position: relative;
  padding-block: var(--space-4);
  color: var(--text);
  transition: color .3s;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(8, 17, 32, .06);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--primary);
  border-radius: 999px;
  transition: transform .28s ease, opacity .2s ease, background .2s ease;
  transform-origin: center;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 46, 115, .18);
  box-shadow: 0 14px 34px rgba(8, 17, 32, .10);
}

.nav-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 249, 255, .92));
  border-color: rgba(10, 46, 115, .14);
  box-shadow: 0 16px 36px rgba(8, 17, 32, .10);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.35);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 800 14px/1 var(--font-display);
  cursor: pointer;
  transition: transform .35s var(--motion-soft), box-shadow .35s var(--motion-soft), background .35s var(--motion-soft);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-outline {
  color: var(--primary);
  background: rgba(255, 255, 255, .64);
  border-color: rgba(10, 46, 115, .35);
}

.btn-success {
  color: var(--white);
  background: var(--success);
  box-shadow: 0 18px 48px rgba(24, 182, 106, .28);
}

.btn-outline-white {
  color: white;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 13px;
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: white;
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

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

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #ef4444;
  color: white;
}

/* Form Styles */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #E2E8F0; border-radius: 12px;
  background: #F8FAFC; font-family: inherit; font-size: 15px; transition: all 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light); background: white; box-shadow: 0 0 0 4px rgba(10, 46, 115, 0.05);
}

/* Compliance Notice Modal Style */
.compliance-modal-content { text-align: center; }
.compliance-modal-content i { color: #0A2E73; margin-bottom: 20px; }
.compliance-modal-content h3 { font-size: 24px; margin-bottom: 16px; color: #0A2E73; }
.compliance-modal-content p { font-size: 15px; color: #475569; margin-bottom: 32px; line-height: 1.6; }

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}

.footer img { width: 180px; height: auto; margin-bottom: 24px; }
.footer p, .footer a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color .3s; }
.footer a:hover { color: white; }
.footer h4 { color: white; margin-bottom: 24px; font: 800 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
.footer nav { display: flex; flex-direction: column; gap: 12px; }
.footer-pill { 
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid rgba(255,255,255,0.2); border-radius: 99px; margin-top: 10px;
}

.footer-bottom {
  margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
}

.medical-notice {
  padding: 18px 0;
  border-top: 1px solid rgba(10, 46, 115, .08);
  border-bottom: 1px solid rgba(10, 46, 115, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(244, 248, 255, .94) 100%);
}

.medical-notice .container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.medical-notice strong {
  color: var(--primary);
  font: 800 12px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.medical-notice p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .medical-notice .container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  
  .nav-toggle { 
    display: block; 
    margin-left: auto;
  }

  .nav-menu { 
    display: flex; 
    position: fixed;
    z-index: 60;
    top: calc(var(--header-height) + 12px);
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 30px);
    height: auto;
    padding: 14px;
    border: 1px solid rgba(10, 46, 115, .12);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 248, 255, .88));
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
      0 24px 70px rgba(8, 17, 32, .16),
      inset 0 1px 0 rgba(255, 255, 255, .72);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
  }

  .nav-menu.open { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.2;
    color: var(--text);
    background: transparent;
    transition: background .2s ease, transform .2s ease, color .2s ease;
  }

  .nav-link:hover {
    background: rgba(10, 46, 115, .06);
    transform: translateX(2px);
  }

  .nav-cta { 
    display: none !important; 
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
}

@media (max-width: 760px) {
  .site-header,
  .modal-overlay {
    backdrop-filter: none;
  }

  .nav-menu {
    left: 10px;
    right: 10px;
    top: calc(var(--header-height) + 8px);
    max-height: calc(100vh - var(--header-height) - 18px);
    border-radius: 20px;
    padding: 12px;
  }

  .nav-link {
    min-height: 48px;
    padding: 12px 16px;
  }
}
