/* ═══════════════════════════════════════════════════════════
   ALPHA HOSPITAL — COMPONENTS
   Navbar, Footer, Cards, Buttons, Forms, FAB, Tabs, etc.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--container-px);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-soft);
  z-index: var(--z-nav);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
  height: var(--nav-height-shrink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: contain;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.navbar.scrolled .navbar__logo {
  width: 70px;
  height: 70px;
}

.navbar__name {
  display: flex;
  flex-direction: column;
}
.navbar__name-main {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  letter-spacing: var(--ls-wide);
  line-height: 1.2;
}
.navbar__name-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.navbar__link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  white-space: nowrap;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-white);
  background: var(--bg-glass);
}

.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-teal);
  border-radius: var(--radius-pill);
}

.navbar__emergency {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(var(--red-pulse-rgb), 0.15);
  border: 1px solid rgba(var(--red-pulse-rgb), 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--red-pulse);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  animation: emergencyPulse 2s ease-in-out infinite;
  text-decoration: none;
  margin-left: var(--sp-4);
  flex-shrink: 0;
}

.navbar__emergency-dot {
  width: 6px;
  height: 6px;
  background: var(--red-pulse);
  border-radius: var(--radius-full);
  animation: dotBlink 1s ease-in-out infinite;
}

@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--red-pulse-rgb), 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--red-pulse-rgb), 0); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ─── Mobile Hamburger ─── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
  z-index: calc(var(--z-overlay) + 10);
  background: none;
  border: none;
}

.navbar__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-smooth);
  transform-origin: center;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Menu Overlay ─── */
.navbar__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
}

.navbar__mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.navbar__mobile-link {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  padding: var(--sp-3) var(--sp-8);
  transition: all var(--duration-normal) var(--ease-smooth);
  transform: translateY(20px);
  opacity: 0;
}

.navbar__mobile-menu.open .navbar__mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.navbar__mobile-link:hover,
.navbar__mobile-link.active {
  color: var(--accent-teal);
}

/* Generate stagger delays for mobile links */
.navbar__mobile-link:nth-child(1)  { transition-delay: 0.05s; }
.navbar__mobile-link:nth-child(2)  { transition-delay: 0.10s; }
.navbar__mobile-link:nth-child(3)  { transition-delay: 0.15s; }
.navbar__mobile-link:nth-child(4)  { transition-delay: 0.20s; }
.navbar__mobile-link:nth-child(5)  { transition-delay: 0.25s; }
.navbar__mobile-link:nth-child(6)  { transition-delay: 0.30s; }
.navbar__mobile-link:nth-child(7)  { transition-delay: 0.35s; }
.navbar__mobile-link:nth-child(8)  { transition-delay: 0.40s; }
.navbar__mobile-link:nth-child(9)  { transition-delay: 0.45s; }
.navbar__mobile-link:nth-child(10) { transition-delay: 0.50s; }

@media (max-width: 1024px) {
  .navbar__nav { display: none; }
  .navbar__emergency { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
}

.footer__main {
  padding: var(--sp-20) 0 var(--sp-12);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-12);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-white);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-soft);
}

.footer__about-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

.footer__social {
  display: flex;
  gap: var(--sp-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--ease-smooth);
}
.footer__social-link:hover {
  background: var(--accent-teal);
  color: var(--bg-void);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer__link::before {
  content: '→';
  font-size: var(--fs-xs);
  color: var(--accent-teal);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--duration-fast);
}
.footer__link:hover {
  color: var(--text-white);
  transform: translateX(4px);
}
.footer__link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-teal);
  margin-top: 2px;
}
.footer__contact-item a {
  color: var(--text-muted);
}
.footer__contact-item a:hover {
  color: var(--accent-teal);
}

.footer__bottom {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer__badge-img {
  height: 40px;
  opacity: 0.7;
  transition: opacity var(--duration-normal);
}
.footer__badge-img:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .footer__main {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}

/* Primary */
.btn-primary {
  background: var(--accent-teal);
  color: var(--bg-void);
}
.btn-primary:hover {
  background: #00e8c7;
  color: var(--bg-void);
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-2px);
}

/* Secondary / Ghost */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}
.btn-secondary:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: var(--accent-teal-soft);
}

/* Danger */
.btn-danger {
  background: rgba(var(--red-pulse-rgb), 0.15);
  color: var(--red-pulse);
  border: 1px solid rgba(var(--red-pulse-rgb), 0.3);
}
.btn-danger:hover {
  background: var(--red-pulse);
  color: var(--text-white);
  box-shadow: var(--shadow-red);
}

/* Sizes */
.btn-sm {
  font-size: var(--fs-xs);
  padding: var(--sp-2) var(--sp-5);
}
.btn-lg {
  font-size: var(--fs-base);
  padding: var(--sp-4) var(--sp-10);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════════════════════ */

.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  transition: all var(--duration-slow) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ─── Stat Card ─── */
.stat-card {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
}

.stat-card__number {
  font-family: var(--font-mono);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--accent-teal);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
}

.stat-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ─── Specialty Card ─── */
.specialty-card {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.specialty-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  transition: all var(--duration-normal);
}
.specialty-card:hover .specialty-card__icon {
  background: var(--accent-teal);
  color: var(--bg-void);
  box-shadow: var(--shadow-glow);
}
.specialty-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.specialty-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-white);
}

.specialty-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* ─── Doctor Card ─── */
.doctor-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}

.doctor-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--accent-teal-dim), var(--accent-teal-soft));
  color: var(--accent-teal);
  border: 2px solid var(--border-soft);
  transition: all var(--duration-normal);
  position: relative;
  overflow: hidden;
}

.doctor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.doctor-card:hover .doctor-card__avatar {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow);
}

.doctor-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  margin-bottom: var(--sp-1);
}

.doctor-card__designation {
  font-size: var(--fs-sm);
  color: var(--accent-teal);
  margin-bottom: var(--sp-1);
}

.doctor-card__qualification {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.doctor-card__availability {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  background: rgba(46, 213, 115, 0.1);
  color: var(--success);
  border: 1px solid rgba(46, 213, 115, 0.2);
}

.doctor-card__availability-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--success);
}

/* ─── Package Card ─── */
.package-card {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
}

.package-card__type {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--sp-3);
}

.package-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-snug);
}

.package-card__price {
  font-family: var(--font-mono);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent-teal);
  margin-bottom: var(--sp-6);
  line-height: 1;
}
.package-card__price span {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

.package-card__list {
  flex: 1;
  margin-bottom: var(--sp-8);
}

.package-card__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}

.package-card__item:last-child {
  border-bottom: none;
}

.package-card__item-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-teal);
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */

.form-group {
  position: relative;
  margin-bottom: var(--sp-6);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-dim);
  background: var(--bg-glass-hover);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7a99' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Validation States */
.form-input.valid,
.form-textarea.valid {
  border-color: var(--success);
}
.form-input.invalid,
.form-textarea.invalid {
  border-color: var(--red-pulse);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--red-pulse);
  margin-top: var(--sp-1);
  display: none;
}
.form-group.has-error .form-error {
  display: block;
}

.form-success-icon,
.form-error-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.form-group.has-success .form-success-icon { opacity: 1; }
.form-group.has-error .form-error-icon { opacity: 1; }

/* ─── Star Rating ─── */
.star-rating {
  display: flex;
  gap: var(--sp-1);
  direction: rtl;
  justify-content: flex-end;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: var(--fs-2xl);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--warning);
}

/* ═══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (FAB)
   ═══════════════════════════════════════════════════════════ */

.fab {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: var(--z-fab);
}

.fab__trigger {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--red-pulse);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
}

.fab__trigger::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--red-pulse);
  animation: fabRingPulse 2s ease-out infinite;
}

@keyframes fabRingPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.fab__trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(var(--red-pulse-rgb), 0.4);
}

.fab__trigger svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--duration-normal);
}

.fab.open .fab__trigger svg {
  transform: rotate(45deg);
}

.fab__menu {
  position: absolute;
  bottom: calc(100% + var(--sp-4));
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.fab.open .fab__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--duration-normal);
  backdrop-filter: var(--glass-blur);
}

.fab__item:hover {
  background: var(--accent-teal);
  color: var(--bg-void);
  border-color: var(--accent-teal);
  transform: translateX(-4px);
}

.fab__item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 640px) {
  .fab {
    bottom: var(--sp-5);
    right: var(--sp-5);
  }
  .fab__trigger {
    width: 52px;
    height: 52px;
  }
}

/* ═══════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: var(--sp-2);
  background: var(--bg-glass);
  padding: var(--sp-1);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-teal);
  color: var(--bg-void);
  font-weight: var(--fw-semibold);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-out);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   ACCORDION
   ═══════════════════════════════════════════════════════════ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.accordion__item {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-normal);
}

.accordion__item.open {
  border-color: var(--border-hover);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  transition: color var(--duration-normal);
}

.accordion__header:hover {
  color: var(--accent-teal);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-smooth);
  flex-shrink: 0;
}

.accordion__item.open .accordion__icon {
  transform: rotate(180deg);
  color: var(--accent-teal);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-smooth);
}

.accordion__item.open .accordion__body {
  max-height: 1000px;
}

.accordion__content {
  padding: 0 var(--sp-6) var(--sp-6);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: var(--glass-blur-lg);
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.lightbox.open .lightbox__image {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.lightbox__close:hover {
  background: var(--red-pulse);
  border-color: var(--red-pulse);
  color: white;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.lightbox__nav:hover {
  background: var(--accent-teal);
  color: var(--bg-void);
}
.lightbox__nav--prev { left: var(--sp-6); }
.lightbox__nav--next { right: var(--sp-6); }

.lightbox__caption {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  background: var(--bg-glass);
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  backdrop-filter: var(--glass-blur);
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE (Auto-scroll Insurance Strip)
   ═══════════════════════════════════════════════════════════ */

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  padding: var(--sp-8) 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-void), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-void), transparent);
}

.marquee-track {
  display: flex;
  gap: var(--sp-12);
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) var(--sp-6);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-normal);
}

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

.marquee-item img {
  max-height: 32px;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--glass-blur);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

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

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--duration-slow) var(--ease-spring);
}

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

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__icon--success {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
}

.modal__icon--error {
  background: rgba(var(--red-pulse-rgb), 0.15);
  color: var(--red-pulse);
}

.modal__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.modal__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

.modal__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

/* ═══════════════════════════════════════════════════════════
   BADGES & PILLS
   ═══════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  letter-spacing: var(--ls-wide);
}

.badge-teal {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal-dim);
}

.badge-red {
  background: rgba(var(--red-pulse-rgb), 0.1);
  color: var(--red-pulse);
  border: 1px solid rgba(var(--red-pulse-rgb), 0.2);
}

.badge-green {
  background: rgba(46, 213, 115, 0.1);
  color: var(--success);
  border: 1px solid rgba(46, 213, 115, 0.2);
}

/* ─── Info Pill (Hero Section) ─── */
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: var(--glass-blur-sm);
}

.info-pill__value {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--accent-teal);
}

.info-pill__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY MASONRY
   ═══════════════════════════════════════════════════════════ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all var(--duration-normal);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  font-size: var(--fs-sm);
  color: var(--text-white);
  font-weight: var(--fw-medium);
}

/* ═══════════════════════════════════════════════════════════
   FEATURE LIST (Why Alpha Section)
   ═══════════════════════════════════════════════════════════ */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal);
}

.feature-item:hover {
  background: var(--bg-glass);
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
}

.feature-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-item__text h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  margin-bottom: var(--sp-1);
}

.feature-item__text p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   FILTER BUTTONS
   ═══════════════════════════════════════════════════════════ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-normal);
}

.filter-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.filter-btn.active {
  background: var(--accent-teal);
  color: var(--bg-void);
  border-color: var(--accent-teal);
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: var(--sp-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-soft);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-10);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--sp-10) + 8px);
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--bg-void);
  border: 3px solid var(--accent-teal);
  z-index: 1;
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent-teal);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

.timeline__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  margin-bottom: var(--sp-2);
}

.timeline__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR NAV (Specialties page)
   ═══════════════════════════════════════════════════════════ */

.sidebar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.sidebar-nav {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--sp-4);
  max-height: calc(100vh - var(--nav-height) - var(--sp-12));
  overflow-y: auto;
}

.sidebar-nav__link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.sidebar-nav__link:hover {
  color: var(--text-white);
  background: var(--bg-glass-hover);
}

.sidebar-nav__link.active {
  color: var(--accent-teal);
  background: var(--accent-teal-soft);
}

@media (max-width: 1024px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    max-height: none;
    overflow: visible;
  }
  .sidebar-nav__link {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-xs);
  }
}

/* ═══════════════════════════════════════════════════════════
   INSURANCE LOGO GRID
   ═══════════════════════════════════════════════════════════ */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal);
  min-height: 100px;
  text-align: center;
}

.logo-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.logo-card img {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: var(--sp-3);
}

.logo-card__name {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}

/* ═══════════════════════════════════════════════════════════
   CAPTCHA
   ═══════════════════════════════════════════════════════════ */

.captcha-box {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-6);
}

.captcha-box__question {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  flex: 1;
}

.captcha-box__input {
  width: 80px;
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  outline: none;
}

.captcha-box__input:focus {
  border-color: var(--accent-teal);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL INDICATOR (Hero)
   ═══════════════════════════════════════════════════════════ */

.scroll-indicator {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator__dot {
  width: 4px;
  height: 8px;
  background: var(--accent-teal);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

.scroll-indicator__text {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100%     { transform: translateX(-50%) translateY(12px); opacity: 0; }
}
