/* ==========================================================
   WE Digital - estilos
   Cores da marca tiradas da logomarca (turquesa + grafite)
   ========================================================== */
:root {
  --brand: #00d8d7;
  --brand-600: #00b3b2;
  --brand-700: #00807f;     /* turquesa escuro: texto sobre fundo claro */
  --brand-50: #e9fbfb;
  --ink: #2b2b2b;
  --ink-2: #555b61;
  --dark: #14191c;
  --white: #ffffff;
  --yellow: #ffd23f;
  --red: #e63946;
  --line: #e3e8ea;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 25, 28, .08);
  --shadow-lg: 0 24px 60px rgba(20, 25, 28, .16);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* largura: até 1640px em telas grandes (1920x1080), com respiro lateral proporcional */
.container { width: min(1640px, 100% - clamp(32px, 8vw, 160px)); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head p { color: var(--ink-2); font-size: 1.05rem; }

.tag {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.tag--light { color: var(--dark); background: var(--brand); }
.hl { color: var(--brand-700); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--font);
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--dark); box-shadow: 0 8px 20px rgba(0, 216, 215, .35); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.logo img { width: 48px; height: auto; }
.logo strong { font-weight: 800; font-style: italic; }
.logo span { font-weight: 400; }
.logo--light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--brand); transition: width .2s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--brand-50) 60%, #c9f6f5 100%);
  padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px);
}
.hero::before {
  content: ''; position: absolute; right: -180px; top: -120px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 216, 215, .28), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--brand-700); }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 500; }
.hero__checks li { display: flex; align-items: center; gap: 10px; }
.hero__checks li::before {
  content: '✓'; display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: var(--dark); font-size: .75rem; font-weight: 800;
}

/* Encarte ilustrativo */
.hero__visual { position: relative; display: flex; justify-content: center; }
.flyer {
  width: min(400px, 100%);
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(2deg) translateY(-10px); } }
.flyer__head {
  background: var(--red); color: var(--white); text-align: center; padding: 18px 12px 14px;
  display: flex; flex-direction: column; line-height: 1;
}
.flyer__kicker { font-weight: 700; font-style: italic; font-size: 1.1rem; color: var(--yellow); }
.flyer__title { font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; }
.flyer__sub { font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; margin-top: 4px; }
.flyer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: #fff7d6; }
.flyer__item {
  position: relative; background: var(--white); border-radius: 12px; padding: 12px 10px 14px;
  font-size: .78rem; font-weight: 600; line-height: 1.25;
}
.flyer__img { height: 64px; border-radius: 10px; margin-bottom: 8px; }
.flyer__img--a { background: linear-gradient(135deg, #f4e3b5, #e7c66c); }
.flyer__img--b { background: linear-gradient(135deg, #a0673f, #5b3520); }
.flyer__img--c { background: linear-gradient(135deg, #ffe680, #f2b600); }
.flyer__img--d { background: linear-gradient(135deg, #e6f3ff, #8ec2f0); }
.price {
  position: absolute; right: -4px; top: 50px;
  background: var(--yellow); color: var(--red);
  font-size: 1.5rem; font-weight: 800; line-height: 1;
  padding: 6px 10px; border-radius: 10px; transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.price small { font-size: .55rem; vertical-align: top; margin-right: 2px; }
.price sup { font-size: .7rem; }
.flyer__foot { background: var(--dark); color: #cfd8dc; text-align: center; font-size: .7rem; padding: 8px; }

.float-card {
  position: absolute; background: var(--white); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; font-size: .78rem; line-height: 1.3;
  border-left: 4px solid var(--brand);
}
.float-card b { font-size: .95rem; }
.float-card span { color: var(--ink-2); }
.float-card--1 { left: -10px; top: 18%; animation: float2 5s ease-in-out infinite; }
.float-card--2 { right: -6px; bottom: 12%; animation: float2 5s ease-in-out infinite 1.2s; }
@keyframes float2 { 50% { transform: translateY(-8px); } }

/* ---------- Dores ---------- */
.pains__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.pain p { color: var(--ink-2); margin: 0; }
.pain__icon, .service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-50);
}
.pain__icon svg, .service__icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--brand-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pain__icon { background: #fdeceb; }
.pain__icon svg { stroke: var(--red); }

/* ---------- Serviços ---------- */
.services { background: #f6f9fa; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service p { color: var(--ink-2); margin: 0; }
.service--featured { background: var(--dark); color: var(--white); }
.service--featured p { color: #b9c4c8; }
.service--featured .service__icon { background: var(--brand); }
.service--featured .service__icon svg { stroke: var(--dark); }

/* ---------- Como funciona ---------- */
.steps { background: var(--dark); color: var(--white); }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.step p { color: #b9c4c8; margin: 0; }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: var(--dark); font-weight: 800; font-size: 1.3rem; margin-bottom: 18px;
}

/* ---------- Portfólio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  font: 600 .9rem var(--font); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink); transition: all .2s;
}
.filter:hover { border-color: var(--brand); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: var(--dark); }
/* mosaico: cada peça mantém o próprio formato */
.portfolio__grid { columns: 3; column-gap: 20px; }
.work {
  position: relative; margin: 0 0 20px; border-radius: var(--radius); overflow: hidden;
  break-inside: avoid; background: var(--brand-50); cursor: zoom-in; box-shadow: var(--shadow);
}
.work img { width: 100%; height: auto; transition: transform .4s; }
.work:hover img { transform: scale(1.04); }
.work figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 14px; color: var(--white);
  display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(20, 25, 28, .88));
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.work figcaption b { font-size: 1rem; }
.work:hover figcaption, .work:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .work figcaption { opacity: 1; transform: none; } }
.work.is-hidden { display: none; }
.portfolio__more { display: flex; justify-content: center; margin-top: 16px; }
.portfolio__more[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 16, .92);
  display: none; place-items: center; padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox button {
  position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--white);
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ---------- Sobre ---------- */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__logo {
  border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(180deg, var(--white) 40%, #c9f6f5); box-shadow: var(--shadow-lg);
}
.about__logo img { width: 100%; height: auto; }
.about__text > p { color: var(--ink-2); font-size: 1.05rem; }
.about__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.about__list li { padding-left: 20px; border-left: 3px solid var(--brand); }

/* ---------- Depoimentos ---------- */
.testimonials { background: linear-gradient(135deg, var(--dark), #1f2a2e); color: var(--white); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  margin: 0; padding: 32px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote::before { content: '“'; font-size: 4rem; line-height: .6; color: var(--brand); font-weight: 800; }
.quote p { color: #d5dee1; font-size: 1rem; margin: 16px 0 24px; }
.quote footer { display: flex; flex-direction: column; font-size: .9rem; }
.quote footer span { color: #93a3a8; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--white);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand-700); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-2); }

/* ---------- Contato ---------- */
.contact { background: linear-gradient(180deg, var(--brand-50), #c9f6f5); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__text p { color: var(--ink-2); font-size: 1.05rem; }
.contact__info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__info li { display: flex; flex-direction: column; }
.contact__info span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); font-weight: 700; }
.contact__info a { font-weight: 600; font-size: 1.1rem; }
.form {
  background: var(--white); padding: 36px; border-radius: 22px; box-shadow: var(--shadow-lg);
  display: grid; gap: 18px;
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select {
  font: 400 1rem var(--font); padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfdfd; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 216, 215, .18); }
.form input.is-invalid { border-color: var(--red); }
.form__note { margin: 0; font-size: .88rem; color: var(--red); min-height: 1.2em; }

/* ---------- Rodapé ---------- */
.footer { background: var(--dark); color: #93a3a8; padding: 48px 0; text-align: center; font-size: .92rem; }
.footer__inner { display: grid; justify-items: center; gap: 8px; }
.footer .logo { margin-bottom: 8px; }
.footer__copy { font-size: .8rem; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer__links a { color: #d5dee1; transition: color .2s; }
.footer__links a:hover { color: var(--brand); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  z-index: -1; animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Telas grandes (1600px ou mais) ---------- */
@media (min-width: 1600px) {
  body { font-size: 17px; }
  .portfolio__grid { columns: 4; }
  .hero__inner { gap: 96px; }
  .flyer { width: 460px; }
  .section__head { max-width: 860px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .services__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { columns: 2; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; max-width: 440px; margin-inline: auto; }
  .about__logo { max-width: 380px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    padding: 8px 16px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .pains__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services__grid, .testimonials__grid, .steps__list { grid-template-columns: 1fr; }
  .portfolio__grid { column-gap: 12px; }
  .work { margin-bottom: 12px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .float-card { display: none; }
  .pain, .service, .quote, .form { padding: 24px; }
}
