/**
 * Shared: header, nav, content container width — Shalaaki
 * Used by index.html, blog/*, conditions.html (single source of truth for nav width/layout)
 */
:root {
    --primary-color: #004d40;
    --secondary-color: #26a69a;
    --site-max-width: 1200px;
    --site-container-padding: 1rem;
}

/* Fixed header offset — same on all pages using this file */
body {
    padding-top: 150px;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    body {
        padding-top: 100px;
    }
}

/* Same max-width + horizontal padding for header row and main .container sections */
.container {
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-container-padding);
    padding-right: var(--site-container-padding);
    box-sizing: border-box;
    width: 100%;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--site-container-padding);
}

.logo img {
    height: 150px;
    width: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem 1.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: none;
}

/* Prevent visited / focus styles from drawing a line under nav text (e.g. Treatments → other page) */
.nav-links a:visited,
.nav-links a:active {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: none;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: none;
}

.nav-links a:focus {
    outline: none;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .logo img {
        height: 80px;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* -------------------------------------------------------------------------
   Site footer — shared (homepage, conditions, blog, treatments, etc.)
   Same width as header/main via .container inside footer.
   ------------------------------------------------------------------------- */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}
