/* ============ Villa Verdizela — design system ============ */
:root {
  --paper: #FFFDF9;
  --cream: #F5F0E7;
  --ink: #23201B;
  --muted: #6E675C;
  --oak: #8C6A4A;
  --olive: #5F6A4E;
  --dark: #17150F;
  --dark-soft: #26221A;
  --line: rgba(35, 32, 27, .12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 500; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oak);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ============ buttons ============ */
.btn {
  display: inline-block;
  padding: .95em 2.1em;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .25s ease;
}
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--cream); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  color: #fff;
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav--solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav__brand em { font-style: italic; }
.nav__links { display: flex; gap: 1.35rem; }
.nav__links a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .7em 1.6em;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.nav__burger { display: none; }

/* ============ hero ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video--kenburns {
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.6%, -0.8%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video--kenburns { animation: none; }
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, .35) 0%, rgba(10, 12, 14, .25) 45%, rgba(10, 12, 14, .55) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 var(--pad); max-width: 900px; }
.hero__content h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__sub {
  margin: 1.4rem auto 2.2rem;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .92);
}
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ stats band ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.stats__item {
  padding: 2.2rem 1rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stats__item:first-child { border-left: none; }
.stats__item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}
.stats__item span {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ sections ============ */
.section { padding: clamp(64px, 9vw, 130px) var(--pad); }
.section--tint { background: var(--cream); }
.section--slim { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(40px, 5vw, 70px); }
.section--dark { background: var(--dark); color: #F2EDE3; }
.section--dark .lead { color: rgba(242, 237, 227, .72); }
.section__head { max-width: 780px; margin: 0 auto 3.2rem; text-align: center; }
.section__head .lead { margin: 1.2rem auto 0; }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }
.split__text h2 { margin-bottom: 1.2rem; }
.split__text p { margin-bottom: 1rem; color: var(--muted); }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  height: clamp(360px, 46vw, 620px);
  object-fit: cover;
  border-radius: 3px;
}
.split__media--tall img { height: clamp(420px, 52vw, 680px); }
.split__media figcaption,
.mosaic figcaption, .duo figcaption, .trio figcaption {
  margin-top: .6rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark figcaption { color: rgba(242, 237, 227, .55); }
.split__media--map .osm-map {
  width: 100%;
  height: clamp(360px, 46vw, 560px);
  border-radius: 3px;
  filter: saturate(.85);
  z-index: 0;
}
.map-pin { background: none; border: none; }

/* tick & feature lists */
.ticks { list-style: none; margin-top: 1.4rem; }
.ticks li {
  position: relative;
  padding: .45rem 0 .45rem 1.8rem;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .95em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--olive);
}
.features { list-style: none; }
.features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.features li:first-child { border-top: 1px solid var(--line); }
.features strong { color: var(--ink); font-weight: 600; }

/* full-bleed */
.bleed {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 5rem var(--pad);
}
@media (hover: none) { .bleed { background-attachment: scroll; } }
.bleed h2 { text-shadow: 0 2px 26px rgba(0, 0, 0, .4); }

/* mosaic (the house) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1220px;
  margin: 0 auto 3rem;
}
.mosaic__item { display: flex; flex-direction: column; }
.mosaic__item--wide { grid-column: span 2; grid-row: span 2; }
.mosaic__item img {
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
  object-fit: cover;
  border-radius: 3px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1220px;
  margin: 0 auto;
}
.facts h3 { margin-bottom: .5rem; }
.facts p { color: var(--muted); font-size: .95rem; }

/* duo / trio image rows */
.duo, .trio {
  display: grid;
  gap: 1.2rem;
  max-width: 1220px;
  margin: 3rem auto 0;
}
.duo { grid-template-columns: 1fr 1fr; }
.trio { grid-template-columns: repeat(3, 1fr); }
.duo img, .trio img {
  width: 100%;
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
  border-radius: 3px;
}

.pull {
  max-width: 720px;
  margin: 4rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-style: italic;
  color: var(--oak);
  line-height: 1.4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-top: 2.6rem;
}
.chips span {
  padding: .55em 1.3em;
  border: 1px solid rgba(242, 237, 227, .25);
  border-radius: 99px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, .85);
}

/* eco strip */
.eco {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.eco h3 { color: var(--olive); margin-bottom: .35rem; }
.eco p { color: var(--muted); font-size: .95rem; }

/* distances */
.distances { list-style: none; margin: 1.4rem 0; }
.distances li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.distances strong { white-space: nowrap; font-weight: 600; }
.note { font-size: .9rem; color: var(--muted); }

/* plot plan */
.plan svg {
  width: 100%;
  height: auto;
  max-height: 640px;
  background: #FBF8F1;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
}

/* mobility modes */
.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 1220px;
  margin: 0 auto;
}
.mode {
  padding: 2rem 1.6rem;
  background: var(--cream);
  border-radius: 3px;
}
.mode__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  color: var(--olive);
  margin-bottom: 1rem;
}
.mode__icon svg { width: 100%; height: 100%; }
.mode h3 { margin-bottom: .5rem; }
.mode p { color: var(--muted); font-size: .93rem; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1220px;
  margin: 0 auto;
}
.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery img:hover { transform: scale(1.02); box-shadow: 0 12px 30px rgba(35, 32, 27, .18); }

/* contact */
.contact {
  position: relative;
  padding: clamp(80px, 11vw, 150px) var(--pad);
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(15, 14, 10, .55), rgba(15, 14, 10, .72)), url("../media/hero.jpg") center/cover;
}
.contact h2 { margin-bottom: 1rem; }
.contact p { max-width: 46ch; margin: 0 auto; color: rgba(255, 255, 255, .88); }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
}

/* footer */
.footer {
  padding: 2.4rem var(--pad);
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  background: var(--paper);
}
.footer__small { margin-top: .5rem; font-size: .74rem; opacity: .75; }

/* ============ lightbox ============ */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 11, 9, .93);
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 3px;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .8);
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
  padding: .4em;
  transition: color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; }
.lightbox__close { top: 1rem; right: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ============ reveal animation ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav__burger span { width: 24px; height: 2px; background: currentColor; }
  .nav--open .nav__links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.1rem;
    z-index: 60;
  }
  .nav--open .nav__burger { position: relative; z-index: 61; }
  .nav--open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav--open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-left: none; border-top: 1px solid var(--line); }
  .stats__item:nth-child(-n+2) { border-top: none; }
  .stats__item:last-child { grid-column: span 2; }

  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 1; }
  .split--reverse .split__media { order: 2; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__item--wide { grid-column: span 2; grid-row: auto; }
  .facts, .eco, .trio { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
}
