/* YeS — site styles (v2, lean)
 * Depends on css/tokens.css (loaded first). Colors are limited to the three brand
 * colors plus off-white; every grey is an rgba of black or white.
 * Brandbook §10 (web): radius 0, no shadows, flat section backgrounds,
 * black/white/yellow rhythm.
 */

/* == 0. Site-local tokens (derived from brand tokens, site only) == */
:root {
  --site-max: 1440px;
  --nav-h: 64px;
  --line: 1px;
  --cell: var(--grid-cell);
  --focus-ring: var(--yes-yellow);
  --mark-pad-y: 0.18em;
  /* Display leading: tight, but enough that a marked line clears the descenders
     (Ç, Q) of the line above it — white glyphs must never land on yellow. */
  --leading-display: 1.22;
  --float-gap: var(--space-6);
}

/* Section colour contexts. Same declarations as .yes-light / .yes-accent in
   tokens.css, aliased onto the section classes used in the markup. */
.section--dark,
.footer {
  --color-bg: var(--yes-black);
  --color-text: var(--yes-white);
  --color-text-muted: rgba(255, 255, 255, 0.66);
  --color-border: rgba(255, 255, 255, 0.14);
  --focus-ring: var(--yes-yellow);
}

.section--light {
  --color-bg: var(--yes-white);
  --color-text: var(--yes-black);
  --color-text-muted: rgba(0, 0, 0, 0.62);
  --color-border: rgba(0, 0, 0, 0.12);
  --focus-ring: var(--yes-black);
}

.section--accent {
  --color-bg: var(--yes-yellow);
  --color-text: var(--yes-black);
  --color-text-muted: rgba(0, 0, 0, 0.7);
  --color-border: rgba(0, 0, 0, 0.16);
  --focus-ring: var(--yes-black);
}

/* == 1. Reset / base == */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--yes-black);
  color: var(--yes-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--space-4); }
h1, h2, h3 { margin: 0; font-weight: var(--fw-black); }
figure { margin: 0; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

/* Vertical padding keeps accented capitals (É, Ç) inside the yellow block —
   League Spartan draws them above the inline content box. */
mark {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: var(--mark-pad-y) var(--space-2);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Radius zero everywhere on the web (brandbook §10). Only form controls and
   buttons need this stated — no UA applies a radius to anything else. */
button, input, select { border-radius: var(--radius-web); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: calc(var(--space-4) * -6);
  z-index: 100;
  background: var(--yes-yellow);
  color: var(--yes-black);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* == 2. Layout primitives == */
.section {
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-24) 0;
}

.container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
}

.tag {
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tag__bullet {
  width: var(--space-2);
  height: var(--space-2);
  background: var(--yes-yellow);
  flex: none;
}

.h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-display);
  font-size: clamp(2rem, 1.1rem + 3.6vw, var(--text-3xl));
  margin: 0 0 var(--space-6);
}

.h2--huge { font-size: clamp(2.25rem, 0.9rem + 5.4vw, var(--text-4xl)); }

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: end;
}
.split--head { margin-bottom: var(--space-16); }

/* Grid cells */
.cell {
  position: relative;
  border: var(--line) solid var(--color-border);
}
.cell--accent { background-color: var(--yes-yellow); border-color: var(--yes-yellow); }

/* Solid fallback behind every image/video, so the cell holds if media fails. */
.cell--photo { overflow: hidden; background-color: rgba(255, 255, 255, 0.08); }
.section--light .cell--photo { background-color: rgba(0, 0, 0, 0.08); }
.cell--photo img,
.cell--photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border: var(--line) solid transparent;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.btn--primary { background: var(--yes-yellow); color: var(--yes-black); border-color: var(--yes-yellow); }
.btn--primary:hover { background: var(--yes-black); color: var(--yes-yellow); border-color: var(--yes-black); }
.section--dark .btn--primary:hover,
.nav .btn--primary:hover { background: var(--yes-white); color: var(--yes-black); border-color: var(--yes-white); }

.btn--dark { background: var(--yes-black); color: var(--yes-yellow); border-color: var(--yes-black); }
.btn--dark:hover { background: var(--yes-white); color: var(--yes-black); border-color: var(--yes-black); }

.btn--block { width: 100%; justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  border-bottom: 2px solid var(--yes-yellow);
  padding-bottom: var(--space-1);
}
.section--light .arrow-link { border-bottom-color: var(--yes-black); }
.arrow-link:hover { background: var(--yes-yellow); color: var(--yes-black); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.chip {
  display: inline-block;
  border: var(--line) solid var(--color-border);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.chip--accent {
  background: var(--yes-yellow);
  color: var(--yes-black);
  border-color: var(--yes-yellow);
  vertical-align: middle;
  margin-left: var(--space-3);
}

/* Reveal (JS-driven; visible by default when JS is off) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* == 3. Nav == */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yes-black);
  color: var(--yes-white);
  border-bottom: var(--line) solid rgba(255, 255, 255, 0.14);
}

.nav__inner {
  height: var(--nav-h);
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* 48px is the brandbook §2.4 minimum for the wordmark on its own. The 64px nav
   keeps 8px above and below it. */
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 48px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links > a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.nav__links > a:not(.btn):hover { border-bottom-color: var(--yes-yellow); }

.nav__cta { padding: var(--space-2) var(--space-4); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: var(--space-3);
  background: transparent;
  border: var(--line) solid rgba(255, 255, 255, 0.4);
  padding: var(--space-2) var(--space-3);
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wider);
  cursor: pointer;
}
.nav__toggle-bars { display: grid; gap: 4px; }
.nav__toggle-bars i { display: block; width: 18px; height: 2px; background: var(--yes-yellow); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--yes-black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-8) var(--space-6);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links > a:not(.btn) { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-xl); text-transform: uppercase; }
}

/* == 4. Hero == */
.hero { padding: var(--space-24) 0; }

.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-display);
  font-size: clamp(2.75rem, 1.1rem + 6.5vw, 6rem);
  margin: 0 0 var(--space-6);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.hero__micro {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Portrait video cell with a solid yellow cell over its bottom-left corner.
   The yellow cell sticks half outside the frame (into reserved padding), so it
   never covers more than one corner of the image. */
.hero__media {
  --bang: calc(var(--cell) * 2);
  position: relative;
  padding: 0 0 calc(var(--bang) / 2) calc(var(--bang) / 2);
}
.hero__frame { aspect-ratio: 4 / 5; }
.hero__bang {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--bang);
  height: var(--bang);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__bang span {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--yes-black);
  font-size: calc(var(--bang) * 0.8);
  line-height: 1;
  transform: translateY(0.06em);
}

/* == 5. Serviços — full-width rows, yellow on hover == */
.servico-list { border-top: var(--line) solid var(--color-border); }
.servico {
  display: grid;
  grid-template-columns: var(--cell) 1fr;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-4);
  border-bottom: var(--line) solid var(--color-border);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.servico__index {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  padding-top: var(--space-1);
}

.servico__stage {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.servico__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-display);
  font-size: clamp(2rem, 0.9rem + 4.4vw, 4.5rem);
  margin-bottom: var(--space-4);
}

.servico__promise {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.servico__desc { color: var(--color-text-muted); max-width: 62ch; }

@media (hover: hover) and (min-width: 901px) {
  .servico:hover { background: var(--yes-yellow); color: var(--yes-black); }
  .servico:hover .servico__index,
  .servico:hover .servico__stage,
  .servico:hover .servico__desc,
  .servico:hover .chip { color: var(--yes-black); }
  .servico:hover .chip { border-color: rgba(0, 0, 0, 0.3); }
  .servico:hover .chip--accent { background: var(--yes-black); color: var(--yes-yellow); border-color: var(--yes-black); }
}

/* == 6. Como funciona — three cells divided by 1px lines == */
.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line) solid var(--color-border);
  border-left: var(--line) solid var(--color-border);
  margin-top: var(--space-12);
}
.passo {
  border-right: var(--line) solid var(--color-border);
  border-bottom: var(--line) solid var(--color-border);
  padding: var(--space-8) var(--space-6);
}
.passo__index {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(var(--text-2xl), 1.5rem + 3vw, var(--text-4xl));
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--yes-yellow);
  margin-bottom: var(--space-6);
}
.passo__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}
.passo__text { margin: 0; color: var(--color-text-muted); }

.como__note {
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 72ch;
}

/* == 7. Quem faz == */
.quem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.quem__photo { aspect-ratio: 4 / 3; }

/* == 8. FAQ (native <details>) == */
.faq { border-top: var(--line) solid var(--color-border); margin-top: var(--space-8); }
.faq__item { border-bottom: var(--line) solid var(--color-border); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-2);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  font-size: clamp(1.125rem, 0.85rem + 1.1vw, var(--text-xl));
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--yes-yellow); }
.faq__sign {
  position: relative;
  flex: none;
  width: var(--space-6);
  height: var(--space-6);
  border: var(--line) solid var(--color-border);
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: var(--yes-yellow);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.faq__sign::before { width: 50%; height: 2px; }
.faq__sign::after { width: 2px; height: 50%; transition: transform var(--dur-fast) var(--ease-out); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { padding: 0 var(--space-2) var(--space-6); }
.faq__a p { margin: 0; color: var(--color-text-muted); max-width: 68ch; }

/* == 9. Contato == */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.contato__lead { font-size: var(--text-lg); max-width: 46ch; margin: 0; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  background: var(--yes-white);
  border: var(--line) solid var(--yes-black);
  padding: var(--space-8);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--yes-black);
}
.field input,
.field select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3);
  border: var(--line) solid var(--yes-black);
  background: var(--yes-white);
  color: var(--yes-black);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field select { padding-right: var(--space-8); }
.field--select { position: relative; }
.field--select::after {
  content: "\25BE";
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  line-height: 1;
  color: var(--yes-black);
  pointer-events: none;
}
.field input:focus-visible,
.field select:focus-visible { outline: 2px solid var(--yes-black); outline-offset: 0; }

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--yes-black);
  /* Column flex so the text and the fallback link stack, not run together. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.form__status:empty { display: none; }
.form__status--error { border-left: 4px solid var(--yes-black); padding-left: var(--space-3); }
.form__wa-link {
  display: inline-block;
  margin-top: var(--space-3);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--yes-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-xs);
}
.form__wa-link:hover { background: var(--yes-yellow); }

.contato__fallback { margin: var(--space-6) 0 0; font-size: var(--text-sm); }
.contato__fallback a { border-bottom: 2px solid var(--yes-black); }

/* == 10. Footer == */
.footer {
  background: var(--yes-black);
  color: var(--yes-white);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
}
.footer__logo { height: 120px; width: auto; }
.footer__contact { display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.footer__contact a { border-bottom: var(--line) solid transparent; }
.footer__contact a:hover { border-bottom-color: var(--yes-yellow); color: var(--yes-yellow); }

.footer__bottom {
  margin: var(--space-12) 0 0;
  padding-top: var(--space-6);
  border-top: var(--line) solid var(--color-border);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

/* == 11. Floating WhatsApp button == */
/* Visible without JS; with JS, shown only outside the hero and the contact
   section (js/site.js adds .is-visible). */
.wa-float {
  position: fixed;
  right: var(--float-gap);
  bottom: var(--float-gap);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--yes-yellow);
  color: var(--yes-black);
  border: var(--line) solid var(--yes-black);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.wa-float:hover { background: var(--yes-black); color: var(--yes-yellow); border-color: var(--yes-yellow); }
.wa-float:focus-visible { outline-color: var(--yes-black); }
.js .wa-float:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* == 12. Responsive == */
@media (max-width: 900px) {
  .section { padding: var(--space-16) 0; }
  .hero__grid,
  .split,
  .quem__grid,
  .contato__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .split--head { margin-bottom: var(--space-12); }
  .hero__media { max-width: 480px; }
  .passos { grid-template-columns: 1fr; }
  .servico { grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-6) var(--space-2); }
}

@media (max-width: 640px) {
  :root { --cell: 48px; --float-gap: var(--space-4); }
  .container,
  .nav__inner { padding: 0 var(--space-4); }
  .hero__cta { width: 100%; justify-content: center; }
  .form { grid-template-columns: 1fr; padding: var(--space-6); }
  .footer__logo { height: 96px; }
  .wa-float { font-size: var(--text-xs); }
}

/* == 13. Reduced motion (video autoplay is stopped in js/site.js) == */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
