/*
 * CSS partilhado por várias páginas (não específico de nenhuma).
 * Atualmente: ticker-bar (usado em todas as páginas) e cta-section
 * (usado em várias páginas como bloco de fecho).
 */

/* ── Header drop img / Hero banner (usado em várias páginas) ── */
.header-drop-img {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.header-drop-img img {
  width: 500px;
  height: auto;
  display: block;
}

.hero-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 300px;
  margin-bottom: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Ticker ── */
.ticker-bar {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border: 4px solid #f180b4;
  background: white;
  height: 56px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-phrase {
  font-family: 'Caracolina', serif;
  font-size: 18px;
  letter-spacing: .06em;
  color: black;
  padding: 0 1.8rem;
}

/* ── CTA ── */
.cta-section {
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.cta-inner {
  background: #fff;
  border: 7px dashed #F180B4;
  border-radius: 16px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(196,128,106,.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Caracolina', serif;
  font-size: 50px;
  font-weight: 300;
  color: black;
  line-height: 1;
}

.cta-desc {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: black;
  line-height: 1.7;
  max-width: 420px;
}

.cta-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.cta-img {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translateY(-50%);
  width: auto;
  height: 100%;
  pointer-events: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  background: #44C2CC;
  color: var(--ink);
  border: none;
  padding: .7rem 1.4rem;
  border-radius: 100px;
  transition: background .2s ease, transform .2s ease;
}

.btn-primary:hover {
  background: pink;
  color: #fff;
  transform: scale(1.03);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(247,243,238,.3);
  padding: .7rem 1.4rem;
  border-radius: 100px;
  transition: border-color .2s ease, transform .2s ease;
}

.btn-secondary:hover {
  border-color: var(--bg);
  transform: scale(1.03);
}

/* ── Utilitários partilhados ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.bottom-pad { height: 6rem; }

/* ── Botão flutuante do carrinho (aparece em todas as páginas) ── */
.cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed #f180b4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .2s ease;
}

.cart-fab:hover {
  transform: scale(1.06);
}

.cart-fab img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #44C2CC;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ── Scroll reveal (usado em várias páginas, ver assets/js/scroll-reveal.js) ── */
.reveal {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
}

/* ══════════════════════════════════════════
   Responsivo (telemóvel)
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
  .header-drop-img img {
    width: 260px;
  }

  .hero-banner {
    height: 160px;
  }

  .cta-inner {
    border-width: 4px;
    padding: 2rem 1.25rem;
    gap: .75rem;
    margin: 0 .5rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-desc {
    font-size: 15px;
  }

  .cta-img {
    display: none; /* imagem decorativa some para dar espaço ao texto */
  }

  .btn-primary,
  .btn-secondary {
    font-size: .62rem;
    padding: .6rem 1.1rem;
  }

  .cart-fab {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }

  .cart-fab img {
    width: 24px;
    height: 24px;
  }
}
