/* ============================================================
   MUXIMA WEB — design tokens & shared components
   ============================================================ */

:root {
  --ink: #0b0b0b;
  --ink-2: #17140d;
  --paper: #fbf9f4;
  --paper-2: #f2ecdb;
  --gold: #c9a227;
  --gold-soft: #e8c468;
  --gold-dim: #9a7b1f;
  --line: #e4dcc3;
  --line-dark: #33301f;
  --ink-soft: #54504a;
  --white: #ffffff;

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--gold-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 rgba(201,162,39,0);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 24px rgba(201,162,39,0.35); }
.btn-ghost-dark {
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.btn-ghost-dark:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-ghost-light {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost-light:hover { border-color: var(--gold-dim); color: var(--gold-dim); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 30px; width: auto; transition: transform 0.25s ease; }
.nav-logo:hover img { animation: heartbeat 0.9s ease-in-out; }
.nav-logo span {
  font-family: var(--serif);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}
.nav-cta {
  padding: 10px 20px;
  font-size: 13.5px;
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 66px 0 0 0; background: var(--ink); flex-direction: column;
    justify-content: flex-start; padding: 40px 32px; gap: 26px; transform: translateX(100%);
    transition: transform 0.25s ease; z-index: 60; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; margin: 0; box-sizing: border-box;
    background: none; border: none; border-radius: 4px; cursor: pointer;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
    outline-offset: 2px; position: relative; z-index: 61;
  }
  .nav-toggle-bar {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: var(--white); transition: transform 0.28s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------- Em Construção ---------------- */
.soon-page {
  min-height: 100vh; background: var(--ink); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.soon-header { padding: 32px clamp(20px, 5vw, 64px) 0; }
.soon-main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px 60px; position: relative; z-index: 2;
}
.soon-ring-wrap { position: relative; width: 190px; height: 190px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.soon-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(201,162,39,0.45);
  animation: soonSpin 18s linear infinite;
}
.soon-ring--2 {
  inset: 18px; border: 1px dashed rgba(232,196,104,0.28);
  animation: soonSpin 26s linear infinite reverse;
}
@keyframes soonSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.soon-heart { width: 92px; height: 92px; position: relative; z-index: 2; }

.soon-eyebrow { justify-content: center; margin-top: 4px; }
.soon-title {
  font-family: var(--serif); color: #fff; font-weight: 700;
  font-size: clamp(32px, 6vw, 54px); line-height: 1.12; margin-top: 14px;
}
.soon-lede { max-width: 480px; margin: 20px auto 0; font-size: 16px; color: rgba(255,255,255,0.68); }

.soon-progress {
  width: min(360px, 80vw); height: 6px; border-radius: 999px; margin: 38px auto 0;
  background: rgba(255,255,255,0.08); overflow: hidden; position: relative;
}
.soon-progress-bar {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold), transparent);
  animation: soonSlide 2.2s ease-in-out infinite;
}
@keyframes soonSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}
.soon-progress-label { font-family: var(--sans); font-size: 12.5px; color: var(--gold-soft); margin-top: 12px; letter-spacing: 0.4px; }

.soon-particle {
  position: absolute; bottom: -20px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0; z-index: 1;
  animation: soonFloat 6s ease-in infinite;
  box-shadow: 0 0 6px 1px rgba(201,162,39,0.6);
}
@keyframes soonFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.35; }
  100% { transform: translateY(-92vh) scale(1); opacity: 0; }
}

.soon-footer {
  position: relative; z-index: 2; display: flex; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px) 26px; font-family: var(--sans); font-size: 12.5px; color: rgba(255,255,255,0.45);
  border-top: 1px solid var(--line-dark); flex-wrap: wrap; gap: 8px;
}

@media (max-width: 600px) {
  .soon-footer { flex-direction: column; text-align: center; gap: 4px; }
}

/* ---------------- 404 page ---------------- */
.err-heart { width: clamp(90px, 12vw, 130px); margin: 0 auto 8px; }
.err-heart svg { width: 100%; height: auto; display: block; }

/* ---------------- Portfolio cards ---------------- */
.port-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.port-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px rgba(0,0,0,0.1); border-color: var(--gold); }
.port-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.port-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.port-card:hover .port-thumb img { transform: scale(1.06); }
.port-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11,11,11,0.78); color: var(--gold-soft);
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,162,39,0.4);
}
.port-badge--real { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.port-info { padding: 22px 24px 26px; }
.port-cat { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.6px; text-transform: uppercase; }
.port-info h3 { font-family: var(--serif); font-size: 21px; margin: 8px 0 8px; color: var(--ink); }
.port-info p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------------- Hero flashcard: Visão / Missão / Valores ---------------- */
.hero-tabs {
  margin-top: 64px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(201,162,39,0.28);
  border-radius: 20px;
  padding: 40px 44px;
}
.hero-tabs-content { flex: 1.3; min-width: 280px; }
.tab-icon-wrap {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(201,162,39,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.hero-tabs-content h3 {
  font-family: var(--serif); color: #fff; font-size: 24px; font-weight: 600;
  margin-bottom: 14px; transition: opacity 0.25s ease, transform 0.25s ease;
}
.tab-body { color: #cdc7b8; line-height: 1.7; font-size: 15.5px; transition: opacity 0.25s ease, transform 0.25s ease; }
.tab-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tab-body ul li { display: flex; gap: 10px; align-items: flex-start; }
.tab-body ul li strong { color: #f0e6c8; }
.tab-fade { opacity: 0; transform: translateY(8px); }

.hero-tabs-list {
  flex: 1; min-width: 220px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 36px;
}
.tab-btn {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px;
  color: #8f8a7a; font-family: var(--sans); font-weight: 600; font-size: 15px;
  transition: color 0.25s ease;
}
.tab-btn .dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #8f8a7a; transition: all 0.3s ease;
}
.tab-btn:hover { color: #e8c468; }
.tab-btn.active { color: #fff; }
.tab-btn.active .dot {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.18);
}

@media (max-width: 780px) {
  .hero-tabs { padding: 28px 26px; margin-top: 44px; }
  .hero-tabs-list { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; }
}

/* ---------------- Hero (heart signature, right side) ---------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-heart { display: flex; justify-content: center; align-items: center; }
.hero-heart svg { width: clamp(220px, 24vw, 420px); height: auto; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-heart { order: -1; margin-bottom: 8px; }
  .hero-heart svg { width: clamp(150px, 42vw, 240px); }
}

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .ink-soft, .section--dark p.lede { color: rgba(255,255,255,0.68); }
.section--paper2 { background: var(--paper-2); }

.ink-soft, p.lede { color: var(--ink-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; }

/* Heartline divider (signature echo) */
.heartline {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 0 0;
  opacity: 0.55;
}
.heartline svg { width: 120px; height: auto; }

/* ---------------- Cards ---------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.section--dark .card:hover {
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
  border-color: var(--gold-soft);
}
.section--dark .card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.14);
}
.card .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.section--dark .card p { color: rgba(255,255,255,0.65); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li {
  font-size: 14.5px; color: var(--ink-soft); margin-bottom: 8px; padding-left: 20px; position: relative;
}
.card li::before { content: "✓"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }
.section--dark .card li { color: rgba(255,255,255,0.7); }

/* Value / stat pills */
.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--sans);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 26px; }
.footer-logo span { font-family: var(--serif); color: var(--white); font-size: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* ---------------- Forms ---------------- */
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}

/* Utility */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.small { font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- Page transitions ---------------- */
body.page-enter { animation: pageIn 0.55s ease both; }
body.page-leave { animation: pageOut 0.24s ease forwards; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(1) { transition-delay: 0.02s; }
.grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.grid .reveal:nth-child(3) { transition-delay: 0.18s; }
.grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.grid .reveal:nth-child(5) { transition-delay: 0.34s; }
.grid .reveal:nth-child(6) { transition-delay: 0.42s; }
.grid .reveal:nth-child(7) { transition-delay: 0.06s; }
.grid .reveal:nth-child(8) { transition-delay: 0.14s; }
.grid .reveal:nth-child(9) { transition-delay: 0.22s; }

/* Signature heartbeat pulse — mimics a real heartbeat rhythm (lub-dub) */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
  56% { transform: scale(1); }
}
.heart-live {
  transform-box: fill-box;
  transform-origin: center;
  animation: heartbeat 2.6s ease-in-out infinite;
  animation-delay: 1.7s;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- Legal pages ---------------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin: 40px 0 14px; }
.legal-content h2:first-of-type { margin-top: 8px; }
.legal-content p { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 6px; }
.legal-content a { color: var(--gold-dim); text-decoration: underline; }
.legal-note {
  margin-top: 48px; padding: 18px 22px; background: var(--paper-2);
  border-left: 3px solid var(--gold); font-family: var(--sans); font-size: 13px;
  color: var(--ink-soft); font-style: italic; line-height: 1.6;
}

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--ink); border-top: 1px solid var(--line-dark);
  padding: 20px clamp(20px, 5vw, 48px); display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; transform: translateY(110%); transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-family: var(--sans); font-size: 13.5px; color: rgba(255,255,255,0.75); margin: 0; flex: 1; min-width: 240px; line-height: 1.5; }
.cookie-banner a { color: var(--gold-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions button {
  font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 10px 18px; border-radius: 2px; border: 1px solid transparent;
}
.cookie-accept { background: var(--gold); color: var(--ink); }
.cookie-accept:hover { background: var(--gold-soft); }
.cookie-decline { background: transparent; color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.25); }
.cookie-decline:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------------- Contact form consent / honeypot ---------------- */
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.form-consent input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--gold); }
.form-consent label { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.form-consent a { color: var(--gold-dim); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.footer-legal-links a { color: rgba(255,255,255,0.6); text-decoration: underline; margin: 0 2px; }
.footer-legal-links a:hover { color: var(--gold-soft); }
