/* ====================================================
    3. HEADER & NAVIGATION
    ==================================================== */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-logo img {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--text-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

/* Active class added by JS on scroll */
nav ul li a.active, 
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Theme Switcher */
.theme-switcher button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.theme-switcher button:hover {
    background: var(--primary-hover-color);
}


/* ====================================================
    12. FOOTER
    ==================================================== */
.footer-compact {
    background: var(--footer-bg);
    color: #bdc3c7;
    padding: 28px 0 18px;
    font-size: 0.9rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

/* Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    height: 44px;
    /* This filter is typically used to turn a black logo white for a dark background */
    filter: brightness(0) invert(1); 
}

.footer-tagline {
    max-width: 300px;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Info Row */
.footer-info {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-info i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--primary-color);
    margin-left: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
