/* Dataffairs shared base styles */

/* Source: main.css */
:root {
  --white: #fff;
  --black: #000;
  --text: #605C5D;
  --text-light: #807B76;
  --primary: #D82255;
  --primary-1: #D822551A;
  --primary-3: #D822554D;
  
  --menu-bg: #000000e6;
  --dialog-bg: #0000004d;
  --dropdown-bg: #D822550D;
  --section-bg: #FAFAFA;
  --equipe-bg: #F1F1F1;
  --servico-bg: #F3F3F3;
  --input-border: #EBEAED;
  --separator: #DBDBDB;
  --placeholder: #9E9B98;

  --size-xs: .5rem;
  --size-xsm: .75rem;
  --size-sm: 1rem;
  --size-smd: 1.5rem;
  --size-md: 2rem;
  --size-xmd: 2.5rem;
  --size-lg: 3rem;
  --size-xl: 4rem;
  --size-xxl: 6rem;
  --size-xxxl: 7rem;

  --hero-pd-top: 8rem;
  --hero-pd-bot: 8rem;

  --font: 'Poppins', sans-serif;
  --fw-normal: 400;
  --fw-bold: 500;
  --fw-bolder: 600;
}

html,
body {
  font-family: var(--font);
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--primary);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: var(--size-sm);
}

.titulo {
  color: var(--primary);
  font-size: var(--size-smd);
  font-weight: var(--fw-bolder);
  line-height: 1.2;
  margin-bottom: var(--size-md);
}

.descricao {
  color: var(--text);
  font-size: var(--size-sm);
  font-weight: var(--fw-normal);
}

.btn {
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: calc(var(--size-xs) - 2px);
  padding: var(--size-xs) var(--size-sm);
  font-size: var(--size-sm);
  color: var(--primary);
  cursor: pointer;
  text-transform: none;
}

.btn:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  border-color: var(--white);
  color: var(--white);
}

.btn-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-fill {
  background: var(--primary);
  color: var(--white);
}

.btn-fill:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-default {
  background: transparent;
  border: none;
}

.btn-default:hover {
  background: transparent;
  border: none;
}

.icone {
  width: var(--size-sm);
}

:-moz-focusring {
  outline: unset;
}

@media only screen and (min-width: 524px) {
  .container {
    max-width: 90vw;
  }
}

@media only screen and (min-width: 1000px) {
  .container {
    padding: 0 var(--size-lg);
    max-width: 80vw;
  }

  .titulo {
    font-size: var(--size-md);
  }

  .descricao {
    font-size: var(--size-sm);
  }
}

@media only screen and (min-width: 1400px) {
  .container {
    width: 80vw;
    max-width: 1440px;
  }
}

/* Mobile resilience */
html { overflow-x: clip; }
body { min-width: 0; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
nav-bar, nav-footer { display: block; }
main, section, article, aside, header, footer, form { min-width: 0; }
@media (max-width: 523px) {
  .container { padding-left: 1.125rem; padding-right: 1.125rem; }
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; }
}

/* Source: page.css */
.hero {
  background-color: var(--primary);
  padding-block: var(--size-md);
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero .titulo {
  margin-bottom: var(--size-sm);
}

.hero .sub-titulo {
  font-weight: var(--fw-normal);
  max-width: 60%;
}

.hero .titulo,
.hero .sub-titulo {
  color: var(--white);
}

.metodologia,
.equipe,
.servicos,
.projetos,
.projeto,
.contato {
  padding-block: var(--size-md);
  background-color: var(--section-bg);
}

@media only screen and (min-width: 1000px) {
  .hero {
    padding-block: var(--size-xxxl);
  }
}

/* Source: card.css */
.cards {
  display: grid;
  place-items: center;
  gap: var(--size-xmd);
  margin-block: var(--size-lg);
}

.card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image {
  position: relative;
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
}

.card:hover ::before {
  background-color: transparent;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  background-color: var(--white);
  padding: var(--size-sm) var(--size-smd);
  height: 100%;
  display: grid;
  grid-template-rows: min-content;
}

.card-title {
  font-size: var(--size-smd);
  line-height: 1;
  color: var(--text);
}

.card-text {
  margin-top: var(--size-sm);
  font-weight: var(--fw-normal);
  line-height: 1.5;
  color: var(--text);
}

.card-actions {
  margin-top: var(--size-sm);
  align-self: end;
}

@media only screen and (min-width: 624px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 1000px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Source: agradecimento.css */
.agradecimento { min-height: 70vh; display: grid; align-items: center; background: linear-gradient(135deg, var(--primary-1), #fff 48%); }
.agradecimento .container { padding-block: var(--size-xl); }
.agradecimento-card { max-width: 860px; padding: clamp(28px, 6vw, 64px); border: 1px solid #ecebed; border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgba(63,48,53,.08); }
.agradecimento-kicker { display: inline-block; margin-bottom: 12px; color: var(--primary); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.agradecimento h1 { margin-bottom: 18px; color: var(--primary); font-size: clamp(2.15rem, 4.4vw, 3.65rem); line-height: 1.05; }
.agradecimento p { max-width: 720px; color: var(--text); line-height: 1.75; }
.agradecimento-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.agradecimento-alternativo { font-size: 14px; }
