/* Base: fontes, cores, botões, topo, hero e o corte diagonal. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }

:root {
  --vermelho: #c8102e;
  --vermelho-escuro: #a30d25;
  --grafite: #2b2b2b;
  --cinza: #d4d5d7;
  --cinza-claro: #f2f2f2;
  --branco: #fff;
  --serifa: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Barlow", Arial, Helvetica, sans-serif;
  --altura-topo: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--grafite); background: var(--branco); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serifa); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .03em; }
h2 { font-size: clamp(30px, 7vw, 48px); }
p { margin: 0 0 1em; }
a { color: inherit; }
section[id] { scroll-margin-top: var(--altura-topo); }
.miolo { width: min(1120px, 100% - 40px); margin-inline: auto; }
.centro { text-align: center; }

/* Subtítulo pequeno entre pontinhos, como na referência da serifa */
.selo { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--vermelho); margin: 0 0 .8em; }
.selo::before, .selo::after { content: " · "; }

.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 2px solid transparent; font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.botao--vermelho { background: var(--vermelho); color: var(--branco); }
.botao--vermelho:hover { background: var(--vermelho-escuro); }
.botao--escuro { background: var(--grafite); color: var(--branco); }
.botao--escuro:hover { background: #000; }
.botao--borda { border-color: var(--branco); color: var(--branco); }
.botao--borda:hover { background: var(--branco); color: var(--grafite); }
.botao--pequeno { padding: 0 14px; font-size: 14px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 2px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; height: var(--altura-topo); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--branco); border-bottom: 1px solid var(--cinza); }
.topo__logo img { height: 40px; width: auto; }
.topo__menu { width: 48px; height: 48px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.topo__menu span { width: 26px; height: 3px; background: var(--grafite); }
.topo__nav { position: absolute; top: var(--altura-topo); left: 0; right: 0; display: none; flex-direction: column; background: var(--branco); border-bottom: 1px solid var(--cinza); padding: 8px 16px 16px; }
.topo__nav.aberto { display: flex; }
.topo__nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.topo__nav .topo__tel { color: var(--branco); margin-top: 8px; }

/* Hero */
.hero { position: relative; background: #1b1b1b; color: var(--branco); min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,20,20,.88), rgba(20,20,20,.55) 60%, rgba(20,20,20,.35)); }
.hero__miolo { position: relative; z-index: 2; width: min(1120px, 100% - 40px); margin-inline: auto; padding: 64px 0 150px; }
.hero h1 { font-size: clamp(36px, 8vw, 64px); max-width: 14ch; }
.hero .selo { color: var(--branco); }
.hero__texto { max-width: 34em; font-size: 18px; }
.hero__botoes { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }

/* Corte diagonal: faixa cinza clara por trás do branco */
.corte { position: absolute; left: 0; right: 0; height: clamp(70px, 11vw, 160px); z-index: 3; pointer-events: none; }
.corte span { position: absolute; inset: 0; }
.hero .corte { bottom: -1px; }
.hero .corte span:nth-child(1) { background: var(--cinza); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.hero .corte span:nth-child(2) { background: var(--branco); clip-path: polygon(0 48%, 100% 100%, 0 100%); }
.corte--escuro { top: -1px; }
.corte--escuro span:nth-child(1) { background: var(--branco); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 38%); }
.corte--escuro span:nth-child(2) { background: var(--cinza); clip-path: polygon(0 38%, 100% 100%, 0 72%); }

@media (min-width: 900px) {
  :root { --altura-topo: 76px; }
  .topo { padding: 0 32px; }
  .topo__logo img { height: 48px; }
  .topo__menu { display: none; }
  .topo__nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 0; border: 0; }
  .topo__nav a { min-height: 48px; font-size: 15px; }
  .topo__nav .topo__tel { margin: 0; padding: 0 20px; }
  .hero { min-height: 680px; }
  .hero__botoes { flex-direction: row; max-width: none; }
}
@media (max-width: 699px) {
  .hero__foto { object-position: 62% center; }
  .hero::before { background: linear-gradient(180deg, rgba(20,20,20,.85), rgba(20,20,20,.6) 55%, rgba(20,20,20,.3)); }
}
