/* =========================
   DESIGN TOKENS — PROINT
========================= */
:root {
  /* Marca */
  --c-primary:         #c31b25;
  --c-primary-hover:   #b01821;
  --c-secondary:       #1b4f72;
  --c-secondary-hover: #184767;

  /* Texto */
  --c-text:    #111827;
  --c-muted:   #5b6472;

  /* Fundo */
  --c-bg:      #ffffff;
  --c-bg-alt:  #f2f2f4;
  --c-dark:    #101010;

  /* Interface */
  --c-border:  #e5e7eb;

  /* Tipografia */
  --ff-base: "Titillium Web", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-md:   1rem;
  --fs-lg:   1.25rem;
  --fs-xl:   2rem;
  --fs-hero: 1.9125rem;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-base:  1.6;
  --lh-tight: 1.2;

  /* Espaçamento */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  /* Layout */
  --container: 1200px;

  /* Bordas */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);

  /* Transição */
  --transition:        0.25s ease;
  --transition-reveal: 0.6s ease;
}

/* =========================
   1. RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   2. BASE
========================= */
body {
  font-family: var(--ff-base);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

/* =========================
   3. TYPOGRAPHY
========================= */
h1,
h2,
h3,
h4 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--c-text);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

@media (min-width: 1024px) {
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2.5rem; }
}

p {
  margin-bottom: var(--space-2);
  color: var(--c-muted);
}

.text-white { color: #fff; }
.text-muted { color: var(--c-muted); }

/* =========================
   4. LAYOUT
========================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

.secao {
  padding: var(--space-5) 0;
}

.secao-alt {
  background: var(--c-bg-alt);
}

.secao-dark {
  background: var(--c-dark);
  color: #fff;
}

.secao__title {
  max-width: 800px;
  margin-bottom: var(--space-2);
}

.secao__subtitle {
  font-size: var(--fs-lg);
  max-width: 700px;
  margin-bottom: var(--space-2);
}

.secao__text {
  max-width: 800px;
  margin-bottom: var(--space-3);
}

.secao__cta {
  margin-top: var(--space-4);
}

/* =========================
   5. GRID
========================= */
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================
   6. BUTTON
========================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--c-secondary);
  border-color: var(--c-secondary);
}
.btn-secondary:hover {
  background: var(--c-secondary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* =========================
   7. CARD
========================= */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card [data-lucide] {
  color: var(--c-primary);
  width: 28px;
  height: 32px;
  margin-bottom: var(--space-2);
}

/* =========================
   8. HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

section[id] {
  scroll-margin-top: 90px;
}

.header__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.header__nav--open {
  max-height: 400px;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-2) var(--space-3);
}

.header__nav-link {
  display: block;
  padding: var(--space-1) 0;
  text-decoration: none;
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--c-text);
  transition: color var(--transition);
}

.header__nav-link:hover {
  color: var(--c-primary);
}

.header__cta {
  display: none;
}

.header__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  color: var(--c-text);
}

.header__menu-toggle [data-lucide] {
  width: 26px;
  height: 26px;
}

@media (min-width: 1024px) {
  .header__nav {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
  .header__nav-list {
    flex-direction: row;
    gap: var(--space-3);
    padding: 0;
  }
  .header__cta { display: inline-block; }
  .header__menu-toggle { display: none; }
}

/* =========================
   9. HERO
========================= */
.hero {
  position: relative;
  padding: var(--space-5) 0 var(--space-6);
  background: var(--c-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  margin-bottom: var(--space-2);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}

.hero__indicators {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.hero__indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--c-bg-alt);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.hero__indicator [data-lucide] {
  color: var(--c-primary);
  width: 16px;
  height: 16px;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: calc(var(--space-3) * -1);
  bottom: calc(var(--space-3) * -1);
  border: 3px solid var(--c-primary);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-6);
  }
  .hero__media {
    margin-right: var(--space-3);
  }
}

/* =========================
   10. CLIENTES / TRUST BAR
========================= */
.clientes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
}

.clientes__logo {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity var(--transition), filter var(--transition);
}

.clientes__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (min-width: 768px) {
  .clientes__grid { grid-template-columns: repeat(5, 1fr); }
}

/* =========================
   12. SERVIÇOS
========================= */
.servicos__card-title {
  margin-bottom: var(--space-1);
}

.servicos__card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--c-primary);
  text-decoration: none;
}

.servicos__card-link [data-lucide] {
  width: 16px;
  height: 18px;
  margin: 0;
}

.servicos__card-link:hover {
  color: var(--c-primary-hover);
}

/* =========================
   13. DIFERENCIAIS
========================= */
.diferenciais__card-title {
  margin-bottom: var(--space-1);
}

.diferenciais__card-question {
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--space-1);
}

/* =========================
   15. TECNOLOGIA
========================= */
.tecnologia__card-title {
  margin-bottom: var(--space-1);
}

/* =========================
   16. PROJETOS EM DESTAQUE
========================= */
.projetos__card img {
  border-radius: var(--radius-md);
  margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-2);
  width: calc(100% + var(--space-3) * 2);
  max-width: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.projetos__card-client {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  margin-bottom: var(--space-1);
}

.projetos__card-title {
  margin-bottom: var(--space-1);
}

/* =========================
   17. SOBRE
========================= */
.sobre__lead {
  margin-top: var(--space-4);
}

.sobre__lead-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sobre__experiencia {
  margin-top: var(--space-5);
}

.sobre__experiencia h3 {
  margin-bottom: var(--space-3);
}

.sobre__experiencia-row {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.sobre__experiencia-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 768px) {
  .sobre__experiencia-row {
    grid-template-columns: 1fr 1fr;
  }
  .sobre__experiencia-row--reverse .sobre__experiencia-img {
    order: 2;
  }
}

/* =========================
   18. PARALLAX SECTION
========================= */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.parallax-section__overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: var(--space-6) 0;
  text-align: center;
}

.parallax-section__overlay > .container {
  width: 100%;
}

.parallax-section__title {
  color: #fff;
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.parallax-section__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.parallax-section__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.parallax-section__mensagem {
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* =========================
   19. FAQ
========================= */
.faq__lista {
  margin-top: var(--space-4);
}

.faq__item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
}

.faq__item summary {
  cursor: pointer;
  font-weight: var(--fw-semibold);
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  font-weight: var(--fw-bold);
  color: var(--c-primary);
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.faq__cta {
  margin-top: var(--space-5);
  text-align: center;
  padding: var(--space-4);
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
}

.faq__cta h3 {
  margin-bottom: var(--space-1);
}

.faq__cta p {
  margin-bottom: var(--space-3);
}

/* =========================
   20. CONTATO
========================= */
.contato__container {
  display: grid;
  gap: var(--space-5);
}

.contato__intro {
  display: flex;
  flex-direction: column;
}

.contato__abertura {
  margin: var(--space-3) 0;
}

.contato__info {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.contato__info li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: var(--fs-sm);
}

.contato__info [data-lucide] {
  color: var(--c-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contato__confianca {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.contato__confianca li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.contato__confianca [data-lucide] {
  color: var(--c-secondary);
  width: 18px;
  height: 18px;
}

.contato__form-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}

.contato__form-wrapper h3 {
  margin-bottom: var(--space-1);
}

.contato__form-wrapper > p {
  margin-bottom: var(--space-3);
}

.contato__form-group {
  margin-bottom: var(--space-2);
}

.contato__form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 6px;
}

.contato__form-group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-weight: var(--fw-regular);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.contato__form-group--checkbox input {
  width: auto;
  margin-top: 4px;
}

.contato__form-submit {
  width: 100%;
  text-align: center;
}

@media (min-width: 1024px) {
  .contato__container {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   21. FORM ELEMENTS
========================= */
.input,
.textarea {
  width: 100%;
  padding: 12px var(--space-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-base);
  font-size: var(--fs-sm);
  color: var(--c-text);
  background: #fff;
  transition: border-color var(--transition);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}

.textarea {
  resize: vertical;
}

/* =========================
   22. FOOTER
========================= */
.footer {
  background: var(--c-dark);
  color: #9ca3af;
  font-size: var(--fs-sm);
}

.footer__bottom {
  padding: calc(var(--space-5) / 2) 0;
}

.footer__bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--space-1) / 2);
  text-align: center;
  font-size: var(--fs-sm);
}

.footer__credits {
  color: #9ca3af;
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  transition: opacity var(--transition);
}

.footer a:hover,
.footer a:focus-visible {
  opacity: 0.8;
}

/* =========================
   23. WHATSAPP FLOAT
========================= */
.whatsapp-float {
  position: fixed;
  right: var(--space-3);
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.icon-whatsapp {
  width: 18px;
  height: 18px;
}

.whatsapp-float .icon-whatsapp {
  width: 28px;
  height: 28px;
}

/* =========================
   24. ACCESSIBILITY
========================= */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* =========================
   25. SCROLL REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
