/* Base Styles - Common styles for all pages */

:root {
    --color-terracotta: #c97d60;
    --color-dark-blue: #2c3e50;
    --color-olive: #6b7f3d;
    --color-light-bg: #faf9f7;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}


/* Site Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-terracotta);
    width: 100%;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    overflow: visible;
    position: relative;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-terracotta);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    transition: var(--transition);
    background-color: transparent;
}

.site-logo:hover {
    color: var(--color-dark-blue);
    background-color: rgba(201, 125, 96, 0.1);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    flex-wrap: wrap;
    overflow: visible;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    overflow: visible;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-terracotta);
    background-color: rgba(201, 125, 96, 0.1);
    outline: none;
}

.nav-link.active {
    color: var(--color-terracotta);
    background-color: rgba(201, 125, 96, 0.15);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-terracotta);
}

/* Dropdown Menu */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 240px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 3px solid var(--color-terracotta);
    padding: 0.5rem 0;
    border-radius: 0 0 4px 4px;
    list-style: none;
    overflow: visible;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    color: var(--color-terracotta);
    background-color: rgba(201, 125, 96, 0.1);
    border-left-color: var(--color-terracotta);
}

.dropdown-item.active {
    color: var(--color-terracotta);
    background-color: rgba(201, 125, 96, 0.15);
    border-left-color: var(--color-terracotta);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--color-terracotta);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    margin-right: 1rem;
}

.mobile-menu-toggle:hover {
    background: var(--color-dark-blue);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-dark-blue) 0%, var(--color-terracotta) 100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    z-index: 1002;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-dark-blue) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-sidebar-header h2 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin: 0;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.mobile-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    transform: rotate(90deg);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.mobile-menu-link:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 2rem;
}

.mobile-menu-link.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid var(--color-white);
}

.mobile-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: rgba(255,255,255,0.8);
}

.mobile-menu-item.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-submenu a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mobile-submenu a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 3.5rem;
}

.mobile-submenu a.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid var(--color-white);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-sidebar::-webkit-scrollbar {
    width: 8px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-terracotta);
    border-radius: 4px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-blue);
}

/* Main Content */
.main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-top: calc(2rem + 60px);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Footer */
.footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-terracotta);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--color-terracotta);
    transition: var(--transition);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 2000;
    display: none;
    max-width: 100%;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-text {
    color: var(--color-text);
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cookie-btn-accept {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.cookie-btn-accept:hover {
    background-color: var(--color-dark-blue);
}

.cookie-btn-essential {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    border: 2px solid var(--color-dark-blue);
}

.cookie-btn-essential:hover {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
}

.cookie-btn-customize {
    background-color: transparent;
    color: var(--color-terracotta);
    text-decoration: underline;
    border: none;
    cursor: pointer;
    padding: 0.75rem 0;
}

.cookie-btn-customize:hover {
    color: var(--color-dark-blue);
}

.cookie-policy-link {
    color: var(--color-terracotta);
}

/* Responsive Design */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }
    
    .site-logo {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .dropdown-menu {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0;
        min-height: 60px;
    }
    
    .site-logo {
        padding: 0 1rem;
        font-size: 1.15rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-sidebar {
        display: block;
    }
    
    .mobile-sidebar-header {
        padding: 0.875rem 1.25rem;
    }
    
    .mobile-sidebar-header h2 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mobile-submenu a {
        padding: 0.625rem 1.25rem 0.625rem 3rem;
        font-size: 0.85rem;
    }

    .cookie-banner-content {
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .main {
        padding: 1.5rem 1rem;
        padding-top: calc(1.5rem + 60px);
    }
}

