/* =====================================================
   Quinta d'Alfarella - Stylesheet
   Inspirado no estilo elegante do Babylonstoren
   Cores baseadas no logótipo (verde sage/oliva)
   ===================================================== */

/* CSS Variables */
:root {
    --color-primary: #8B9A6B;
    --color-primary-dark: #5C6B4A;
    --color-primary-light: #A8B88A;
    --color-text: #2C3E2D;
    --color-text-light: #5A6B5C;
    --color-bg: #FAFAF7;
    --color-bg-alt: #F0EFE8;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-primary-dark);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 10px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 62, 45, 0.3) 0%,
        rgba(44, 62, 45, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 20px;
}

.hero-welcome {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

/* Intro Section */
.intro {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--color-bg);
}

.intro-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-light);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 10px;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.section-subtitle.centered {
    text-align: center;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse > * {
    direction: ltr;
}

.section-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.section-content p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

/* About Section */
.section-about {
    background-color: var(--color-bg);
}

/* Gallery Section */
.section-gallery {
    background-color: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Products Section */
.section-products {
    background-color: var(--color-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.product-card {
    background-color: var(--color-white);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 350px;
    overflow: hidden;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-info {
    padding: 40px;
}

.product-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-info p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.product-details {
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid var(--color-bg-alt);
}

/* Contact Section */
.section-contact {
    background-color: var(--color-bg-alt);
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--color-text-light);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background-color: var(--color-white);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--color-bg-alt);
    background-color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 15px 40px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    border: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center; /* CENTRA cada coluna */
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-image {
    width: 180px;   /* ajusta o tamanho do quadrado */
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* mantém o logo perfeito */
    object-position: center;
    display: block;
}



.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: center;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-slogan {
    text-align: right;
}

.footer-slogan p {
    font-family: var(--font-heading);
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-grid.reverse {
        direction: ltr;
    }
    
    .section-image img {
        height: 400px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-slogan {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 16px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-slogan {
        font-size: 18px;
    }
    
    .intro-text {
        font-size: 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .product-image {
        height: 250px;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}
.sound-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255,255,255,0.85);
    border: 1px solid var(--color-primary-dark);
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    border-radius: 4px;
    z-index: 9999;
    transition: 0.3s ease;
}

.sound-btn:hover {
    background-color: var(--color-primary-dark);
    color: white;
}
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* escurece o vídeo */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
.footer-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
