/* MK Tintas — LP Orçamentos
   Paleta extraída da logo: roxo profundo + arco-íris da tinta */
:root {
  --purple-950: #14012a;
  --purple-900: #20023e;   /* fundo da logo */
  --purple-800: #2e0a58;
  --purple-700: #432077;
  --blue: #1fa3ff;
  --cyan: #2fe0e0;
  --green: #86e32b;
  --yellow: #ffc61a;
  --orange: #ff7a1a;
  --pink: #ff4d6a;
  --whats: #25d366;
  --whats-dark: #128c4a;
  --ink: #1b1030;
  --muted: #5d5470;
  --paper: #fbf8ff;
  --line: #e7e0f2;
  --rainbow: linear-gradient(90deg, var(--blue), var(--green) 45%, var(--yellow) 70%, var(--orange));
  --radius: 18px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--purple-900);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }
.grad { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow--dark { color: var(--orange); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; min-height: 54px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .float-whats:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn--whats { background: var(--whats); color: #05260f; box-shadow: 0 8px 24px -8px rgba(37, 211, 102, .65); }
.btn--whats:hover { background: #2ee673; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .8); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--light { background: #fff; color: var(--purple-900); }
.btn--light:hover { background: var(--yellow); }
.btn--sm { padding: .6rem 1.1rem; min-height: 44px; font-size: .92rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(32, 2, 62, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; position: relative; }
html { scroll-padding-top: 76px; }

/* Menu */
.nav { display: none; }
.nav a:not(.btn) { color: #e9defa; text-decoration: none; font-weight: 500; padding: .5rem .2rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:not(.btn):hover { color: #fff; border-color: var(--yellow); }
.nav.is-open {
  display: flex; flex-direction: column; gap: .2rem;
  position: absolute; top: 100%; left: -16px; right: -16px; padding: 1rem 16px 1.2rem;
  background: var(--purple-900); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 30px rgba(0,0,0,.4);
}
.nav.is-open a:not(.btn) { padding: .8rem .2rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav.is-open .nav__cta { margin-top: .8rem; width: 100%; }
.burger { display: grid; gap: 5px; padding: 12px; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.burger span { display: block; width: 26px; height: 3px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.burger:focus-visible { outline: 3px solid var(--yellow); }
.header__logo img { height: 54px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(31,163,255,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255,122,26,.22), transparent 60%),
    var(--purple-900);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--rainbow); }
.hero__inner { display: grid; gap: 1.5rem; padding-block: 3rem 0; align-items: end; }
.hero__text { padding-bottom: 1rem; }
.lead { font-size: 1.2rem; color: #ece4fa; max-width: 34em; }
.hero__sub { color: #cdbfe6; font-weight: 500; margin-bottom: 0; }

/* ---------- Placeholders de foto ----------
   Se o arquivo existir em assets/img, a foto cobre o placeholder.
   Se não existir, o <img> é removido e aparece a caixa tracejada. */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,.1) 14px 28px);
  border: 2px dashed rgba(255,255,255,.35);
}
.photo::before {
  content: "📷  " attr(data-label);
  padding: 1rem; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.7);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { border-style: solid; border-color: transparent; }
.photo:has(img)::before { display: none; }
.photo--hero { aspect-ratio: 9 / 10; max-height: 600px; }
.photo--hero:has(img) { background: radial-gradient(closest-side, rgba(31,163,255,.45), rgba(255,122,26,.15) 70%, transparent); border-radius: 0; overflow: visible; }
.photo--hero img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.photo--tall { aspect-ratio: 5 / 4; }
.section--light .photo, .brand .photo {
  border-color: rgba(67, 32, 119, .3);
  background: repeating-linear-gradient(135deg, #f1eafb 0 14px, #e8def7 14px 28px);
}
.section--light .photo::before, .brand .photo::before { color: var(--purple-700); }
.photo--card { box-shadow: 0 20px 40px -24px rgba(32,2,62,.45); }

/* ---------- Seções ---------- */
.section { padding-block: 4.5rem; }
.section--light { background: var(--paper); }
.section--dark { background: var(--purple-900); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section--light .section__head h2, .section--light h2 { color: var(--purple-900); }

/* Marcas */
.brands { display: grid; gap: 1.5rem; }
.brand {
  background: #fff; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 0 10px 30px -20px rgba(32,2,62,.35);
}
.brand .photo { border-radius: 0; border-width: 0 0 2px; }
.brand .photo:has(img) { border-width: 0; }
.brand__body { padding: 1.8rem; border-top: 5px solid var(--blue); flex: 1; display: flex; flex-direction: column; }
.brand--quali .brand__body { border-top-color: var(--orange); }
.brand h3 { color: var(--purple-900); }
.brand p { color: var(--muted); }
.brand .btn { margin-top: auto; align-self: flex-start; }

/* Diferenciais */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.perks li {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
}
.perks strong { font-size: 1.05rem; font-weight: 600; }
.perk__ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--purple-900); }
.perk__ico svg { width: 26px; height: 26px; }
.c1 { background: var(--blue); } .c2 { background: var(--cyan); } .c3 { background: var(--green); }
.c4 { background: var(--yellow); } .c5 { background: var(--orange); } .c6 { background: var(--pink); }

/* Entrega */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__body p { color: var(--muted); font-size: 1.1rem; }
.split__body .btn { margin-top: .6rem; }

/* Loja */
.store { display: grid; gap: 1.5rem; }
.store__cards { display: grid; gap: 1rem; align-content: start; }
.info { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.info__ico { width: 28px; height: 28px; color: var(--yellow); margin-bottom: .5rem; }
.info h3 { font-size: 1.15rem; margin-bottom: .5rem; }
address { font-style: normal; color: #d9ccee; }
.hours { margin: 0; display: grid; gap: .5rem; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: #d9ccee; }
.tel { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: #fff; }
.tel:hover { color: var(--yellow); }
.info p { margin: 0; }
.photo--store { aspect-ratio: 3 / 4; min-height: 260px; max-height: 640px; }
.photo--store img { object-position: center 35%; }

/* CTA final */
.cta-final { background: var(--rainbow); padding: 4px 0 0; }
.cta-final__inner {
  width: 100%; max-width: none; margin: 0; padding: 4.5rem 16px; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 50% 0%, rgba(67,32,119,.9), transparent 70%), var(--purple-950);
}
.cta-final h2 { max-width: 22em; margin-inline: auto; }
.cta-final h2 span { color: var(--yellow); display: block; }

/* Footer */
.footer { background: var(--purple-950); color: #bfb0d8; text-align: center; padding: 2.5rem 0 5.5rem; font-size: .92rem; }
.footer__inner { display: grid; gap: .8rem; justify-items: center; }
.footer img { width: 200px; height: auto; }
.footer p { margin: 0; }
.footer__copy { opacity: .7; font-size: .85rem; }

/* WhatsApp flutuante */
.float-whats {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whats); color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.4); animation: pulse 2.4s infinite;
}
.float-whats svg { width: 34px; height: 34px; }
@keyframes pulse {
  0% { box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-whats { animation: none; }
  .btn { transition: none; }
}

/* ---------- Mobile: botões em largura total ---------- */
@media (max-width: 639px) {
  .btn-row .btn, .brand .btn, .split__body .btn { width: 100%; }
  .header__logo img { height: 46px; }
  .section { padding-block: 3.5rem; }
  .photo--hero { aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 640px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; padding-block: 5rem 0; gap: 4rem; }
  .hero__text { padding-bottom: 6rem; }
  .nav { display: flex; align-items: center; gap: 1.4rem; }
  .burger { display: none; }
  .photo--store { aspect-ratio: auto; }
  .brands { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .store { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .photo--store { height: 100%; }
  .footer { padding-bottom: 2.5rem; }
}


/* =====================================================
   ANIMAÇÕES DE TINTA
   ===================================================== */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: floaty 14s ease-in-out infinite alternate; }
.b1 { width: 300px; height: 300px; background: var(--blue); top: -90px; right: -70px; }
.b2 { width: 260px; height: 260px; background: var(--orange); bottom: 8%; left: -100px; opacity: .3; animation-delay: -5s; }
.b3 { width: 200px; height: 200px; background: var(--green); top: 42%; left: 42%; opacity: .14; animation-delay: -9s; }
@keyframes floaty { to { transform: translate(34px, 44px) scale(1.18); } }

/* Revelação ao rolar */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Pincelada sob palavras-chave */
.brush { position: relative; display: inline-block; }
.brush::after {
  content: ""; position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .16em;
  background: var(--rainbow); border-radius: 99px 60px 99px 40px; transform: rotate(-1.2deg) scaleX(0); transform-origin: left center;
  transition: transform .9s cubic-bezier(.6,0,.2,1) .35s;
}
.in .brush::after, .brush.in::after { transform: rotate(-1.2deg) scaleX(1); }

/* Fotos: tinta passando e revelando */
.paint::after {
  content: ""; position: absolute; inset: -2px; z-index: 2; pointer-events: none; display: none;
  background: linear-gradient(100deg, var(--blue), var(--cyan) 22%, var(--green) 42%, var(--yellow) 62%, var(--orange) 82%, var(--pink));
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 70px), transparent);
  transform: translateX(0); transition: transform 1.3s cubic-bezier(.65,0,.25,1) .1s;
}
.js .paint::after { display: block; }
.js .paint.in::after { transform: translateX(105%); }

/* Foto do topo: "respingo" que se abre */
.js .photo--hero img { clip-path: circle(0% at 50% 100%); transition: clip-path 1.5s cubic-bezier(.2,.7,.2,1) .35s; }
.js .photo--hero.in img { clip-path: circle(150% at 50% 100%); }
.js .photo--hero:has(img) { transform: scale(.85); opacity: 0; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .8s; }
.js .photo--hero.in:has(img) { transform: none; opacity: 1; }

/* Gotas escorrendo do topo da página */
.drips { position: absolute; left: 0; right: 0; height: 0; z-index: 3; pointer-events: none; }
.hero + .drips { position: relative; top: 0; margin-top: -1px; }
.drips i {
  position: absolute; top: 0; left: var(--x); width: 12px; height: 0; margin-left: -6px;
  background: var(--c); border-radius: 0 0 8px 8px;
  animation: drip 2.4s cubic-bezier(.5,0,.3,1) var(--d) forwards;
}
.drips i::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--c); }
@keyframes drip { 0% { height: 0; } 60% { height: calc(var(--h) + 8px); } 100% { height: var(--h); } }
.js .drips i { height: 0; }

/* Ondas de transição entre seções */
.section { position: relative; }
.section:has(> .wave) { padding-top: calc(4.5rem + 20px); }
.wave { position: absolute; left: 0; top: -1px; width: 100%; height: 40px; display: block; pointer-events: none; z-index: 1; }
.wave__fill { fill: var(--paper); }
.wave--ink .wave__fill { fill: var(--purple-900); }
.wave__stroke { fill: none; stroke: url(#rainbowG); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .wave { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.6,0,.2,1); }
.js .waved > .wave { clip-path: inset(0 0 -8px 0); }

/* Ícones dos diferenciais "estouram" como gota de tinta */
.js .perks li.in .perk__ico { animation: pop .7s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d, 0s) + .2s); }
@keyframes pop { 0% { transform: scale(0) rotate(-20deg); } 100% { transform: none; } }
.btn--whats { position: relative; overflow: hidden; }
.btn--whats::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out 1.5s infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.float-whats { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .blob, .btn--whats::after, .drips i { animation: none; }
  .drips i { height: var(--h); }
  .js .reveal, .js .photo--hero:has(img) { opacity: 1; transform: none; transition: none; }
  .js .photo--hero img { clip-path: none; transition: none; }
  .js .paint::after { display: none; }
  .js .wave { clip-path: none; transition: none; }
  .brush::after { transform: rotate(-1.2deg) scaleX(1); transition: none; }
  .js .perks li.in .perk__ico { animation: none; }
}

/* =====================================================
   MOBILE: tudo centralizado
   ===================================================== */
@media (max-width: 899px) {
  .hero__text, .section__head, .brand__body, .split__body, .info, .cta-final { text-align: center; }
  .hero__inner { padding-top: 2.2rem; }
  .lead { margin-inline: auto; font-size: 1.12rem; }
  .btn-row { justify-content: center; }
  .brand .btn, .split__body .btn { align-self: stretch; }
  .info__ico { margin-inline: auto; display: block; }
  .hours div { flex-direction: column; align-items: center; gap: 0; }
  .perks { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .perks li { flex-direction: column; text-align: center; padding: 1.3rem .8rem; gap: .8rem; }
  .perks strong { font-size: .98rem; line-height: 1.3; }
  .perk__ico { width: 56px; height: 56px; }
  .section__head { margin-bottom: 2rem; }
  .brand__body { align-items: stretch; padding: 1.5rem 1.3rem 1.7rem; }
  .split { text-align: center; }
  .footer__inner p { max-width: 28em; }
}
@media (max-width: 340px) {
  .perks { grid-template-columns: 1fr; }
}
