:root {
  --wine: #5b1f2a;
  --wine-dark: #311116;
  --gold: #c8a46a;
  --cream: #f5efe6;
  --olive: #6d7458;
  --text: #222;
  --white: #fff;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

/* BASE */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0 0 18px;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 28px;
  background: rgba(35, 14, 18, 0.78);
  color: var(--white);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.topbar.scrolled {
  background: rgba(35, 14, 18, 0.94);
  padding: 12px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand {
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  color: var(--white);
}

.nav a:visited {
  color: var(--white);
}

.nav a:hover {
  color: var(--gold);
}

/* linha animada no hover */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 110px 8vw 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: #14090b;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: -60px;
  right: 0;
  bottom: -60px;
  left: 0;
  background:
    linear-gradient(rgba(20, 8, 11, 0.55), rgba(20, 8, 11, 0.65)),
    url("images/background.png") center center / cover no-repeat;
  z-index: 0;
  transform: translateY(0) scale(1.03);
  will-change: transform;
  filter: brightness(0.85) contrast(1.05) saturate(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.hero p {
  font-size: 1.08rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 26px;
}

.eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e6d3b3;
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-align: center;
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn{
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 170px;
  padding: 16px 32px;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  cursor: pointer;
  border: 1px solid rgba(200, 164, 106, 0.5);

  color: var(--gold);
  background: transparent; /* 🔥 transparente */

  backdrop-filter: blur(8px);

  transition: all .3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn::before{
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.5),
    transparent
  );

  transform: skewX(-25deg);
}

/* animação ao passar o rato */
.btn:hover::before{
  left: 140%;
  transition: 0.6s;
}

/* 🔥 HOVER = deixa de ser transparente */
.btn:hover{
  background: linear-gradient(135deg, var(--gold), #e6c88b);
  color: #2a0f14;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.btn-primary {
  background: var(--gold);
  color: #24160f;
  font-weight: bold;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* SECTIONS */
.section {
  padding: 95px 0;
  position: relative;
  z-index: 3;
  scroll-margin-top: 100px;
}

.section-head {
  max-width: 760px;
  margin: 0 0 36px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 10px;
  color: var(--wine-dark);
}

.section-head p {
  margin: 0;
  color: #5f544f;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(200, 164, 106, 0.16);
  color: #8a6735;
}

/* VINHOS */
.wines-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.7)),
    linear-gradient(180deg, transparent, rgba(91, 31, 42, 0.03));
}

.wines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.wine-product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 234, 0.92));
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wine-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18);
}

.wine-image-wrap {
  padding: 28px 24px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.wine-blue {
  background: linear-gradient(180deg, rgba(113, 138, 203, 0.50), rgba(255, 255, 255, 0));
}

.wine-green {
  background: linear-gradient(180deg, rgba(183, 209, 200, 0.50), rgba(255, 255, 255, 0));
}

.wine-rose {
  background: linear-gradient(180deg, rgba(223, 179, 190, 0.50), rgba(255, 255, 255, 0));
}

.wine-product-image {
  max-height: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.14));
}

.wine-product-body {
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  align-items: center;
  text-align: center;
}

.wine-product-body h3 {
  margin: 0;
  color: var(--wine);
  font-size: 1.4rem;
}

.wine-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8a6735;
}

.wine-features {
  margin: 0;
  padding-left: 18px;
  color: #5f544f;
  display: grid;
  gap: 8px;
  text-align: left;
  width: 100%;
  max-width: 260px;
}

.wine-product-body .btn {
  margin-top: auto;
  align-self: center;
}

/* ORIGEM */
.origem-section {
  background: #f4efe9;
  padding: 40px 0;
}

.origem-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 10px 0;
}

.origem-image {
  display: flex;
  justify-content: flex-start;
  padding: 30px 0;
}

.origem-image img {
  display: block;
  width: 100%;
  max-width: 520px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.origem-content {
  max-width: 480px;
}

.origem-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2c1a14;
}

.origem-content h3 {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: #6b4c3b;
}

.origem-content p {
  margin-bottom: 16px;
  color: #3e2a22;
  line-height: 1.6;
}

/* CONTACTOS */
.contact-section {
  background: #14090b;
  color: var(--white);
  padding: 100px 0;
}

.contact-container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.contact-info p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-details div {
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-family: inherit;
}

.contact-form button {
  align-self: flex-start;
}

/* FOOTER */
.footer {
  background: #f4efe9;
  padding: 30px 0;
}

.footer-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine-dark);
}

.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wine-dark);
  color: white;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: var(--gold);
  color: #24160f;
  transform: translateY(-3px);
}

/* ANIMAÇÕES */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVO */
@media (max-width: 980px) {
  .wines-grid {
    grid-template-columns: 1fr;
  }

  .wine-product-body .btn {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .origem-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .origem-image {
    order: -1;
    justify-content: center;
    padding: 0 0 20px;
  }

  .origem-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 14px 18px;
    justify-content: center;
    gap: 12px;
  }

  .brand {
    width: 100%;
    text-align: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .hero {
    justify-content: center;
    padding: 100px 24px 60px;
    background:
      linear-gradient(rgba(20, 8, 11, 0.55), rgba(20, 8, 11, 0.65)),
      url("images/background.png") center center / cover no-repeat;
  }

  .hero-bg {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 26px;
  }

  .actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form button {
    align-self: stretch;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

.quote-torga {
  text-align: center;
  color: #c8a46a;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 20px auto;
  padding: 15px 25px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

.quote-torga p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.quote-torga span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #f5efe6;
  opacity: 0.8;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
  justify-content: center;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
}

/* cada coluna */
.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}