/* ============================================================
   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.97);
  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; top: 66px; right: 0; bottom: 0; left: 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); }
.card--wide { grid-column: span 2; }
.list-2col { columns: 2; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .list-2col { columns: 1; }
}

.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); }

/* ---------------- Slide gallery (case study pages) ---------------- */
.slide-gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.slide-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* ---------------- Case study — screenshots com legenda página a página ---------------- */
.case-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.case-shots { display: flex; flex-direction: column; gap: 60px; max-width: 920px; margin: 0 auto; }
.case-shot-frame {
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}
.case-shot-frame img { width: 100%; height: auto; display: block; }
.case-shot-caption { margin-top: 18px; padding: 0 4px; }
.case-shot-num {
  display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px;
}
.case-shot-caption h3 { font-size: 19px; margin: 0 0 8px; }
.case-shot-caption p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; max-width: 620px; margin: 0; }

/* ---------------- Blog ---------------- */

/* Post em destaque */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(0,0,0,0.12); border-color: var(--gold); }
.featured-post-visual {
  position: relative; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.featured-post-info { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-post-info .port-cat { display: block; margin-bottom: 10px; }
.featured-post-info h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 14px; color: var(--ink); line-height: 1.2; }
.featured-post-info p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }
.featured-post-link { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--gold-dim); }
.featured-post:hover .featured-post-link { color: var(--gold); }
.featured-post:hover .featured-post-link span { transform: translateX(4px); }
.featured-post-link span { display: inline-block; transition: transform 0.25s ease; }

@media (max-width: 780px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-visual { min-height: 200px; }
  .featured-post-info { padding: 30px 26px; }
}

/* Divisor "Mais artigos" */
.blog-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 56px 0 32px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.blog-divider::before, .blog-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Thumbnails com gradiente + icone SVG */
.blog-thumb {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-thumb::before, .featured-post-visual::before {
  content: "";
  position: absolute; inset: 0;
}
.blog-thumb--1::before, .featured-post-visual.blog-thumb--1::before { background: radial-gradient(circle at 30% 25%, #3a3220 0%, #17140d 60%, #0b0b0b 100%); }
.blog-thumb--2::before { background: radial-gradient(circle at 30% 25%, #33301f 0%, #17140d 60%, #0b0b0b 100%); }
.blog-thumb--3::before { background: radial-gradient(circle at 30% 25%, #54504a 0%, #232019 60%, #0b0b0b 100%); }
.blog-icon {
  position: relative; z-index: 1;
  width: 128px; height: 128px;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.featured-post-visual .blog-icon { width: 156px; height: 156px; }
.port-card:hover .blog-icon, .featured-post:hover .blog-icon { transform: scale(1.08) rotate(-3deg); }

/* Article layout (blog posts) */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-soft));
  z-index: 200; transition: width 0.1s linear;
}
.article-hero { padding: 64px 0 40px; }
.article-content { max-width: 720px; margin: 0 auto; }
.article-content h2 { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 42px 0 16px; }
.article-content h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 32px 0 12px; }
.article-content p { font-family: var(--sans); font-size: 16.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 24px; }
.article-content li { font-family: var(--sans); font-size: 16.5px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 8px; }
.article-content strong { color: var(--ink); }
.article-content a { color: var(--gold-dim); text-decoration: underline; }
.article-content > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--gold-dim);
  float: left; line-height: 0.85; margin: 8px 10px 0 0;
}
.article-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 18px; }
.article-pullquote {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 24px; margin: 32px 0;
  font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink);
}
.article-cta-box {
  margin-top: 56px; padding: 32px; background: var(--paper-2); border-radius: var(--radius);
  text-align: center;
}
.article-cta-box h3 { margin-top: 0; }

/* Artigos relacionados */
.related-posts { max-width: 920px; margin: 64px auto 0; }
.related-posts h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 24px; text-align: center; }


/* ============================================================
   BLOG — melhorias de visual e experiência
   ============================================================ */

/* ---- Barra de pesquisa + filtros ---- */
.blog-toolbar {
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 44px;
}
.blog-search { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.blog-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  pointer-events: none; color: var(--ink-soft); opacity: 0.6;
}
.blog-search input {
  width: 100%; padding: 12px 16px 12px 40px; font-family: var(--sans); font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-search input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  cursor: pointer; transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--gold); color: var(--ink); }
.filter-pill.active { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }
.blog-empty { text-align: center; padding: 64px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---- Meta info nos cards (data / tempo de leitura) ---- */
.port-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); opacity: 0.75;
}
.port-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---- Post em destaque ---- */
.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); margin-bottom: 56px; text-decoration: none; color: inherit;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-featured:hover { box-shadow: 0 22px 44px rgba(0,0,0,0.12); border-color: var(--gold); }
.blog-featured-thumb { position: relative; min-height: 300px; }
.blog-featured-thumb img,
.blog-featured-thumb .blog-thumb { width: 100%; height: 100%; }
.blog-featured-info { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-info h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 14px 0 14px; }
.blog-featured-info p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }
.blog-featured-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--gold-dim);
}
.blog-featured:hover .blog-featured-more { color: var(--gold); }
@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-thumb { min-height: 200px; }
  .blog-featured-info { padding: 32px 28px; }
}

/* ---- Barra de progresso de leitura ---- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: transparent; }
.reading-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-soft));
}

/* ---- Layout do artigo com índice lateral ---- */
.article-layout {
  display: flex; gap: 56px; align-items: flex-start;
  max-width: 980px; margin: 0 auto;
}
.article-layout .article-content { flex: 1; min-width: 0; margin: 0; max-width: 720px; }
.article-toc { width: 216px; flex-shrink: 0; position: sticky; top: 100px; }
.toc-label {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dim); margin: 0 0 14px;
}
.toc-inner ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-inner li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px; font-family: var(--sans);
  font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc-inner li a:hover { color: var(--ink); }
.toc-inner li a.active { color: var(--gold-dim); border-left-color: var(--gold); font-weight: 700; }
.toc-share { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft);
  transition: all 0.2s ease;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { border-color: var(--gold); color: var(--gold-dim); transform: translateY(-2px); }
.share-btn.copied { border-color: var(--gold); color: var(--gold-dim); background: var(--paper-2); }
@media (max-width: 1000px) {
  .article-toc { display: none; }
  .article-layout { display: block; }
}

/* ---- Letra capitular no início do artigo ---- */
.article-content > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 600; font-size: 60px; line-height: 0.78;
  color: var(--ink); float: left; margin: 6px 10px 0 0;
}

/* ---- Pull-quote com aspas ---- */
.article-pullquote {
  position: relative; padding: 6px 0 6px 44px; margin: 36px 0;
  font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink);
  border-left: none;
}
.article-pullquote::before {
  content: "\201C"; position: absolute; left: 0; top: -14px;
  font-family: var(--serif); font-size: 60px; font-style: normal; color: var(--gold); line-height: 1;
}

/* ---- Posts relacionados ---- */
.related-posts { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.related-posts h3 { font-size: 22px; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.related-grid .port-thumb { aspect-ratio: 16/9; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* ---- Botão voltar ao topo ---- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--gold-soft); border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.3s ease;
  z-index: 55; font-size: 18px;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--ink); }

/* ---- Thumbs simples com diamante (grelha do blog, 3 colunas) ---- */
.blog-thumb-simple {
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,241,230,0.55);
}
.blog-thumb-simple .blog-diamond { width: 64px; height: 64px; }
.blog-thumb-simple--1 { background: linear-gradient(135deg, #4a3f1a 0%, #17140d 55%, #0b0b0b 100%); }
.blog-thumb-simple--2 { background: linear-gradient(135deg, #3a3a3a 0%, #1c1c1c 55%, #0b0b0b 100%); }
.blog-thumb-simple--3 { background: linear-gradient(135deg, #c9a227 0%, #8a6c1f 55%, #17140d 100%); }

/* ---- Subtítulos dentro do estudo de caso (agrupar screenshots por secção) ---- */
.case-subhead { margin: 8px 0 -12px; padding-top: 8px; }
.case-subhead:first-child { margin-top: 0; padding-top: 0; }
.case-subhead h2 { font-size: 24px; margin: 0 0 6px; }
.case-subhead p { font-size: 14.5px; color: var(--ink-soft); margin: 0; max-width: 560px; }
