/* Trema Hospitals - Medical Color Palette */
/* Healing blues and teals with professional medical tones */
/* WCAG AA compliant with enhanced contrast */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* Harmonized Trema Hospitals Colors - Medical Theme */
    /* Based on main brand with healing teal-blue variations */
    
    /* Primary Colors - Medical trust from brand sage to teal */
    --primary-dark: #2a3c42;        /* Shade: deep medical teal */
    --primary-medium: #3d5560;      /* Tone: calming healthcare blue */
    --primary-accent: #5a7480;      /* Tint: soft medical blue-gray */
    --primary-light: #f2f6f7;       /* Clean medical white-blue */
    --primary-neutral: #8d9fa5;     /* Tone: muted sky gray */
    
    /* Enhanced Text Colors with Opacity for Visibility */
    --text-dark: rgba(26, 26, 26, 0.95);      /* High opacity for primary text */
    --text-medium: rgba(56, 70, 76, 0.87);    /* Medical dark text with teal hint */
    --text-light: rgba(255, 255, 255, 0.98);  /* High opacity white */
    --text-secondary: rgba(74, 74, 74, 0.7);  /* Lower opacity for secondary */
    
    /* Accent Colors - Healthcare professionalism with brand harmony */
    --accent-teal: #2d5e68;         /* Deep medical teal */
    --accent-blue: #2d4d6b;         /* Deep trust blue */
    --accent-green: #2d5e42;        /* Deep health green */
    
    /* Semantic Colors - High Contrast */
    --success-color: #2d5e42;       /* Deep healthy green */
    --info-color: #2d5868;          /* Deep medical teal info */
    --warning-color: #9d7820;       /* Deep caution amber */
    --error-color: #8b2e35;         /* Deep emergency red */
    
    /* Fonts */
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
}

p {
    color: var(--text-medium);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-dark);
}

.slogan {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-medium);
}

/* Override main styles with medical-specific colors */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
}

.hero {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-teal) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2,
.page-hero h1,
.page-hero h2 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p,
.page-hero p {
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Enhanced Medical Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-medium) 100%);
    color: #ffffff;
    border: 2px solid var(--accent-teal);
    box-shadow: 0 2px 8px rgba(45, 94, 104, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-blue) 100%);
    border-color: var(--accent-green);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(45, 94, 104, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
    color: #ffffff;
    border-color: var(--accent-green);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(45, 94, 104, 0.3);
}

.service-card:hover,
.stat-card:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.2);
}

footer {
    background: var(--primary-dark);
}

/* Form elements */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Links */
a:hover {
    color: var(--accent-teal);
}

/* Active navigation */
.nav-links a.active {
    color: var(--accent-green);
}

/* Medical-specific styling */
.department-card {
    border-left: 4px solid var(--accent-teal);
    transition: all 0.3s ease;
}

.department-card:hover {
    border-left-width: 8px;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

/* Doctor cards */
.doctor-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
}

/* Emergency styling */
.emergency-banner {
    background: var(--error-color);
    color: white;
}

/* Appointment forms */
.appointment-form {
    border-top: 4px solid var(--accent-teal);
}

/* Section backgrounds */
.content-section:nth-child(even) {
    background: var(--primary-light);
}

/* Professional medical touch */
h1, h2, h3 {
    color: var(--primary-dark);
}

/* Trust indicators */
.accreditation-badge {
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

/* Responsive Design - Trema Hospitals */

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Footer centering */
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-section address {
        text-align: center;
    }
    
    .footer-section address p {
        justify-content: center;
    }
    
    /* Search right align */
    .search-wrapper {
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Emergency banner */
    .emergency-banner {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .emergency-icon {
        font-size: 1.25rem;
    }
    
    .emergency-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Appointment scheduler */
    .appointment-form {
        padding: 1.5rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .time-slot {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* Doctor finder */
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .doctor-card {
        padding: 1.25rem;
    }
    
    /* Department cards */
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .department-card {
        padding: 1.25rem;
    }
    
    /* Health tips */
    .health-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .health-tip-card {
        padding: 1.5rem;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
    
    /* Services grid */
    .medical-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Emergency banner */
    .emergency-banner {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .emergency-icon {
        font-size: 1rem;
    }
    
    .emergency-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Appointment form */
    .appointment-form {
        padding: 1rem;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
    }
    
    .time-slot {
        padding: 0.6rem;
    }
    
    /* Doctor cards */
    .doctor-card {
        padding: 1rem;
    }
    
    .doctor-card h3 {
        font-size: 1.1rem;
    }
    
    /* Department cards */
    .department-card {
        padding: 1rem;
    }
    
    /* Health tips */
    .health-tip-card {
        padding: 1.25rem;
    }
    
    .tip-icon {
        font-size: 2rem;
    }
    
    /* Accreditation badges */
    .accreditation-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Tablet devices (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .health-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .doctors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .health-tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .time-slots {
        grid-template-columns: repeat(5, 1fr);
    }
}

