/* Madrecita — palette sampled from the facade photo, lifted to sunlit values */
@font-face {
  font-family: "Rye";
  src: url("../fonts/rye-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/worksans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ochre: #c99a35;        /* the mustard wall */
  --ochre-deep: #8a6a35;   /* the wall in shade */
  --ink: #1c1e25;          /* awning + roll-up doors */
  --cream: #f1e8d2;        /* sign plate */
  --terracotta: #b4593a;   /* fret tiles */
  --brick: #9c6b4a;
  --cactus: #3f6b4a;       /* hiring-sign green */
  --sun: #d2803f;          /* banner sun */
  --gold: #d9ae3f;         /* line art on the shutters */

  --display: "Rye", "Georgia", serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.porta :focus-visible, .toldo :focus-visible, .detalhes :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); padding: .6rem 1rem; border: 2px solid var(--ink);
}
.skip:focus { top: 1rem; }

/* ---------- the sign plate (from the window/wall lettering) ---------- */
.placa {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px 26px 16px 24px / 26px 16px 24px 18px;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--ink);
  text-decoration: none;
  line-height: 1;
}
.placa--sm { font-size: 1.15rem; padding: .45rem .8rem .35rem; box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink); border-width: 2px; }
.placa--md { font-size: 1.6rem; padding: .55rem 1rem .45rem; }
.placa--xl { font-size: clamp(2.4rem, .6rem + 8.4vw, 8.5rem); padding: .18em .32em .12em; margin: .35rem 0 1.6rem; }

/* ---------- awning header ---------- */
.toldo {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 0 rgba(28,30,37,.18);
}
.toldo::after { /* awning lip */
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 22px, #2b2e38 22px 24px);
}
.toldo__inner {
  max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.toldo .placa { box-shadow: none; border-color: var(--cream); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.6rem, 2vw, 1.8rem); align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold); }
.nav__cta { background: var(--ochre); color: var(--ink) !important; padding: .45rem .9rem !important; border-radius: 999px; border: 0 !important; font-weight: 700 !important; }
.nav__cta:hover { background: var(--gold); }
@media (max-width: 760px) {
  .nav li:not(:last-child) { display: none; }
}

/* ---------- wall texture ---------- */
.parede {
  background-color: var(--ochre);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,240,200,.28), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 6vw, 5rem) max(var(--gut), calc((100vw - var(--wrap)) / 2));
}
.ladrilho {
  display: inline-block; margin: 0;
  font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); background: var(--terracotta);
  padding: .5rem .9rem .4rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 3rem; }
.hero__lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 40ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--cream); }
.btn--full { width: 100%; }

.hero__photo { position: relative; margin: 0; }
.hero__awning {
  height: 18px; margin: 0 -10px;
  background: var(--ink);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 6px 0 -2px rgba(0,0,0,.25);
}
.hero__photo picture img {
  width: 100%; aspect-ratio: 3400 / 1400; object-fit: cover;
  border: 6px solid var(--ink); border-top: 0;
}
.numero {
  position: absolute; right: -6px; bottom: -28px; margin: 0;
  font-family: var(--display); font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1;
  background: var(--cream); color: var(--ink);
  padding: .4rem .7rem .3rem; border: 3px solid var(--ink);
  transform: rotate(-3deg);
}
.numero span { font-size: .5em; vertical-align: super; margin-right: .1em; }

.hero__photo { margin-bottom: 1.5rem; }
@media (max-width: 600px) {
  .hero__photo picture img { aspect-ratio: 4 / 3; object-position: 38% 50%; }
}

/* ---------- fret band (the terracotta tiles) ---------- */
.faixa {
  height: 24px;
  background: url("../img/escalonado.svg") repeat-x left center / 48px 24px;
  border-block: 3px solid var(--ink);
}

/* ---------- a casa ---------- */
.casa {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gut);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--gold); }
.casa h2, .detalhes h2, .visita h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  margin-bottom: 1.4rem; max-width: 18ch;
}
.casa__copy p:not(.eyebrow) { max-width: 58ch; }
.casa__sign {
  margin-top: 1.6rem;
  padding-left: 1rem; border-left: 4px solid var(--terracotta);
  font-weight: 500; font-style: italic;
}
.casa__photo { margin: 0; transform: rotate(1.5deg); }
.casa__photo img {
  width: 100%; border: 10px solid var(--ochre); outline: 3px solid var(--ink);
  box-shadow: 10px 12px 0 var(--ink);
}
figcaption { font-size: .85rem; margin-top: 1.1rem; opacity: .8; }
@media (max-width: 820px) {
  .casa { grid-template-columns: 1fr; }
  .casa__photo { max-width: 460px; }
}

/* ---------- detalhes (mosaic) ---------- */
.detalhes {
  background: var(--ink); color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) max(var(--gut), calc((100vw - var(--wrap)) / 2));
}
.detalhes__head { margin-bottom: 2.5rem; }
.mosaico {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
}
.peca:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.peca:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.peca:nth-child(3) { grid-area: 1 / 3 / 3 / 4; }
.peca:nth-child(4) { grid-area: 2 / 2 / 3 / 3; }
.peca:nth-child(5) { grid-area: 1 / 4 / 3 / 5; }
.peca:nth-child(4) img { object-position: 50% 30%; }
.peca {
  position: relative; overflow: hidden;
  border: 3px solid var(--terracotta);
  background: #000;
}
.peca--alta { grid-row: span 2; }
.peca img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.peca:hover img { transform: scale(1.04); }
.peca__txt {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(16,17,22,.92) 45%);
}
.peca h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--gold); margin-bottom: .3rem; }
.peca p { font-size: .9rem; margin: 0; line-height: 1.45; }
.peca:nth-child(1) img { object-position: 50% 35%; }
.peca:nth-child(5) img { object-position: 50% 20%; }
@media (max-width: 960px) {
  .mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .mosaico .peca { grid-area: auto; }
  .peca--alta { grid-row: span 2; }
}
@media (max-width: 560px) {
  .mosaico { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .peca--alta { grid-row: auto; }
}

/* ---------- porta de enrolar (hiring) ---------- */
.porta {
  color: var(--gold);
  background-color: #14151b;
  background-image: repeating-linear-gradient(180deg, #1c1e25 0 14px, #101116 14px 16px, #24262e 16px 17px);
  border-top: 10px solid var(--ochre);
  border-bottom: 10px solid var(--ochre);
}
.porta__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.linha { width: 100%; max-width: 480px; justify-self: center; }
.linha .draw > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .linha .draw > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.4,.1,.2,1); }
.js .linha.is-in .draw > * { stroke-dashoffset: 0; }
.js .linha.is-in .draw > *:nth-child(n+6) { transition-delay: .3s; }
.js .linha.is-in .draw > *:nth-child(n+12) { transition-delay: .6s; }
.js .linha.is-in .draw > *:nth-child(n+18) { transition-delay: .9s; }

.aviso {
  background: #f6f3ea; color: var(--ink);
  border: 3px solid #cfcab9;
  border-radius: 6px;
  padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem) 1.8rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  max-width: 440px; justify-self: center; width: 100%;
  text-align: center;
}
.aviso__marca { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: .6rem; }
.aviso__titulo { font-family: var(--body); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 1rem; }
.aviso__vagas { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.aviso__vagas li {
  background: var(--cactus); color: #fff;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .7rem 1rem; border: 2px solid #2c4c34;
}
.aviso__nota { margin: 0; font-size: .95rem; }
@media (max-width: 820px) {
  .porta__inner { grid-template-columns: 1fr; }
  .linha { max-width: 320px; order: 2; }
}

/* ---------- visita ---------- */
.visita {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
  padding: clamp(4rem, 9vw, 7rem) max(var(--gut), calc((100vw - var(--wrap)) / 2));
}
.visita .eyebrow { color: var(--ink); }
.sinais { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .2rem; }
.sinais li {
  display: grid; grid-template-columns: 3rem 1fr; align-items: baseline;
  padding: .8rem 0; border-top: 2px solid rgba(28,30,37,.35);
  font-weight: 500;
}
.sinais li:last-child { border-bottom: 2px solid rgba(28,30,37,.35); }
.sinais span { font-family: var(--display); color: var(--cream); -webkit-text-stroke: 1px var(--ink); font-size: 1.2rem; }
.ficha {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.6rem;
  align-self: center;
}
.ficha dl { margin: 0 0 1.2rem; }
.ficha dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(28,30,37,.4); }
.ficha dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.ficha dd { margin: 0; font-weight: 600; text-align: right; }
.ficha__nota { font-size: .95rem; }
.visita__photo { grid-column: 1 / -1; margin: 1rem 0 0; }
.visita__photo img { width: 100%; border: 6px solid var(--ink); }
@media (max-width: 860px) {
  .visita { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.rodape { background: var(--ink); color: var(--cream); }
.rodape .faixa { border-top: 0; }
.rodape__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gut) 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.rodape__inner p { margin: 0; }
.rodape .placa { box-shadow: none; border-color: var(--cream); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .linha .draw > * { stroke-dashoffset: 0; }
}

.hero .placa--xl { display: block; width: fit-content; max-width: 100%; }
