/* ============================================
   Reset mínimo
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* ============================================
   Base
   ============================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: var(--lh-tight);
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { max-width: 65ch; }

/* ============================================
   Acessibilidade
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ============================================
   Layout container
   ============================================ */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad-x);
  width: 100%;
}

section { padding-block: var(--section-pad-y); }

/* ============================================
   CTA
   ============================================ */
.cta {
  display: inline-block;
  padding: var(--sp-3) var(--sp-5);
  background-color: var(--color-bg-dark);
  background-image: url("../img/bg-cinza.png");
  background-repeat: repeat;
  color: var(--color-fg-inverse);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform var(--transition), opacity var(--transition);
}
.cta:hover { opacity: 0.88; }
.cta:active { transform: translateY(1px); }

.cta--light {
  background-color: var(--color-fg-inverse);
  background-image: none;
  color: var(--color-fg);
}

/* ============================================
   Top bar (redes sociais)
   ============================================ */
.top-bar {
  background: #c6c6c6;
  padding-block: var(--sp-2);
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
}
.social-list {
  display: flex;
  gap: var(--sp-2);
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-fg);
  color: #c6c6c6;
  transition: opacity var(--transition);
}
.social-list a:hover { opacity: 0.8; }
.social-list i {
  font-size: 14px;
  line-height: 1;
}

/* ============================================
   Site header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--color-bg-dark);
  background-image: url("../img/bg-cinza.png");
  background-repeat: repeat;
  color: var(--color-fg-inverse);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; }

.nav-list {
  display: flex;
  gap: var(--sp-5);
}
.nav-list a {
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: var(--sp-2);
  transition: opacity var(--transition);
}
.nav-list a:hover { opacity: 0.7; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 1023px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 200;
    background-color: var(--color-bg-dark);
    background-image: url("../img/bg-cinza.png");
    padding: var(--sp-4) var(--content-pad-x);
    transform: translateY(-110%);
    transition: transform var(--transition);
    visibility: hidden;
  }
  body.menu-open .nav {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-list { flex-direction: column; gap: var(--sp-3); }
}

@media (min-width: 1024px) {
  .nav-list { gap: 0; }
  .nav-list li + li::before {
    content: "|";
    padding-inline: var(--sp-3);
    opacity: 0.5;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 0;
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__cta-wrap {
  text-align: center;
  padding: var(--sp-5) 0;
}
.hero__lede {
  margin: 0 auto var(--sp-3);
  max-width: 46ch;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--color-fg);
}

@media (min-width: 1024px) {
  .hero__cta-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    padding: 0 var(--sp-4);
  }
  .hero__lede {
    margin: 0;
    max-width: 44ch;
    font-size: 1.75rem;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  }
}

/* Slider */
.hero__slider { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
  position: relative;
  z-index: 0;
}
.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Destaque opcional — texto sobreposto no slide */
.hero__highlight {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  margin: 0;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  max-width: 28ch;
}

.hero__slide--has-highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Dots — mobile: abaixo da imagem, em fluxo */
.hero__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0 0;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  padding: 0;
  transition: background var(--transition);
}
.hero__dot.is-active,
.hero__dot:hover { background: var(--color-fg); }

@media (min-width: 1024px) {
  .hero__highlight {
    left: var(--sp-5);
    right: auto;
    bottom: 90px;
    font-size: 2.5rem;
    max-width: 60ch;
  }
}

/* Desktop: dots sobrepostos à imagem */
@media (min-width: 1024px) {
  .hero__dots {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 0;
    z-index: 2;
  }
  .hero__dot { background: rgba(255, 255, 255, 0.5); }
  .hero__dot.is-active,
  .hero__dot:hover { background: #fff; }
}

/* ============================================
   Section Zaires (split)
   ============================================ */
.section-split {
  background: #efefef;
  color: var(--color-fg);
}
.section-split .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.col-left__logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--sp-5);
}
.col-left p + p { margin-top: var(--sp-3); }
.col-right {
  display: flex;
  justify-content: center;
}
.col-right img {
  width: 80%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .section-split .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .col-right {
    justify-content: flex-end;
  }
}

/* ============================================
   Section Mendoza (texto sobre fundo)
   ============================================ */
.mendoza {
  background-image: url("../img/mendoza-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-fg-inverse);
  padding-block: clamp(var(--sp-7), 12vw, var(--sp-9));
}
.mendoza__content {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: var(--sp-4);
}
.mendoza__flag {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  margin-bottom: var(--sp-2);
}
.mendoza__title {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mendoza__text {
  max-width: 38ch;
}

/* ============================================
   Section Vinhos
   ============================================ */
.wines { background: linear-gradient(135deg, #808e97 0%, #ffffff 100%); }
.wines__title {
  text-align: center;
  margin-bottom: var(--sp-3);
}
.wines__subtitle {
  text-align: center;
  max-width: none;
  margin: 0 auto var(--sp-6);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h3);
}
.wine-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.wine-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: transparent;
}
.wine-card__row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.wine-card__media {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.wine-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}
.wine-card__body h3 { margin-bottom: var(--sp-3); }
.wine-card__body p { color: var(--color-muted); }
.wine-card__cta { align-self: flex-start; margin-top: auto; }

@media (min-width: 640px) {
  .wine-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .wine-card__row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-5);
  }
  .wine-card__media {
    flex: 0 0 48%;
    aspect-ratio: 2 / 3;
  }
  .wine-card__body {
    flex: 1;
    padding-top: var(--sp-4);
  }
}

/* ============================================
   Section Filosofia (texto sobre fundo)
   ============================================ */
.filosofia {
  background-image: url("../img/nossa-forma-bg.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  color: var(--color-fg-inverse);
  padding-block: clamp(var(--sp-7), 12vw, var(--sp-9));
}
.filosofia__content {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}
.filosofia__title {
  text-transform: uppercase;
  font-weight: 500;
}
.filosofia__text {
  max-width: 42ch;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 1024px) {
  .filosofia {
    background-position: center;
  }
  .filosofia__title,
  .filosofia__text,
  .filosofia .cta {
    max-width: calc(50% - var(--sp-5));
  }
}

/* ============================================
   Section Instagram
   ============================================ */
.instagram { background: var(--color-bg); }
.instagram__title {
  text-align: center;
  margin-bottom: var(--sp-3);
}
.instagram__subtitle {
  text-align: center;
  max-width: none;
  margin: 0 auto var(--sp-6);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h3);
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.ig-post {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-2);
}
.ig-cta-wrap {
  text-align: center;
  margin-top: var(--sp-6);
}
.ig-post__media {
  aspect-ratio: 1 / 1;
  background: var(--color-border);
  overflow: hidden;
}
.ig-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.ig-post:hover .ig-post__media img { transform: scale(1.04); }
.ig-post__caption {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.ig-post__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ig-post__title {
  font-size: var(--fs-small);
  color: var(--color-fg);
}

@media (min-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   Site footer
   ============================================ */
.site-footer {
  background: var(--color-footer);
  color: var(--color-fg-inverse);
  padding: var(--sp-7) 0 var(--sp-5);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.ft-brand img {
  height: 48px;
  width: auto;
}
.ft-heading {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}
.ft-links ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.ft-links a,
.ft-contact a {
  opacity: 0.8;
  transition: opacity var(--transition);
}
.ft-links a:hover,
.ft-contact a:hover { opacity: 1; }
.ft-social .social-list a {
  background: #c6c6c6;
  color: var(--color-footer);
}
.ft-contact address {
  font-style: normal;
  line-height: 1.8;
}

@media (min-width: 640px)  {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-footer .container { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-5); align-items: start; }
}

/* ============================================
   Scroll reveal (fade-in ao entrar na viewport)
   ============================================ */
.reveals-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.reveals-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveals-enabled .wine-card[data-reveal]:nth-of-type(2) { transition-delay: 120ms; }

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveals-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* === Single de Vinho === */

.vinho-single {
  background-color: var(--color-bg);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.vinho-single__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  max-width: 720px;
}

.vinho-single__media {
  width: 80%;
  max-width: 320px;
}

.vinho-single__media img {
  width: 100%;
  height: auto;
  display: block;
}

.vinho-single__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--color-fg);
  margin: 0;
}

.vinho-single__descricao {
  font-family: var(--font-sans);
  color: var(--color-fg);
  line-height: 1.7;
  font-size: 1rem;
}

.vinho-single__descricao p {
  margin: 0 0 1rem;
}

.vinho-single__descricao p:last-child {
  margin-bottom: 0;
}

.vinho-single__cta {
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .vinho-single {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

  .vinho-single__inner {
    gap: 2rem;
  }

  .vinho-single__media {
    max-width: 360px;
  }

  .vinho-single__descricao {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .vinho-single {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .vinho-single__inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-areas:
      "media title"
      "media descricao"
      "media cta";
    column-gap: 4rem;
    row-gap: 1.5rem;
    text-align: left;
    align-items: start;
    max-width: 960px;
  }

  .vinho-single__media    { grid-area: media; width: 100%; max-width: none; }
  .vinho-single__title    { grid-area: title; align-self: end; }
  .vinho-single__descricao { grid-area: descricao; }
  .vinho-single__cta      { grid-area: cta; }
}

/* ============================================
   Assinatura (crédito de desenvolvimento)
   ============================================ */
.site-signature {
  width: 100%;
  background: var(--color-bg);
  padding: 5px 0;
  text-align: center;
}
.site-signature img {
  display: inline-block;
  height: 28px;
  width: auto;
}

/* ============================================
   Botão flutuante WhatsApp
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.06);
}
.whatsapp-float i {
  font-size: 1.75rem;
  color: #fff;
}

@media (min-width: 1024px) {
  .whatsapp-float {
    right: var(--sp-5);
    bottom: var(--sp-5);
  }
}
