/* ==========================================================================
   Design Buzz - Shared Layout: Navbar, Footer, Breadcrumb, Back-to-Top
   ========================================================================== */

/* --- Body offset for fixed navbar --- */
body {
    padding-top: var(--nav-height);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-inner {
    max-width: var(--container-max);
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    z-index: 1001;
}

.nav-logo-mark {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 2px solid var(--accent);
    padding: 0.4rem 0.5rem;
    line-height: 1;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Nav CTA */
.nav-cta {
    margin-left: 1rem;
}

.nav-cta .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 15, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
}

.mobile-menu .btn {
    margin-top: 1rem;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .navbar {
        height: var(--nav-height-mobile);
    }

    body {
        padding-top: var(--nav-height-mobile);
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--primary);
    border-top: 1px solid var(--primary-light);
    padding: 60px 0 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--text);
}

.footer-brand .footer-logo-mark {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 2px solid var(--accent);
    padding: 0.3rem 0.4rem;
    line-height: 1;
    color: var(--text);
}

.footer-brand .footer-logo-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-brand .tagline {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-contact-item .icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: var(--text-light);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--primary-light);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.1rem;
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

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

    .footer-legal {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ==========================================================================
   Breadcrumb (for inner pages)
   ========================================================================== */
.breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .separator {
    color: var(--text-light);
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}
