/* ==========================================================
   Ribee Studio — Identidade "Sistema de Formas"
   Cada serviço tem uma forma e uma cor:
   Sites e apps = quadrado (cobalto) · Software = quarto de círculo (pistache)
   Identidade visual = círculo (coral) · Social media = meia-lua (lilás)
   ========================================================== */
:root {
  --papel: #F4F1EA;
  --linha: #E2DDD1;
  --tinta: #141414;
  --grafite: #5E5A52;
  --claro: #C9C4BA;
  --branco: #FFFFFF;

  --sites: #2F4BFF;      /* cobalto  */
  --software: #C8E66B;   /* pistache */
  --identidade: #FF6A3D; /* coral    */
  --social: #B9A7FF;     /* lilás    */

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--tinta); background: var(--papel); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sites); }
a:hover { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--sites); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 92px); letter-spacing: -0.05em; line-height: .96; }
h2 { font-size: clamp(36px, 4.6vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.bg-white { background: var(--branco); }
.bg-dark { background: var(--tinta); color: var(--papel); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--grafite); max-width: 600px; }
.muted { color: var(--grafite); }
.bg-dark .muted { color: var(--claro); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.head-row h2 { max-width: 660px; }
.head-row p { max-width: 420px; }
.link { color: var(--tinta); font-weight: 600; }

/* ---------- Formas ---------- */
.shape { display: inline-block; flex-shrink: 0; }
.shape--sites { background: var(--sites); border-radius: 18%; }
.shape--software { background: var(--software); border-top-left-radius: 100%; }
.shape--identidade { background: var(--identidade); border-radius: 50%; }
.shape--social { background: var(--social); border-radius: 999px 999px 0 0; aspect-ratio: 2 / 1; }
.dot { width: 12px; height: 12px; }
.dot.shape--social { width: 14px; height: 7px; }
.ico { width: 64px; height: 64px; }
.ico.shape--social { height: 32px; margin-top: 32px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta); text-decoration: none; }
.logo__word { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.logo__mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 2px; }
.logo__mark span:nth-child(1) { background: var(--sites); border-radius: 1px; }
.logo__mark span:nth-child(2) { background: var(--identidade); border-radius: 50%; }
.logo__mark span:nth-child(3) { background: var(--software); border-top-left-radius: 8px; }
.logo__mark span:nth-child(4) { background: var(--social); border-radius: 8px 8px 0 0; }
.footer .logo { color: var(--papel); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,234,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--tinta); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"]:not(.btn) { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--tinta); background: none; color: var(--tinta); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--papel); border-bottom: 1px solid var(--linha); padding: 8px var(--pad) 20px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linha); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--dark { background: var(--tinta); color: var(--branco) !important; }
.btn--dark:hover { background: #2B2B2B; }
.btn--outline { border-color: var(--tinta); color: var(--tinta) !important; background: transparent; }
.btn--outline:hover { background: var(--tinta); color: var(--papel) !important; }
.btn--coral { background: var(--identidade); color: var(--tinta) !important; }
.btn--light { background: var(--branco); color: var(--tinta) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__shapes { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { aspect-ratio: 1; display: flex; font-family: var(--display); font-weight: 700; font-size: 18px; padding: 24px; }
.tile.shape--sites { color: var(--branco); align-items: center; justify-content: center; border-radius: 18px; }
.tile.shape--software { align-items: flex-end; justify-content: flex-end; }
.tile.shape--identidade { align-items: center; justify-content: center; }
.tile.shape--social { aspect-ratio: 1; align-items: flex-end; justify-content: center; }

.page-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 84px); max-width: 900px; }

/* ---------- Faixa ---------- */
.band { background: var(--tinta); color: var(--papel); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.band .shape { width: 18px; height: 18px; }
.band .shape--social { width: 20px; height: 10px; }
.band .shape--sites { border-radius: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { border-radius: 22px; background: var(--papel); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.card h3 { margin-top: 8px; }
.card p { font-size: 16px; color: var(--grafite); }
.card .link { margin-top: auto; font-size: 15px; }
.card--line { background: var(--branco); border: 1px solid var(--linha); min-height: 0; }

/* ---------- Posts ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.post { aspect-ratio: 4 / 5; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.post strong { font-family: var(--display); font-weight: 800; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.05; }
.post small { font-size: 12px; font-weight: 600; color: var(--grafite); }

/* ---------- Processo ---------- */
.step { display: flex; flex-direction: column; gap: 12px; }
.step__n { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--tinta); }
.step__n.shape--sites { color: var(--branco); border-radius: 12px; }
.step__n.shape--social { height: 56px; aspect-ratio: auto; border-radius: 28px 28px 0 0; }
.step__n.shape--software { align-items: flex-end; justify-content: flex-end; padding: 0 10px 6px 0; }
.step h3 { margin-top: 6px; }
.step p { font-size: 16px; color: var(--claro); }

/* ---------- Projetos ---------- */
.project { display: flex; flex-direction: column; gap: 12px; }
.project[hidden] { display: none; }
.project__thumb { aspect-ratio: 4 / 3; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.project__thumb--sites { background: var(--sites); color: var(--branco); }
.project__thumb--software { background: var(--software); }
.project__thumb--identidade { background: var(--identidade); }
.project__thumb--social { background: var(--social); }
.project__cat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--grafite); }
.project__cat .shape { width: 10px; height: 10px; }
.project__cat .shape--social { width: 12px; height: 6px; }
.project p { font-size: 16px; color: var(--grafite); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--tinta); background: transparent; color: var(--tinta); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip:hover { background: var(--branco); }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }

/* ---------- Serviços (detalhe) ---------- */
.service { border-radius: 28px; background: var(--papel); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; scroll-margin-top: 96px; }
.service__shape { width: clamp(120px, 16vw, 200px); aspect-ratio: 1; }
.service__shape.shape--sites { border-radius: 28px; }
.service__shape.shape--social { aspect-ratio: 2 / 1; margin: clamp(30px, 4vw, 50px) 0; }
.service__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.service__text h2 { font-size: clamp(32px, 3.6vw, 44px); }
.service__price { font-size: 15px; font-weight: 600; }
.service ul { flex: 1 1 300px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.service li { padding: 12px 16px; border-radius: 12px; background: var(--branco); }
.services { display: flex; flex-direction: column; gap: 20px; }

.package { border-radius: 24px; background: var(--branco); border: 1px solid var(--linha); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.package--dark { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.package--dark p { color: var(--claro); }
.package p { font-size: 16px; color: var(--grafite); }
.package__shapes { display: flex; gap: 6px; align-items: flex-end; }
.package__shapes .shape { width: 28px; height: 28px; }
.package__shapes .shape--social { height: 14px; }
.package__shapes .shape--sites { border-radius: 6px; }
.package__price { margin-top: auto; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 var(--pad) clamp(72px, 9vw, 120px); }
.cta { max-width: 1104px; margin: 0 auto; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta > div { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.cta p { font-size: 18px; }
.cta--coral { background: var(--identidade); }
.cta--lilas { background: var(--social); }
.cta--cobalto { background: var(--sites); color: var(--branco); }
.cta--cobalto p { color: #E3E7FF; }
.cta--pistache { background: var(--software); }
.btn--big { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- Sobre ---------- */
.about-shapes { flex: 1 1 280px; min-width: 0; max-width: 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.about-shapes .shape { aspect-ratio: 1; width: 100%; }
.about-shapes .shape--sites { border-radius: 18px; }
.photo { aspect-ratio: 4 / 5; border-radius: 24px; background: var(--papel); border: 1px solid var(--linha); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--grafite); }

/* ---------- Contato ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: clamp(72px, 9vw, 120px); }
.form { flex: 999 1 520px; min-width: 0; border-radius: 28px; background: var(--branco); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--tinta); font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--tinta); }
.check:has(input:checked) { background: var(--papel); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { font: inherit; font-size: 16px; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--linha); background: var(--papel); color: var(--tinta); }
.field textarea { padding: 14px 16px; min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sites); box-shadow: 0 0 0 3px rgba(47,75,255,.18); }
.field .error { font-size: 13px; color: #B3261E; min-height: 1em; }
.form__status { font-size: 14px; font-weight: 600; }
.contact__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.info { border-radius: 22px; padding: 24px; color: var(--tinta); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.info span { font-size: 13px; font-weight: 600; }
.info strong { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.info--pistache { background: var(--software); }
.info--lilas { background: var(--social); }
.info--line { background: var(--branco); border: 1px solid var(--linha); }
a.info:hover { color: var(--tinta); transform: translateY(-1px); }

.faq { max-width: 860px; }
details { border-top: 1px solid var(--tinta); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--tinta); }
summary { font-family: var(--display); font-size: 21px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--grafite); }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: var(--papel); }
.footer__inner { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer__brand p { color: var(--claro); font-size: 15px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols strong { font-size: 13px; font-weight: 600; color: var(--claro); }
.footer a { color: var(--papel); text-decoration: none; }
.footer a:hover { color: var(--social); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #2E2E2E; font-size: 13px; color: var(--claro); }

/* ---------- Utilidades ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s 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:hover { transform: none; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tinta); color: var(--papel); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.package.package--dark p { color: var(--claro); }
.band__inner > span:not(.shape) { margin-right: 14px; }
.service .price-list { flex: none; gap: 6px; font-size: 15px; }
.service .price-list li { padding: 0; background: none; border-radius: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; border-bottom: 1px dashed var(--linha); padding-bottom: 6px; }
.service .price-list li:last-child { border-bottom: 0; }
.service .price-list span { color: var(--grafite); }
.package__price { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--linha); }
.package--dark .package__price { border-top-color: #2E2E2E; }
.package__price small { font-size: 13px; font-weight: 500; color: var(--grafite); }
.package--dark .package__price small { color: var(--claro); }
.package__price strong { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--tinta); line-height: 1.1; }
.package--dark .package__price strong { color: var(--papel); }
.package__price em { font-style: normal; font-size: 18px; font-weight: 700; }
.package__save { display: inline-block; align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--software); color: var(--tinta); }
/* Pacotes detalhados */
.package .btn { width: 100%; }
.package--dark .btn--outline { border-color: var(--papel); color: var(--papel) !important; }
.package__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.package__badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--identidade); color: var(--tinta); }
.package__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.package__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--grafite); }
.package--dark .package__list li { color: var(--claro); }
.package__list strong { display: block; color: var(--tinta); font-weight: 600; }
.package--dark .package__list strong { color: var(--papel); }
.package__list .shape { width: 16px; height: 16px; margin-top: 4px; }
.package__list .shape--social { height: 8px; margin-top: 8px; }
.package__list .shape--sites { border-radius: 3px; }
.package__check { width: 16px; flex-shrink: 0; font-weight: 800; color: var(--tinta); text-align: center; }
.package--dark .package__check { color: var(--software); }
.package__price { margin-top: 0; }
.form__note { border-radius: 14px; background: var(--papel); padding: 14px 16px; font-size: 15px; font-weight: 600; }
.form__note[hidden] { display: none; }
