/*
Theme Name: Altiora Healthcare
Theme URI: https://altiorahealth.com
Author: Altiora Healthcare
Description: Premium Corporate Healthcare RCM Theme. Precision typography, calibrated spacing, and lightweight CSS micro-interactions.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: altiora
Tags: custom-colors, custom-logo, custom-menu, featured-images
*/

:root {
  /* Motion & Easing Tokens */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-premium);
  --transition-medium: 0.35s var(--ease-premium);
  --transition-slow: 0.6s var(--ease-premium);

  /* Color System Tokens */
  --altiora-primary: #063b70;
  --altiora-primary-hover: #084c8d;
  --altiora-secondary: #00a2e0;
  --altiora-accent: #8CC63F;
  --altiora-dark: #061a30;
  --altiora-heading: #062343;
  --altiora-slate: #0f172a;
  --altiora-light: #f8fafc;
  --altiora-surface: #ffffff;
  --altiora-border: rgba(226, 232, 240, 0.85);
  --altiora-border-hover: rgba(6, 59, 112, 0.24);

  /* Calibrated Senior Agency Shadow System */
  --shadow-subtle: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 10px 32px -4px rgba(6, 59, 112, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card-hover: 0 4px 12px 0 rgba(15, 23, 42, 0.04), 0 24px 48px -8px rgba(6, 59, 112, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-btn-primary: 0 2px 4px 0 rgba(6, 59, 112, 0.18), 0 6px 20px 0 rgba(6, 59, 112, 0.26);
  --shadow-btn-hover: 0 4px 8px 0 rgba(6, 59, 112, 0.2), 0 12px 28px 0 rgba(6, 59, 112, 0.38);

  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
  --scrollbar-size: 6px;
  --scrollbar-radius: 9999px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155; /* Slate 700 - optimal readability */
  background-color: var(--altiora-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Bulletproof Icon Size Classes */
.icon-sm {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  display: inline-block;
}

.icon-md {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block;
}

.icon-lg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex-shrink: 0 !important;
  display: inline-block;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6,
.font-jakarta {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--altiora-heading);
}

.heading-display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

/* Glassmorphism Header */
.altiora-glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.02);
}

/* Card Surface Architecture */
.bento-card {
  background: var(--altiora-surface);
  border: 1px solid var(--altiora-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
  border-radius: 1.5rem;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--altiora-border-hover);
}

/* Precision Buttons */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #074584 0%, #063b70 100%);
  color: #ffffff;
  padding: 0.875rem 2.125rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-btn-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), var(--shadow-btn-hover);
  background: linear-gradient(180deg, #09529e 0%, #084c8d 100%);
}

.btn-premium:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--altiora-primary);
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  padding: 0.875rem 2.125rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.btn-outline:hover {
  border-color: rgba(6, 59, 112, 0.45);
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-white {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff !important;
  background-image: none !important;
  color: #062343 !important;
  padding: 1.05rem 2.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.015em;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.38), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.btn-white:hover {
  transform: translateY(-2px);
  background: #f8fafc !important;
  color: #063b70 !important;
  box-shadow: 0 18px 40px -5px rgba(0, 0, 0, 0.48), 0 12px 14px -5px rgba(0, 0, 0, 0.25);
}

.btn-white:active {
  transform: translateY(0);
}

/* Ambient Subtle Lighting */
.bg-mesh-subtle {
  background-image: radial-gradient(at 100% 0%, rgba(0, 162, 224, 0.035) 0px, transparent 50%), radial-gradient(at 0% 100%, rgba(6, 59, 112, 0.025) 0px, transparent 50%);
}

/* Lightweight Scroll Reveal System */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--scrollbar-radius);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Header & Menu Overrides */
.custom-logo-link img {
  max-width: 175px;
  height: auto;
  transition: opacity 0.2s ease;
}

.custom-logo-link:hover img {
  opacity: 0.9;
}

.main-navigation ul {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  transition: color 0.2s var(--ease-premium), background-color 0.2s var(--ease-premium), transform 0.2s var(--ease-premium);
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--altiora-primary);
  background-color: rgba(6, 59, 112, 0.06);
}

/* Altiora Prose & WordPress Content Styling */
.altiora-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.altiora-prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #062343;
  letter-spacing: -0.025em;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.altiora-prose h2:first-child {
  margin-top: 0;
}

.altiora-prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #062343;
  letter-spacing: -0.02em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.altiora-prose p {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.altiora-prose p:last-child {
  margin-bottom: 0;
}

.altiora-prose strong {
  color: #062343;
  font-weight: 700;
}

.altiora-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.altiora-prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.altiora-prose ul li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23059669' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.altiora-prose ol {
  counter-reset: custom-counter;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.altiora-prose ol li {
  counter-increment: custom-counter;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.altiora-prose ol li::before {
  content: counter(custom-counter, decimal-leading-zero);
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--altiora-primary);
  background-color: rgba(6, 59, 112, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 2px;
}

/* Mobile Drawer Menu Styling */
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-list li {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.mobile-menu-list li:last-child {
  border-bottom: none;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color 0.2s var(--ease-premium), transform 0.2s var(--ease-premium);
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
  color: var(--altiora-primary);
  transform: translateX(4px);
}