/* ==========================================
   HealthViser Component Styles
   Contains Header & Footer Layouts and Styles
   ========================================== */

:root {
    --hv-navy: #004a99; /* Primary Navy */
    --hv-cyan: #00c2cb; /* Vibrant Cyan */
    --hv-light-bg: #f9fbfd;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #abb8c3;
    --footer-bg: #0b1a2c; /* Rich dark navy for footer */
    --footer-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.hv-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,74,153,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    max-width: 220px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li { 
    margin-left: 30px; 
}

.nav-links a {
    text-decoration: none;
    color: var(--hv-navy);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover { 
    color: var(--hv-cyan); 
}

.menu-toggle {
    display: none;
    border: 2px solid var(--hv-navy);
    background: transparent;
    color: var(--hv-navy);
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--hv-navy);
    color: var(--white);
}

.cta-btn {
    background: var(--hv-cyan);
    color: white !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    border-bottom: 3px solid #00a4ad;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    background: #00b0b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,194,203,0.3);
}

.cta-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.hv-nav.open .nav-links {
    display: flex;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.hv-footer-section {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 80px 8% 30px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

/* Decorative background glow */
.hv-footer-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 203, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-col h3 {
    color: var(--hv-cyan);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--hv-cyan);
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 5px;
    filter: brightness(0.95) contrast(1.05);
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
}

.brand-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--footer-border);
}

.social-links a:hover {
    background: var(--hv-cyan);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 194, 203, 0.3);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--hv-cyan);
    transform: translateX(4px);
}

.contact-col {
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.contact-item svg {
    color: var(--hv-cyan);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--hv-cyan);
}

.legal-links {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-links a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--hv-cyan);
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 25px;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.tag-credit {
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Header Responsive */
    .hv-nav {
        padding: 15px 5%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 5%;
        width: calc(100% - 10%);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
        z-index: 999;
    }

    .nav-links li {
        margin: 16px 0 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li:first-child {
        margin-top: 0;
    }

    .nav-links .cta-btn {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .logo-image {
        max-width: 140px;
    }

    /* Footer Responsive */
    .hv-footer-section {
        padding: 60px 5% 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}
