:root {
  --ink: #24272b;
  --muted: #66645f;
  --paper: #ede9e1;
  --cream: #f7f4ee;
  --red: #c9212c;
  --red-dark: #a81722;
  --line: #d7d1c6;
  --charcoal: #282b2f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.header { height: 88px; max-width: 1240px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand > span > span { color: var(--red); }
nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--red); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 3px; padding: 16px 22px; background: var(--red); color: white; font-weight: 700; font-size: 14px; transition: .2s ease; }
.button:hover { background: var(--red-dark); transform: translateY(-2px); }
.button-small { padding: 12px 18px; }
.hero { min-height: 680px; max-width: 1240px; margin: auto; padding: 72px 28px 90px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; max-width: 700px; font-family: Georgia, serif; font-size: clamp(52px, 6vw, 82px); font-weight: 500; line-height: .99; letter-spacing: -.045em; }
h1 em, h2 em { color: var(--red); font-weight: inherit; }
.lead { max-width: 610px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; }
.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 5px; font-size: 14px; font-weight: 700; }
.trust { margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; max-width: 480px; }
.trust strong { font-family: Georgia, serif; font-size: 26px; color: var(--red); }
.trust span { max-width: 220px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-visual { position: relative; min-height: 500px; border-radius: 48% 48% 18px 18px; overflow: hidden; background: linear-gradient(180deg, transparent 45%, #17191cbd 100%), url("equipe-consultoria-ti.png") center/cover no-repeat; box-shadow: 0 35px 70px #2d282320; }
.hero-visual::after { content: ""; position: absolute; inset: 0; border: 1px solid #ffffff40; border-radius: inherit; pointer-events: none; }
.human-caption { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; padding: 20px 22px; border-left: 4px solid var(--red); background: #202328e8; color: white; backdrop-filter: blur(5px); }
.human-caption span { display: block; margin-bottom: 7px; color: #ff7a83; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.human-caption strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.mini-card { position: absolute; z-index: 3; border-left: 3px solid var(--red); padding: 12px 15px; background: white; font-size: 11px; font-weight: 700; box-shadow: 0 12px 35px #0004; }
.mini-top { right: 28px; top: 65px; }.mini-bottom { right: 26px; bottom: 86px; }
.problem-section, .diagnostic, .method, .experience { max-width: 1240px; margin: auto; padding: 105px 28px; }
.problem-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 25px 70px; }
.section-heading h2, .diagnostic h2, .contact h2 { max-width: 720px; margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(38px, 4.5vw, 58px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.section-intro { color: var(--muted); font-size: 16px; line-height: 1.75; align-self: end; }
.problem-grid { grid-column: 1/-1; margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.problem-grid article { min-height: 150px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid span { color: var(--red); font-size: 11px; font-weight: 800; }
.problem-grid p { margin: 36px 0 0; max-width: 240px; font-family: Georgia, serif; font-size: 20px; line-height: 1.3; }
.services { padding: 110px max(28px, calc((100vw - 1184px) / 2)); background: var(--charcoal); color: white; }
.light .eyebrow { color: #ee5d67; }
.light h2 { color: white; }
.service-grid { margin-top: 62px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ffffff24; border-left: 1px solid #ffffff24; }
.service-grid article { min-height: 350px; padding: 32px; border-right: 1px solid #ffffff24; border-bottom: 1px solid #ffffff24; display: flex; flex-direction: column; }
.service-number { color: #ee5d67; font-family: Georgia, serif; font-size: clamp(34px, 3.2vw, 48px); font-weight: 500; line-height: 1; }
.service-grid h3 { margin: 34px 0 22px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.2; }
.service-grid p { color: #c7c8ca; font-size: 14px; line-height: 1.7; }
.service-grid a { margin-top: auto; color: #f27c84; font-size: 12px; font-weight: 700; }
.diagnostic { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: center; }
.diagnostic-copy > p:not(.eyebrow) { max-width: 600px; margin: 26px 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.deliverables { padding: 48px; background: var(--paper); border-top: 4px solid var(--red); }
.deliverables > p { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.deliverables ul { padding: 0; margin: 28px 0 0; list-style: none; }
.deliverables li { padding: 16px 0 16px 28px; border-top: 1px solid var(--line); position: relative; font-family: Georgia, serif; font-size: 18px; }
.deliverables li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-family: Arial; font-weight: 800; }
.method { background: var(--paper); max-width: none; padding-left: max(28px, calc((100vw - 1184px) / 2)); padding-right: max(28px, calc((100vw - 1184px) / 2)); }
.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps article { padding: 25px; border-left: 1px solid #c8c1b5; }
.steps span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font-size: 12px; }
.steps h3 { margin: 30px 0 12px; font-family: Georgia, serif; font-size: 22px; }
.steps p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.experience { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.experience-card { padding: 65px; border: 1px solid var(--line); }
.experience-card h2 { max-width: 700px; font-family: Georgia, serif; font-size: 46px; font-weight: 500; line-height: 1.1; }
.experience-card > p:not(.eyebrow) { max-width: 690px; color: var(--muted); line-height: 1.75; }
.metrics { margin-top: 40px; display: flex; gap: 55px; }
.metrics div { display: flex; flex-direction: column; gap: 5px; }
.metrics strong { color: var(--red); font-family: Georgia, serif; font-size: 36px; }
.metrics span { color: var(--muted); font-size: 11px; }
.experience aside { padding: 50px; background: var(--red); color: white; display: flex; flex-direction: column; justify-content: flex-end; }
.experience aside > span { margin-bottom: auto; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.experience aside h3 { font-family: Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.2; }
.experience aside p { color: #ffe3e5; font-size: 14px; line-height: 1.7; }
.contact { padding: 110px 28px; text-align: center; background: var(--charcoal); color: white; }
.contact .eyebrow { color: #ee5d67; }
.contact h2 { max-width: 850px; margin: auto; }
.contact > p:not(.eyebrow) { max-width: 650px; margin: 25px auto 0; color: #c7c8ca; line-height: 1.7; }
.centered { justify-content: center; }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--paper); }
.email-link { border-bottom: 1px solid #aaa; padding-bottom: 5px; font-size: 14px; }
footer { max-width: 1240px; min-height: 150px; margin: auto; padding: 35px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }
.brand-footer { color: var(--ink); }
.back-to-top { position: fixed; z-index: 50; right: 24px; bottom: 24px; width: 50px; height: 50px; border: 1px solid #ffffff4a; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: white; box-shadow: 0 12px 28px #17191c3d; font-size: 24px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s, background .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid #f3a2a8; outline-offset: 3px; }

@media (max-width: 900px) {
  .header { position: relative; }
  .menu-toggle { display: block; margin-left: auto; }
  nav {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 22px;
    border-top: 3px solid var(--red);
    background: var(--cream);
    box-shadow: 0 18px 35px #24272b24;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  nav a { padding: 16px 2px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 18px; }
  nav a:last-child { border-bottom: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-visual { min-height: 420px; }
  .problem-section, .diagnostic, .experience { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
}

@media (max-width: 600px) {
  .header { height: 74px; padding: 0 18px; }
  .header .button { display: none; }
  .hero, .problem-section, .diagnostic, .method, .experience { padding: 68px 20px; }
  h1 { font-size: 49px; }
  .hero { gap: 45px; }
  .hero-visual { min-height: 390px; }
  .human-caption { left: 18px; right: 18px; bottom: 18px; }
  .mini-top { right: 10px; top: 35px; }
  .mini-bottom { display: none; }
  .actions { align-items: flex-start; flex-direction: column; }
  .trust { margin-top: 40px; }
  .section-heading h2, .diagnostic h2, .contact h2 { font-size: 38px; }
  .problem-grid, .service-grid, .steps { grid-template-columns: 1fr; }
  .service-grid article { min-height: 300px; }
  .deliverables, .experience-card, .experience aside { padding: 32px 25px; }
  .experience-card h2 { font-size: 36px; }
  .metrics { flex-wrap: wrap; gap: 28px 45px; }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  footer { padding: 38px 20px; align-items: flex-start; flex-direction: column; }
}
