/* ==========================================================
   Chimelli — estilos do site
   ========================================================== */

/* Fontes hospedadas no próprio site (subconjunto latino, com acentos) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

:root {
  /* Cores */
  --navy-950: #050F1C;
  --navy-900: #071829;
  --navy-800: #0B2138;
  --navy-700: #112C4A;
  --petrol:   #0E2F38;   /* fundo das fotos do João */
  --brand:    #11418C;   /* azul do logo */
  --blue:     #2F6FED;
  --blue-light: #6FA4FF;
  --cyan:     #4FD1E8;
  --wa:       #25D366;
  --wa-dark:  #1DA851;

  --text:       #EAF1FB;
  --text-muted: #9DB0C8;
  --ink:        #0C1B2E;
  --ink-muted:  #4B5D74;
  --light:      #F3F6FB;
  --line-dark:  rgba(255, 255, 255, .08);
  --line-light: #DCE4EF;

  /* Tipografia */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  --shadow: 0 20px 50px -20px rgba(2, 10, 25, .55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

.icon {
  width: 1.2em; height: 1.2em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }

.btn--wa { background: var(--wa); color: #05301A; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .6); }
.btn--wa:hover { background: #2EE477; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 111, 237, .7); }
.btn--primary:hover { background: #4580F5; }
.btn--ghost { border-color: rgba(255, 255, 255, .25); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue-light); background: rgba(111, 164, 255, .08); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header.is-scrolled {
  background: rgba(5, 15, 28, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: #D5E1F2;
  transition: color .2s ease;
}
.nav a:hover { color: #fff; }
.nav__cta-mobile { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
/* Layout dividido: texto à esquerda, foto ocupando a metade direita da tela */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 880px);
  display: flex; align-items: center;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(17, 65, 140, .35), transparent 70%),
    var(--navy-950);
}
.hero__inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 56px); padding-bottom: 80px; }
.hero__text { max-width: 600px; }
.hero h1 em { font-style: normal; color: var(--blue-light); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .4em .9em; margin-bottom: 1.4rem;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--text-muted); }
.hero__badges li { display: flex; align-items: center; gap: .45em; }
.hero__badges .icon { color: var(--cyan); }

.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 46%;
  background: var(--petrol);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* sombras suaves no topo (menu) e na base (legenda) para manter a leitura */
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 15, 28, .55), transparent 18%),
    linear-gradient(to top, rgba(5, 15, 28, .85), transparent 30%);
}
.hero__photo figcaption {
  position: absolute; z-index: 1; left: 32px; bottom: 32px;
  display: flex; flex-direction: column;
  padding-left: 14px; border-left: 3px solid var(--blue-light);
  line-height: 1.35;
}
.hero__photo figcaption strong { font-family: var(--font-head); font-size: 1.05rem; }
.hero__photo figcaption span { font-size: .88rem; color: #C9D8EE; }

/* ---------- Faixa "para quem" ---------- */
.strip { border-block: 1px solid var(--line-dark); background: var(--navy-950); }
.strip__inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 22px; }
.strip p { margin: 0; font-weight: 600; font-family: var(--font-head); font-size: .95rem; }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.strip li {
  padding: .3em .85em; border-radius: 999px;
  border: 1px solid var(--line-dark); color: var(--text-muted); font-size: .88rem;
}

/* ---------- Seções ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--navy-800); }
.section--light { background: var(--light); color: var(--ink); }
.section--light p { color: var(--ink-muted); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--text-muted); font-size: 1.1rem; }
.kicker {
  display: inline-block; margin-bottom: .9rem;
  font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light);
}
.section--light .kicker { color: var(--blue); }

/* ---------- Comparação ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); }
.compare__col h3 { margin-bottom: 1.2em; }
.compare__col li { display: flex; gap: 12px; padding: 10px 0; color: var(--text-muted); }
.compare__col .icon { margin-top: .25em; }
.compare__col--bad { background: rgba(255, 255, 255, .02); }
.compare__col--bad .icon { color: #F07A7A; }
.compare__col--good {
  background: linear-gradient(160deg, rgba(47, 111, 237, .22), rgba(17, 65, 140, .1));
  border-color: rgba(111, 164, 255, .3);
}
.compare__col--good li { color: var(--text); }
.compare__col--good .icon { color: var(--cyan); }

/* ---------- Quem sou ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 45% 30%; }
.about__stats { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin: 1.6rem 0 0; }
.about__stats div { padding: 14px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); }
.about__stats dt { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--blue); line-height: 1.3; }
.about__stats dd { margin: 0; font-size: .9rem; color: var(--ink-muted); }
.about__list { display: grid; gap: 12px; margin: 1.6rem 0 2rem; }
.about__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about__list .icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #E3ECFB; color: var(--blue); }

/* ---------- Cards de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-dark);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(111, 164, 255, .4); }
.card__icon {
  width: 52px; height: 52px; margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--brand)); color: #fff;
}
.card__icon .icon { width: 24px; height: 24px; }
.card p { color: var(--text-muted); font-size: .96rem; flex: 1; }
.card__link { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--blue-light); text-decoration: none; }
.card__link span { display: inline-block; transition: transform .2s ease; }
.card__link:hover span { transform: translateX(4px); }

/* ---------- O que está incluso ---------- */
.included { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.included__intro p { color: var(--text-muted); margin-bottom: 1.8rem; }
.included__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.included__grid li {
  display: flex; gap: 14px; padding: 20px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark);
}
.included__grid .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--cyan); }
.included__grid strong { display: block; font-family: var(--font-head); font-weight: 600; }
.included__grid span { font-size: .92rem; color: var(--text-muted); }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: var(--navy-800); }
.steps__n {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { color: var(--text-muted); font-size: .95rem; margin: 0; }

.video { max-width: 760px; margin: 64px auto 0; }
.video__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: var(--navy-950);
  box-shadow: var(--shadow);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__facade { display: block; width: 100%; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video__facade:hover img { transform: scale(1.03); }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: #fff;
  box-shadow: 0 0 0 10px rgba(47, 111, 237, .25), var(--shadow);
  transition: transform .2s ease;
}
.video__play svg { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; }
.video__facade:hover .video__play { transform: scale(1.08); }

/* ---------- Portfólio ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #000; }
.case img { width: 100%; aspect-ratio: 816 / 860; object-fit: cover; object-position: top; transition: transform .6s ease; }
.case:hover img { transform: scale(1.04); }
.case figcaption {
  position: relative; z-index: 1; padding: 20px 28px 24px;
  background: #0A0F17; border-top: 1px solid rgba(255, 255, 255, .08); color: #fff;
}
.case figcaption span { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); font-weight: 600; }
.case figcaption strong { font-family: var(--font-head); font-size: 1.4rem; }

.cases__cta { margin-top: 48px; }

/* ---------- Depoimentos ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  margin: 0; padding: 32px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.quote h3 { margin-bottom: .6em; }
.quote p { margin: 0; color: var(--text-muted); }

/* ---------- Dúvidas ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__intro p { margin-bottom: 1.8rem; }
.faq__list details { border-bottom: 1px solid var(--line-light); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex-shrink: 0;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: #E3ECFB; color: var(--blue); font-size: 1.3rem; font-weight: 500;
  transition: transform .25s ease;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 48px 22px 0; margin: 0; }

/* ---------- Chamada final ---------- */
.cta {
  position: relative; overflow: hidden; padding: 110px 0;
  background:
    radial-gradient(60% 80% at 85% 50%, rgba(79, 209, 232, .18), transparent 70%),
    linear-gradient(135deg, var(--brand), #0A2A66 60%, var(--navy-900));
}
.cta__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cta__text p { color: #C9D8EE; font-size: 1.1rem; }
.kicker--light { color: var(--cyan); }
.cta__actions { margin: 2rem 0; }
.cta__contacts { display: grid; gap: 10px; }
.cta__contacts li { display: flex; align-items: center; gap: 10px; }
.cta__contacts a { text-decoration: none; color: #DCE7F8; }
.cta__contacts a:hover { color: #fff; text-decoration: underline; }
.cta__contacts .icon { color: var(--cyan); }
.cta__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3.6; object-fit: cover; object-position: 60% 30%; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-950); padding: 48px 0; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer__inner img { height: 32px; width: auto; }
.footer p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.footer__copy { margin-left: auto !important; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 32px; height: 32px; }

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

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

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .included { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .section { padding: 80px 0; }

  .header__cta { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--navy-950); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .header { background: rgba(5, 15, 28, .97); }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .nav__cta-mobile { display: block; }

  .hero { display: block; min-height: 0; }
  .hero__inner { padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }
  .hero__text { max-width: none; }
  .hero__photo { position: relative; width: 100%; aspect-ratio: 4 / 4.3; }
  .hero__photo figcaption { left: var(--gutter); bottom: 20px; }

  .compare, .about, .cases, .quotes, .faq, .cta__inner { grid-template-columns: 1fr; }
  .about, .faq, .cta__inner { gap: 40px; }
  .faq__intro { position: static; }
  .footer__copy { margin-left: 0 !important; width: 100%; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .cards, .steps, .included__grid, .about__stats { grid-template-columns: 1fr; }
  .compare__col, .quote { padding: 26px 22px; }
  .hero__actions .btn { width: 100%; }
  .strip__inner { justify-content: center; text-align: center; }
  .strip ul { justify-content: center; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
