/* ═══════════════════════════════════════
   BASE.CSS — Reset, Typography, Buttons
   ═══════════════════════════════════════ */

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s, color .4s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ── Focus Accessibility ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Typography Scale ── */
.h-xl {
  font-family: var(--fd);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.h-lg {
  font-family: var(--fd);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}
.h-md {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
}
.h-sm {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
}
em, .gd { color: var(--gold); font-style: italic; }

.lb {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.bt {
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-m);
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: all .4s var(--ease);
  border: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-p { background: var(--gold); color: #0B0B0B; }
.btn-p:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,168,124,.25);
}

.btn-o {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--text);
}
.btn-o:hover { border-color: var(--gold); color: var(--gold); }

.btn-w { background: var(--wa); color: #fff; }
.btn-w:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,.3);
}

/* ── Placeholder image (antes de ter a foto real) ── */
.ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed var(--placeholder-border);
  position: relative;
  overflow: hidden;
  transition: background .4s;
}
.ph-icon {
  font-family: var(--fd);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--placeholder-text);
  opacity: .5;
}
.ph-text {
  font-family: var(--fd);
  font-size: .7rem;
  font-style: italic;
  color: var(--placeholder-text);
  text-align: center;
  padding: 0 16px;
  max-width: 90%;
}

/* ── Reveal animation ── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rv.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ── Spinner ── */
.sp {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spn .6s linear infinite;
}
@keyframes spn { to { transform: rotate(360deg); } }

/* ── Notification toast ── */
.nf {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  background: var(--bg-3);
  border: 1px solid var(--gold);
  padding: 16px 24px;
  transform: translateX(120%);
  transition: transform .5s var(--ease);
  max-width: 360px;
  pointer-events: none;
}
.nf.show { transform: translateX(0); }
.nf-t { font-size: .82rem; font-weight: 500; margin-bottom: 2px; }
.nf-m { font-size: .75rem; font-weight: 300; color: var(--text-m); }
.nf.error { border-color: var(--danger); }
.nf.success { border-color: var(--success); }
