/* ============================================================
   RMV — site.css  (base + shared components)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

/* sections that flip light in MERIDIANO */
.section--paper { background: var(--paper-bg); color: var(--paper-text); }
.section--paper .eyebrow { color: var(--paper-dim); }
.section--paper .lede,
.section--paper .text-dim { color: var(--paper-dim); }
.section--dark { background: var(--bg); }
.section--deep { background: var(--bg-2); }
.section--black { background: var(--black); }

/* ---- Type scale ---- */
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display);
  text-transform: var(--display-transform); letter-spacing: var(--display-spacing);
  font-weight: var(--display-weight); line-height: var(--display-line); }
.h-hero  { font-size: clamp(48px, 8.5vw, 116px); }
.h-1     { font-size: clamp(38px, 5.6vw, 76px); }
.h-2     { font-size: clamp(30px, 3.8vw, 52px); }
.h-3     { font-size: clamp(22px, 2.4vw, 32px); }
.lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--text-dim); line-height: 1.55; max-width: 60ch; }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block;
}
.eyebrow--plain::before { display: none; }

.mono { font-family: var(--font-mono); }

/* ---- Buttons ---- */
.btn {
  --bg-btn: var(--accent); --fg-btn: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-btn); color: var(--fg-btn);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; font-size: 16px;
  padding: 15px 26px; border: 0; border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .15s cubic-bezier(.2,.7,.3,1), box-shadow .2s, filter .2s;
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .5s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(247,181,0,.5); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--wa { --bg-btn: #1FA855; --fg-btn: #fff; }
.btn--wa:hover { box-shadow: 0 12px 24px -10px rgba(31,168,85,.6); filter: brightness(1.05); }
.btn--ghost {
  --bg-btn: transparent; --fg-btn: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--orange { --bg-btn: var(--orange); --fg-btn: #fff; }
.btn--lg { padding: 18px 34px; font-size: 18px; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.section--paper .btn--ghost { --fg-btn: var(--paper-text); border-color: var(--paper-border); }

/* link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---- Tag / chip / status ---- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 11px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);
}
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.status::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.status--avail { color: var(--ok); }
.status--sold  { color: var(--metal-300); }
.status--soon  { color: var(--orange); }

/* ---- Hazard stripe / texture (FORJA only) ---- */
.hazard {
  background-image: repeating-linear-gradient(-45deg,
    var(--accent) 0 22px, #14171b 22px 44px);
  opacity: var(--hazard-opacity);
}
.rule { height: 1px; background: var(--border); border: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.site-header__bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand image-slot { width: 46px; height: 46px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: 24px; letter-spacing: -.02em; flex: none;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.15);
}
.brand__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 800;
  font-size: 23px; letter-spacing: .02em; line-height: 1; }
.brand__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em;
  color: var(--accent); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .03em; font-size: 16px; color: var(--text-dim);
  padding: 10px 14px; border-radius: var(--radius); position: relative;
  transition: color .18s;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent);
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; width: 46px; height: 46px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: transparent; color: var(--text); align-items: center; justify-content: center; }
.hamburger svg { width: 22px; height: 22px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--bg-2); border-left: 1px solid var(--border); padding: 24px;
  display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__panel a { font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  font-size: 22px; padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.drawer__panel a:last-of-type { border-bottom: 0; }
.drawer__close { align-self: flex-end; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black); border-top: 3px solid var(--accent); color: var(--metal-200); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 72px; }
.footer-col h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 15px; letter-spacing: .12em; color: var(--white); margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; color: var(--metal-200); font-size: 15px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.65; max-width: 34ch; color: var(--metal-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--metal-300); text-transform: uppercase; }

/* ============================================================
   FLOATING CONTROLS  (direction switcher + WhatsApp FAB)
   ============================================================ */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; background: #1FA855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(31,168,85,.6);
  border: 0; transition: transform .2s;
  animation: wa-pulse 2.6s ease-out infinite;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
@keyframes wa-pulse { 0% { box-shadow: 0 14px 30px -8px rgba(31,168,85,.6), 0 0 0 0 rgba(31,168,85,.5);} 70%{ box-shadow:0 14px 30px -8px rgba(31,168,85,.6), 0 0 0 16px rgba(31,168,85,0);} 100%{box-shadow:0 14px 30px -8px rgba(31,168,85,.6),0 0 0 0 rgba(31,168,85,0);} }

@media (max-width: 640px){
  .fab-wa { right: 14px; bottom: 14px; }
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Responsive header ---- */
@media (max-width: 1024px){
  .nav, .header-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
