/* =====================================================================
   BASE — reset, tokens e escala fluida
   ---------------------------------------------------------------------
   ESCALA: tudo é dimensionado em rem. O root font-size é fluido, então
   o layout inteiro escala junto da viewport.

     tela base (design md) : 1440px  ->  root = 16px
     piso                  : ~1170px ->  root = 13px  (não encolhe mais)
     teto                  : ~2520px ->  root = 28px  (4K usa o teto)

   Para mudar a proporção global, mexa só no clamp de html{font-size}.
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 1.1111vw  =>  16px @ 1440px */
  font-size: clamp(13px, 1.1111vw, 28px);
}

/* No mobile o layout vem de um frame de 430px (Figma), então a escala troca
   de referência: 3.7209vw => 16px @ 430px. */
@media (max-width: 768px) {
  html { font-size: clamp(14px, 3.7209vw, 18px); }

  :root {
    --header-h: 3.5rem;
    --container-pad: 1.125rem;   /* 18px @430 */
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

/* ---------------------------------------------------------------- tokens */
:root {
  /* cores */
  --c-green:        #2E5045;
  --c-green-dark:   #244138;
  --c-green-light:  #3A6154;   /* traços da marca d'água */
  --c-green-forest: #2C3F34;   /* fundo da seção de arquitetura */
  --c-green-mid:    #4C6357;   /* card do depoimento */
  --c-orange:       #B86F3D;
  --c-orange-hover: #A25F32;
  --c-white:        #FFFFFF;
  --c-cream:        #F5F2EC;
  --c-beige:        #DCD7CF;   /* fundo da seção do formulário */
  --c-beige-light:  #E6E2DA;   /* cards sobre o bege */
  --c-placeholder:  #9C9C9C;
  --c-border:       #C9C3B9;

  /* tipografia
     O kit Typekit (swc5tbr) traz Brandon Grotesque só em 400 e 700, normal e
     itálico. Por isso o projeto usa apenas esses dois pesos: qualquer outro
     valor seria remapeado pelo navegador para um deles. */
  --font-base: "brandon-grotesque", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;

  /* medidas */
  --header-h: 4.5rem;          /* 72px @1440 */
  --container-w: 64rem;        /* 1024px @1440 */
  --container-pad: 1.5rem;

  /* transições */
  --t: 220ms ease;
}

/* ------------------------------------------------------------------ body */
body {
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--c-green);
  background: var(--c-white);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ------------------------------------------------------------ utilitários */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-orange);
  color: var(--c-white);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
}

/* -------------------------------------------------------------- botões */
/* Spec do Figma (componente "BT-Enviar"): 380x56, padding 14px 32px, gap 8px.
   O frame do Figma tem 1920px e a base de design aqui é 1440, então os
   valores entram multiplicados por 0.75 e convertidos para rem — assim o
   botão acompanha a escala fluida do resto da página. */
.btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;              /* 8px  */
  width: 100%;
  max-width: 17.8125rem;      /* 380px */
  height: 2.625rem;           /* 56px  */
  padding: 0.65625rem 1.5rem; /* 14px 32px */
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background-color var(--t), color var(--t), transform var(--t);
}

.btn--primary {
  background: var(--c-orange);
  color: #000000;
}
.btn--primary:hover { background: var(--c-orange-hover); }
.btn--primary:active { transform: translateY(1px); }

/* ------------------------------------- indicadores de posição (mobile) */
/* Usados pelo trilho de comodidades e pelo carrossel de depoimentos.
   Só existem no layout mobile; no desktop a navegação é por setas. */
.scroller__dots { display: none; }

@media (max-width: 768px) {
  .scroller__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
  }

  .scroller__dot {
    width: 0.6875rem;           /* 11px @430 */
    height: 0.6875rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    transition: background-color var(--t);
  }

  .scroller__dot.is-active {
    width: 1.0625rem;           /* 17px @430 */
    height: 1.0625rem;
    background: var(--c-orange);
  }
}

/* No mobile o botão ocupa a largura toda da coluna */
@media (max-width: 768px) {
  .btn {
    max-width: none;
    height: 3rem;             /* 48px @430 */
  }
}

/* -------------------------------------------- lista com bolinha (anel) */
/* Frame.png é 32x32 mas o anel ocupa só os 8px centrais (12..19), com
   moldura transparente em volta. O background em 400% recorta essa moldura:
   assim --dot-size vale o tamanho VISÍVEL do anel e o item encosta na
   margem do container, alinhado com o título da seção. */
.dot-item {
  display: flex;
  align-items: flex-start;
  gap: var(--dot-gap, 0.625rem);
}

.dot-item::before {
  content: "";
  flex: 0 0 auto;
  width: var(--dot-size, 0.5rem);
  height: var(--dot-size, 0.5rem);
  margin-top: 0.35em;      /* centraliza o anel na primeira linha */
  background-image: url("../img/Frame.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 400% 400%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
