/* =========================================================
   MAGAYWEER | DIREITO & NEGÓCIOS — Prévia conceitual
   ========================================================= */

:root {
  --black: #0b0b0c;
  --black-2: #111113;
  --graphite: #1b1b1e;
  --graphite-2: #2a2a2e;
  --line-dark: rgba(216, 200, 168, .16);
  --champagne: #d9c9a6;
  --gold: #b8995f;
  --gold-deep: #9a7d47;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #16161a;
  --ink-soft: #55545a;
  --line-light: rgba(22, 22, 26, .12);
  --white: #fff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Preview bar ---------- */
.preview-bar {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .55rem var(--pad);
  background: #18171a;
  color: rgba(217, 201, 166, .85);
  font-size: .72rem; letter-spacing: .04em; line-height: 1.4; text-align: center;
  border-bottom: 1px solid var(--line-dark);
}
.preview-bar__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(184,153,95,.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 12, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(11, 11, 12, .9); border-bottom-color: var(--line-dark); }
.site-header__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--paper); }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1;
  color: var(--champagne);
  padding-top: 2px;
}
.brand__mark--lg { width: 52px; height: 52px; font-size: 1.9rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .28em; }
.brand__sub { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--champagne); margin-top: 3px; }

.site-nav { display: none; gap: 2.25rem; }
.site-nav a {
  position: relative; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,234,.72);
  transition: color .3s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border: 1px solid rgba(217,201,166,.45);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.header-cta:hover { background: var(--champagne); color: var(--black); border-color: var(--champagne); }

/* ---------- Buttons / typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--champagne); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 54px; padding: 0 1.6rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.btn--gold { background: var(--champagne); color: var(--black); }
.btn--gold:hover { background: var(--paper); }
.btn--gold:hover svg { transform: translateY(3px); }

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 7.5vw, 3.6rem); line-height: 1.04; letter-spacing: -.01em;
  margin-top: 1.1rem;
}
.section-title em { color: var(--gold-deep); font-weight: 400; }
.section-lead { margin-top: 1.1rem; max-width: 34rem; color: var(--ink-soft); font-size: 1rem; }

/* ---------- 01 · Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--black); color: var(--paper);
  margin-top: calc(var(--header-h) * -1);
}
.hero__media {
  position: relative; z-index: -2; height: min(66svh, 600px); min-height: 380px; margin-top: var(--header-h);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  filter: contrast(1.06) brightness(.92);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  animation: heroImg 1.4s var(--ease) both;
}
@keyframes heroImg { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; padding: 0 var(--pad) 2.4rem; max-width: var(--max); width: 100%; margin: -7.5rem auto 0; }
.hero__wordmark { display: flex; flex-direction: column; align-items: flex-start; margin-top: 1.4rem; }
.hero__wordmark-name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: .3em; line-height: 1; margin-right: -.3em; }
.hero__wordmark-rule { width: 100%; max-width: 11.5rem; height: 1px; margin: .7rem 0 .55rem; background: linear-gradient(90deg, var(--gold), rgba(184,153,95,0)); }
.hero__wordmark-sub { font-size: .66rem; letter-spacing: .42em; text-transform: uppercase; color: var(--champagne); }
.hero__title {
  margin-top: 1.6rem; max-width: 15ch;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 8.6vw, 4.6rem); line-height: 1.03; letter-spacing: -.012em;
}
.hero__title em { color: var(--champagne); font-weight: 400; }
.hero__lead { margin-top: 1.1rem; max-width: 33rem; font-size: .98rem; font-weight: 300; color: rgba(244,241,234,.78); }
.hero__actions { margin-top: 1.8rem; }
.hero__actions .btn { width: 100%; }
.hero__areas {
  display: flex; justify-content: space-between; gap: .5rem;
  margin: 0 auto; width: 100%; max-width: var(--max);
  padding: 1.1rem var(--pad) 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(217,201,166,.75);
}
.hero__areas li { display: flex; align-items: center; gap: .5rem; }
.hero__areas li + li::before { content: ""; width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); opacity: .7; margin-right: .4rem; }

/* ---------- 02 · Áreas ---------- */
.areas { background: var(--paper); padding: clamp(4.5rem, 12vw, 8rem) 0; }
.cards { display: grid; gap: 1rem; margin-top: 3rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.9rem 1.6rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--champagne));
  transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(11,11,12,.35); border-color: rgba(184,153,95,.35); }
.card:hover::before { transform: scaleX(1); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); letter-spacing: .1em; }
.card__icon { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.card__title { margin-top: 2.2rem; font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.card__text { margin-top: .9rem; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card__cta {
  margin-top: 1.8rem; padding-top: 1.1rem; min-height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-light);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.card__cta svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-deep); stroke-width: 1.6; transition: transform .35s var(--ease); }
.card__cta:hover svg { transform: translateX(5px); }

/* ---------- 03 · Posicionamento ---------- */
.position {
  position: relative; overflow: hidden;
  background: var(--black-2); color: var(--paper);
  padding: clamp(4.5rem, 12vw, 8rem) 0;
}
.position::before {
  content: "M"; position: absolute; right: -6vw; top: -8vw; pointer-events: none;
  font-family: var(--serif); font-weight: 400; font-size: clamp(22rem, 60vw, 46rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(217,201,166,.07);
}
.position__grid { position: relative; display: grid; gap: 3.5rem; }
.position__title {
  margin-top: 1.1rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 9vw, 4.4rem); line-height: 1.02; letter-spacing: -.012em;
}
.position__title em { color: var(--champagne); font-weight: 400; }
.position__lead { margin-top: 1.4rem; max-width: 30rem; color: rgba(244,241,234,.74); font-weight: 300; font-size: 1.02rem; }
.position__portrait { margin: 2.4rem 0 0; display: flex; align-items: center; gap: 1.1rem; }
.position__portrait img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  transform: scale(1.04);
  box-shadow: 0 0 0 1px var(--black-2), 0 0 0 2px rgba(184,153,95,.6);
}
.position__portrait figcaption { display: flex; flex-direction: column; line-height: 1.3; }
.position__portrait-name { font-family: var(--serif); font-size: 1.3rem; }
.position__portrait-role { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); margin-top: 3px; }

.pillars { display: grid; }
.pillar {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-dark);
}
.pillar:last-child { border-bottom: 1px solid var(--line-dark); }
.pillar__num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); line-height: 1.2; }
.pillar__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.pillar__text { margin-top: .55rem; color: rgba(244,241,234,.68); font-size: .95rem; font-weight: 300; }

/* ---------- 04 · Contato ---------- */
.contact { background: var(--paper-2); padding: clamp(4.5rem, 12vw, 8rem) 0; }
.contact__grid { display: grid; gap: 2.8rem; }
.routes { display: grid; gap: .75rem; }
.route {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  min-height: 84px; padding: 1.1rem 1.25rem;
  background: var(--black); color: var(--paper);
  border: 1px solid var(--black);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.route__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.route__body { display: flex; flex-direction: column; line-height: 1.25; }
.route__title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.route__hint { margin-top: .25rem; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(217,201,166,.75); }
.route__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(217,201,166,.35);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.route__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--champagne); stroke-width: 1.6; transition: stroke .4s var(--ease), transform .4s var(--ease); }
.route:hover { transform: translateY(-2px); background: var(--graphite); }
.route:hover .route__arrow { background: var(--champagne); border-color: var(--champagne); }
.route:hover .route__arrow svg { stroke: var(--black); transform: translate(2px, -2px); }
.routes__note { margin-top: .6rem; font-size: .78rem; color: var(--ink-soft); }

/* ---------- 05 · Rodapé ---------- */
.footer { background: var(--black); color: rgba(244,241,234,.72); padding: 4rem 0 6.5rem; font-size: .88rem; }
.footer__top { display: grid; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__name { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: .3em; color: var(--paper); line-height: 1.1; }
.footer__sub { font-size: .62rem; letter-spacing: .36em; text-transform: uppercase; color: var(--champagne); margin-top: 4px; }
.footer__tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--paper); }
.footer__cols { display: grid; gap: 2rem; padding: 2.5rem 0; }
.footer__cols p + p { margin-top: .35rem; }
.footer__label { font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--champagne); }
.pending {
  display: inline-block; padding: .2rem .55rem; border: 1px dashed rgba(184,153,95,.55);
  font-size: .76rem; color: rgba(217,201,166,.85);
}
.footer__bottom { display: grid; gap: .4rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); font-size: .74rem; color: rgba(244,241,234,.5); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--champagne); color: var(--black);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--paper); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.preview-bar__long { display: none; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .preview-bar__long { display: inline; }
  .hero__actions .btn { width: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .card { padding: 2.2rem 1.9rem 1.8rem; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr auto; align-items: center; }
  .footer__bottom { grid-template-columns: 1fr auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .site-nav { display: flex; }
  .brand__mark { width: 40px; height: 40px; }

  .hero { min-height: max(660px, calc(100vh - 34px)); justify-content: center; padding-top: var(--header-h); }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 52%; height: 100%; min-height: 0; margin-top: 0; }
  .hero::after {
    content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(11,11,12,1) 38%, rgba(11,11,12,.2) 70%, rgba(11,11,12,0) 100%);
  }
  .hero__media img {
    object-position: 50% 20%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 22%);
            mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 22%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero__content { margin-top: 0; padding-top: 3rem; padding-bottom: 6rem; }
  .hero__title { max-width: 16ch; }
  .hero__lead { font-size: 1.06rem; }
  .hero__areas { position: absolute; left: 0; right: 0; bottom: 0; justify-content: flex-start; gap: 2.4rem; }

  .cards { margin-top: 4rem; }
  .card { min-height: 420px; }

  .position__grid { grid-template-columns: 1.05fr 1fr; gap: 6rem; align-items: start; }
  .pillar { padding: 2.2rem 0; }

  .contact__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .route { padding: 1.3rem 1.6rem; min-height: 96px; }
  .route__title { font-size: 1.65rem; }
  .footer { padding-bottom: 4rem; }
}

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

@media (max-width: 420px) {
  .hero__actions .btn { letter-spacing: .07em; font-size: .76rem; padding: 0 1.1rem; }
}
