/* ==========================================================================
   Prime Care Health Solutions - Global Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Variables)
   -------------------------------------------------------------------------- */
:root {
    --primary: #002045;
    --primary-light: #1a365d;
    --primary-container: #d6e3ff;
    --secondary: #0061a5;
    --secondary-container: #d2e4ff;
    --accent: #66affe;
    --bg: #f8f9ff;
    --surface: #ffffff;
    --surface-container: #e5eeff;
    --surface-container-low: #eff4ff;
    --surface-container-high: #dce9ff;
    --text: #0d1c2e;
    --text-muted: #43474e;
    --text-on-primary: #86a0cd;
    --border: #c4c6cf;
    --error: #ba1a1a;
    --success: #059669;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   3. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,32,69,0.06);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    transition: opacity 0.2s;
}

.navbar-brand img:hover {
    opacity: 0.85;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary) !important;
}

.nav-link.active {
    border-bottom: 2px solid var(--secondary);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary-custom {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,97,165,0.3);
}

.btn-primary-custom:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,97,165,0.4);
    color: white;
}

.btn-light-custom {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-light-custom:hover {
    background: var(--surface-container);
    transform: translateY(-2px);
}

.btn-hero-primary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,97,165,0.4);
}

.btn-hero-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,97,165,0.5);
    color: white;
}

.btn-hero-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (shared base)
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.15;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

footer h5,
footer h6 {
    color: white;
    font-weight: 700;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

footer a:hover {
    color: white;
}

footer .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}

/* --------------------------------------------------------------------------
   7. HOME PAGE (index.php)
   -------------------------------------------------------------------------- */

/* Hero */
.hero-home {
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-home::before {
    background-image: url('img/banner-why.jpg');
}

.hero-home::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102,175,254,0.15) 0%, transparent 70%);
}

/* Stats */
.stats-section {
    background: var(--surface-container-low);
    padding: 5rem 0;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,32,69,0.06);
    border-bottom: 4px solid var(--secondary);
    transition: all 0.3s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,32,69,0.12);
}

.stat-card.border-primary-custom {
    border-bottom-color: var(--primary);
}

.stat-card.border-error {
    border-bottom-color: var(--error);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-icon.blue {
    background: var(--secondary-container);
    color: var(--secondary);
}

.stat-icon.navy {
    background: var(--primary-container);
    color: var(--primary);
}

.stat-icon.red {
    background: #fee2e2;
    color: var(--error);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Info Section */
.info-section {
    padding: 5rem 0;
    background: white;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.check-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-container);
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Value Proposition */
.value-section {
    background: var(--primary);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.value-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1551076805-e1869033e561?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.value-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.value-icon {
    color: var(--accent);
    font-size: 2rem;
    flex-shrink: 0;
}

/* Patient Care Section */
.patient-section {
    padding: 5rem 0;
    background: var(--bg);
}

.quote-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(0,32,69,0.06);
}

.img-decorated {
    position: relative;
}

.img-decorated img {
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,32,69,0.2);
}

.img-decorated::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--surface-container);
    border-radius: 50%;
    z-index: 1;
}

.img-decorated::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: var(--secondary-container);
    border-radius: 16px;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   8. CONTACT PAGE (contact.php)
   -------------------------------------------------------------------------- */
.hero-contact::before {
    background-image: url('img/banner-why.jpg');
}

.hero-contact {
    padding: 5rem 0;
}

.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,32,69,0.1);
    border: 1px solid var(--border);
    overflow: hidden;
}

.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 97, 165, 0.1);
}

.form-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 16px rgba(0,32,69,0.06);
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateX(8px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary-container);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success-custom {
    background: #d1fae5;
    color: #065f46;
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--success);
}

.alert-danger-custom {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid #dc2626;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,97,165,0.4);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,97,165,0.5);
    color: white;
}

.hipaa-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-container);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   9. WHY OUTSOURCE PAGE (why-outsource.php)
   -------------------------------------------------------------------------- */
.hero-why::before {
    background-image: url('https://images.unsplash.com/photo-1666214280557-f1b5022eb634?w=1920&q=80');
}

.hero-why {
    padding: 6rem 0;
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,32,69,0.05);
    transition: all 0.3s;
    height: 100%;
}

.strategy-card:hover {
    box-shadow: 0 12px 40px rgba(0,32,69,0.12);
    transform: translateY(-4px);
}

.strategy-icon {
    width: 56px;
    height: 56px;
    background: var(--surface-container);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}

.strategy-card:hover .strategy-icon {
    background: var(--secondary-container);
    color: var(--secondary);
}

.advantage-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0,32,69,0.04);
    transition: all 0.3s;
}

.advantage-card:hover {
    box-shadow: 0 8px 24px rgba(0,32,69,0.1);
}

.adv-icon {
    color: var(--secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s;
}

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

.benefit-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    transition: transform 0.3s;
}

.benefit-item:hover .benefit-dot {
    transform: scale(1.5);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102,175,254,0.2) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   10. OUR APPROACH PAGE (our-approach.php)
   -------------------------------------------------------------------------- */
.hero-approach::before {
    background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1920&q=80');
}

.hero-approach {
    padding: 6rem 0;
}

.process-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,32,69,0.05);
    transition: all 0.3s;
    height: 100%;
}

.process-card:hover {
    box-shadow: 0 12px 40px rgba(0,32,69,0.1);
    transform: translateY(-4px);
}

.process-icon {
    width: 72px;
    height: 72px;
    background: var(--surface-container);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.checklist-icon {
    color: var(--secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pillar-card {
    text-align: center;
    padding: 2rem;
}

.pillar-icon {
    color: var(--primary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.value-pillar {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 16px rgba(0,32,69,0.06);
    height: 100%;
}

.contact-form-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 0;
}

/* --------------------------------------------------------------------------
   11. OUR CLIENTS PAGE (our-clients.php)
   -------------------------------------------------------------------------- */
.hero-clients::before {
    background-image: url('https://images.unsplash.com/photo-1582750433449-648ed127bb54?w=1920&q=80');
}

.hero-clients {
    padding: 6rem 0;
}

.client-card {
    background: var(--surface-container-low);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
}

.client-card:hover {
    box-shadow: 0 12px 40px rgba(0,32,69,0.1);
    transform: translateY(-4px);
    background: white;
}

.client-icon {
    width: 56px;
    height: 56px;
    background: var(--secondary-container);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,32,69,0.04);
}

.specialty-icon {
    color: var(--secondary);
    font-size: 1.25rem;
}

.cta-form-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-form-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102,175,254,0.2) 0%, transparent 70%);
}
