/* ════════════════════════════════════════
   LICOR.CSS — partilhado por todas as páginas de licor
   Para mudar a cor de um licor: editar as variáveis
   --licor-* no <style> de cada ficheiro HTML
════════════════════════════════════════ */

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  background: #FAFAF8;
  color: #1A1208;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100% }
a { text-decoration: none; color: inherit }

::-webkit-scrollbar { width: 5px }
::-webkit-scrollbar-track { background: #F2EFE9 }
::-webkit-scrollbar-thumb { background: var(--licor-ac); border-radius: 3px }

/* ── VARIÁVEIS DE CADA LICOR (definidas no HTML) ── */
:root {
  --licor-bg:    #2A1208;   /* fundo escuro */
  --licor-ac:    #8B4513;   /* acento/cor principal */
  --licor-txt:   #F5E8D5;   /* texto sobre fundo escuro */
  --licor-lt:    #FDF6EE;   /* fundo claro derivado */
  --ouro:        #B8902A;
  --ouro2:       #D4AA50;
  --borda:       #E2DAD0;
  --texto:       #1A1208;
  --texto-lt:    #5A5040;
  --bg:          #FAFAF8;
  --bg2:         #F2EFE9;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
  padding: 0 5vw;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08) }
.nav-logo img { height: 62px; width: auto }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links > li { position: relative }
.nav-links > li > a {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--texto); transition: color 0.3s;
}
.nav-links > li > a:hover { color: var(--licor-ac) }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  background: transparent;
  min-width: 200px;
  z-index: 9999;
}
.dropdown-menu-inner {
  background: #ffffff !important;
  border: 1px solid #E2DAD0;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
  z-index: 9999;
}
.has-dropdown:hover .dropdown-menu { display: block }
/* manter aberto enquanto o rato está no menu */
.has-dropdown:hover > a,
.dropdown-menu:hover { display: block }
.dropdown-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.82rem; color: var(--texto);
  border-bottom: 1px solid var(--borda);
  transition: background 0.2s;
}
.dropdown-menu a:last-child { border-bottom: none }
.dropdown-menu a:hover { background: var(--bg2) }
.dropdown-menu-inner a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.82rem; color: var(--texto);
  border-bottom: 1px solid var(--borda);
  transition: background 0.2s;
}
.dropdown-menu-inner a:last-child { border-bottom: none }
.dropdown-menu-inner a:hover { background: var(--bg2) }
.dropdown-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0 }
.nav-cta {
  background: var(--licor-bg) !important;
  color: var(--licor-txt) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: opacity 0.3s !important;
}
.nav-cta:hover { opacity: 0.85 !important }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 1.5px; background: var(--texto); transition: all 0.3s }


/* ── LOGO DO LICOR — CARIMBO TOPO CENTRADO ── */
.hero-logo-stamp {
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-logo-stamp img {
  width: 200px; height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.25));
  transition: transform 0.5s ease;
}
.hero-logo-stamp img:hover { transform: scale(1.04) }

@media (max-width: 960px) {
  .hero-logo-stamp { top: 86px }
  .hero-logo-stamp img { width: 140px; height: 140px }
}
@media (max-width: 600px) {
  .hero-logo-stamp { top: 82px }
  .hero-logo-stamp img { width: 110px; height: 110px }
}

/* ── HERO ── */
.licor-hero {
  min-height: 100vh;
  padding-top: 70px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--licor-bg) 20%, white) 0%,
    color-mix(in srgb, var(--licor-bg) 60%, white) 30%,
    var(--licor-bg) 75%
  );
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.hero-text-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 4rem 4rem 8vw;
  position: relative; z-index: 2;
  color: var(--licor-txt);
}
.hero-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ouro2);
  margin-bottom: 2.5rem;
  transition: opacity 0.3s, color 0.3s;
}
.hero-back:hover { color: var(--ouro) }
.hero-back svg { transition: transform 0.3s }
.hero-back:hover svg { transform: translateX(-3px) }
.hero-categoria {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1;
  color: #fff;
  margin-bottom: 0;
}
.hero-nome {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--ouro2);
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-style: italic; font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem; line-height: 1.5;
}
.hero-specs {
  display: flex; gap: 2.5rem;
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-spec-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--ouro2);
}
.hero-spec-lbl {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--licor-ac);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  align-self: flex-start;
  transition: opacity 0.3s, transform 0.2s;
}
.hero-btn:hover { opacity: 0.85; transform: translateY(-2px) }
.hero-img-col {
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 4vw;
  position: relative; z-index: 2;
}
.hero-bottle {
  height: 72vh; max-height: 580px;
  width: auto; object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.35));
  transition: transform 0.6s ease;
}
.hero-bottle:hover { transform: translateY(-10px) }

/* ── SOBRE O LICOR ── */
.sec-sobre {
  padding: 7rem 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.sobre-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.sobre-bottle-wrap {
  width: 100%;
  background: var(--licor-lt);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
  min-height: 420px;
}
.sobre-bottle-wrap img {
  max-height: 380px; width: auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.15));
}
.sobre-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--licor-bg);
  color: var(--licor-txt);
  padding: 1.2rem 1.5rem;
  border-radius: 2px;
  text-align: center;
}
.sobre-badge strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--ouro2);
  display: block; line-height: 1;
}
.sobre-badge span {
  font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.sobre-content {}
.sec-eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--licor-ac);
  margin-bottom: 0.8rem;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; line-height: 1.2;
  color: var(--texto); margin-bottom: 1.5rem;
}
.sobre-desc {
  font-size: 1rem; line-height: 1.9; font-weight: 300;
  color: var(--texto-lt); margin-bottom: 2rem;
}
.ingredientes-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--texto); margin-bottom: 1rem;
}
.ingredientes-lista {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.ing-tag {
  background: var(--licor-lt);
  border: 1px solid var(--licor-ac);
  border-radius: 2px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem; color: var(--texto);
}

/* ── COMO SERVIR ── */
.sec-servir {
  padding: 6rem 8vw;
  background: var(--licor-bg);
}
.servir-inner {
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.servir-inner .sec-eyebrow { color: var(--licor-ac) }
.servir-inner .sec-title { color: #fff; margin-bottom: 3rem }
.servir-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.servir-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}
.servir-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}
.servir-icon {
  font-size: 2rem; margin-bottom: 1rem;
}
.servir-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--licor-ac); margin-bottom: 0.6rem;
}
.servir-card p {
  font-size: 0.85rem; line-height: 1.7; font-weight: 300;
  color: rgba(255,255,255,0.55);
}

/* ── OUTROS LICORES ── */
.sec-outros {
  padding: 6rem 8vw;
  background: var(--bg2);
}
.sec-outros .sec-title { text-align: center; margin-bottom: 3rem }
.sec-outros .sec-eyebrow { text-align: center; display: block }
.outros-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.outro-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 3px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.outro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.outro-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--outro-ac, #B8902A);
}
.outro-bottle {
  height: 120px; width: auto; object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
  transition: transform 0.4s;
}
.outro-card:hover .outro-bottle { transform: translateY(-4px) }
.outro-nome {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem; font-weight: 600;
  color: var(--texto); margin-bottom: 0.3rem;
}
.outro-sub {
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--texto-lt);
  opacity: 0.6;
}

/* ── FOOTER ── */
footer {
  background: var(--texto);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 8vw 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-brand img { height: 68px; margin-bottom: 1rem }
.footer-brand p {
  font-size: 0.82rem; line-height: 1.7; font-weight: 300;
  color: rgba(255,255,255,0.4); max-width: 240px;
}
.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; font-weight: 600;
  color: #fff; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none }
.footer-col ul li { margin-bottom: 0.6rem }
.footer-col ul li a {
  font-size: 0.8rem; font-weight: 300;
  color: rgba(255,255,255,0.4); transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--ouro2) }
.footer-socials { display: flex; gap: 0.8rem; margin-top: 1.2rem }
.footer-social {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: border-color 0.3s, color 0.3s;
}
.footer-social:hover { border-color: var(--ouro); color: var(--ouro) }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy {
  font-size: 0.72rem; color: rgba(255,255,255,0.25); letter-spacing: 0.08em;
}
.footer-copy a { color: rgba(201,151,58,0.5); transition: color 0.3s }
.footer-copy a:hover { color: var(--ouro) }

/* ── OVERLAY MOBILE ── */
#menuOverlay {
  display: none; position: fixed; inset: 0;
  background: var(--licor-bg);
  z-index: 9999;
  flex-direction: column; align-items: center; justify-content: center;
}
#menuOverlay.open { display: flex }
.overlay-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: none; border: none; cursor: pointer;
  color: var(--licor-ac); padding: 8px;
}
.overlay-logo { position: absolute; top: 1rem; left: 1.4rem }
.overlay-logo img { height: 54px }
.overlay-nav { list-style: none; width: 100%; text-align: center }
.overlay-nav li { border-bottom: 1px solid rgba(255,255,255,0.06) }
.overlay-nav li:first-child { border-top: 1px solid rgba(255,255,255,0.06) }
.overlay-nav a {
  display: block; padding: 1.2rem 2rem;
  font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); transition: color 0.3s;
}
.overlay-nav a:hover { color: var(--licor-ac) }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .licor-hero { grid-template-columns: 1fr; min-height: auto }
  .hero-text-col { padding: 4rem 2rem 2rem; text-align: center; align-items: center }
  .hero-specs { justify-content: center }
  .hero-img-col { padding: 2rem }
  .hero-bottle { height: 50vw; max-height: 380px }
  .sec-sobre { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem }
  .sobre-badge { bottom: -0.5rem; right: 0.5rem }
  .servir-cards { grid-template-columns: 1fr }
  .outros-grid { grid-template-columns: repeat(2, 1fr) }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem }
  .nav-links { display: none }
  .hamburger { display: flex }
  #navbar { padding: 0 1.5rem }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr }
  .outros-grid { grid-template-columns: repeat(2, 1fr) }
  .hero-text-col { padding: 3rem 1.5rem 1.5rem }
}

/* ── Telemóvel: logo por cima sem tapar o texto ── */
@media (max-width: 960px) {
  .hero-text-col { padding-top: calc(140px + 3rem) }
}
@media (max-width: 600px) {
  .hero-text-col { padding-top: calc(110px + 2.8rem) }
  .hero-categoria, .hero-nome { font-size: clamp(2.3rem, 11.5vw, 3rem) }
  .hero-back { margin-bottom: 1.6rem }
}
