/* ===== HEALTHPRO TYPOGRAPHY & DESIGN SYSTEM ===== */
/* Version 2.0 - HealthPro Brand Consistency */
/* Fonts: Sora (headings) + Open Sans (body) */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Brand Colors */
    --hp-primary: #1e88e5;
    --hp-primary-dark: #1565c0;
    --hp-primary-light: #e3f2fd;
    --hp-navy: #0f2b5c;
    --hp-navy-light: #1a365d;
    --hp-teal: #0d9488;
    --hp-teal-light: #14b8a6;
    --hp-green: #059669;
    --hp-yellow: #FFC107;
    --hp-blue: #1e88e5;
    --hp-dark: #111827;
    --hp-grey: #E5E7EB;
    --hp-light: #F9FAFB;
    --hp-green-accent: #25D366;
    
    /* Text Colors */
    --hp-text-primary: #1e293b;
    --hp-text-secondary: #1e293b;
    --hp-text-muted: #334155;
    --hp-text-light: #475569;
    
    /* Background Colors */
    --hp-bg-primary: #ffffff;
    --hp-bg-secondary: #f8fafc;
    --hp-bg-tertiary: #f1f5f9;
    --hp-bg-blue-light: #eef4fd;
    
    /* Border Colors */
    --hp-border: #e2e8f0;
    --hp-border-blue: #c3d9f5;
    
    /* Shadows */
    --hp-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --hp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --hp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --hp-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --hp-shadow-blue: 0 4px 14px rgba(30,136,229,0.3);
    
    /* Typography Scale */
    --hp-font-heading: 'Sora', sans-serif;
    --hp-font-body: 'Sora', sans-serif;
    --hp-font-size-xs: 12px;
    --hp-font-size-sm: 13px;
    --hp-font-size-base: 15px;
    --hp-font-size-lg: 16px;
    --hp-font-size-xl: 18px;
    --hp-font-size-2xl: 22px;
    --hp-font-size-3xl: 28px;
    --hp-font-size-4xl: 36px;
    
    /* Spacing */
    --hp-space-xs: 4px;
    --hp-space-sm: 8px;
    --hp-space-md: 16px;
    --hp-space-lg: 24px;
    --hp-space-xl: 32px;
    --hp-space-2xl: 48px;
    --hp-space-3xl: 64px;
    --hp-space-4xl: 96px;
    
    /* Border Radius */
    --hp-radius-sm: 6px;
    --hp-radius-md: 10px;
    --hp-radius-lg: 16px;
    --hp-radius-xl: 24px;
    --hp-radius-full: 50px;
    
    /* Transitions */
    --hp-transition-fast: 0.15s ease;
    --hp-transition-base: 0.3s ease;
    --hp-transition-slow: 0.5s ease;
}

/* ===== GLOBAL TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .heading {
    font-family: var(--hp-font-heading) !important;
    letter-spacing: -0.02em;
    color: var(--hp-navy);
}

body, p, span, a, li, td, th, label, input, textarea, select {
    font-family: var(--hp-font-body) !important;
}

h1, .h1 { font-size: var(--hp-font-size-4xl) !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -0.02em !important; }
h2, .h2 { font-size: var(--hp-font-size-3xl) !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: -0.01em !important; }
h3, .h3 { font-size: var(--hp-font-size-2xl) !important; font-weight: 600 !important; line-height: 1.25 !important; }
h4, .h4 { font-size: var(--hp-font-size-xl) !important; font-weight: 600 !important; line-height: 1.3 !important; }
h5, .h5 { font-size: var(--hp-font-size-lg) !important; font-weight: 600 !important; line-height: 1.35 !important; }
h6, .h6 { font-size: var(--hp-font-size-base) !important; font-weight: 600 !important; line-height: 1.4 !important; }

body { font-size: var(--hp-font-size-base) !important; line-height: 1.6 !important; color: var(--hp-text-primary); }
p { font-size: var(--hp-font-size-base) !important; line-height: 1.7 !important; }
small, .small { font-size: var(--hp-font-size-sm) !important; }

/* Navigation Typography */
.nav-link { font-size: 15px !important; font-weight: 500 !important; letter-spacing: 0.01em; }
nav a, .navbar a, .nav-link { font-family: var(--hp-font-heading) !important; font-weight: 500 !important; }

/* Button Typography */
.btn, button, [type="submit"], .main-btn { 
    font-family: var(--hp-font-heading) !important;
    font-size: 15px !important; 
    font-weight: 600 !important; 
    letter-spacing: 0.02em;
}

/* Footer Typography */
footer h3, footer h4, footer h5 { font-family: var(--hp-font-heading) !important; font-weight: 600 !important; }
footer, footer p, footer a, footer li, footer span { font-family: var(--hp-font-body) !important; }

/* ===== HIGH SPECIFICITY OVERRIDES ===== */
html body *:not(i):not(.bi):not([class*="icon"]) {
    font-family: var(--hp-font-heading) !important;
}

html body .navbar-brand,
html body .nav-link,
html body .section-title,
html body h2.section-title,
html body h2.title,
html body .title-section h2,
html body .title-section .title,
html body .banner-section h1,
html body .banner-content h1,
html body .main-btn,
html body .alternate-btn,
html body .hp-btn-primary,
html body .hp-btn-yellow,
html body a.nav-link,
html body a.main-btn {
    font-family: var(--hp-font-heading) !important;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    h1, .h1 { font-size: 28px !important; }
    h2, .h2 { font-size: 22px !important; }
    h3, .h3 { font-size: 18px !important; }
    h4, .h4 { font-size: 16px !important; }
    body { font-size: 15px !important; }
    p { font-size: 15px !important; }
    small, .small { font-size: 13px !important; }
}

@media (max-width: 480px) {
    h1, .h1 { font-size: 24px !important; }
    h2, .h2 { font-size: 20px !important; }
    h3, .h3 { font-size: 17px !important; }
    h4, .h4 { font-size: 15px !important; }
    body { font-size: 14px !important; }
    p { font-size: 14px !important; }
    small, .small { font-size: 12px !important; }
}

/* ===== STICKY NAVIGATION ===== */
header, .main-header, nav.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    transition: box-shadow var(--hp-transition-base), background-color var(--hp-transition-base);
}
header.scrolled, .main-header.scrolled, nav.navbar.scrolled {
    box-shadow: var(--hp-shadow-lg) !important;
    background-color: #fff !important;
}

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth !important; }

/* ===== BRAND TAGLINE BAR ===== */
.hp-tagline-bar {
    background: linear-gradient(135deg, var(--hp-primary) 0%, #2a5a8c 100%);
    padding: 10px 0;
    text-align: center;
    color: #fff;
    font-family: var(--hp-font-heading) !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1029;
    overflow: hidden;
}
.hp-tagline-bar .tagline-main { color: var(--hp-yellow); font-weight: 700; font-size: 15px; margin-right: 15px; }
.hp-tagline-bar .tagline-sub { color: rgba(255,255,255,0.85); font-size: 13px; }

/* ===== GLOBAL COMPONENT STYLES ===== */

/* Pill Badge */
.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--hp-radius-full);
    font-size: var(--hp-font-size-sm);
    font-weight: 600;
    font-family: var(--hp-font-heading) !important;
    letter-spacing: 0.02em;
}
.hp-badge-primary { background: var(--hp-bg-blue-light); color: var(--hp-primary); }
.hp-badge-navy { background: rgba(15,43,92,0.1); color: var(--hp-navy); }
.hp-badge-green { background: rgba(5,150,105,0.1); color: var(--hp-green); }
.hp-badge-teal { background: rgba(13,148,136,0.1); color: var(--hp-teal); }

/* Button Styles */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--hp-radius-md);
    font-family: var(--hp-font-heading) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--hp-transition-base);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}
.hp-btn-primary {
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-dark));
    color: #fff !important;
    box-shadow: var(--hp-shadow-blue);
}
.hp-btn-primary:hover {
    background: linear-gradient(135deg, var(--hp-primary-dark), #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,136,229,0.4);
}
.hp-btn-outline {
    background: transparent;
    color: var(--hp-primary) !important;
    border: 2px solid var(--hp-primary);
}
.hp-btn-outline:hover {
    background: var(--hp-primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-blue);
}
.hp-btn-navy {
    background: linear-gradient(135deg, var(--hp-navy), var(--hp-navy-light));
    color: #fff !important;
}
.hp-btn-navy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15,43,92,0.4);
}

/* Card Styles */
.hp-card {
    background: #fff;
    border-radius: var(--hp-radius-lg);
    border: 1px solid var(--hp-border);
    padding: var(--hp-space-lg);
    transition: all var(--hp-transition-base);
    overflow: hidden;
}
.hp-card:hover {
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--hp-border-blue);
}

/* Section Headers */
.hp-section {
    padding: var(--hp-space-4xl) 0;
}
.hp-section-header {
    text-align: center;
    margin-bottom: var(--hp-space-3xl);
}
.hp-section-label {
    display: inline-block;
    font-family: var(--hp-font-heading) !important;
    font-size: var(--hp-font-size-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-primary);
    margin-bottom: var(--hp-space-sm);
}
.hp-section-title {
    font-family: var(--hp-font-heading) !important;
    font-size: var(--hp-font-size-3xl);
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: var(--hp-space-md);
    line-height: 1.2;
}
.hp-section-subtitle {
    font-family: var(--hp-font-body) !important;
    font-size: var(--hp-font-size-base);
    color: var(--hp-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CONTAINER UTILITIES ===== */
.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== GRADIENT TEXT ===== */
.hp-text-gradient {
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DIVIDERS ===== */
.hp-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--hp-primary), var(--hp-teal));
    border-radius: 2px;
    margin: 16px auto;
}
.hp-divider-left {
    margin-left: 0;
    margin-right: auto;
}

/* ===== FOCUS STATES (Accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--hp-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: var(--hp-primary-light);
    color: var(--hp-navy);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--hp-bg-secondary); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--hp-primary), var(--hp-primary-dark));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--hp-primary-dark); }

/* ===== LOADING SKELETON ===== */
.hp-skeleton {
    background: linear-gradient(90deg, var(--hp-bg-tertiary) 25%, var(--hp-bg-secondary) 50%, var(--hp-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.5s infinite;
    border-radius: var(--hp-radius-md);
}
@keyframes hp-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== ANIMATION UTILITIES ===== */
.hp-fade-in {
    animation: hpFadeIn 0.5s ease forwards;
}
@keyframes hpFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hp-slide-up {
    animation: hpSlideUp 0.6s ease forwards;
}
@keyframes hpSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== GLOBAL FORM STYLES ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    font-family: var(--hp-font-body) !important;
    font-size: var(--hp-font-size-base) !important;
    padding: 12px 16px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-md);
    transition: border-color var(--hp-transition-fast), box-shadow var(--hp-transition-fast);
    background: #fff;
    color: var(--hp-text-primary);
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--hp-primary) !important;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.15) !important;
    outline: none;
}

/* ===== GLOBAL TABLE STYLES ===== */
.hp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--hp-font-body) !important;
}
.hp-table th {
    background: var(--hp-bg-blue-light);
    color: var(--hp-navy);
    font-family: var(--hp-font-heading) !important;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--hp-border-blue);
}
.hp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hp-border);
    color: var(--hp-text-secondary);
}
.hp-table tr:hover td {
    background: var(--hp-bg-secondary);
}

/* ===== LINK STYLES ===== */
a:not([style]) {
    color: var(--hp-primary);
    text-decoration: none;
    transition: color var(--hp-transition-fast);
}
a:hover {
    color: var(--hp-primary-dark);
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
    position: relative;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--hp-navy);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--hp-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    font-family: var(--hp-font-body) !important;
}

/* ===== PRINT STYLES ===== */
@media print {
    * { color: #000 !important; background: #fff !important; box-shadow: none !important; }
    header, footer, .hp-tagline-bar, nav { display: none !important; }
    h1, h2, h3, h4 { page-break-after: avoid; }
    a { text-decoration: underline; }
}

/* ===== BUTTON OVERRIDE FIX ===== */
a.hp-btn-primary,
a.hp-btn-yellow,
a.hp-btn-outline,
a.hp-btn-navy,
a.hp-btn,
a.main-btn,
a.alternate-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
a.hp-btn-primary {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(30,136,229,0.3) !important;
    border: none !important;
}
a.hp-btn-primary:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30,136,229,0.4) !important;
}
a.hp-btn-yellow {
    background: transparent !important;
    color: #1e88e5 !important;
    border: 2px solid #1e88e5 !important;
}
a.hp-btn-yellow:hover {
    background: #1e88e5 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(30,136,229,0.3) !important;
}
a.main-btn {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(30,136,229,0.3) !important;
    border: none !important;
}
a.main-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}
a.alternate-btn {
    background: transparent !important;
    color: #1e88e5 !important;
    border: 2px solid #1e88e5 !important;
}
a.alternate-btn:hover {
    background: #1e88e5 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Navigation links should NOT be blue */
nav a,
.navbar a,
.navbar .nav-link,
footer a,
.nav-item a {
    color: inherit !important;
    text-decoration: none !important;
}
nav a.active,
.navbar a.active,
.nav-link.active {
    color: #1e88e5 !important;
}
nav a:hover,
.navbar a:hover,
.nav-link:hover {
    color: #1e88e5 !important;
}

/* Footer links */
footer a {
    color: rgba(255,255,255,0.8) !important;
}
footer a:hover {
    color: #fff !important;
}

/* ===== LOGIN/SIGNUP BUTTON FIX ===== */
a[href*="contact"]:not(.nav-link):not(footer a) {
    color: inherit;
}
.header-btn a[href*="contact"],
.header-btn a:not(.hp-cart-btn) {
    color: #fff !important;
    background: linear-gradient(135deg, #193f7f, #1565c0) !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.header-btn a:not(.hp-cart-btn):hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1) !important;
    box-shadow: 0 4px 14px rgba(30,136,229,0.4) !important;
    transform: translateY(-1px) !important;
}

/* ===== DARK SECTION TEXT OVERRIDES ===== */
[style*="background:#0f2b5c"] p,
[style*="background:#1a365d"] p,
[style*="background:#1e3a5f"] p,
[style*="background:linear-gradient"] p,
[style*="background:#193f7f"] p {
    color: rgba(255,255,255,0.9) !important;
}
[style*="background:#0f2b5c"] h2,
[style*="background:#0f2b5c"] h3,
[style*="background:#1a365d"] h2,
[style*="background:#1a365d"] h3 {
    color: #fff !important;
}

/* ====== WHATSAPP FLOATING BUTTON ====== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}
.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
}
.whatsapp-float svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
    display: block !important;
}

/* ====== BACK TO TOP BUTTON FIX ====== */
.back-to-top {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9998 !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}
.back-to-top.visible {
    display: flex !important;
}
.back-to-top svg {
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
}
