/* ————————————————————————————————————————————
   SAUDADE ONE — villas-formosa.com
   Palette drawn from the renders: lime plaster, terracotta
   floor tiles, olive kitchen, warm ink, pool water.
   ———————————————————————————————————————————— */

@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/fraunces-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/fraunces-300-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/fraunces-300-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/fraunces-300-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/marcellus-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014;
}
@font-face {
  font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/marcellus-400-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-400-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/instrument-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/instrument-500-ext.woff2') format('woff2');
  unicode-range: U+0100-024F;
}

:root {
  --cal: #F6F2EA;          /* lime plaster */
  --areia: #EDE5D6;        /* warm sand */
  --terra: #A9502B;        /* terracotta, floor tiles */
  --terra-fonce: #8A3E20;
  --oliva: #6E6A4C;        /* olive kitchen */
  --tinta: #2C2620;        /* warm ink */
  --tinta-60: rgba(44, 38, 32, .64);
  --linha: rgba(44, 38, 32, .16);
  --agua: #BCD1CC;         /* pool water, whisper accent */
  --blanc: #FDFCF9;

  --display: 'Fraunces', 'Times New Roman', serif;
  --caps: 'Marcellus', 'Times New Roman', serif;
  --texte: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --mesure: 34rem;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --large: 74rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

::selection { background: var(--terra); color: var(--blanc); }

/* ————— Type roles ————— */

.eyebrow {
  font-family: var(--caps);
  font-size: .8125rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.1rem;
}

h1, h2, h3 { font-weight: 300; }

h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: .8rem;
}

p + p { margin-top: 1em; }

.lede { font-size: 1.15rem; }

.muted { color: var(--tinta-60); }

/* ————— Structure ————— */

.wrap {
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

section { position: relative; }

.section-pad { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ————— Header / nav ————— */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s ease, box-shadow .35s ease;
  color: var(--blanc);
}
.site-head.solid {
  background: rgba(246, 242, 234, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linha);
  color: var(--tinta);
}
.site-head .bar {
  max-width: var(--large);
  margin-inline: auto;
  padding: 1rem var(--gouttiere);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--caps);
  font-size: 1.02rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.wordmark .one { color: var(--terra); }
.site-head.solid .wordmark .one { color: var(--terra); }
.wordmark svg { flex: none; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
}
.site-nav a:hover { opacity: 1; }

.lang-switch { display: flex; align-items: center; gap: .15rem; margin-left: .6rem; }
.lang-switch a, .lang-switch span {
  font-size: .8rem;
  letter-spacing: .1em;
  padding: .25rem .45rem;
  text-decoration: none;
  opacity: .7;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch .current {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

/* mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  font: inherit;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cal);
    color: var(--tinta);
    border-bottom: 1px solid var(--linha);
    padding: .5rem var(--gouttiere) 1.2rem;
  }
  .site-nav a { padding: .7rem 0; width: 100%; }
  .lang-switch { margin: .8rem 0 0; }
  .site-head.open .site-nav { display: flex; }
  .site-head.open { background: var(--cal); color: var(--tinta); }
  .nav-toggle { display: block; }
}

/* ————— Hero ————— */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--blanc);
  isolation: isolate;
}
.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(30, 22, 16, .68) 0%, rgba(30, 22, 16, .18) 45%, rgba(30, 22, 16, .12) 100%);
}
.hero .wrap {
  width: 100%;
  padding-block: clamp(3.5rem, 8vh, 6rem);
}
.hero .kicker {
  font-family: var(--caps);
  font-size: .8rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: .92;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  max-width: 14em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero .lede {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-bottom: .9rem;
}
.hero .sub {
  max-width: 36rem;
  font-size: .98rem;
  opacity: .88;
  margin-bottom: 2.2rem;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ————— Buttons ————— */

.btn {
  display: inline-block;
  font-family: var(--texte);
  font-weight: 500;
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-solid { background: var(--terra); color: var(--blanc); }
.btn-solid:hover { background: var(--terra-fonce); }
.btn-ghost { border-color: rgba(253, 252, 249, .7); color: var(--blanc); }
.btn-ghost:hover { background: rgba(253, 252, 249, .14); }
.btn-line { border-color: var(--tinta); color: var(--tinta); }
.btn-line:hover { background: var(--tinta); color: var(--cal); }

/* ————— Act frontispieces ————— */

.act {
  border-top: 1px solid var(--linha);
  overflow: hidden;
}
.act .wrap {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.act .numeral {
  position: absolute;
  right: var(--gouttiere);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(169, 80, 43, .38);
  pointer-events: none;
  user-select: none;
}
.act .eyebrow { margin-bottom: .9rem; }
.act h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 15em;
  margin-bottom: 0;
}

/* ————— Media / arch signature ————— */

.arch {
  border-radius: 100vmax 100vmax 0 0;   /* Moorish arch, echoes the S badge */
  overflow: hidden;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.figure-caption {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--tinta-60);
  margin-top: .7rem;
}

/* ————— Split layouts ————— */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.top { align-items: start; }
.split .copy { max-width: var(--mesure); }
@media (max-width: 820px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split .media { order: -1; }
}

/* full-bleed band image */
.band {
  height: clamp(20rem, 55vh, 34rem);
  overflow: hidden;
}
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ————— Pull quote ————— */

.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  max-width: 24em;
  color: var(--terra);
  text-wrap: balance;
}

/* ————— Lists ————— */

.tick-list { list-style: none; }
.tick-list li {
  padding: .55rem 0 .55rem 1.9rem;
  position: relative;
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.18rem;
  width: 1.05rem;
  height: 1px;
  background: var(--terra);
}

/* ————— Advantages ledger ————— */

.ledger {
  border-top: 1px solid var(--linha);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.ledger > div {
  border-bottom: 1px solid var(--linha);
  padding: 1.35rem 0;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
}
.ledger .t {
  font-family: var(--display);
  font-size: 1.18rem;
  flex: none;
  width: 13rem;
}
.ledger .d { color: var(--tinta-60); font-size: .95rem; }
@media (max-width: 820px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger > div { flex-direction: column; gap: .15rem; }
  .ledger .t { width: auto; }
}

/* ————— Typology cards ————— */

.typologies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 820px) { .typologies { grid-template-columns: 1fr; } }

.typo-card {
  background: var(--blanc);
  border: 1px solid var(--linha);
  border-radius: 100vmax 100vmax 12px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.typo-card .arch { border-radius: 0; aspect-ratio: 5 / 4; }
.typo-card .inner { padding: 2rem clamp(1.5rem, 3vw, 2.5rem) 2.4rem; }
.typo-card .name {
  font-family: var(--caps);
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.typo-card .tagline {
  color: var(--terra);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  margin: .2rem 0 1.1rem;
}
.typo-card ul { list-style: none; }
.typo-card li {
  padding: .6rem 0;
  border-top: 1px solid var(--linha);
  font-size: .95rem;
}

/* ————— Sand + olive sections ————— */

.on-sand { background: var(--areia); }
.on-olive { background: var(--oliva); color: var(--cal); }
.on-olive .eyebrow { color: var(--areia); }
.on-olive .muted { color: rgba(246, 242, 234, .72); }
.on-olive .tick-list li::before { background: var(--areia); }

/* ————— Statement band ————— */

.statement {
  background: var(--terra);
  color: var(--blanc);
  text-align: center;
}
.statement .wrap { max-width: 52rem; }
.statement .s1 {
  font-family: var(--caps);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 1.6rem;
  color: rgba(253, 252, 249, .85);
}
.statement .s2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.statement .s3 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(253, 252, 249, .88);
}

/* ————— Gallery ————— */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.4rem);
}
.gallery-grid figure { position: relative; cursor: zoom-in; grid-column: span 2; }
.gallery-grid figure:nth-child(5n+1),
.gallery-grid figure:nth-child(5n+2) { grid-column: span 3; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .5s ease, opacity .5s ease;
}
.gallery-grid figure:hover img { opacity: .92; }
.gallery-grid figcaption {
  font-size: .8rem;
  color: var(--tinta-60);
  margin-top: .45rem;
  letter-spacing: .03em;
}
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure,
  .gallery-grid figure:nth-child(n) { grid-column: span 1; }
  .gallery-grid figure:nth-child(3n+1) { grid-column: span 2; }
}

/* lightbox */
dialog.lightbox {
  border: none;
  background: rgba(30, 22, 16, .94);
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
  display: none;
  align-items: center;
  justify-content: center;
}
dialog.lightbox[open] { display: flex; }
dialog.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 4px;
}
dialog.lightbox figcaption {
  color: rgba(253, 252, 249, .8);
  text-align: center;
  margin-top: 1rem;
  font-size: .9rem;
}
dialog.lightbox .close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
dialog.lightbox .close:hover { opacity: 1; }

/* ————— Contact ————— */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

form .field { margin-bottom: 1.2rem; }
form label {
  display: block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--tinta-60);
}
form input, form select, form textarea {
  width: 100%;
  font: inherit;
  color: var(--tinta);
  background: var(--blanc);
  border: 1px solid var(--linha);
  border-radius: 6px;
  padding: .8rem 1rem;
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--terra);
  outline-offset: 0;
  border-color: transparent;
}
form textarea { min-height: 7.5rem; resize: vertical; }
.form-note { font-size: .82rem; color: var(--tinta-60); margin-top: .9rem; }
.form-sent { display: none; margin-top: 1rem; color: var(--oliva); font-weight: 500; }

/* ————— Footer ————— */

.site-foot {
  background: var(--tinta);
  color: rgba(246, 242, 234, .82);
  padding-block: 3.5rem 2.5rem;
  font-size: .9rem;
}
.site-foot .wordmark { color: var(--cal); font-size: .95rem; }
.site-foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.site-foot a { color: inherit; }
.site-foot .legal {
  border-top: 1px solid rgba(246, 242, 234, .18);
  padding-top: 1.4rem;
  font-size: .78rem;
  color: rgba(246, 242, 234, .55);
}
.site-foot .lang-switch { margin: 0; }
.site-foot .lang-switch a, .site-foot .lang-switch span { opacity: .75; }
.site-foot .lang-switch .current { opacity: 1; }

/* ————— Reveal on scroll ————— */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ————— Utilities ————— */

.measure { max-width: var(--mesure); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.center .measure { margin-inline: auto; }
