/* ============ Miguel Plaça · migpla.com.br ============ */
:root {
  --bg: #F6F5F1;
  --white: #FFFFFF;
  --ink: #2B2D33;
  --text: #4A4D55;
  --muted: #6B6E77;
  --line: #E4E2DC;
  --red: #FC3D62;
  --red-dark: #E02B50;
  --yellow: #F2E949;
  --sky: #47C1F2;
  --blue: #2E96BF;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 50px -20px rgba(20, 22, 30, .22);
  --shadow-sm: 0 6px 24px -10px rgba(20, 22, 30, .18);

  --f-head: "Poppins", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-logo: "Gowun Dodum", "Poppins", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.hidden { display: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--f-head);
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 3px;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(252, 61, 98, .7); }
.btn--primary:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .75em 1.25em; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0,0,0,.15); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font: 400 1.75rem/1 var(--f-logo); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font: 500 .97rem/1 var(--f-body); color: var(--ink); text-decoration: none; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Eyebrow / highlight ---------- */
.eyebrow {
  font: 700 .82rem/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--yellow { color: var(--yellow); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em;
  background: var(--yellow); z-index: -1; border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; }
.hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.hero__media { position: relative; padding: 30px 40px 40px 10px; }
.hero__photo {
  position: relative; z-index: 2; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero__shape { position: absolute; z-index: 1; }
.hero__shape--block { inset: 70px 0 0 70px; background: var(--sky); border-radius: var(--radius-lg); }
.hero__shape--circle { width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); left: -30px; bottom: 0; }
.hero__shape--dots {
  width: 120px; height: 120px; right: -10px; top: -10px;
  background-image: radial-gradient(var(--red) 3.2px, transparent 3.6px);
  background-size: 20px 20px;
}
.hero__badge {
  position: absolute; z-index: 3; right: 0; bottom: 70px;
  background: var(--white); border-radius: 20px; padding: 16px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.hero__badge strong { font: 800 1.6rem/1.1 var(--f-head); color: var(--ink); }
.hero__badge span { font-size: .85rem; line-height: 1.35; color: var(--muted); }
.lead { font-size: 1.15rem; margin: 24px 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks--sky li::before { background-color: var(--sky); }
.checks--red li::before { background-color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--white { background: var(--white); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__sub { font-size: 1.12rem; margin-top: 16px; }

/* Services */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); transition: transform .3s ease; }
.card:hover { transform: translateY(-4px); }
.card--dark { background: var(--ink); color: #D7D9DF; }
.card--dark h3, .card--dark .checks li { color: #fff; }
.card--light { background: var(--white); border: 1px solid var(--line); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.card__sub { margin: 8px 0 26px; font-size: 1.05rem; }
.icon { width: 56px; height: 56px; }
.icon--sky { color: var(--sky); }
.icon--red { color: var(--red); }
.tag { font: 700 .72rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.tag--sky { background: var(--sky); color: var(--ink); }
.tag--red { background: var(--red); color: #fff; }

.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.mini { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s; }
.mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.mini__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c); margin-bottom: 20px; }
.mini__icon svg { width: 26px; height: 26px; }
.mini h4 { margin-bottom: 8px; }
.mini p { font-size: .95rem; margin: 0; }

/* Portfolio */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.case__frame {
  display: block; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease;
}
.case__frame:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(20,22,30,.35); }
.case__frame img { aspect-ratio: 1552 / 650; object-fit: cover; object-position: top; width: 100%; }
.browser { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #EEEDEA; }
.browser span { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.browser span:nth-child(2) { background: var(--yellow); }
.browser span:nth-child(3) { background: var(--sky); }
.browser em {
  font: 400 .78rem/1 var(--f-body); font-style: normal; color: var(--muted);
  background: #fff; border-radius: 99px; padding: 6px 14px; margin-left: 10px; flex: 1;
}
.case__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 4px 0; }
.case__body p { margin: 6px 0 0; color: var(--muted); }
.link { font: 600 .95rem/1 var(--f-head); color: var(--red); text-decoration: none; white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid currentColor; }
.link:hover { color: var(--red-dark); }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.step__n { display: inline-block; font: 800 2.4rem/1 var(--f-head); color: var(--red); margin-bottom: 18px; }
.step:nth-child(2) .step__n { color: var(--blue); }
.step:nth-child(3) .step__n { color: var(--ink); }
.step:nth-child(4) .step__n { color: var(--sky); }
.step h4 { margin-bottom: 10px; }
.step p { font-size: .95rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.about__text h2 { margin-bottom: 24px; }
.highlights { display: grid; gap: 14px; margin-bottom: 32px; }
.highlights div { background: var(--bg); border-radius: 18px; padding: 20px 24px; border-left: 5px solid var(--red); }
.highlights div:nth-child(2) { border-color: var(--sky); }
.highlights div:nth-child(3) { border-color: var(--yellow); }
.highlights strong { display: block; font: 700 1.2rem/1.2 var(--f-head); }
.highlights span { font-size: .95rem; color: var(--muted); }
.tools-title { font: 700 .82rem/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-size: .88rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px;
  background: var(--ink); border-radius: 40px; padding: 64px; color: #D7D9DF;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.contact::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02);
}
.contact h2 { color: #fff; margin-bottom: 18px; }
.contact__info p { font-size: 1.08rem; }
.contact__links { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.contact__links a {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; font-weight: 500;
  padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.contact__links a:hover { background: rgba(255,255,255,.12); }
.contact__links span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); font-weight: 600; }

.form { position: relative; z-index: 1; background: var(--white); border-radius: 28px; padding: 36px; display: grid; gap: 18px; color: var(--text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font: 600 .9rem/1.2 var(--f-body); color: var(--ink); }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); background: #fff; outline: none; }
.form textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer { padding: 48px 0 56px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer p { margin: 0; color: var(--muted); font-size: .95rem; }

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float[hidden] { display: none; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .mini, .case__frame { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .minis, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { gap: 48px; }
  .about { gap: 48px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }

  .hero { padding: 28px 0 72px; }
  .hero__grid, .featured, .cases, .about, .contact { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin: 0 auto; width: 100%; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .card { padding: 32px 26px; }
  .contact { padding: 40px 24px; border-radius: 30px; gap: 36px; }
  .form { padding: 26px 20px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1180px); }
  .minis, .steps, .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero__media { padding: 20px 26px 30px 6px; }
  .hero__shape--block { inset: 50px 0 0 50px; }
  .hero__shape--circle { width: 100px; height: 100px; left: -16px; }
  .hero__badge { bottom: 40px; padding: 12px 16px; }
  .hero__badge strong { font-size: 1.3rem; }
  .case__body { flex-direction: column; align-items: flex-start; }
  .logo { font-size: 1.5rem; }
}
