/* Arte Vista - main stylesheet
   Edit colours / spacing here and the whole site updates. */

:root {
  --grey-text:   #666;
  --grey-soft:   #999;
  --grey-line:   #ccc;
  --accent:      #FF6633;     /* orange used for "NIEUW" */
  --bg:          #fff;
  --max-width:   1300px;
  --gutter:      2rem;
  --font-body:   "Inter", Helvetica, Arial, sans-serif;
  --font-head:   "Inter", Helvetica, Arial, sans-serif;
  --font-scale:  1;
}

* { box-sizing: border-box; }

html { font-size: calc(16px * var(--font-scale)); scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-text);
  background: var(--bg);
  line-height: 1.5;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; width: 0; height: 0; }

a {
  color: var(--grey-text);
  text-decoration: none;
}
a:hover { color: black; }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }

/* ---------- header ---------- */

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.logo { width: 200px; max-width: 100%; }
.logo img { width: 100%; height: auto; display: block; }
.tagline {
  width: 100%;
  height: auto;
  display: block;
  color: #000;
}
.logo:hover .tagline { color: #000; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  .site-nav { gap: 2rem; }
}
.site-nav a { color: var(--grey-soft); }
.site-nav a.active,
.site-nav a:hover { color: black; font-weight: bold; }

/* ---------- page ---------- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

.page h1, .page h2, .page h3 {
  color: #555;
  font-family: var(--font-head);
  font-weight: normal;
}
.page h1 { font-size: 2rem; margin-top: 0; }
.page h2 { font-size: 1.5rem; }

.page p { margin: 0 0 1rem; }

/* ---------- homepage hero (full-bleed crossfade) ---------- */

.home-hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2rem;
  margin-bottom: 4rem;
  width: 100vw;
  height: clamp(560px, 95vh, 920px);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 900px) {
  .home-hero { min-height: 800px; }
}
.home-hero__slides {
  position: absolute;
  inset: 0;
}
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* eleventy-img wraps each <img class="home-hero__slide"> in a <picture>.
   Style the <picture> wrappers (real direct children of .home-hero__slides),
   not the <img> tags. */
.home-hero__slides > picture {
  position: absolute;
  inset: 0;
}
.home-hero__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* All 3 slides equal: 24s cycle, each visible 8s with 1s cross-fade. */
.home-hero__slides > picture {
  opacity: 0;
  animation: home-hero-cycle 24s infinite;
}
.home-hero__slides > picture:nth-child(1) { animation-delay: 0s; }
.home-hero__slides > picture:nth-child(2) { animation-delay: 8s; }
.home-hero__slides > picture:nth-child(3) { animation-delay: 16s; }
@keyframes home-hero-cycle {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  33%  { opacity: 1; }
  48%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__slides > picture { animation: none; opacity: 0; }
  .home-hero__slides > picture:first-child { opacity: 1; }
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 4rem var(--gutter);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%);
}
.home-hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.home-hero .home-hero__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 0 14px rgba(0,0,0,0.7),
    0 2px 28px rgba(0,0,0,0.6);
}

.home-address {
  text-align: center;
  margin: 0 auto 1rem;
  padding: 0 var(--gutter);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--grey-soft);
}
.home-address address {
  margin: 0;
  font-style: normal;
  line-height: 1.8;
}

/* ---------- project grid (te koop) ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .projects { grid-template-columns: 1fr 1fr; }
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.project picture,
.project img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project picture { display: block; overflow: hidden; }
.project:hover img { transform: scale(1.045); }
.project h2 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  color: #555;
}
.project .location {
  font-style: italic;
  color: #555;
}
.project .badge-new {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2em 0.7em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project .sold {
  color: var(--grey-soft);
  font-style: italic;
  letter-spacing: 0.1em;
}

.project-no { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- residence detail ---------- */

.residence-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .residence-header { grid-template-columns: 1fr 1fr; }
  .residence-header--prijzen,
  .residence-header--ligging { grid-template-columns: 2fr 3fr; }
}
.residence-header--prijzen .price-table { margin-top: 1rem; }
.residence-header--prijzen img,
.residence-header--ligging img { align-self: start; }

.residence-tabs {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--grey-line);
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.residence-tabs a { color: var(--grey-soft); font-weight: 700; }
.residence-tabs a.active { color: #555; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.gallery > picture,
.gallery > img {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 768px) {
  .gallery.cols-2 { grid-template-columns: 1fr 1fr; }
  .gallery.cols-2 > img,
  .gallery.cols-2 > picture > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    height: 100%;
  }
  .gallery.cols-2.gallery--portrait > img,
  .gallery.cols-2.gallery--portrait > picture > img {
    aspect-ratio: 4 / 5;
  }
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--grey-soft);
  text-align: right;
  margin-top: 0.5rem;
}

/* ---------- ken burns slow pan/zoom + soft fade-in ---------- */

@keyframes ken-burns {
  from { transform: scale(1)    translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-1.5%, -0.8%, 0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-hero__img,
.residence-hero__img {
  animation:
    hero-fade-in 1.4s ease-out both,
    ken-burns 24s ease-out both;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__img,
  .residence-hero__img { animation: none; }
}

/* ---------- shared page-hero (contact / wiezijnwij / nieuwsbrief) ---------- */

.page-hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2rem;
  margin-bottom: 3rem;
  width: 100vw;
  height: clamp(420px, 75vh, 800px);
  overflow: hidden;
}
.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3rem var(--gutter);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.page-hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero__inner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-shadow:
    0 0 2px rgba(0,0,0,0.85),
    0 0 12px rgba(0,0,0,0.6),
    0 2px 18px rgba(0,0,0,0.5);
}

.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose--wide { max-width: 95ch; }
.prose--left {
  max-width: 95ch;
  margin: 4rem 0;
}
.prose--left:first-child { margin-top: 0; }
.about-split,
.about-split--reverse { margin-top: 4rem; margin-bottom: 4rem; }
.about-split:first-child { margin-top: 0; }
.prose .lead {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 1.5rem;
}
.page-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 0 2rem;
  display: block;
}

.brand-logo { width: 200px !important; height: auto !important; max-width: 200px; display: inline-block; margin-top: 1rem; }

/* ---------- residence - full-bleed hero ---------- */

.residence-hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2rem;
  margin-bottom: 0;
  width: 100vw;
  height: clamp(520px, 90vh, 880px);
  overflow: hidden;
}
@media (min-width: 900px) {
  .residence-hero { min-height: 800px; }
}
.residence-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.residence-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3rem var(--gutter);
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.residence-hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.residence-hero__inner .address {
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.residence-hero__inner h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-shadow:
    0 0 2px rgba(0,0,0,0.85),
    0 0 12px rgba(0,0,0,0.6),
    0 2px 18px rgba(0,0,0,0.5);
}
.residence-hero__inner .sold {
  color: rgba(255,255,255,0.85);
  margin: 0.5rem 0 0;
  letter-spacing: 0.1em;
}

.residence-tabs--standalone {
  margin: 0 0 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-line);
}

.residence-intro {
  max-width: 75ch;
  margin: 0 0 3rem;
  font-size: 1.05rem;
}
.residence-intro p:first-child,
.residence > .split:first-of-type > div > p:first-child {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #555;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 1.5rem;
}
.residence-intro p:first-child strong,
.residence > .split:first-of-type > div > p:first-child strong {
  font-weight: 400;
}

/* ---------- residence (additions) ---------- */

.residence-header h1 { margin: 0.25rem 0 1rem; }
.residence-header .address {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #555;
}
.residence-header .sold {
  display: inline-block;
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--grey-soft);
  letter-spacing: 0.1em;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}
.split--tight { gap: 0.5rem; }
.split > div > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 3fr 2fr; }
  .split--reverse { grid-template-columns: 2fr 3fr; }
  .about-split { grid-template-columns: 2fr 3fr; gap: 3rem; }
  .about-split--reverse { grid-template-columns: 3fr 2fr; gap: 3rem; }
}
/* ---------- arch-flow: text wraps around floated images (1998 legacy style) ---------- */
.arch-flow {
  margin: 3rem 0;
  overflow: hidden;
}
.arch-flow h2 { margin-top: 0; }
.arch-flow p { margin: 0 0 1rem; }
.arch-flow__left {
  float: left;
  width: 55%;
  height: auto;
  margin: 0.3rem 2rem 1rem 0;
  display: block;
}
.arch-flow__right {
  float: right;
  width: 32%;
  height: auto;
  margin: 0.3rem 0 1rem 2rem;
  display: block;
}
@media (max-width: 768px) {
  .arch-flow { overflow: visible; }
  .arch-flow__left,
  .arch-flow__right {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }
}

.split img { width: 100%; height: auto; display: block; }
.split--reverse img { width: 100%; height: auto; display: block; }
.split > picture,
.split > img { align-self: start; }
.split > div > h2:first-child,
.split > div > h1:first-child,
.split > div > p:first-child { margin-top: 0; }

.map-embed {
  margin: 2rem 0;
  aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- price table ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}
.price-table th,
.price-table td {
  padding: 1.1rem 0.8rem;
  text-align: right;
  border: 0;
  border-bottom: 1px solid var(--grey-line);
  font-weight: 400;
}
.price-table thead th {
  background: transparent;
  border-bottom: 1px solid #000;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.price-table td:first-child,
.price-table th:first-child {
  text-align: left;
  color: #000;
  letter-spacing: 0.02em;
}
.price-table tbody tr {
  transition: background 0.4s ease;
}
.price-table tbody tr:hover {
  background: #fafafa;
}
.price-table tbody tr:hover td:first-child {
  color: var(--accent);
}
.price-table td.sold,
.price-table td:last-child:not(:first-child) {
  color: var(--grey-soft);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.price-table tbody td:last-child {
  font-variant-numeric: tabular-nums;
}
.price-table a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  padding-bottom: 1px;
}
.price-table a:hover { color: #000; }

@media (max-width: 700px) {
  .price-table { font-size: 0.85rem; }
  .price-table th, .price-table td { padding: 0.7rem 0.4rem; }
  .price-table thead th { font-size: 0.65rem; }
}

.accent { color: var(--accent); }

address {
  font-style: normal;
  margin: 1rem 0;
  color: var(--grey-soft);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  margin: 1rem 0;
}
.newsletter-form label {
  font-size: 0.9rem;
  color: var(--grey-soft);
}
.newsletter-form input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--grey-line);
  font: inherit;
}
.newsletter-form button {
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: white;
  border: 0;
  font: inherit;
  cursor: pointer;
  align-self: flex-start;
}
.newsletter-form button:hover { background: #e54f1f; }

/* ---------- instagram block (between content and footer) ---------- */

.ig-block {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1rem var(--gutter) 1rem;
  text-align: center;
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--grey-text);
}
.ig-link:hover { color: black; }
.ig-icon { width: 28px; height: 28px; }

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--max-width);
  margin: 1rem auto 2rem;
  padding: 1rem var(--gutter) 2rem;
  text-align: center;
  color: var(--grey-soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.site-footer .copyright { margin: 0; }

/* ---------- preview banner ---------- */

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 9000;
  padding: 0.45rem 1rem;
  background: #1d1d1d;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.preview-banner a { color: #fff; text-decoration: underline; }
.preview-banner__id {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  opacity: 0.75;
  font-size: 0.75rem;
}

/* ---------- effects: custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey-text);
  pointer-events: none;
  z-index: 9999;
  will-change: transform, width, height, background;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease,
    border-color 0.25s ease;
  mix-blend-mode: difference;
  filter: invert(1);
}
.cursor--grow {
  width: 76px;
  height: 76px;
  background: transparent;
  border: 1px solid #888;
  filter: none;
  mix-blend-mode: normal;
}
.cursor--label {
  width: auto;
  height: auto;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: #1d1d1d;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  white-space: nowrap;
  filter: none;
  mix-blend-mode: normal;
  border: none;
}
.cursor--hidden { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  html, body, a, button { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- effects: settling display type ---------- */

@keyframes settle {
  from { letter-spacing: 0.35em; opacity: 0.85; }
  to   { letter-spacing: normal;  opacity: 1; }
}
@keyframes settle-fade {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}
.page h1,
.residence-header h1,
.residence-hero__inner h1,
.page-hero__inner h1,
.home-hero__title {
  animation: settle-fade 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (min-width: 1024px) {
  .page h1,
  .residence-header h1,
  .residence-hero__inner h1,
  .page-hero__inner h1,
  .home-hero__title {
    animation: settle 2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page h1, .residence-header h1, .home-hero__title { animation: none; }
}

/* ---------- effects: fade-up reveal ----------
   Only elements offscreen at load get .will-reveal; hero stays visible. */

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10000;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}
.lightbox__close:hover { opacity: 0.7; }

