/* MAGM Consultoria — estilo geral */
:root {
  --navy: #0d0d0d;
  --navy-light: #616161;
  --gold: #FF5C00;
  --gold-light: #FF7A33;
  --bg: #f7f6f3;
  --text: #24272b;
  --text-muted: #5b6572;
  --white: #ffffff;
  --border: #e4e1da;
  --radius: 6px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { color: var(--text-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

/* Header */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.logo {
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo span { color: var(--gold-light); }

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}

nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--gold-light); }

.nav-cta {
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: var(--radius);
  color: var(--gold-light) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0 90px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.15rem; margin: 20px 0 32px; max-width: 46ch; }
.hero .eyebrow { color: var(--gold-light); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: var(--white); margin-left: 14px; }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-stats {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-stats .stat { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-stats .stat:last-child { border-bottom: none; }
.hero-stats .stat strong { display: block; font-size: 1.8rem; color: var(--gold-light); font-family: Georgia, serif; }
.hero-stats .stat span { color: rgba(255,255,255,0.7); font-size: 0.88rem; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
section.alt .card { background: var(--bg); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,92,0,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 16px;
}
.card p { font-size: 0.95rem; }

/* Timeline (Sobre) */
.timeline { border-left: 2px solid var(--border); padding-left: 32px; }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
}
.timeline-item .period { font-size: 0.82rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.timeline-item h3 { margin: 4px 0 4px; }
.timeline-item .role { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-bottom: 8px; }

/* Cases */
.case-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}
.case-card h3 { color: var(--white); }
.case-card .tag {
  display: inline-block;
  background: rgba(255,92,0,0.18);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.case-card p { color: rgba(255,255,255,0.75); }
.case-result { margin-top: 16px; font-size: 1.6rem; color: var(--gold-light); font-family: Georgia, serif; }
.case-result span { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); font-family: "Segoe UI", sans-serif; }

/* Skills list */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tags span {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--navy);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info .item { margin-bottom: 24px; }
.contact-info .item strong { display: block; color: var(--navy); margin-bottom: 4px; }
form.contact-form { display: grid; gap: 16px; }
form.contact-form input, form.contact-form textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* CTA band */
.cta-band {
  background: var(--gold);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy); margin-bottom: 20px; }

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 0.88rem;
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a:hover { color: var(--gold-light); }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 60ch; }

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  nav ul { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px 24px; gap: 18px; display: none; }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .btn-outline { margin-left: 0; margin-top: 12px; display: inline-block; }
}

/* Process infographic ("Como eu trabalho") */
.process {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.process::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--gold) 0 8px, transparent 8px 14px);
  z-index: 1;
}
.process-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  padding: 0 10px;
}
.process-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.process-step h4 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.process-step p { font-size: 0.9rem; }

@media (max-width: 640px) {
  .process { flex-direction: column; gap: 36px; }
  .process::before { display: none; }
}

/* Skills marquee ("esteira") */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: 0 0 auto;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--navy);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Vertical variant of the process infographic (used in narrow columns) */
.process-vertical {
  flex-direction: column;
  gap: 0;
  padding-top: 0;
}
.process-vertical::before { display: none; }
.process-vertical .process-step {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  padding: 0 0 30px 0;
  position: relative;
}
.process-vertical .process-step:last-child { padding-bottom: 0; }
.process-vertical .process-num {
  margin: 0;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}
.process-vertical .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: -30px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 8px, transparent 8px 14px);
  z-index: 1;
}
.process-vertical .process-step > div:last-child { padding-top: 6px; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #ffffff; }

@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Profile photo on Sobre page */
.sobre-foto {
  border-radius: var(-