/* =========================================
   VARIÁVEIS DE COR E TIPOGRAFIA
   ========================================= */
:root {
    /* Cores Premium: Fundo Escuro, Destaques em Vinho */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #151515;
    --color-wine-primary: #722F37;
    /* Cor de Vinho */
    --color-wine-dark: #501d23;
    --color-text-light: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-border: #2a2a2a;

    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* Para rolagem suave nos links do menu */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* =========================================
   TÍTULOS E COMPONENTES
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-wine-primary);
    margin: 1.5rem 0;
}

.divider.center {
    margin: 1.5rem auto;
}

/* Botões */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-wine-primary);
    color: #fff;
    border: none;
    margin-top: 2rem;
}

.btn-primary:hover {
    background-color: var(--color-wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-wine-primary);
    border: 1px solid var(--color-wine-primary);
    padding: 10px 20px;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: var(--color-wine-primary);
    color: #fff;
}

/* =========================================
   NAVEGAÇÃO (HEADER)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* Efeito de brilho de garrafa de vidro escuro */
    background: linear-gradient(to bottom, rgba(45, 15, 20, 0.9) 0%, rgba(20, 20, 20, 0.95) 40%, rgba(10, 10, 10, 0.98) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 5px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(114, 47, 55, 0.4);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    /* Logo aumentado conforme solicitado */
    object-fit: contain;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-wine-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 80px;
    /* Para não ficar embaixo do nav */
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

/* =========================================
   SOBRE NÓS
   ========================================= */
.about {
    padding: 100px 20px;
    background-color: var(--color-bg-dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* =========================================
   VITRINE (CARTAS DE VINHOS)
   ========================================= */
.vitrine {
    padding: 100px 20px;
    background-color: #0d0d0d;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.grid-vinhos {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.vinho-card {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vinho-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(114, 47, 55, 0.15);
    border-color: var(--color-wine-primary);
}

.vinho-img-wrapper {
    height: 250px;
    background-color: #fff;
    /* Fundo branco ajuda imagens sem fundo ou com fundo branco a se mesclarem melhor */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.vinho-img-wrapper img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.vinho-card:hover .vinho-img-wrapper img {
    transform: scale(1.05);
}

.vinho-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vinho-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.vinho-tipo {
    font-size: 0.85rem;
    color: var(--color-wine-primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vinho-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: auto;
    /* Empurra o botão para o fundo */
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #050505;
    padding: 60px 20px 20px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    height: 216px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-contact {
    flex: 1;
    min-width: 300px;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Seria substituído por um menu hambúrguer no JS */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}