/*
  IBT — Instituto Brasileiro de Teatro
  Design System — Estilos Base e Componentes
  Atualizado com os componentes do Figma (node 63:373)
*/

@import url("tokens.css");
@import url("typography.css");

/* ─── RESET ────────────────────────────────────────────────── */

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line-height);
  letter-spacing: var(--text-body-lg-tracking);
  font-weight: var(--font-weight-regular);
  color: var(--color-brown);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}

.footer {
  margin-top: auto;
}

img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ─── LAYOUT ───────────────────────────────────────────────── */

.section {
  width: 100%;
  min-height: var(--section-height);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section--off-white {
  background-color: var(--color-off-white);
  color: var(--color-brown);
}
.section--dark {
  background-color: var(--color-brown);
  color: var(--color-off-white);
}
.section--orange {
  background-color: var(--color-orange);
  color: var(--color-brown);
}
.section--white {
  background-color: var(--color-white);
  color: var(--color-brown);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   Figma: bg #FF4D02 · h 34px · px 76px
   Links: #E7E7DD · bold · 16px · hover: underline
   ══════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  width: 100%;
  height: 34px;
  background-color: var(--color-orange);

  padding-inline: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* botão escondido no desktop */
.navbar__toggle {
  display: none;
}

/* menu normal */
.navbar__menu {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.navbar__link {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-off-white);
  text-decoration: none;
}

.navbar__link:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   BOTÃO PRIMARY
   Figma:
   • Default → bg laranja · texto off-white · arrow ↘
   • Hover   → bg laranja · texto off-white · arrow ↗
   • Select  → bg marrom  · texto laranja   · arrow ↗
   ══════════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  background-color: var(--color-orange);
  color: var(--color-off-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.08px;
  line-height: 1;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

/* SVG arrow — base aponta → (direita)
   Default:        rotate(45deg)  → ↘
   Hover / Select: rotate(-45deg) → ↗ */
.btn-primary .btn-arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-primary .btn-arrow svg {
  transition: transform 0.15s;
  transform: rotate(45deg); /* ↘ */
}

.btn-primary:hover .btn-arrow svg,
.btn-primary--select .btn-arrow svg {
  transform: rotate(-45deg); /* ↗ */
}

/* State Select */
.btn-primary--select {
  background-color: var(--color-brown);
  color: var(--color-orange);
}

/* Variantes de tamanho */
.btn-primary--full {
  width: 100%;
  height: 51px;
}

/* Texto marrom (ex.: botões dentro de fundo laranja) */
.btn-primary--dark-text {
  color: var(--color-brown);
}

/* ══════════════════════════════════════════════════════════════
   TAG DE SERVIÇO
   Figma:
   • fundo claro  → texto #1E3F2A · linha laranja sólida abaixo
   • fundo escuro → texto branco  · linha off-white 35% abaixo
   ══════════════════════════════════════════════════════════════ */

.service-tag {
  position: relative;
  width: 348.63px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.service-tag__text {
  font-family: var(--font-body);
  font-size: 18.888px;
  line-height: 1.05;
  text-transform: uppercase;
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
  white-space: nowrap;
}

.service-tag::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.service-tag--light .service-tag__text {
  color: #1e3f2a;
}
.service-tag--light::after {
  background-color: var(--color-orange);
  opacity: 1;
}

.service-tag--dark .service-tag__text {
  color: var(--color-white);
}
.service-tag--dark::after {
  background-color: var(--color-off-white);
  opacity: 0.35;
}

/* ══════════════════════════════════════════════════════════════
   SPACE CARD
   Figma: w 272px · img 282px · título na faixa colorida
   laranja: header laranja + título marrom / body marrom + texto off-white
   marrom:  header marrom  + título laranja / body laranja + texto marrom
   ══════════════════════════════════════════════════════════════ */

.space-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 272px;
  height: 443px;
  flex-shrink: 0;
}

.space-card__img-wrap {
  width: 272px;
  height: 282px;
  overflow: hidden;
  flex-shrink: 0;
}

.space-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 55px;
  flex-shrink: 0;
  padding-inline: 12px;
  overflow: hidden;
}

.space-card__title {
  font-family: var(--font-display);
  font-size: 25.45px;
  font-weight: var(--font-weight-black);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

.space-card__tag {
  background-color: var(--color-off-white);
  color: var(--color-brown);
  font-family: var(--font-display);
  font-size: 19.09px;
  font-weight: var(--font-weight-black);
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 8px;
  width: 100%;
  white-space: nowrap;
}

.space-card__body {
  padding: 13px;
  width: 100%;
  flex: 1;
}

.space-card__body-text {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 15.91px;
  width: 246.56px;
}

/* Variante laranja */
.space-card--laranja .space-card__header {
  background-color: var(--color-orange);
}
.space-card--laranja .space-card__title {
  color: var(--color-brown);
}
.space-card--laranja .space-card__body {
  background-color: var(--color-brown);
}
.space-card--laranja .space-card__body-text {
  color: var(--color-off-white);
}

/* Variante marrom */
.space-card--marrom .space-card__header {
  background-color: var(--color-brown);
}
.space-card--marrom .space-card__title {
  color: var(--color-orange);
}
.space-card--marrom .space-card__body {
  background-color: var(--color-orange);
}
.space-card--marrom .space-card__body-text {
  color: var(--color-brown);
}

/* ══════════════════════════════════════════════════════════════
   ÍCONE DE INFRAESTRUTURA
   Figma: círculo off-white 78×78px · ícone centralizado
   texto 20px off-white abaixo · width 220px
   ══════════════════════════════════════════════════════════════ */

.infra-sticker {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 220px;
  flex-shrink: 0;
}

.infra-icon {
  width: 78px;
  height: 78px;
  border-radius: 200px;
  background-color: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.infra-sticker__text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.05;
  color: var(--color-off-white);
  width: 220px;
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
}

/* ══════════════════════════════════════════════════════════════
   ACCORDION (FAQ)
   Figma: texto e bordas cor marrom #572C00
   Close: h 60px · border-top · pergunta + arrow laranja ↘
   Open:  border-top · pergunta + arrow ↗ · content panel branco
   Arrow: 24px container
   ══════════════════════════════════════════════════════════════ */

.accordion {
  display: flex;
  flex-direction: column;
  width: 736px;
  border-bottom: 1px solid var(--color-brown);
}

.accordion__item {
  border-top: 1px solid var(--color-brown);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 2px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion__question {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-brown);
}

.accordion__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-orange);
}

.accordion__arrow svg {
  transition: transform 0.2s;
  transform: rotate(45deg); /* ↘ fechado */
}

.accordion__item--open .accordion__arrow svg {
  transform: rotate(-45deg); /* ↗ aberto */
}

.accordion__content {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-brown);
  padding: 17px 24px 16px;
}

.accordion__item--open .accordion__content {
  display: block;
}

.accordion__answer {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-brown);
}

/* ══════════════════════════════════════════════════════════════
   FORMULÁRIO DE ORÇAMENTO
   Figma: bg off-white · padding 32px · gap 24px · w 632px
   ══════════════════════════════════════════════════════════════ */

.form {
  background-color: var(--color-off-white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 632px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex-shrink: 0;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--color-brown);
  white-space: nowrap;
}

.form__input,
.form__select {
  height: 50px;
  width: 100%;
  border: 1px solid var(--color-brown);
  border-radius: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-brown);
  padding-inline: 16px;
  outline: none;
  appearance: none;
}

.form__input::placeholder {
  color: rgba(87, 44, 0, 0.3);
}

.form__input:focus,
.form__select:focus {
  outline: 2px solid var(--color-brown);
  outline-offset: -2px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   Figma: bg laranja · px 76px · py 24px · 4 colunas iguais
   ══════════════════════════════════════════════════════════════ */

.footer {
  background-color: var(--color-orange);
  display: flex;
  align-items: center;
  padding: 24px 76px;
  width: 100%;
}

.footer__logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.footer-logo-img {
  width: 141px;
  height: 83px;
}

.footer__address {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  letter-spacing: var(--text-body-md-tracking);
  color: var(--color-brown);
}

.footer__contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  letter-spacing: var(--text-body-md-tracking);
  color: var(--color-brown);
}

.footer__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer__social {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-link {
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line-height);
  letter-spacing: var(--text-body-md-tracking);
  color: var(--color-brown);
  text-decoration: none;
  white-space: nowrap;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   SEÇÕES DA LANDING PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ── */

.hero {
  background-color: var(--color-brown);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-left: 76px;
  height: 833px;
  overflow: hidden;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  align-items: flex-start;
  padding-top: 112px;
  padding-bottom: 56px;
  padding-right: 48px;
}

.hero__title-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 337px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--font-weight-black);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-off-white);
}

.hero__logo {
  width: 316px;
  height: 178px;
  display: block;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hero__description {
  width: 575px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-off-white);
}

.hero__photo {
  width: 1000px;
  height: 835px;
  overflow: hidden;
}

.hero__photo img,
.hero__photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1);
  pointer-events: none;
}

/* ── Espaços ── */

.espacos {
  background-color: var(--color-off-white);
  min-height: 867px;
  padding-top: 96px;
  padding-bottom: 73px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.espacos__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-inline: 76px;
}

.espacos__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-brown);
  width: 432px;
}

.espacos__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-brown);
  text-align: right;
  width: 364px;
}

.espacos__carousel {
  display: flex;
  gap: 52px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: 76px;
  padding-bottom: 4px;
  cursor: grab;
  justify-content: safe center;
}

.espacos__carousel:active {
  cursor: grabbing;
}
.espacos__carousel::-webkit-scrollbar {
  display: none;
}

/* ── Infraestrutura ── */

.infra-section {
  background-color: var(--color-brown);
  min-height: 867px;
  padding: 96px 76px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.infra-section__text {
  display: flex;
  flex-direction: column;
  gap: 333px;
  width: 512px;
  flex-shrink: 0;
}

.infra-section__tag {
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.infra-section__tag-label {
  font-family: var(--font-body);
  font-size: 18.888px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-off-white);
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
  white-space: nowrap;
}

.infra-section__tag::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-off-white);
  opacity: 0.35;
}

.infra-section__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: var(--font-weight-black);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-off-white);
}

.infra-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  grid-template-rows: repeat(2, auto);
  column-gap: 48px;
  row-gap: 56px;
  padding: 32px 0;
  flex-shrink: 0;
}

/* ── Portfólio ── */

.portfolio {
  background-color: var(--color-white);
  padding-top: 99px;
  padding-bottom: 99px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.portfolio__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
  padding-inline: 76px;
}

.portfolio__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-brown);
  text-align: center;
  width: 432px;
}

.portfolio__cards {
  display: flex;
  align-items: flex-start;
  gap: 33px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  justify-content: safe center;
  width: 100%;
  flex-shrink: 0;
  cursor: grab;
  padding-inline: 76px;
  box-sizing: border-box;
}

.portfolio__cards:active {
  cursor: grabbing;
}
.portfolio__cards::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 354px;
  flex-shrink: 0;
}

.portfolio-card__img {
  height: 300px;
  width: 100%;
  overflow: hidden;
}

.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--color-brown);
}

.portfolio-card__name {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
}

.portfolio-card__info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.05;
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
}

/* ── Operação ── */

.operacao {
  background-color: var(--color-off-white);
  min-height: 867px;
  padding: 96px 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.operacao__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operacao__label {
  font-family: var(--font-body);
  font-size: 30px;
  line-height: 1.05;
  color: var(--color-brown);
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
}

.operacao__title {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: var(--font-weight-black);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-brown);
}

.operacao__tags-wrap {
  display: flex;
  flex-direction: column;
  gap: 71px;
}

.operacao__tags-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 81px;
}

.operacao__tags-row .service-tag {
  width: 100%;
}

.operacao__footer-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-brown);
}

/* ── Localização ── */

.localizacao {
  background-color: var(--color-brown);
  padding-left: 76px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

.localizacao__content {
  display: flex;
  flex-direction: column;
  gap: 127px;
  width: 531px;
  flex-shrink: 0;
  padding: 96px 0;
}

.localizacao__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: var(--font-weight-black);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-off-white);
  margin-right: 20px;
}

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

.localizacao__street {
  font-family: var(--font-body);
  font-size: 18.888px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-off-white);
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
  white-space: nowrap;
  margin-bottom: 16px;
}

.localizacao__divider {
  width: 348px;
  height: 1px;
  background-color: var(--color-off-white);
  opacity: 0.35;
  margin-bottom: 16px;
}

.localizacao__city {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-off-white);
}

.localizacao__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.localizacao__access {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-off-white);
  width: 271px;
}

.localizacao__photos {
  width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 177.78%; /* 👈 100 * (16/9) */
  height: 100%;

  transform: translate(-50%, -50%);
  border: none;
}

/* ── FAQ ── */

.faq-section {
  background-color: var(--color-off-white);
  height: 749px;
  padding: 0 76px 96px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.faq-section__deco {
  position: absolute;
  right: 0;
  top: 98px;
  width: 422px;
  height: 651px;
  pointer-events: none;
}

.faq-section__deco-rect {
  position: absolute;
  width: 446px;
  height: 617px;
  left: 87px;
  top: 55px;
  transform: rotate(-18.76deg);
  transform-origin: center center;
}

.faq-section__deco-rect img {
  width: 100%;
  height: 100%;
  display: block;
}

.faq-section__deco-text {
  position: absolute;
  left: 57px;
  top: 90px;
  transform: rotate(-18.94deg);
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--color-brown);
  white-space: nowrap;
  transform-origin: left center;
}

.faq-section__deco-label {
  font-family: var(--font-body);
  font-size: 30px;
  line-height: 1.05;
  font-feature-settings:
    "onum" 1,
    "pnum" 1;
}

.faq-section__deco-title {
  font-family: var(--font-display);
  font-size: 180px;
  font-weight: var(--font-weight-black);
  line-height: 1;
  text-transform: uppercase;
}

/* ── Orçamento ── */

.orcamento {
  background-color: var(--color-brown);
  height: auto;
  padding: 96px 76px;
  display: flex;
  gap: 147px;
  align-items: center;
  justify-content: space-between;
}

.orcamento__text {
  display: flex;
  flex-direction: column;
  gap: 107px;
  width: 349px;
  flex-shrink: 0;
}

.orcamento__title {
  font-family: var(--font-display);
  font-size: 63px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-orange);
}

.orcamento__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--color-off-white);
  width: 305px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-title-xp-size);
  margin-bottom: var(--space-6);
}

.legal-page p {
  font-size: var(--text-body-lg-size);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.legal-page__cta {
  margin-top: var(--space-8);
  display: flex;
  justify-content: flex-start; /* pode trocar pra center se quiser */
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO — MOBILE FIRST
   breakpoint base: ≤ 768px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* remove barra */
  .navbar {
    background: transparent;
    height: auto;
    padding: 0;
    display: block;
  }

  /* botão flutuante */
  .navbar__toggle {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;

    width: 54px;
    height: 54px;

    border: none;
    background: none;
    padding: 0;

    cursor: pointer;
  }

  /* imagem = botão real */
  .navbar__toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* menu dropdown / lateral */
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%; /* Inicia fora da tela */
    width: 280px;
    height: 100vh; /* Altura total da tela */
    background-color: var(--color-orange);
    flex-direction: column;
    gap: 32px;
    padding: 80px 32px;
    display: flex; /* Sempre flex, controlado pelo right */
    transition: right 0.3s ease-in-out;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 150;
  }

  .navbar__menu--open {
    right: 0; /* Desliza para dentro */
  }

  .navbar__link {
    font-family: var(--font-display); /* Aplicando a fonte Nuevo Espiritu */
    font-size: 24px; /* Maior para toque no mobile */
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    width: 100%;
  }

  /* Overlay para fechar ao clicar fora */
  .navbar__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 140;
  }

  .navbar__overlay--active {
    display: block;
  }

  /* ─── HERO ─── */
  .hero {
    flex-direction: column;
    height: auto;
    padding: 100px 0 0 0;
    gap: 32px;
  }

  .hero__left {
    padding: 0 1px;
    gap: 32px;
  }

  .hero__title-group {
    width: 100%;
    margin-left: -15px;
  }

  .hero__logo {
    width: 340px; /* increased from 220px */
    height: 200px;
  }

  .hero__description {
    width: 100%;
    margin-left: -15px;
    margin-bottom: 15px;
  }

  .hero__photo {
    width: 120%;
    height: 420px;
    margin-left: -50px;
  }

  .hero__bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .hero__bottom .btn-primary {
    justify-content: center;
    font-size: 16px;
    margin-left: 70px;
  }

  /* ─── ESPAÇOS ─── */
  .espacos {
    padding: 64px 16px;
    gap: 32px;
    min-height: auto; /* Remove altura mínima do desktop */
    justify-content: flex-start; /* Remove o space-between */
  }

  .espacos__header {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  .espacos__title {
    width: 100%;
    max-width: 500px;
    line-height: 1;
    font-size: 28px;
    text-align: center;
    text-wrap: balance;
  }

  .espacos__desc {
    width: 100%;
    margin-bottom: 24px;
    text-align: center;
  }

  .espacos__carousel {
    margin-top: 8px;
    padding-inline: 0;
    gap: 16px;
    margin-top: -40px;
  }

  /* ─── INFRA ─── */
  .infra-section {
    flex-direction: column;
    padding: 64px 16px;
    gap: 24px; /* Ajustado para um gap razoável */
    min-height: auto; /* IMPORTANTE: Remove altura mínima do desktop */
    justify-content: flex-start; /* IMPORTANTE: Remove o space-between */
    align-items: flex-start; /* Garante alinhamento à esquerda no mobile */
  }

  .infra-section__text {
    width: 100%;
    gap: 12px; /* Reduzido do gap massivo de 333px do desktop */
  }

  .infra-section__title {
    font-size: 30px;
  }

  .infra-section__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 24px;
    margin-top: 0;
    padding: 0;
  }

  .infra-sticker {
    width: 100%;
  }

  .infra-sticker__text {
    width: 100%;
    font-size: 14px;
  }

  /* ─── PORTFOLIO ─── */
  .portfolio {
    padding: 64px 16px;
    gap: 48px;
  }

  .portfolio__title {
    width: 100%;
    font-size: 28px;
  }

  .portfolio__cards {
    gap: 16px;
  }

  .portfolio-card {
    width: 280px;
  }

  .portfolio-card__name {
    font-size: 24px;
  }

  /* ─── OPERAÇÃO ─── */
  .operacao {
    padding: 64px 16px;
    gap: 56px; /* Espaçamento maior entre 'a gente ajuda' e as tags no mobile */
    min-height: auto; /* Remove altura mínima de 867px */
    justify-content: flex-start; /* Remove space-between */
  }

  .operacao__header {
    gap: 8px; /* Ajuste para espaçamento entre label e título */
  }

  .operacao__label {
    font-size: 20px;
  }

  .operacao__title {
    font-size: 48px;
    margin-top: 0;
  }

  .operacao__tags-wrap {
    gap: 56px; /* Mesma proporção do gap acima — espaço entre tags e 'Monte um pacote...' */
    margin-top: 0;
  }

  .operacao__tags-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .operacao__footer-row {
    flex-direction: column;
    gap: 16px;
  }

  /* ─── LOCALIZAÇÃO ─── */
  .localizacao {
    flex-direction: column;
    padding: 64px 0 0 0; /* remove horizontal padding to make image full width */
    gap: 32px;
  }

  .localizacao__content {
    width: 100%;
    gap: 48px;
    padding: 0 16px; /* apply padding to content only */
  }

  .localizacao__title {
    font-size: 36px;
  }

  .localizacao__photos {
    width: 100%;
    height: 300px;
  }

  /* ─── FAQ ─── */
  .faq-section {
    flex-direction: column;
    height: auto;
    padding: 64px 16px;
  }

  /* ─── ACCORDION MOBILE ─── */
  .accordion {
    width: 100%;
    border-bottom: 1px solid var(--color-brown);
  }

  .accordion__item {
    border-top: 1px solid var(--color-brown);
  }

  .accordion__trigger {
    min-height: 56px;
    padding: 12px 0;
  }

  .accordion__question {
    font-size: 15px;
    line-height: 1.4;
    padding-right: 12px;
  }

  .accordion__arrow {
    width: 20px;
    height: 20px;
  }

  .accordion__arrow svg {
    width: 16px;
    height: 16px;
  }

  .accordion__content {
    padding: 12px 1 16px;
  }

  .accordion__answer {
    font-size: 15px;
    line-height: 1.5;
  }

  /* ─── CARD LATERAL ─── */
  .faq-section__deco {
    position: relative;
    margin-top: -40px;
    width: 100%;
    height: 300px;
  }

  .faq-section__deco-rect {
    position: absolute;

    width: 220px;
    height: 300px;

    left: calc(100% - 140px);
    top: 1px;

    transform: rotate(-18.76deg);
    transform-origin: center center;
  }

  .faq-section__deco-rect img {
    width: 100%;
    height: 100%;
    display: block;
  }

  .faq-section__deco-text {
    position: absolute;

    left: calc(100% - 140px);
    top: 60px;

    transform: rotate(-18.94deg);

    display: flex;
    flex-direction: column;
    gap: 12px;

    color: var(--color-brown);
    white-space: nowrap;
  }

  /* tipografia proporcional */
  .faq-section__deco-label {
    font-size: 16px;
  }

  .faq-section__deco-title {
    font-size: 64px;
  }

  /* ─── ORÇAMENTO ─── */
  .orcamento {
    flex-direction: column;
    height: auto;
    padding: 64px 16px;
    gap: 40px;
  }

  .orcamento__text {
    width: 100%;
    gap: 32px;
  }

  .orcamento__title {
    font-size: 36px;
  }

  .form {
    width: 100%;
    padding: 24px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  /* ─── LEGAL PAGE ─── */
  .legal-page {
    padding: 48px 16px;
    margin-top: 60px;
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .footer {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo address"
      "contact contact"
      "right right";

    gap: 24px;
    padding: 24px 16px;
    align-items: start;
  }

  /* ÁREAS */
  .footer__logo-wrap {
    grid-area: logo;
  }
  .footer__address {
    grid-area: address;
  }
  .footer__contact {
    grid-area: contact;
  }
  .footer__right {
    grid-area: right;
  }

  /* LOGO */
  .footer-logo-img {
    width: 120px;
    height: 80px;
  }

  /* ADDRESS */
  .footer__address {
    font-size: 14px;
    line-height: 1.4;
  }

  .footer__contact {
    display: flex;
    flex-direction: row;
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  /* Evita que iOS/Safari transforme telefone, CEP e endereço em links azuis */
  .footer__address,
  .footer__address span,
  .footer__contact,
  .footer__contact span {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    text-decoration: none;
  }

  .footer__right {
    align-items: flex-start;
    gap: 16px;
  }

  .footer__social {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-link {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════════════════════════════
   TABLET (768px → 1024px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero {
    padding-left: 32px;
  }

  .espacos__header,
  .portfolio__header {
    padding-inline: 32px;
  }

  .infra-section,
  .operacao,
  .orcamento {
    padding: 80px 32px;
  }

  .footer {
    padding: 24px 32px;
  }
}
