/*
 * Avix Home - Design System
 * Branding: NordicPathEurope OU
 * Palette: Coffee & Cream (#3D2B1F, #F9F4F0, #D4A381)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-cream: #F9F4F0;
    --text-coffee: #3D2B1F;
    --accent-tan: #D4A381;
    --white: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(61, 43, 31, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-coffee);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(249, 244, 240, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 43, 31, 0.05);
}

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


/* --- Premium Logo AVIX HOME --- */
.logo {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-avix {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem; /* Ajustado para landing */
    font-weight: 700;
    color: #463223; /* Bronce Oscuro */
    line-height: 0.9;
    letter-spacing: 2px;
    display: block;
}

.logo-divider {
    width: 100%;
    border: 0;
    border-top: 1.5px solid #D59F80; /* Cobre */
    margin: 0.3rem 0;
    opacity: 1;
}

.logo-home {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #D59F80; /* Cobre */
    letter-spacing: 0.6rem;
    margin-right: -0.6rem; /* Ajuste por letter-spacing */
    text-transform: uppercase;
    display: block;
}

/* Ajustes específicos para footer o sidebar */
footer .logo-avix { color: #ffffff; }
footer .logo-home, footer .logo-divider { color: #ffffff; border-color: rgba(255,255,255,0.4); }


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

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 500;
    opacity: 0.7;
}

nav ul li a:hover {
    opacity: 1;
}

.btn-app {
    background: var(--text-coffee);
    color: var(--bg-cream);
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.8rem;
}

.btn-app:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Language Selector */
.lang-selector-wrapper {
    margin-left: 2rem;
}

.lang-selector {
    position: relative;
    cursor: pointer;
    background: rgba(61, 43, 31, 0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.lang-selector:hover {
    background: rgba(61, 43, 31, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-radius: 8px;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(61, 43, 31, 0.05);
}

/* Bridge the gap for hover */
.lang-selector::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1.5rem; /* Increased bridge height */
    background: transparent;
    display: none;
    z-index: 10;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:hover::after {
    display: flex;
}

.lang-option {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-coffee);
    transition: var(--transition-smooth);
}

.lang-option:hover {
    background: var(--bg-cream);
    color: var(--accent-tan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ensure it starts from top to avoid vertical centering overlap */
    padding: 180px 2rem 100px; /* Header (100) + Comfort (80) */
    text-align: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-top: 2rem; /* Additional offset to clear the banner header visually */
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.hero-img {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(61, 43, 31, 0.1);
}

/* Brand History */
.section-history {
    padding: 8rem 0;
    background-color: var(--white);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.history-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(61, 43, 31, 0.8);
}

/* Products */
.section-products {
    padding: 8rem 0;
}

.section-products h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white) ;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.product-info {
    padding: 2rem;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
footer {
    background: var(--text-coffee);
    color: var(--bg-cream);
    padding: 4rem 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    margin: 0 1rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-legal {
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Optimization (Total Adaptability) --- */

/* Ultra-Wide / Large PC (> 1400px) */
@media (min-width: 1400px) {
    .container { max-width: 1300px; }
    .hero h1 { font-size: 5.5rem; }
}

/* Desktop Monitor (1200px - 1400px) */
@media (max-width: 1200px) {
    .container { max-width: 1100px; }
    .hero h1 { font-size: 4.5rem; }
}

/* Tablet / Landscape Mobile (769px - 1024px) */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .history-grid { gap: 2.5rem; }
    .section-history, .section-products { padding: 6rem 0; }
    .logo-avix { font-size: 1.6rem; }
}

/* Mobile Standard / Modern Smartphones (481px - 768px) */
@media (max-width: 768px) {
    header .container { padding: 0 1rem; }
    header { height: 80px; }
    .hero { padding: 140px 1.5rem 60px; }
    .hero h1 { font-size: 2.8rem; line-height: 1.2; }
    .hero p { font-size: 1.1rem; width: 90%; margin: 0 auto 2rem; }
    
    .history-grid { 
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .section-history, .section-products { padding: 5rem 0; }
    .history-content h2, .section-products h2 { font-size: 2.2rem; }
    
    nav { display: none; }
    .lang-selector-wrapper { margin-left: 1rem; }
}

/* Small Mobile / iPhone SE / Older Devices (< 480px) */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    header { height: 70px; }
    header .container { gap: 0.5rem; }
    
    .hero { padding-top: 110px; }
    .hero h1 { font-size: 2rem; letter-spacing: -1px; }
    .hero p { font-size: 0.95rem; line-height: 1.4; }
    
    .logo-avix { font-size: 1.2rem; }
    .logo-home { font-size: 0.45rem; letter-spacing: 0.3rem; }
    
    .btn-app { 
        padding: 0.6rem 1rem; 
        font-size: 0.65rem; 
        letter-spacing: 0.02rem;
        white-space: nowrap;
    }
    
    .product-grid { grid-template-columns: 1fr; }
    .product-info { padding: 1.5rem; }
    
    .lang-selector-wrapper { margin-left: 0.2rem; }
    .lang-selector { padding: 0.4rem 0.6rem; }
    
    .footer-links a { margin: 0.5rem; display: inline-block; font-size: 0.8rem; }
    .footer-legal { font-size: 0.7rem; }
}

/* Ultra Small (320px - iPhone SE) */
@media (max-width: 320px) {
    header .container { padding: 0 0.5rem; }
    .logo-avix { font-size: 1.1rem; }
    .btn-app { padding: 0.5rem 0.8rem; font-size: 0.6rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
}
