/* ============================================================
   Torres Leilões — proposta de modernização
   Direção: casa de leilões de luxo · madeira escura + latão + marfim
   ============================================================ */

:root {
  /* Wood / luxury palette */
  --espresso:      #14100b;
  --espresso-2:    #1c160f;
  --wood:          #241b12;
  --wood-edge:     #3a2c1d;
  --ivory:         #f3ead9;
  --ivory-dim:     #cdbfa6;
  --muted:         #9a8a70;
  --brass:         #c8a24e;
  --brass-bright:  #e0c178;
  --brass-deep:    #a07d33;

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  background: var(--espresso);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--muted); font-weight: 600;
}
.eyebrow--brass { color: var(--brass); }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--dark { background: var(--espresso-2); }

.section__head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.02;
  letter-spacing: -0.01em; margin: 18px 0 0;
}
.section__sub { color: var(--ivory-dim); font-size: 1.05rem; max-width: 52ch; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 2px; transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn--sm { padding: 11px 20px; font-size: 0.74rem; margin-top: 16px; }
.btn--solid { background: var(--brass); color: var(--espresso); }
.btn--solid:hover { background: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(200,162,78,0.6); }
.btn--ghost { border-color: rgba(200,162,78,0.4); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(20,16,11,0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(200,162,78,0.18);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; color: var(--brass);
  display: grid; place-items: center;
  border: 1px solid rgba(200,162,78,0.35); border-radius: 50%;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__text {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.01em; line-height: 1;
}
.brand__text em { font-style: italic; color: var(--brass); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; color: var(--ivory-dim); position: relative; transition: color 0.25s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--ivory); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid rgba(200,162,78,0.45); color: var(--brass-bright);
  padding: 9px 18px; border-radius: 2px; transition: all 0.3s var(--ease);
}
.nav__cta:hover { background: var(--brass); color: var(--espresso); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 6px; justify-content: center; align-items: center; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--ivory); transition: 0.3s var(--ease); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.7px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(200,162,78,0.10), transparent 55%),
    linear-gradient(180deg, rgba(20,16,11,0.78), rgba(20,16,11,0.92)),
    url("assets/wood.jpg");
  background-size: cover; background-position: center;
  padding: 120px 0 80px;
}
.hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(0,0,0,0.4) 0.5px, transparent 0.5px); background-size: 4px 4px; }
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; width: 100%; }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.8rem, 13vw, 9.5rem); line-height: 0.9; letter-spacing: -0.02em;
  margin: 18px 0 0; text-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.hero__title .serif-italic { color: var(--brass); display: inline-block; }
.hero__lead { font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--ivory-dim); margin-top: 26px; max-width: 60ch; }
.hero__lead strong { color: var(--ivory); font-weight: 600; }
.hero__sep { color: var(--brass); margin: 0 10px; }

.hero__next {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 24px; border: 1px solid rgba(200,162,78,0.28);
  background: rgba(20,16,11,0.4); border-radius: 3px; backdrop-filter: blur(4px);
}
.hero__next-tag { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--brass); }
.hero__next-title { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.hero__next-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-dim); transition: color 0.25s; }
.hero__next-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.hero__next-link:hover { color: var(--brass-bright); }
.hero__next-link:hover svg { transform: translateX(4px); }

.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__gavel {
  position: absolute; right: -40px; bottom: -30px; z-index: 1; width: clamp(220px, 34vw, 460px);
  opacity: 0.9; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.6)); transform: rotate(-8deg);
  pointer-events: none;
}
@media (max-width: 880px) { .hero__gavel { opacity: 0.16; right: -60px; } }

/* ============================================================
   CARDS / ESPECIALIDADES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--wood-edge); border: 1px solid var(--wood-edge); }
.card {
  background: var(--espresso); padding: 38px 30px; position: relative;
  transition: background 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-top: 2px solid var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { background: var(--wood); }
.card:hover::before { transform: scaleX(1); }
.card__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; color: var(--brass); border: 1px solid rgba(200,162,78,0.3); border-radius: 50%; margin-bottom: 22px; transition: all 0.4s var(--ease); }
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { border-color: var(--brass); background: rgba(200,162,78,0.08); }
.card h3 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; letter-spacing: -0.01em; }
.card__sub { display: block; font-family: var(--font-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-top: 2px; }
.card p { color: var(--ivory-dim); font-size: 0.96rem; margin-top: 10px; }

/* ============================================================
   FEATURE — próximo leilão
   ============================================================ */
.feature {
  position: relative; padding: clamp(80px, 12vw, 150px) 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,16,11,0.86), rgba(20,16,11,0.94)), url("assets/wood-light.jpg");
  background-size: cover; background-position: center;
}
.feature__grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(rgba(0,0,0,0.4) 0.5px, transparent 0.5px); background-size: 4px 4px; }
.feature__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 50px; }
.feature__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.01em; margin: 16px 0 0; }
.feature__title .serif-italic { color: var(--brass); }
.feature__sub { color: var(--ivory-dim); max-width: 48ch; margin: 22px 0 32px; font-size: 1.05rem; }
.feature__plate { position: relative; display: grid; place-items: center; }
.feature__plate img { width: clamp(160px, 22vw, 240px); transform: rotate(6deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); }
.feature__plate-ring { position: absolute; inset: 50% auto auto 50%; width: 320px; height: 320px; translate: -50% -50%; border: 1px solid rgba(200,162,78,0.3); border-radius: 50%; }
@media (max-width: 820px) { .feature__inner { grid-template-columns: 1fr; } .feature__plate { display: none; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 50px; }
.about__since { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 500; line-height: 1; margin-top: 14px; color: var(--brass); }
.about__quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.3; font-weight: 500; color: var(--ivory); }
.about__quote .serif-italic { color: var(--brass); }
.about__facts { list-style: none; margin-top: 40px; border-top: 1px solid var(--wood-edge); }
.about__facts li { padding: 18px 0; border-bottom: 1px solid var(--wood-edge); color: var(--ivory-dim); font-size: 0.96rem; }
.about__facts span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass); margin-bottom: 4px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__intro { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.contact__channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--wood-edge); border: 1px solid var(--wood-edge);
}
.contact__block { background: var(--espresso-2); padding: 36px 32px; }
.section:not(.section--dark) .contact__block { background: var(--espresso); }
.contact__block h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--brass); margin-bottom: 12px; }
.contact__block p { color: var(--ivory-dim); line-height: 1.9; }
.contact__block a:hover { color: var(--brass-bright); }
.contact__muted { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .contact__channels { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--espresso); border-top: 1px solid var(--wood-edge); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .brand__text { font-size: 1.8rem; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 38ch; }
.footer__col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brass); margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: var(--ivory-dim); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.25s; }
.footer__col a:hover { color: var(--brass-bright); }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; border-top: 1px solid var(--wood-edge); color: var(--muted); font-size: 0.84rem; }
.footer__base .serif-italic { color: var(--ivory-dim); }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } .footer__base { flex-direction: column; text-align: center; } }

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(20,16,11,0.97); backdrop-filter: blur(14px);
    padding: 8px 0 20px; border-bottom: 1px solid var(--wood-edge);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.35s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { width: 100%; text-align: center; padding: 16px; }
  .nav__cta { border: 0; border-radius: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-group.is-in .reveal { opacity: 1; transform: none; }
.reveal-group .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
