/* style.css - The Master Stylesheet */

/* --- 1. Variables & Reset --- */
:root {
    --medical-blue: #0056b3;       /* Primary Brand Color */
    --medical-dark: #004494;       /* Darker Blue for hover states */
    --medical-light: #f8f9fa;      /* Light Gray for backgrounds */
    --text-dark: #2c3e50;          /* Main Text Color */
    --accent-gold: #ffc107;        /* For warnings/highlights */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    padding-top: 76px; /* Prevents content from hiding behind the fixed navbar */
}

a { text-decoration: none; }

/* --- 2. Navigation (Consistent Across All Pages) --- */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background-color: #fff;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-dark) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: #555 !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--medical-blue) !important;
}

.nav-link:focus-visible,
.btn-nav-cta:focus-visible,
.btn-primary:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Medical CTA Button in Menu */
.btn-nav-cta {
    background-color: var(--medical-blue);
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-nav-cta:hover {
    background-color: var(--medical-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- 3. Hero & Page Headers --- */
/* Base style for all top banners */
.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Dark overlay so text pops */
.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* 50% Dark Overlay */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Specific Background Images for each page */
.hero-home {
    height: 85vh; /* Taller for home page */
    background-image: url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1470&q=80');
}

.hero-about {
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80');
}

.hero-services {
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&q=80');
}

.hero-insurance {
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&q=80');
}

.hero-contact {
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80');
}

/* Hero Typography */
.display-title {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- 4. Cards & Components --- */
.card-custom {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-box {
    color: var(--medical-blue);
    margin-bottom: 1rem;
}

/* --- 5. Footer --- */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 3rem 0;
    margin-top: auto; /* Pushes footer to bottom if page is short */
}

footer h5 { color: white; font-weight: 700; margin-bottom: 1.2rem; }
footer a { color: #ccc; transition: 0.2s; }
footer a:hover { color: white; text-decoration: underline; }
