/* S4 Serra & Vale Imóveis — CSS próprio, mobile first (chão 360 px) */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --papel: #F6F1E8;
  --tinta: #1C1917;
  --terracota: #C45C26;
  --terracota-hover: #A84B1D;
  --verde: #3D4F3A;
  --branco: #FFFFFF;
  --linha: #DDD4C5;
  --apoio: #4A443F;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --raio: 4px;
  --header: 56px;
}

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--verde);
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--verde);
  margin: 0 0 0.45em;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700;
  font-size: 29px;
  line-height: 1.12;
}

h2 {
  font-weight: 600;
  font-size: 25px;
  line-height: 1.16;
}

h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.24;
}

/* Única palavra em terracota na home */
.destaque {
  font-style: normal;
  color: var(--terracota);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--apoio);
  max-width: 40em;
}

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

/* Botões retangulares — zero pílulas */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 10px 20px;
  background: var(--terracota);
  color: var(--branco);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: var(--raio);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--terracota-hover);
}

.btn-line {
  background: transparent;
  color: var(--verde);
  box-shadow: inset 0 0 0 2px var(--verde);
}

.btn-line:hover {
  background: rgba(61, 79, 58, 0.08);
}

.btn-full {
  display: flex;
  width: 100%;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--verde);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.more::after {
  content: "→";
  margin-left: 6px;
  text-decoration: none;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 2px;
}

.acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* Header sticky <= 64px */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--papel);
  box-shadow: 0 1px 0 var(--linha);
}

.top-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  color: var(--tinta);
  margin-right: auto;
  line-height: 1.05;
}

.logo b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--verde);
}

.logo span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--apoio);
}

.top-nav {
  display: none;
}

.btn-top {
  min-height: 44px;
  padding: 0 13px;
  font-size: 14px;
  white-space: nowrap;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tinta);
}

.drawer {
  display: none;
  background: var(--papel);
  border-bottom: 2px solid var(--verde);
  padding: 8px 16px 16px;
}

.drawer.is-open {
  display: block;
}

.drawer a {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-weight: 500;
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px solid var(--linha);
}

.drawer a:last-child {
  border-bottom: 0;
}

.drawer .drawer-cta {
  margin-top: 12px;
  background: var(--terracota);
  color: var(--branco);
  justify-content: center;
  font-weight: 600;
  border-radius: var(--raio);
  border-bottom: 0;
}

/* Herói da Home — foto grande de rua/serra + peça na 1ª tela */
.hero {
  border-bottom: 1px solid var(--linha);
  padding-bottom: 28px;
}

.hero-media {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  object-position: center 42%;
}

.hero-grid {
  display: grid;
  gap: 18px;
  padding-top: 16px;
}

.hero-card h1 {
  margin-bottom: 10px;
}

.hero-card .lede {
  margin-bottom: 0;
}

/* Caixa da peça: Quanto vale meu imóvel */
.eval-box {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 18px 16px;
}

.eval-box h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.eval-sub {
  font-size: 15px;
  color: var(--apoio);
  margin-bottom: 14px;
}

.eval-fields {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tinta);
  margin-bottom: 4px;
}

.field select,
.field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}

.eval-erro {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--papel);
  border-left: 3px solid var(--verde);
  color: var(--tinta);
  font-size: 14px;
  font-weight: 500;
}

.eval-fields .btn {
  margin-top: 4px;
}

/* Seções gerais */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--linha);
}

.section-head {
  margin-bottom: 24px;
}

.section-head p {
  color: var(--apoio);
  max-width: 44em;
}

/* Cabeçalhos de páginas internas */
.page-head {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--linha);
}

.page-split {
  display: grid;
  gap: 20px;
  align-items: center;
}

.page-split-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--raio);
}

/* Grade de estoque e cards de imóveis */
.imoveis-grid {
  display: grid;
  gap: 20px;
}

.imovel-card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.imovel-card[hidden] {
  display: none;
}

.imovel-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.imovel-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.imovel-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--apoio);
  margin-bottom: 6px;
}

.imovel-preco {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--verde);
  margin-bottom: 10px;
}

.imovel-body p {
  color: var(--apoio);
  font-size: 15px;
}

.imovel-acts {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Filtro de estoque sem pílulas */
.filtro-bar {
  margin-top: 20px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 16px;
}

.filtro-grid {
  display: grid;
  gap: 12px;
}

.filtro-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apoio);
}

.estoque-vazio {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 24px 18px;
  margin-top: 16px;
}

/* Galeria e ficha de imóvel (casa-centro.html) */
.ficha-topo {
  padding: 24px 0;
  border-bottom: 1px solid var(--linha);
}

.ficha-preco-linha {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--verde);
  margin: 10px 0 6px;
}

.ficha-resumo {
  font-size: 15px;
  font-weight: 500;
  color: var(--apoio);
  margin-bottom: 12px;
}

.galeria-box {
  display: grid;
  gap: 12px;
}

.galeria-main {
  margin: 0;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
}

.galeria-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.galeria-main figcaption {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--apoio);
}

.galeria-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gal-thumb {
  padding: 0;
  min-height: 64px;
  min-width: 44px;
  background: var(--branco);
  border: 2px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  cursor: pointer;
}

.gal-thumb[aria-pressed="true"] {
  border-color: var(--verde);
}

.gal-thumb img {
  width: 100%;
  height: 68px;
  object-fit: cover;
}

.ficha-layout {
  display: grid;
  gap: 28px;
}

.ficha-dl {
  margin: 0;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 18px 16px;
}

.ficha-dl div {
  padding: 10px 0;
  border-bottom: 1px solid var(--linha);
}

.ficha-dl div:first-child {
  padding-top: 0;
}

.ficha-dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ficha-dl dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--apoio);
}

.ficha-dl dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--tinta);
}

/* Cards de bairros */
.bairros-grid {
  display: grid;
  gap: 20px;
}

.bairro-card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bairro-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.bairro-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bairro-body p {
  color: var(--apoio);
}

.bairro-body .acts {
  margin-top: auto;
  padding-top: 12px;
}

/* Lista de outros bairros */
.bairros-lista {
  border-top: 1px solid var(--linha);
}

.bairro-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
  display: grid;
  gap: 8px;
}

/* Trio de colunas informativas (sem numerais 01/02/03) */
.trio {
  display: grid;
  gap: 18px;
}

.trio-col {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 18px 16px;
}

.trio-col p {
  color: var(--apoio);
  font-size: 15px;
}

/* Lista de pontos/compromissos limpa */
.pontos {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  gap: 12px;
}

.pontos li {
  position: relative;
  padding-left: 18px;
}

.pontos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: currentColor;
}

/* Banda verde-serra (1 dos no máximo 2 blocos verdes da página) */
.banda-serra {
  background: var(--verde);
  color: var(--papel);
  padding: 40px 0;
}

.banda-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.banda-serra h2 {
  color: var(--papel);
}

.banda-serra p {
  color: rgba(246, 241, 232, 0.9);
}

.banda-serra img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--raio);
}

.banda-serra .btn-line {
  color: var(--papel);
  box-shadow: inset 0 0 0 2px var(--papel);
}

.banda-serra .btn-line:hover {
  background: rgba(246, 241, 232, 0.12);
}

/* Bloco de contato / fachada / sobre */
.split-bloco {
  display: grid;
  gap: 24px;
  align-items: center;
}

.split-bloco img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--raio);
}

.dados-local {
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  font-size: 15px;
}

/* Texto jurídico (politica.html) */
.prosa {
  max-width: 740px;
}

.prosa h2 {
  margin-top: 28px;
  font-size: 22px;
}

/* Rodapé verde-serra */
.foot {
  background: var(--verde);
  color: var(--papel);
  padding: 40px 0 24px;
}

.foot-grid {
  display: grid;
  gap: 28px;
}

.foot-brand {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--papel);
  margin-bottom: 10px;
}

.foot p {
  color: rgba(246, 241, 232, 0.88);
  font-size: 15px;
}

.foot-col h3 {
  color: var(--papel);
  font-size: 18px;
  margin-bottom: 8px;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--papel);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 15px;
}

.foot-bar {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 232, 0.22);
  font-size: 14px;
  color: rgba(246, 241, 232, 0.8);
}

/* Breakpoint intermediário >= 720px */
@media (min-width: 720px) {
  .wrap {
    padding: 0 24px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .logo {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .logo b {
    font-size: 23px;
  }

  .logo span {
    font-size: 14px;
  }

  .acts {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .acts .btn-full {
    width: auto;
  }

  .hero-media img {
    height: 300px;
  }

  .imoveis-grid,
  .bairros-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .gal-thumb img {
    height: 92px;
  }
}

/* Breakpoint desktop >= 1024px */
@media (min-width: 1024px) {
  :root {
    --header: 64px;
  }

  body {
    font-size: 17px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 35px;
  }

  h3 {
    font-size: 22px;
  }

  .top-in {
    padding: 0 24px;
    gap: 20px;
  }

  .burger,
  .drawer,
  .drawer.is-open {
    display: none;
  }

  .top-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .top-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--tinta);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-radius: var(--raio);
  }

  .top-nav a:hover,
  .top-nav a[aria-current="page"] {
    color: var(--verde);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
  }

  .btn-top {
    padding: 0 18px;
    font-size: 15px;
  }

  /* Herói desktop: foto ampla + card editorial e caixa de avaliação na 1ª tela */
  .hero {
    padding-bottom: 36px;
  }

  .hero-media img {
    height: 360px;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 28px;
    align-items: start;
    margin-top: -96px;
    position: relative;
    z-index: 2;
  }

  .hero-card {
    background: var(--papel);
    border: 1px solid var(--linha);
    border-radius: var(--raio);
    padding: 26px 28px;
  }

  .eval-box {
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(28, 25, 23, 0.08);
  }

  .eval-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .page-head {
    padding: 40px 0 36px;
  }

  .page-split {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
  }

  .banda-serra {
    padding: 56px 0;
  }

  .banda-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }

  .split-bloco {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .ficha-layout {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 36px;
    align-items: start;
  }

  .galeria-box {
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: start;
  }

  .galeria-thumbs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gal-thumb img {
    height: 136px;
  }

  .bairro-item {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
  }

  .foot {
    padding: 52px 0 28px;
  }

  .foot-grid {
    grid-template-columns: 1.35fr 0.85fr 1.15fr 0.85fr;
    gap: 32px;
  }
}
