html { scroll-behavior: smooth; }

body {
  background: var(--color-deep);
  color: var(--color-areia);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* Cursor custom só em desktop (ponteiro fino); toque/sem-JS mantém o cursor */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

/* Skip link — acessibilidade */
.skip-link {
  position: absolute; top: -48px; left: 16px; z-index: 10000;
  background: var(--color-ouro); color: var(--color-deep);
  padding: 10px 18px; border-radius: 6px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--color-branco); }

/* TYPOGRAPHY */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.label {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--color-ouro);
  text-shadow: 0 0 20px rgba(201,168,76,.3);
}

/* INNER + SECTION */
.inner { max-width: 1200px; margin: 0 auto; }
section { padding: 7rem 4rem; }

/* SEPARATOR */
.sep {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--color-ouro), rgba(201,168,76,.3));
  margin: 1.4rem auto;
}
.sep.left { margin-left: 0; }

/* CURSOR */
.cursor {
  will-change: left, top;
  position: fixed;
  width: 28px; height: 28px;
  border: 1.5px solid var(--color-ouro);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
  mix-blend-mode: difference;
}
.cursor.hover { width: 48px; height: 48px; }

/* PROGRESS BAR */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--color-ouro); width: 0%;
  z-index: 2000; transition: width .1s linear;
  pointer-events: none;
}

/* BACK TO TOP */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: rgba(10,22,40,.85);
  border: 1px solid rgba(201,168,76,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 500;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s, border-color .2s;
  backdrop-filter: blur(8px);
}
#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { border-color: var(--color-ouro); }

/* LOADER */
#loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--color-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: .2em; color: var(--color-branco);
}
.loader-bar-wrap {
  width: 160px; height: 1px;
  background: rgba(201,168,76,.2);
}
.loader-bar {
  height: 100%; background: var(--color-ouro);
  animation: loadFill 1.4s ease forwards;
}
@keyframes loadFill { from{width:0} to{width:100%} }
