/* ====================================================
   Ateliê Carol Carvalho — Estilo clean / premium
   Paleta do logo: laranja → magenta → azul
   ==================================================== */

:root {
  --orange: #ee4023;
  --orange-light: #f26a2e;
  --magenta: #b83a8c;
  --blue: #1b6fc0;
  --blue-dark: #134e8a;
  --navy: #16314f;
  --navy-2: #1e436c;

  --brand-gradient: linear-gradient(120deg, #ee4023 0%, #b83a8c 52%, #1b6fc0 100%);

  --ink: #16223a;
  --body: #51596b;
  --muted: #9aa0b2;
  --line: #ecedf3;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;

  --whats: #25d366;
  --whats-dark: #1da851;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(22, 34, 58, 0.08);
  --shadow-sm: 0 6px 24px rgba(22, 34, 58, 0.05);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--body); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Barra de progresso ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--brand-gradient); z-index: 100; transition: width .1s linear;
}

/* ---------- Linhas decorativas nos cantos ---------- */
.corners { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.corner { position: absolute; width: 150px; height: 150px; opacity: .55; }
.corner svg { width: 100%; height: 100%; }
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner--br { bottom: 0; right: 0; transform: scale(-1); }
.cline {
  fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 2.4s var(--ease) forwards;
}
.cline--soft { stroke: var(--magenta); stroke-width: 1; opacity: .5; animation-delay: .3s; }
.cline--accent { stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 80; stroke-dashoffset: 80; animation-delay: .5s; }
.cdot { fill: var(--orange); opacity: 0; animation: fadeDot .5s ease forwards; }
.cdot:nth-of-type(1) { animation-delay: 1.4s; }
.cdot:nth-of-type(2) { animation-delay: 1.55s; }
.cdot:nth-of-type(3) { animation-delay: 1.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeDot { to { opacity: 1; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .32); }
.btn--whats:hover { background: var(--whats-dark); box-shadow: 0 14px 32px rgba(37, 211, 102, .42); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--order { background: var(--brand-gradient); color: #fff; box-shadow: 0 12px 30px rgba(184, 58, 140, .28); }
.btn--order:hover { box-shadow: 0 16px 38px rgba(184, 58, 140, .4); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 92px; }
.header__logo img { height: 64px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 30px; }
.nav__link { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand-gradient); transition: width .25s var(--ease); }
.nav__link:hover::after { width: 100%; }
.header__cta { flex-shrink: 0; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__dots {
  position: absolute; top: 60px; left: 30px; width: 120px; height: 90px; opacity: .5;
  background-image: radial-gradient(var(--muted) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 84px 28px; }
.hero__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .6px; color: var(--orange);
  background: rgba(238, 64, 35, .07); padding: 9px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero__title { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.12; margin-bottom: 20px; }
.hero__text { font-size: 1.14rem; max-width: 540px; margin-bottom: 24px; }
.hero__keywords { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 32px; }
.hero__keywords li {
  font-family: var(--font-head); font-size: .76rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .4px; color: var(--body); padding: 6px 13px; border: 1px solid var(--line);
  border-radius: 999px; transition: border-color .25s, color .25s, transform .25s;
}
.hero__keywords li:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.hero__keywords-more { background: var(--brand-gradient); color: #fff !important; border: none !important; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Placeholders ---------- */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #f2f4fa, #e9ecf6); color: var(--muted);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border: 1px dashed #cdd3e3; border-radius: var(--radius);
}
.placeholder--hero { aspect-ratio: 4 / 3; }
.hero__img {
  width: 100%; height: auto;
  /* Degradê nas bordas: a foto se dissolve no branco e some a moldura */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--gallery { aspect-ratio: 1 / 1; }

/* ---------- Ícones em linha (auto-desenho) ---------- */
.ico { width: 44px; height: 44px; color: var(--blue); flex-shrink: 0; }
.ico path, .ico circle, .ico line, .ico rect {
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease);
}
.reveal.is-visible .ico path, .reveal.is-visible .ico circle,
.reveal.is-visible .ico line, .reveal.is-visible .ico rect,
.reveal.is-visible .ico ~ * .ico path { stroke-dashoffset: 0; }
.ico > *:nth-child(2) { transition-delay: .18s; }
.ico > *:nth-child(3) { transition-delay: .34s; }
.ico--card { width: 54px; height: 54px; margin-bottom: 18px; color: var(--orange); }
.ico--sm { width: 38px; height: 38px; color: var(--blue); }

/* ---------- Barra de diferenciais ---------- */
.feature-bar { background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.feature-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 38px 28px; }
.feature-bar__item { display: flex; align-items: center; gap: 16px; color: #fff; }
.feature-bar__item .ico { color: #fff; width: 40px; height: 40px; }
.feature-bar__item h3 { color: #fff; font-size: 1.02rem; margin-bottom: 2px; }
.feature-bar__item p { color: rgba(255, 255, 255, .72); font-size: .85rem; line-height: 1.4; }

/* ---------- Seções ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 700; margin-bottom: 14px; }
.section__text { font-size: 1.05rem; color: var(--body); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__content .eyebrow { margin-bottom: 10px; }
.about__content .section__text + .section__text { margin-top: 14px; }
.about__stats { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.about__stats li { display: flex; flex-direction: column; }
.about__stats strong { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__stats span { font-size: .9rem; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__title { font-size: 1.28rem; margin-bottom: 10px; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; background: var(--brand-gradient); }
.step__title { font-size: 1.22rem; margin-bottom: 8px; }
.step__lead { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step__text { font-size: .96rem; color: var(--body); }

/* ---------- Diferenciais ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { display: flex; gap: 16px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 1/1; }
.gallery-cta { text-align: center; margin-top: 44px; }

/* ---------- Depoimentos ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; }
.testimonial::before { content: "\201C"; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--orange); opacity: .22; position: absolute; top: 12px; right: 20px; }
.testimonial p { font-style: italic; margin-bottom: 18px; }
.testimonial footer strong { display: block; font-family: var(--font-head); color: var(--ink); }
.testimonial footer span { font-size: .88rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--brand-gradient); padding: 86px 0; text-align: center; }
.cta__inner { color: #fff; }
.cta__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta__text { color: rgba(255, 255, 255, .92); font-size: 1.12rem; margin-bottom: 32px; }
.cta .btn--whats { background: #fff; color: var(--ink); }
.cta .btn--whats:hover { background: #f0f0f0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: #c2c7d6; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 42px; padding-bottom: 52px; }
.footer__logo { height: 54px; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 16px; }
.footer__brand p { font-size: .95rem; max-width: 290px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 10px; font-size: .94rem; }
.footer__col a:hover { color: var(--orange-light); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer__bottom p { font-size: .85rem; color: var(--muted); text-align: center; }
/* Acesso discreto ao painel: parece texto comum */
.footer__admin { color: inherit; text-decoration: none; cursor: default; }
.footer__admin:hover { color: inherit; }

/* ---------- Imagem clicável (zoom) ---------- */
.zoomable { cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 32px; background: rgba(12, 18, 30, .9); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 95vw; max-height: 90vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.92); transition: transform .35s var(--ease); cursor: zoom-out;
  image-rendering: -webkit-optimize-contrast;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 22px; right: 28px; width: 46px; height: 46px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .25); transform: rotate(90deg); }

/* ---------- Botão flutuante WhatsApp ---------- */
.whats-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--whats); color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .2s var(--ease); animation: pulse 2.4s infinite; }
.whats-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal (entrada dinâmica no scroll) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal--right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Escalonamento automático dos filhos em grades */
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .features .reveal:nth-child(2),
.testimonials .reveal:nth-child(2), .gallery .reveal:nth-child(2), .feature-bar__grid .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .features .reveal:nth-child(3),
.testimonials .reveal:nth-child(3), .gallery .reveal:nth-child(3), .feature-bar__grid .reveal:nth-child(3) { transition-delay: .24s; }
.features .reveal:nth-child(4), .gallery .reveal:nth-child(4), .feature-bar__grid .reveal:nth-child(4) { transition-delay: .36s; }
.gallery .reveal:nth-child(5) { transition-delay: .48s; }
.gallery .reveal:nth-child(6) { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cline, .cdot { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .ico path, .ico circle, .ico line, .ico rect { stroke-dashoffset: 0; }
}

/* ====================================================
   RESPONSIVO
   ==================================================== */
@media (max-width: 1024px) {
  .feature-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 28px; }
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 28px; }
  .about { grid-template-columns: 1fr; gap: 38px; }
  .cards, .steps, .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .reveal--right { transform: translateY(40px); }
  .corner { width: 100px; height: 100px; }
}
@media (max-width: 760px) {
  .header__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav { position: fixed; inset: 92px 0 auto 0; background: #fff; margin: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease); padding: 12px 0; }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; padding: 14px 28px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature-bar__grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .footer__inner { grid-template-columns: 1fr; }
  .about__stats { gap: 26px; }
  .corner { width: 76px; height: 76px; opacity: .4; }
}
