:root {
    --qc-preto: #050505;
    --qc-preto-soft: #151515;
    --qc-dourado: #c9974f;
    --qc-dourado-escuro: #a6762c;
    --qc-creme: #f4efe4;
    --qc-creme-claro: #fbf6ec;
    --qc-texto: #111111;
    --qc-texto-claro: #ffffff;
    --qc-cinza: #5c5c5c;
    --qc-radius: 18px;
    --qc-max-width: 1200px;
    --qc-fonte: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--qc-fonte);
    background: var(--qc-creme);
    color: var(--qc-texto);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.qc-container {
    width: 100%;
    max-width: var(--qc-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

.qc-header {
    background: var(--qc-preto);
    color: var(--qc-texto-claro);
    position: sticky;
    top: 0;
    z-index: 50;
}

.qc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
}

.qc-header-logo img {
    max-height: 40px;
}

/* NAV */

.qc-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-size: 0.98rem;
}

.qc-nav a {
    position: relative;
    letter-spacing: 0.08em;
}

.qc-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.22rem;
    width: 0;
    height: 2px;
    background: var(--qc-dourado);
    transition: width 0.18s ease-out;
}

.qc-nav a:hover::after,
.qc-nav a:focus::after {
    width: 100%;
}

.qc-header-lang {
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--qc-dourado);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* HERO */

.qc-hero {
    position: relative;
    overflow: hidden;
    background: #000;
}

.qc-hero-media img {
    width: 100%;
    height: auto;
}

/* texto sobre a imagem, como no mockup */

.qc-hero-text {
    position: absolute;
    left: 12%;
    bottom: 18%;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.qc-hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.qc-hero-text p {
    font-size: 1.3rem;
}

/* SECÇÃO GENÉRICA */

.qc-section {
    padding: 3.2rem 0 3.8rem;
}

.qc-section-title {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
}

.qc-section-subtitle {
    font-size: 0.96rem;
    color: var(--qc-cinza);
    max-width: 560px;
    margin-bottom: 2rem;
}

/* VINHOS – CARROSSEL */

.qc-vinhos-section {
    background: var(--qc-creme-claro);
}

/* Estrutura externa */

.carousel-container {
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.carousel-window {
    flex: 1;
    overflow: hidden;
    border-radius: var(--qc-radius);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

/* cada slide ocupa 100% */

.carousel-item {
    min-width: 100%;
    padding: 1.4rem 0;
}

/* Card interno (fundo dourado) */

.carousel-card {
    background: #e1b16b;
    border-radius: var(--qc-radius);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 2.4rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.carousel-card-texto {
    max-width: 420px;
}

.carousel-origem {
    font-size: 0.9rem;
    color: #3a2615;
}

.carousel-card-texto h3 {
    font-size: 1.6rem;
    margin: 0.4rem 0 0.8rem;
    color: #2b1a10;
}

.carousel-card-texto p {
    font-size: 0.98rem;
    color: #3a2615;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.btn-vinho {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: #2b1a10;
    color: #fdf2e3;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-vinho:hover {
    background: #1d120b;
}

.carousel-card-imagem {
    text-align: right;
}

.carousel-card-imagem img {
    max-height: 260px;
    margin-left: auto;
}

/* Setas */

.carousel-prev,
.carousel-next {
    background: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--qc-dourado);
}

.carousel-prev {
    margin-right: 0.2rem;
}

.carousel-next {
    margin-left: 0.2rem;
}

/* CONTACTO + MAPA */

.qc-contacto-mapa {
    position: relative;
    color: #ffffff;
    margin-top: 0;
}

.qc-contacto-bg img {
    width: 100%;
    height: auto;
    filter: brightness(0.65);
}

.qc-contacto-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: center;
    padding: 2.2rem 1.5rem;
    gap: 1.8rem;
}

.qc-contacto-bloco {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 360px;
}

.qc-contacto-logo img {
    max-height: 38px;
}

.qc-contacto-texto p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.qc-contacto-texto strong {
    display: inline-block;
    margin-bottom: 0.15rem;
}

.qc-mapa-embed {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

/* FOOTER */

.qc-footer {
    background: var(--qc-preto-soft);
    color: var(--qc-texto-claro);
    font-size: 0.8rem;
    padding: 0.9rem 0 1rem;
}

.qc-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* RESPONSIVO */

@media (max-width: 960px) {
    .qc-hero-text {
        left: 8%;
        bottom: 14%;
    }

    .carousel-card {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 800px) {
    .qc-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .qc-hero-text {
        position: static;
        padding: 1.5rem 1.5rem 2rem;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0.4),
            transparent
        );
    }

    .qc-hero {
        display: flex;
        flex-direction: column;
    }

    .qc-contacto-mapa {
        position: relative;
    }

    .qc-contacto-bg img {
        display: none;
    }

    .qc-contacto-grid {
        position: static;
        grid-template-columns: minmax(0,1fr);
        background: #000000;
    }

    .qc-mapa-embed {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .carousel-card {
        grid-template-columns: minmax(0,1fr);
        text-align: left;
    }

    .carousel-card-imagem {
        text-align: center;
    }

    .carousel-card-imagem img {
        margin: 0 auto;
    }

    .qc-nav ul {
        gap: 1.2rem;
        font-size: 0.9rem;
    }
}
