/* ==========================================================================
   Itaminense — Reset, tipografia e componentes compartilhados
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  background-color: var(--color-text);
  background-image: url("../images/brand/pattern.svg");
  background-repeat: repeat;
  background-size: 120px 120px;
  /* a barra utilitária fica no fluxo normal; o respiro no fim é para a
     barra de navegação flutuante não cobrir o rodapé */
  padding-bottom: 105px;
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---- Container ------------------------------------------------------- */

.container {
  width: var(--container-width);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---- Seção ----------------------------------------------------------- */

.section-padding {
  padding: var(--section-margin-top) 0 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--section-margin-top);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0;
}

.read-more {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.read-more:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.section-widgets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-widgets.fullWidth {
  width: 100%;
  margin-bottom: var(--spacing-xl);
}

/* ---- Pill button ----------------------------------------------------- */

.pill-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-button-text);
  background-color: var(--color-button);
  border: 0;
  border-radius: 20px;
  padding: 7px 18px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.pill-btn:hover,
.pill-btn.is-active {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* botão secundário, contorno */
.pill-btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ---- Utilitários ----------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}
