/* Global Header and Footer Styles */

/* CSS Reset for consistent rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 20px 40px;
    transition: transform 0.3s ease-in-out;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    height: 26px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #B48434 !important;
}

.nav-links a.btn-primary {
    color: white !important;
}

.nav-links a.btn-primary:hover {
    color: white !important;
}

.nav-links a.btn-secondary:hover {
    color: white !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 6px;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px 24px;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: flex;
        pointer-events: none;
        visibility: hidden;
    }

    .nav-links.active {
        max-height: 500px;
        pointer-events: auto;
        visibility: visible;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

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

    .nav-links a.btn-primary,
    .nav-links a.btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        margin-top: 8px;
    }

    .nav-links a.btn-primary {
        border-bottom: none;
    }

    nav {
        padding: 20px 20px;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 20px 20px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .footer-container {
        padding: 0;
        gap: 30px;
    }
}

.btn-primary {
    background: #B48434;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #8f6926;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 132, 52, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #B48434;
    border: 2px solid #B48434;
    padding: 10px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #B48434;
    color: white !important;
}

/* Footer */
footer {
    background: #162936;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    color: white;
    flex: 0 0 35%;
}

.footer-brand h3 {
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-brand p {
    line-height: 1.8;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    margin-top: 0;
    padding: 0;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #B48434;
    color: white;
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
    padding: 0;
}

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

.footer-links li {
    margin-bottom: 12px;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #B48434 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: #B48434;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(180, 132, 52, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #8f6926;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(180, 132, 52, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 3;
}

@media (max-width: 768px) {
    nav {
        padding: 20px 20px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-brand {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .footer-links {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 100px;
    }
}
