/* ========================================
   DOUROS WEBSITE V2 - BASE STYLES
   Core Styles & Layout
======================================== */

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(0, 51, 102, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #C9A868;
    letter-spacing: 2px;
    margin: 0;
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C9A868;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #C9A868;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   LANGUAGE SELECTOR
======================================== */
/* ========================================
   Language Selector - Dropdown Compacto
======================================== */
.language-selector {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #003366;
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
}

.lang-toggle:hover {
    border-color: #C9A868;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lang-toggle img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

#currentLang {
    font-size: 0.9rem;
    min-width: 25px;
}

.lang-arrow {
    transition: transform 0.3s ease;
}

.lang-toggle.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 1002;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #003366;
    color: white;
}

.lang-option img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 51, 102, 0.98);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
    
    .language-selector {
        top: 70px;
        right: 15px;
    }
    
    .lang-toggle {
        padding: 0.5rem 0.8rem;
    }
    
    .lang-toggle img {
        width: 20px;
        height: 15px;
    }
    
    #currentLang {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    .language-selector {
        top: 65px;
        right: 10px;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.7rem;
    }
    
    .lang-toggle img {
        width: 18px;
        height: 14px;
    }
    
    #currentLang {
        font-size: 0.8rem;
        min-width: 20px;
    }
    
    .lang-dropdown {
        right: 0;
        min-width: 160px;
    }
    
    .lang-option {
        padding: 0.6rem 0.8rem;
    }
    
    .lang-option img {
        width: 20px;
        height: 15px;
    }
    
    .lang-option span {
        font-size: 0.85rem;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* ========================================
   LOADING STATE (SIMPLIFIED)
======================================== */
body.loaded {
    /* Page fully loaded */
}

/* ========================================
   ACCESSIBILITY
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid #C9A868;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .header,
    .language-selector,
    .whatsapp-float,
    .hero-buttons {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}
