/* BILLA — design system (plain CSS) */
html{-webkit-text-size-adjust:100%}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}

/*
 * BILLA design system — luxury architectural real estate.
 * All colours, type and motion tokens live here.
 */

:root {
  --billa-primary: #191a1c;
  --billa-secondary: #616f7c;
  --billa-deep: #3b3d3e;
  --billa-white: #ffffff;
  --billa-light: #f7faf8;
  --billa-grey: #e9efec;
  --billa-text: #58655f;
  --billa-heading: #20322a;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --line: 1px solid var(--billa-grey);
  --glow: 0 30px 80px -40px rgba(77, 166, 255, 0.55);
  --glow-soft: 0 18px 50px -30px rgba(31, 79, 138, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: min(1240px, 90vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--billa-white);
  color: var(--billa-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--billa-heading);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--billa-primary);
  font-weight: 400;
}

.lede {
  font-size: 1.05rem;
  max-width: 62ch;
}

.rule {
  height: 1px;
  background: var(--billa-grey);
  border: 0;
  margin: 0;
}

/* ---------------- Navbar ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--billa-grey);
}

.nav--transparent {
  background: #ffffff;
}

.nav__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  height: 84px;
}

.nav__brand img {
  width: 144px;
  height: 100px;
  object-fit: contain;
  display: block;
}
.nav--transparent .nav__brand,
.nav--transparent .nav__link,
.nav--transparent .nav__burger {
  color: var(--billa-heading);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--billa-heading);
  padding-block: 0.4rem;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--billa-primary);
  transition: width 0.45s var(--ease);
}
.nav__link:hover::after,
.nav__link[data-status="active"]::after,
.nav__link--open::after {
  width: 100%;
}
.nav__caret {
  font-size: 0.55rem;
  transition: transform 0.35s var(--ease);
}
.nav__link--open .nav__caret {
  transform: rotate(180deg);
}
.nav__dropdown-wrap {
  position: relative;
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  translate: -50% 0;
  min-width: 220px;
  background: var(--billa-white);
  border: var(--line);
  box-shadow: var(--glow-soft);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.35s var(--ease);
}
.nav__dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--billa-heading);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.nav__dropdown a:hover {
  background: var(--billa-light);
  color: var(--billa-deep);
  padding-left: 1.9rem;
}
.nav__burger {
  display: none;
  background: none;
  border: 0;
  color: var(--billa-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__mobile {
  display: none;
  border-top: var(--line);
  background: var(--billa-white);
  padding: 1.4rem 5vw 2rem;
}
.nav__mobile a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--billa-heading);
  border-bottom: var(--line);
}
.nav__mobile a.sub {
  padding-left: 1.2rem;
  color: var(--billa-text);
  font-size: 0.75rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--billa-primary);
  background: var(--billa-primary);
  color: var(--billa-white);
  cursor: pointer;
  transition: all 0.45s var(--ease);
  font-family: inherit;
}
.btn:hover {
  background: var(--billa-deep);
  border-color: var(--billa-deep);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--billa-heading);
  border-color: var(--billa-grey);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--billa-primary);
  color: var(--billa-deep);
}
.btn--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--billa-white);
}
.btn--light:hover {
  background: var(--billa-white);
  color: var(--billa-heading);
  border-color: var(--billa-white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--billa-deep);
}
.link-arrow span {
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover span {
  transform: translateX(8px);
}

/* ---------------- Layout blocks ---------------- */
.page {
  padding-top: 84px;
}
.section {
  padding-block: clamp(4.5rem, 9vw, 9rem);
}
.section--light {
  background: var(--billa-light);
}
.section--grey {
  background: var(--billa-grey);
}
.section--deep {
  background: var(--billa-heading);
  color: rgba(255, 255, 255, 0.72);
}
.section--deep h2,
.section--deep h3 {
  color: var(--billa-white);
}

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-block: 5rem 4rem;
  overflow: hidden;
  background: var(--billa-heading);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.06);
  animation: slowzoom 14s var(--ease) forwards;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 79, 138, 0.55), rgba(32, 50, 42, 0.75));
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  color: var(--billa-white);
}
.page-hero__inner h1 {
  color: var(--billa-white);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  margin-top: 1rem;
}
.page-hero__inner p {
  max-width: 56ch;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Home hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--billa-heading);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  animation: slowzoom 18s var(--ease) forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(77, 166, 255, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(32, 50, 42, 0.6), rgba(31, 79, 138, 0.65));
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 5vw 6rem;
}
.hero__brand {
  font-family: var(--font-display);
  color: var(--billa-white);
  font-size: clamp(4rem, 15vw, 11rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1;
  text-shadow: 0 0 90px rgba(77, 166, 255, 0.55);
}
.hero__tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 1.6rem;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.7);
  max-width: 54ch;
  margin: 1.6rem auto 0;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* grids */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--billa-grey);
  border: var(--line);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.tile {
  background: var(--billa-white);
  padding: clamp(2rem, 3.5vw, 3.2rem);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.tile:hover {
  background: var(--billa-light);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.tile__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--billa-secondary);
}
.tile h3 {
  font-size: 1.7rem;
  margin-block: 0.6rem 1rem;
}

.figure {
  position: relative;
  overflow: hidden;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.figure:hover img {
  transform: scale(1.05);
}
.figure--glow::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(77, 166, 255, 0.4), transparent);
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--billa-heading);
  line-height: 1;
}
.section--deep .stat__value {
  color: var(--billa-white);
}
.stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 0.8rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li {
  padding: 1.05rem 0 1.05rem 2rem;
  border-bottom: var(--line);
  position: relative;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 10px;
  height: 1px;
  background: var(--billa-primary);
}

/* Property cards */
.property {
  background: var(--billa-white);
  border: var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.property:hover {
  box-shadow: var(--glow);
  transform: translateY(-6px);
}
.property__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.property__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.property:hover .property__media img {
  transform: scale(1.06);
}
.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--billa-deep);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
}
.badge--muted {
  color: var(--billa-text);
}
.property__body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.property__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--billa-text);
  border-top: var(--line);
  border-bottom: var(--line);
  padding-block: 0.9rem;
}
.property__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--billa-heading);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(32, 50, 42, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  animation: fade 0.35s var(--ease);
}
.modal__panel {
  background: var(--billa-white);
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: rise 0.5s var(--ease);
}
.modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  background: var(--billa-white);
  border: 0;
  font-size: 1.4rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  color: var(--billa-heading);
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--billa-heading);
}
.field input,
.field textarea,
.field select {
  border: var(--line);
  background: var(--billa-white);
  padding: 0.95rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--billa-heading);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--billa-primary);
  box-shadow: 0 0 0 4px rgba(128, 193, 255, 0.25);
}
.form-note {
  font-size: 0.8rem;
  color: var(--billa-primary);
}

/* Footer */
.footer {
  background: var(--billa-heading);
  color: rgba(255, 255, 255, 0.62);
  padding-block: 4.5rem 2rem;
}
.footer h4 {
  color: var(--billa-white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer a:hover {
  color: var(--billa-secondary);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.4em;
  color: var(--billa-white);
}
.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.85rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes slowzoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
.enter {
  animation: enter 1s var(--ease) both;
}
.enter-1 {
  animation-delay: 0.1s;
}
.enter-2 {
  animation-delay: 0.28s;
}
.enter-3 {
  animation-delay: 0.46s;
}
.enter-4 {
  animation-delay: 0.64s;
}

@media (max-width: 960px) {
  .nav__links,
  .nav__dropdown-wrap {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .nav__mobile {
    display: block;
  }
  .split,
  .grid-3,
  .grid-2,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    gap: 1px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Static-site overrides */
[hidden] { display: none !important; }
.nav__link--active { color: var(--billa-deep); }

/* FORCE NAVBAR TO BE COMPLETELY WHITE */
.nav,
.nav--transparent,
.nav--solid {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid #e9efec !important;
}
