/* ▸ HEADER & FOOTER STYLES - Navigation and footer components */

/* Header */
.header {
    background: linear-gradient(135deg, #3C827F 0%, #2d6862 100%);
    box-shadow: none;
    padding: 1px 0;
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Logo Link Styles */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-image img {
    height: 80px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
}

.logo-container h1 {
    margin-left: 12px;
    font-size: 20px;
    color: #1f2937;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links li {
    color: #e5e7eb;
    transition: color 0.3s;
}

.nav-links li:hover {
    color: #ffffff;
}

.nav-links li a.active {
    color: #ffffff;
    font-weight: 600;
}

/* Hamburger button (hidden on ≥768 px) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #e6f6f3;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle i { color: inherit; }

/* Mobile Navigation */
@media (max-width: 767px) {
    /* Compact, clean mobile header */
    .header { border-bottom: 1px solid rgba(255,255,255,0.15); }
    .header-container { padding: 10px 14px; }
    .logo-image { margin-right: 10px; }
    .logo-image img { height: 44px; width: 44px; }
    .logo-text { font-size: 16px; letter-spacing: 1.6px; font-weight: 600; }

    .nav-toggle {
        display: block;
        padding: 8px;
        border-radius: 10px;
        background: rgba(255,255,255,0.08);
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #3C827F 0%, #2d6862 100%);
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-radius: 0 0 8px 8px;
        width: 100%;
    }

    .nav-links.open {
        max-height: 400px;
        padding: 8px 0;
    }

    .nav-links li {
        list-style: none;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        transition: background-color 0.2s ease;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li:hover {
        background-color: rgba(255,255,255,0.08);
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 14px 24px;
        color: #e5e7eb;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
    }

    .nav-links li a:hover {
        color: #ffffff;
    }

    .nav-links li a.active {
        color: #ffffff;
        font-weight: 600;
        background-color: rgba(255,255,255,0.1);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-brand, .footer-credentials, .footer-contact {
    width: 100%;
    margin-bottom: 24px;
}

/* Boost brand/section headings contrast */
.footer-brand h3,
.footer-credentials h3,
.footer-contact h3 {
    color: #ffffff;
    font-weight: 700;
}

.footer-brand h3, .footer-credentials h3, .footer-contact h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-brand p { color: rgba(255,255,255,0.95); margin-bottom: 16px; font-size: 15px; line-height: 1.7; }

.footer-credentials p { 
    color: #ffffff; 
    font-size: 16px; 
    margin-bottom: 12px; 
    font-weight: 500;
    line-height: 1.6;
}

/* Updated Social Icons with Real Links */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.social-icon:hover {
    background: #0d9488;
    color: white;
}

.social-icon.facebook:hover {
    background: #1877f2;
}

.social-icon.instagram:hover {
    background: #e4405f;
}

.social-icon.twitter:hover {
    background: #1da1f2;
}

.social-icon.youtube:hover {
    background: #ff0000;
}

.social-icon.medium:hover {
    background: #000000;
}

.credential-list {
    display: flex;
    flex-wrap: wrap;
}

.credential-item {
    width: 50%;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.credential-dot {
    width: 12px;
    height: 12px;
    background-color: #34d399;
    border-radius: 50%;
    margin-right: 8px;
}

.credential-item span { color: rgba(255,255,255,0.94); font-size: 15px; }

.footer-google-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: fit-content;
}

.footer-google-rating .stars {
    color: #fbbf24;
    font-size: 14px;
    font-weight: bold;
}

.footer-google-rating .rating-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
}

.footer-contact p { color: rgba(255,255,255,0.94); margin-bottom: 8px; font-size: 15px; }

/* Footer contact links styling */
.footer-contact a {
    color: #bfdbfe; /* lighter blue for contrast */
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #93c5fd; /* lighter blue on hover */
    text-decoration: underline;
}

.support-button {
    background-color: #0d9488;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.support-button:hover {
    background-color: #0f766e;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p { color: rgba(255,255,255,0.85); font-size: 15px; }

.footer-bottom a {
    color: #bfdbfe; /* lighter blue for contrast */
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.crisis-disclaimer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.crisis-disclaimer strong {
    color: #fff;
    font-weight: 600;
}

.crisis-disclaimer a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.crisis-disclaimer a:hover {
    color: #93c5fd;
}

@media (max-width: 767px) {
    .footer-brand p,
    .credential-item span,
    .footer-contact p,
    .footer-bottom p { line-height: 1.8; }
    
    .footer-google-rating {
        padding: 6px 10px;
        margin-top: 12px;
    }
    
    .footer-google-rating .stars {
        font-size: 12px;
    }
    
    .footer-google-rating .rating-text {
        font-size: 11px;
    }
}

/* Desktop Footer Layout */
@media (min-width: 768px) {
    .footer-brand {
        width: 33.333%;
    }

    .footer-credentials {
        width: 33.333%;
    }

    .footer-contact {
        width: 25%;
    }
}