/* ===================================================
   VI BEAUTY — Shared Styles
   Clínica & Academy — Queijas, Oeiras, Lisboa
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fahkwang:ital,wght@0,200;0,300;0,400;0,500;1,200;1,300;1,400&family=Quicksand:wght@300;400;500;600;700&family=Parisienne&display=swap');

/* ─── TOKENS ─── */
:root {
  --charcoal: #64574D;
  --charcoal-deep: #3E352E;
  --cream: #F8F6F4;
  --cream-mid: #EDE7E0;
  --gold: #B8965A;
  --gold-light: #D4AF7A;
  --gold-pale: rgba(184,150,90,0.12);
  --text-dark: #4A4039;
  --text-mid: #6B5E4E;
  --text-light: #A69580;
  --white: #FFFFFF;

  --font-title: 'Fahkwang', serif;
  --font-body: 'Quicksand', sans-serif;
  --font-accent: 'Parisienne', cursive;

  --max-width: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tr: 0.35s var(--ease);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ─── UTILITIES ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-header { max-width: 580px; }
.section-header.centered { margin: 0 auto; text-align: center; }
.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered .eyebrow::before { display: none; }

.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(24px, 8vw, 36px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.section-header h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.section-header p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-top: 16px;
}
.on-dark h2 { color: var(--cream); }
.on-dark p { color: rgba(255,255,255,0.5); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* Hero content visible immediately — no reveal delay */
.hero .reveal {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  min-height: 44px;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #9A7A45; transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1ebe59; transform: translateY(-2px); }

/* ─── NAVIGATION ─── */
.vib-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  transition: background var(--tr), padding var(--tr), box-shadow var(--tr);
}
.vib-nav.scrolled {
  background: var(--cream);
  padding: 12px 20px;
  box-shadow: 0 1px 0 rgba(44,40,34,0.08);
}
/* Top scrim: keeps logo + links legible over light hero photos. Fades out when scrolled (cream bg takes over). */
.vib-nav::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 132px;
  background: linear-gradient(to bottom, rgba(30,26,22,0.6) 0%, rgba(30,26,22,0) 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--tr);
}
.vib-nav.scrolled::before { opacity: 0; }

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: clamp(38px, 9vw, 44px); width: auto; transition: opacity 0.3s; }
.logo-dark { display: none; }
.vib-nav.scrolled .logo-light { display: none; }
.vib-nav.scrolled .logo-dark { display: block; }

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 16px rgba(20,16,12,0.45);
  transition: color var(--tr);
}
.vib-nav.scrolled .nav-links a { color: var(--text-dark); text-shadow: none; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links .btn { padding: 10px 24px; font-size: 10px; }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: all var(--tr);
}
.vib-nav.scrolled .nav-burger span { background: var(--charcoal); }

/* Mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.03em;
  transition: color var(--tr);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute;
  top: 24px; right: 36px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--charcoal);
  line-height: 1;
}

/* ─── IMAGE PLACEHOLDER ─── */
.img-ph {
  background: linear-gradient(135deg, #E4D9CC 0%, #D6C9B8 100%);
  position: relative;
  overflow: hidden;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(44,40,34,0.35);
}

/* ─── SECTION DIVIDER ─── */
.gold-divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

/* ─── FAQ ─── */
.faq-wrap { max-width: 740px; margin: 0 auto; }
.faq-list { margin-top: 56px; }
.faq-item { border-bottom: 1px solid rgba(44,40,34,0.1); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: var(--charcoal);
  transition: color var(--tr);
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  width: 26px; height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  transition: all var(--tr);
}
.faq-item.open .faq-icon { background: var(--gold); border-color: var(--gold); color: white; transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq-a.open { max-height: 600px; }
.faq-a-inner { padding: 0 0 22px; font-size: 14px; line-height: 1.85; color: var(--text-mid); }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--charcoal);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(184,150,90,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(184,150,90,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-strip-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-strip h2 {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-top: 18px;
}
.cta-strip h2 em { font-style: italic; color: var(--gold); }
.cta-strip p { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.75; margin-top: 16px; }
.cta-strip .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 48px; flex-direction: column; align-items: center; }
.cta-strip .eyebrow { justify-content: center; color: rgba(255,255,255,0.35); }
.cta-strip .eyebrow::before { background: rgba(255,255,255,0.2); }

/* ─── FOOTER ─── */
.vib-footer {
  background: var(--charcoal-deep);
  padding: 64px 20px 40px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .nav-logo img { height: 48px; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.38); max-width: 280px; margin-top: 16px; }
.footer-col h4 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.42); transition: color var(--tr); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: column;
  text-align: center;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.22); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
  transition: all var(--tr);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 150;
  transition: transform var(--tr), box-shadow var(--tr);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.wa-float svg { width: 26px; height: 26px; fill: white; }
@media (max-width: 767px) { .wa-float { bottom: 84px; } }

/* ─── RESPONSIVE ─── */
@media (min-width: 480px) {
  .section-header h2 { font-size: clamp(28px, 3.5vw, 48px); }
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }
@media (min-width: 768px) {
  .vib-nav { padding: 22px 40px; }
  .vib-nav.scrolled { padding: 14px 40px; }
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-bottom { flex-direction: row; text-align: left; }
  .cta-strip { padding: 100px 32px; }
  .cta-strip .actions { flex-direction: row; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ─── EQUIPA ─── */
.equipa { padding: 110px 0; background: white; }
.equipa-grid {
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.prof-card {
  background: var(--cream);
  overflow: hidden;
  transition: background var(--tr);
  display: flex;
  flex-direction: column;
}
.prof-card .prof-info { display: flex; flex-direction: column; flex: 1; }
.prof-card .prof-actions, .prof-info > .prof-cta { margin-top: auto; }
.prof-card:hover { background: var(--charcoal); }
.prof-photo { width: 100%; overflow: hidden; position: relative; }
.prof-info { padding: 20px 20px 26px; }
.prof-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
  transition: color var(--tr);
}
.prof-card:hover .prof-name { color: var(--cream); }
.prof-role {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.prof-cta {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--tr);
}
.prof-card:hover .prof-cta { color: var(--gold-light); }
.prof-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prof-ig {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--tr);
}
.prof-ig svg { width: 12px; height: 12px; }
.prof-card:hover .prof-ig { color: var(--gold-light); }

@media (min-width: 480px) {
  .equipa-grid { padding: 0 24px; }
}
@media (min-width: 768px) {
  .equipa-grid { grid-template-columns: repeat(4, 1fr); padding: 0 40px; }
}
@media (min-width: 1024px) {
  .equipa-grid { padding: 0 32px; }
}

/* ─── GALERIA (LP4) ─── */
.galeria { padding: 110px 0; background: var(--charcoal-deep); overflow: hidden; }
.galeria-grid {
  max-width: var(--max-width);
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.gal-photo { overflow: hidden; position: relative; }
.gal-photo .img-ph {
  width: 100%;
  height: 100%;
  min-height: 220px;
  transition: transform 0.6s var(--ease);
}
.gal-photo:hover .img-ph { transform: scale(1.04); }
.gal-photo.tall .img-ph { min-height: 340px; }
.gal-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; transition: transform var(--tr); }
.gal-photo.tall img { min-height: 340px; }
.gal-photo:hover img { transform: scale(1.04); }
@media (min-width: 768px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .gal-photo .img-ph { min-height: 280px; }
  .gal-photo.tall .img-ph { min-height: 440px; }
  .gal-photo img { min-height: 280px; }
  .gal-photo.tall img { min-height: 440px; }
}

/* ── MOBILE POLISH (QA mobile-first; mantém o visual desktop) ── */
@media (max-width: 767px) {
  .nav-burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-mobile-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; right: 20px; }
  .footer-social a { width: 44px; height: 44px; }
  .prof-cta, .prof-ig { min-height: 40px; align-items: center; }
  .prof-actions { gap: 16px; row-gap: 6px; }
  .wa-float { bottom: 98px; }
  #vib-cookie { padding: 12px 16px; }
  #vib-cookie p { min-width: 0; font-size: 12px; }
}
@media (max-width: 479px) {
  .equipa-grid { grid-template-columns: 1fr; }
}

/* ─── PACOTES (LP4) ─── */
.pacotes { padding: 110px 32px; background: var(--cream-mid); }
.pacotes-inner { max-width: var(--max-width); margin: 0 auto; }
.pacotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 72px;
}
.pacote-card {
  background: var(--cream);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.pacote-card > .btn { margin-top: auto; }
.pacote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.pacote-card:hover::before { transform: scaleX(1); }
.pacote-card.highlight { background: var(--charcoal); }
.pacote-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.pacote-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.15;
}
.pacote-card.highlight .pacote-title { color: var(--cream); }
.pacote-price {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 28px;
}
.pacote-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.pacote-lista li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}
.pacote-card.highlight .pacote-lista li { color: rgba(255,255,255,0.55); }
.pacote-lista li::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .pacotes-grid { grid-template-columns: repeat(3, 1fr); }
}
