/* ===== Kidney Specialist Theme Colors ===== */
:root {
    --primary-color: #ADB036;  
    --secondary-color: #000;     /* Soft pink (medical gentle tone) */
    --accent-color: #000;        /* Rich kidney red */
    --text-color: #000;
    --light-text: #fff;
    --transition-speed: 0.3s;
    --nav-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Top Contact Bar ===== */
.top-bar {
    background: var(--primary-color);
    padding: 8px 20px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeDown 0.6s ease-in-out;
}
.top-bar .contact-info{
    display: flex;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
    color: #fff;
}

.contact-item .icon {
    margin-right: 8px;
    font-size: 16px;
    color: #fff;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: var(--light-text);
    box-shadow: var(--nav-shadow);
    position: sticky; /* Keeps it fixed at top while scrolling */
    top: 0;
    z-index: 9999; /* Ensure it's above everything */
    transition: all var(--transition-speed) ease;
    animation: fadeDown 0.8s ease-in-out;
}
.logo-small img {
    width: 200px;
    transition: transform 0.3s ease;
}
.logo-small img:hover {
    transform: scale(1.05);
}

/* ===== Navigation Links ===== */
.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    position: relative;
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

/* Underline Animation */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover {
    color: var(--accent-color);
}
.nav-link:hover::after {
    width: 100%;
}

/* ===== CTA Button ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(123, 30, 58, 0.4);
    transition: all var(--transition-speed) ease;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(123, 30, 58, 0.6);
}

/* ===== Mobile Menu ===== */
.menu-checkbox {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}
/* Scroll Effect for Navbar */
.navbar.scrolled {
    padding: 0.4rem 5%;
    background-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled .nav-link {
    color: var(--light-text);
}
.navbar.scrolled .nav-link::after {
    background-color: var(--secondary-color);
}
.navbar.scrolled .cta-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}
.logo-small img {
    transition: all var(--transition-speed) ease;
}
.navbar.scrolled .logo-small img {
    width: 160px;
}


/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
    }
    .nav-link {
        color: var(--light-text);
        font-size: 1.1rem;
    }
    .nav-link::after {
        background-color: var(--secondary-color);
    }
    .menu-checkbox:checked ~ .nav-links {
        right: 0;
    }
}

/* ===== Animations ===== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
