/* Common Styles for Header and Footer */

/* Prevent horizontal scroll on all pages */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Header & Navigation */
header {
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #b08968;
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.05rem;
}

.cta-button:hover {
    background: #c69563;
    transform: translateY(-1px);
}

.nav-cta {
    margin-left: 1rem;
    white-space: nowrap;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

/* Mobile Menu Container */
.mobile-menu-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-open .mobile-menu-container {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 165, 116, 0.3);
}

.mobile-menu-logo {
    height: 50px;
    width: auto;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-menu-btn:hover {
    background: rgba(212, 165, 116, 0.1);
}

/* Mobile Menu Links */
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    margin: 0;
}

.mobile-menu-links a {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-links a:hover {
    color: var(--accent);
    background: rgba(212, 165, 116, 0.1);
    transform: translateX(4px);
}

/* Mobile Menu CTA */
.mobile-menu-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
}

.mobile-menu-cta .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2942 100%);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.footer-nav-area {
    display: flex;
    flex-direction: column;
}

.footer-nav-area h3 {
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #b08968;
    text-decoration: underline;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-nav-links {
    margin-top: 1.5rem;
}

.footer-nav-links p {
    margin: 0.3rem 0;
}

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

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

/* Footer Contact Section - Horizontal Layout */
.footer-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.footer-contact-item .contact-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.footer-contact-item .contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-contact-item .contact-value {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
}

.footer-contact-item .contact-label {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.2;
}

/* Active page highlighting */
.nav-links a.active,
.footer-nav-links a.active {
    color: #b08968 !important;
    font-weight: 600;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a2942 0%, #2c3e50 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: #b08968;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.cookie-text a {
    color: #b08968;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: #b08968;
    color: white;
}

.cookie-btn-accept:hover {
    background: #9a7558;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-logo {
        height: 80px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}
