/* ====================================================== */
/* RESET GLOBAL                                           */
/* ====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* ====================================================== */
/* BODY                                                   */
/* ====================================================== */

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

/* ====================================================== */
/* CONTAINER                                              */
/* ====================================================== */

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.container-small {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.container-wide {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* ====================================================== */
/* SEÇÕES                                                 */
/* ====================================================== */

section {
  position: relative;
  padding: 110px 0;
}

/* separação suave entre seções */
section + section::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: min(1100px, calc(100% - 80px));
  height: 1px;

  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(68,92,109,0.10),
    transparent
  );
}

/* ====================================================== */
/* GRID PADRÃO                                            */
/* ====================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

/* ====================================================== */
/* HEADER DE SEÇÃO                                        */
/* ====================================================== */

.section-header {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 18px 0 18px;

  color: var(--text);
}

.section-header p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* ====================================================== */
/* TAGS                                                   */
/* ====================================================== */

.section-tag,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 16px;
  border-radius: 999px;

  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(68,92,109,0.10);

  color: var(--petrol);

  backdrop-filter: blur(12px);

  box-shadow:
    0 8px 20px rgba(15,23,42,0.04),
    inset 0 1px 0 rgba(255,255,255,0.75);

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ====================================================== */
/* BLOCO COM FUNDO SUAVE                                  */
/* ====================================================== */

.surface {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(68,92,109,0.08);
  border-radius: 32px;

  backdrop-filter: blur(18px);

  box-shadow:
    0 12px 30px rgba(15,23,42,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ====================================================== */
/* RESPONSIVO                                             */
/* ====================================================== */

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section {
    padding: 90px 0;
  }
}

@media (max-width: 768px) {
  .container,
  .container-small,
  .container-wide {
    width: min(100%, calc(100% - 24px));
  }

  section {
    padding: 72px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 1rem;
  }
}