/* ==========================================================================
   SEPHORA SKINNOVATION - NEUTRAL LUXURY IDENTITY
   ========================================================================== */

:root {
    --brand-black: #000000;
    --brand-white: #ffffff;
    --neutral-bg: #f9f9f9;
    --border-light: #eeeeee;
    --text-muted: #666666;
    
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* 1. Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--brand-white); color: var(--brand-black); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.center { text-align: center; }

/* 2. Tipografia */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; text-transform: none; }
h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
h2 { font-size: 3rem; margin-bottom: 30px; }
p { font-size: 1.05rem; color: #333; }

/* 3. Navegação Minimalista (Navbar Escura) */
.navbar {
    padding: 25px 0;
    background: var(--brand-black);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-weight: 700; 
    letter-spacing: 7px; 
    font-size: 1.5rem;
    color: var(--brand-white);
    z-index: 1001; /* Fica acima do menu aberto */
}

/* Ocultar Menu Hamburger no PC */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Fica acima do menu aberto */
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--brand-white);
    transition: all 0.3s ease;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 40px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--brand-white);
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 0.6; }

/* 4. Hero Section */
.hero { padding: 120px 0; background-image: linear-gradient(90deg, transparent 95%, #f0f0f0 95%); background-size: 50px 100%; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.tagline { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 4px; margin-bottom: 20px; text-transform: uppercase; }

/* 5. Ações e Botões Profissionais */
.hero-actions { display: flex; align-items: center; gap: 35px; margin-top: 45px; }
.btn-primary { background: var(--brand-black); color: var(--brand-white); padding: 18px 40px; text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s ease; display: inline-block; }
.btn-primary:hover { background: #333; transform: translateY(-2px); }
.btn-primary.large { padding: 22px 50px; }
.link-editorial { color: var(--brand-black); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid var(--brand-black); padding-bottom: 5px; transition: opacity 0.3s; }
.link-editorial:hover { opacity: 0.5; }

/* 6. Download Section */
.download-section { padding: 120px 0; background-color: var(--neutral-bg); }
.btn-container { margin-top: 50px; display: flex; justify-content: center; }

/* 7. Footer e Modais */
footer { padding: 80px 0; background: var(--brand-white); border-top: 1px solid var(--border-light); }
.copyright { font-size: 0.7rem; letter-spacing: 1.5px; margin-bottom: 25px; opacity: 0.6; text-transform: uppercase; }
.footer-legal { display: flex; justify-content: center; gap: 15px; }
.footer-legal a { color: var(--brand-black); text-decoration: none; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; transition: opacity 0.3s; }
.footer-legal a:hover { opacity: 0.5; }
.sep { color: #ccc; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2000; }
.overlay:target { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--brand-white); padding: 70px 50px; max-width: 600px; width: 90%; position: relative; text-align: center; border-radius: 2px; }
.modal-content h3 { font-size: 2rem; margin-bottom: 25px; text-transform: uppercase; }
.close-modal { position: absolute; top: 25px; right: 30px; font-size: 2.5rem; text-decoration: none; color: var(--brand-black); line-height: 1; }

/* 8. Visual - Moldura Telemóvel */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.mobile-frame { width: 100%; max-width: 340px; aspect-ratio: 9 / 18.5; background: #111; border-radius: 36px; padding: 12px; box-shadow: 30px 30px 80px rgba(0,0,0,0.12); position: relative; overflow: hidden; }
.mobile-frame::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 25px; background: #111; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 10; }
.mobile-screen { width: 100%; height: 100%; background: #000; border-radius: 26px; overflow: hidden; position: relative; }
.app-screen-img { width: 100%; height: 100%; object-fit: cover; }

/* 9. QR Code */
.qr-card { position: absolute; bottom: 20px; right: -20px; background: var(--brand-white); padding: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.18); text-align: center; border-radius: 4px; z-index: 20; }
.qr-code { width: 100px; height: 100px; display: block; margin-bottom: 10px; }
.qr-card p { font-size: 0.65rem; font-weight: 700; color: var(--brand-black); text-transform: uppercase; letter-spacing: 1px; margin: 0; }

/* 10. Funcionalidades App */
.app-details { background-color: var(--brand-white); padding: 120px 0; }
.section-header { margin-bottom: 100px; }
.section-header .subtitle { max-width: 600px; margin: 0 auto; font-size: 1.1rem; color: var(--text-muted); }
.detail-row { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-row.reverse { flex-direction: row-reverse; }
.detail-text { flex: 1; }
.detail-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 15px; display: block; }
.detail-text h3 { font-size: 2.2rem; margin-bottom: 25px; }
.detail-text p { font-size: 1rem; color: #444; }
.detail-visual { flex: 1; display: flex; justify-content: center; }
.feature-img { width: 100%; max-width: 450px; aspect-ratio: 4/3; object-fit: cover; box-shadow: 15px 15px 50px rgba(0,0,0,0.06); border-radius: 2px; }

/* ==========================================================================
   11. Responsividade e Menu Mobile (Hamburger)
   ========================================================================== */

@media (max-width: 850px) {
    h1 { font-size: 3rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; gap: 20px; }
    .hero { background-image: none; }
    
    .detail-row, .detail-row.reverse { flex-direction: column; text-align: center; gap: 40px; margin-bottom: 80px; }
    
    .qr-card { right: 50%; transform: translateX(50%); bottom: -40px; }
    
    /* Configuração do Hamburger Menu */
    .hamburger {
        display: flex; /* Ativa o ícone no telemóvel */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Escondido fora do ecrã à direita */
        top: 0;
        height: 100vh;
        width: 100%;
        max-width: 350px;
        background-color: var(--brand-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 50px rgba(0,0,0,0.5);
    }

    /* Classe ativada pelo JavaScript para abrir o menu */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.2rem; /* Links maiores no telemóvel para facilitar o clique */
    }

    /* Animação do ícone Hamburger transformando-se num "X" */
    .hamburger.toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* --- Banner de Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    color:#666666;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.btn-cookie {
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie.accept {
    background-color: #fff;
    color: #000;
}

.btn-cookie.accept:hover {
    background-color: #ddd;
}

.btn-cookie.decline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-cookie.decline:hover {
    background-color: #333;
}

/* Responsividade do Banner */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}