/* Jamep — componentes e seções */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 18px;
  transition: padding 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.site-header.is-scrolled { padding-block: 12px; box-shadow: var(--shadow-tight); }
.site-header.is-scrolled::before { opacity: 0.96; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; }
.logo svg { width: 132px; height: auto; }

.nav__list {
  display: none;
  align-items: center;
  gap: 34px;
  font-size: var(--step--1);
  font-weight: 600;
}
.nav__list a { position: relative; padding-block: 4px; }
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--amber);
  transition: right 0.2s var(--ease);
}
.nav__list a:hover::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--paper);
  padding: 100px 28px 40px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  z-index: 90;
}
.nav__panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__panel .nav__list {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px; font-size: var(--step-2);
}
.nav__panel .nav__cta { margin-top: 34px; }

@media (min-width: 900px) {
  .nav__toggle, .nav__panel { display: none; }
  .nav__list { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(150px, 22vw, 210px);
  padding-bottom: var(--gap-section);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.hero__copy .lede { margin-top: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__meta {
  display: flex; gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__meta-item { font-size: var(--step--1); color: var(--slate); max-width: 22ch; }
.hero__meta-item strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; }

.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--gap-section); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--amber-light); }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head .lede { margin-top: 14px; }
.section--dark .lede { color: #B9BECF; }

/* ---------- Sobre / stats ---------- */
.about__grid { display: grid; gap: 44px; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat { background: var(--paper-2); padding: 26px 22px; }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--amber); }
.stat span { font-size: var(--step--1); color: var(--slate); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Serviços ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-card {
  background: var(--paper-2);
  padding: 30px 26px;
  transition: background 0.2s var(--ease);
}
.service-card:hover { background: #FCFAF4; }
.service-card__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: var(--step-0); margin-bottom: 8px; }
.service-card p { font-size: var(--step--1); color: var(--slate); }

/* ---------- Consultoria PM ---------- */
.consulting__grid { display: grid; gap: 44px; }
.deliverables { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-md); overflow: hidden; }
.deliverable {
  background: var(--ink-2);
  padding: 20px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.deliverable__mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--amber); color: var(--amber-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
}
.deliverable strong { display: block; font-size: var(--step-0); margin-bottom: 3px; }
.deliverable span { font-size: var(--step--1); color: #A6ABC0; }

@media (min-width: 900px) {
  .consulting__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Como trabalhamos ---------- */
.process__list {
  display: grid;
  gap: 40px;
  counter-reset: step;
}
.process__step { position: relative; padding-left: 60px; }
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  color: var(--amber);
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.process__step h3 { margin-bottom: 8px; }
.process__step p { color: var(--slate); font-size: var(--step--1); max-width: 46ch; }

@media (min-width: 900px) {
  .process__list { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .process__step { padding-left: 0; padding-top: 58px; }
  .process__step::before { left: 0; top: 0; }
  .process__list::after { content: none; }
}

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.diff-item { display: flex; gap: 16px; align-items: flex-start; }
.diff-item__icon {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--amber-light);
  display: flex; align-items: center; justify-content: center;
}
.diff-item__icon svg { width: 20px; height: 20px; }
.diff-item h3 { font-size: var(--step-0); margin-bottom: 6px; }
.diff-item p { font-size: var(--step--1); color: var(--slate); }

/* ---------- Tecnologias ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  background: var(--paper-2);
}

/* ---------- Depoimentos (placeholder honesto) ---------- */
.testimonials-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  color: var(--slate);
}
.testimonials-placeholder svg { margin-inline: auto; margin-bottom: 16px; width: 34px; height: 34px; color: var(--amber); }
.testimonials-placeholder strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 6px; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; gap: 48px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info__item strong { display: block; font-family: var(--font-display); font-size: var(--step-0); margin-bottom: 4px; }
.contact-info__item a, .contact-info__item span { color: var(--slate); font-size: var(--step--1); }
.contact-info__item a:hover { color: var(--amber); }
.social-list { display: flex; gap: 12px; margin-top: 6px; }
.social-list a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social-list a:hover { border-color: var(--amber); color: var(--amber); }
.social-list svg { width: 17px; height: 17px; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.form__field { display: grid; gap: 6px; }
.form__field input,
.form__field select,
.form__field textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field .field-error {
  font-size: 12.5px; color: #B0524A; min-height: 1em;
}
.form__status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: var(--step--1);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-success { background: #E8F0E9; color: var(--good); }
.form__status.is-error { background: #F6E7E4; color: #B0524A; }

@media (min-width: 640px) {
  .form__row--split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 0.8fr 1.2fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 64px 32px; }
.footer__grid { display: grid; gap: 40px; margin-bottom: 48px; }
.footer__brand svg { width: 128px; height: auto; margin-bottom: 16px; }
.footer__brand p { color: #A6ABC0; font-size: var(--step--1); max-width: 32ch; }
.footer__col h4 { font-family: var(--font-display); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: #A6ABC0; }
.footer__col ul { display: grid; gap: 10px; font-size: var(--step--1); }
.footer__col a:hover { color: var(--amber-light); }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; color: #8A90A6;
}

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Floating controls ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--good); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-tight);
  transition: transform 0.2s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.04); }
.whatsapp-fab svg { width: 26px; height: 26px; }

.back-to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-tight);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .whatsapp-fab, .back-to-top { right: 16px; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
