/* ▌RESET + VARIÁVEIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f3f0;
    --text: #111;
    --accent: #d4b97f;
    --dark: #000;
    --transition: .4s cubic-bezier(.25, .8, .25, 1);
    font-size: 16px;
}

/* ▌TIPOGRAFIA */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    margin-bottom: 1.6rem;
    text-align: center;
}
.section-sub{
    font-size: clamp(1rem, 1vw, 2.4rem);
    margin-bottom: 1.6rem;
    text-align: center;
}

/* ▌CABEÇALHO */
header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    padding: .75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    color: #fff;
    z-index: 1000;
    transition: background .3s;
}

header.scrolled {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.logo img {
    height: 28px;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -.2em;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.social a {
    font-size: 1.2rem;
    color: inherit;
    margin-left: .75rem;
    transition: color .3s;
}

.social a:hover {
    color: var(--accent);
}

/* ▌HAMBURGUER */
#hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: .25rem;
    cursor: pointer;
}

#hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

/* ▌HERO */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.hero-text h1 {
    margin-bottom: 1.2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: .8rem 2rem;
    border: 2px solid var(--accent);
    color: #fff;
    background: transparent;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--dark);
}

.btn-secondary {
    border-color: var(--dark);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: #fff;
}

/* ▌COLEÇÃO */
.products {
    padding: 4rem 0;
}

.carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 1rem 2rem;
}

/* Cards de produtos
.card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Imagens adaptáveis 
.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    /* garante proporção elegante 
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Overlay de descrição 
.card-info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover img {
    transform: scale(1.03);
}

.card:hover .card-info {
    opacity: 1;
} */

/*@media (max-width: 768px) {
    .carousel {
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        padding: 1rem;
        scroll-snap-type: x mandatory;
    }

    .card {
        flex: 0 0 auto;
        width: 160px;
        scroll-snap-align: start;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        background: #fff;
    }

    /*.card img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        /* 🔥 garante que não fique gigante 
        object-fit: cover;
        border-radius: 8px;
    }

    .card-info {
        font-size: 0.75rem;
        padding: 0.8rem;
    }

    .card-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .card-info p {
        font-size: 0.75rem;
    }
}*/

/* ▌MOBILE FIRST (já corrigido) */
.card {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
}

.card-info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    word-break: break-word;
    overflow-y: auto;
    z-index: 2;
}

/* VISÍVEL no hover (desktop) */
.card:hover .card-info {
    opacity: 1;
    pointer-events: auto;
}

/* VISÍVEL no toque (mobile) — classe JS .show */
.card-info.show {
    opacity: 1;
    pointer-events: auto;
}

/* Estilo interno */
.card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-info p {
    font-size: 0.85rem;
    line-height: 1.3;
}



/* ▌DESKTOP AJUSTADO */
@media (min-width: 768px) {
    .card {
        width: 220px;
    }

    .card img {
        aspect-ratio: 3 / 4;
    }

    .card-info h3 {
        font-size: 1rem;
    }

    .card-info p {
        font-size: 0.875rem;
    }
}


/* ▌CAMPANHA */
.campaign {
    padding: 4rem 1rem;
    background: #fff;
}

.gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.gallery img {
    flex: 0 0 auto;
    width: 260px;
    height: auto;
    object-fit: cover;
    scroll-snap-align: start;
    border-radius: 6px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.gallery img:hover {
    filter: grayscale(0%);
}


/* ▌ABOUT TIME-LINE */
.about {
    padding: 4rem 1rem;
}

.timeline {
    list-style: none;
    border-left: 2px solid var(--accent);
    max-width: 700px;
    margin: 0 auto;
}

.timeline li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1.8rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
}

.year {
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: .3rem;
}

/* ▌INSTAGRAM */
.insta {
    padding: 4rem 1rem;
    background: #f9f9f9;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    max-width: 900px;
    margin: auto;
}

.insta-grid a {
    display: block;
    overflow: hidden;
}

.insta-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .4s;
}

.insta-grid a:hover img {
    filter: grayscale(0);
}

/* ===============================
   CTA FINAL - ÉTOILE DORÉE
================================ */

.cta-final {
  padding: 120px 20px;
  background: #f8f6f2; /* bege editorial sofisticado */
  text-align: center;
  position: relative;
}

.cta-final .container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.cta-final p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

/* Botão elegante */
.cta-final .btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.cta-final .btn-primary:hover {
  background: #1a1a1a;
  color: #ffffff;
}


/* ▌FOOTER */
footer {
    background: #111;
    color: #eee;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-button img {
    width: 32px;
    height: 32px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}


.brand img {
    height: 46px;
    filter: invert(1);
}

.links {
    list-style: none;
}

.links a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: .6rem;
    transition: color .3s;
}

.links a:hover {
    color: var(--accent);
}

.newsletter {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.newsletter input {
    padding: .6rem;
    border: none;
    border-radius: 4px;
}

.social-footer a {
    color: inherit;
    font-size: 1.3rem;
    margin-right: .8rem;
    transition: color .3s;
}

.social-footer a:hover {
    color: var(--accent);
}

.copy {
    text-align: center;
    margin-top: 2rem;
    font-size: .875rem;
    color: #777;
}

/* ▌SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* HERO CAROUSEL */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto fixo */
.hero-carousel .hero-text {
    position: absolute;
    z-index: 2;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}


/* ▌MEDIA QUERIES */
@media(min-width:768px) {
    #hamburger {
        display: none;
    }
}

@media(max-width:768px) {

    .nav-links,
    .social {
        display: none;
    }

    header.open .nav-links,
    header.open .social {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        margin-top: 1rem;
    }

    #hamburger {
        display: flex;
    }

    header.open #hamburger span:nth-child(2) {
        opacity: 0;
    }

    header.open #hamburger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    header.open #hamburger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-info.show {
    opacity: 1;
}

@media(min-width: 768px) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
        overflow: unset;
        scroll-snap-type: none;
    }

    .gallery img {
        width: 100%;
    }
}

/* Mobile: ajuste mais fino */
@media (max-width: 480px) {
    .card {
        width: 160px;
    }

    .card img {
        aspect-ratio: 3/4;
    }
}
@media (max-width: 768px) {

  .cta-final {
    padding: 80px 20px;
  }

  .cta-final h2 {
    font-size: 1.8rem;
  }

  .cta-final p {
    font-size: 1rem;
  }

  .cta-final .btn-primary {
    width: 100%;
    padding: 16px;
  }
}
