/* =========================================================
   MBP — M Butler Property Ltd
   Premium UK Property Investment · Multi-Page System
   ========================================================= */

:root {
  --bg:        #0b0b0d;
  --bg-2:      #111114;
  --bg-3:      #16161a;
  --ink:       #f5f1ea;
  --ink-soft:  #c8c1b3;
  --ink-mute:  #7c766c;
  --line:      rgba(245, 241, 234, 0.10);
  --line-soft: rgba(245, 241, 234, 0.06);
  --gold:      #c9a96e;
  --gold-2:    #e3c98c;
  --whatsapp:  #25d366;
  --whatsapp-2:#1ebe5d;
  --error:     #d96b6b;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1320px;
  --pad:  clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- PRELOADER ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: clamp(160px, 20vw, 220px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: preloaderFade 1.6s var(--ease) 0.1s forwards;
}
.preloader__bar {
  width: 60px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.preloader__bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: preloaderBar 1.4s var(--ease) infinite;
}
@keyframes preloaderFade {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes preloaderBar {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- PAGE TRANSITION OVERLAY ---------- */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
body.is-leaving .page-transition {
  opacity: 1;
}

/* ---------- TYPOGRAPHY ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.eyebrow--light { color: var(--ink); opacity: 0.8; }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section__title em { font-style: italic; color: var(--gold); }

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad);
  background: linear-gradient(to bottom, rgba(11,11,13,0.65), rgba(11,11,13,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.4s var(--ease);
}
.nav__logo:hover { opacity: 0.85; }
.nav__logo-img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.nav__links { display: flex; gap: 2.5rem; }
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

@media (max-width: 900px) {
  .nav__links { gap: 1.4rem; }
  .nav__links a { font-size: 0.7rem; letter-spacing: 0.18em; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn__icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn--whatsapp {
  background: rgba(11, 11, 13, 0.8);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: none;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
}
.btn--whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: none;
}
.btn--whatsapp:active { transform: translateY(0); }

.btn--lg { padding: 1.25rem 2.2rem; font-size: 0.9rem; }
.btn--small { padding: 0.7rem 1.1rem; font-size: 0.7rem; }
.btn--full { width: 100%; justify-content: center; padding: 1.3rem; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__mobile-bg {
  display: none !important;
}
.hero__media {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  image-rendering: high-quality;
  -webkit-image-rendering: high-quality;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  /* Subtle vertical gradient — pristine at top, darker at bottom for text legibility */
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 13, 0)    0%,
    rgba(11, 11, 13, 0.05) 30%,
    rgba(11, 11, 13, 0.40) 65%,
    rgba(11, 11, 13, 0.85) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 5vw;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 1rem 0 2.5rem;
  max-width: 14ch;
}
.hero__title em { font-style: italic; color: var(--gold); }
.stagger-line {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.2em;
  vertical-align: bottom;
}
.hero__title .stagger-line > span { display: inline-block; }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll span {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- TICKER (infinite marquee, home page) ---------- */

.ticker {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 1.6rem 0;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 10rem;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2), rgba(17,17,20,0));
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2), rgba(17,17,20,0));
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerMove 38s linear infinite;
  will-change: transform;
}
.ticker__set {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--ink-soft);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.ticker__set em {
  font-style: italic;
  color: var(--gold);
}
.ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.85;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- INTRO HEADER (for sub-pages) ---------- */

.intro {
  padding: 12rem var(--pad) 5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.intro .section__title { max-width: 18ch; margin-top: 1rem; }

/* ---------- SUBHERO — image-led header for sub-pages ---------- */

.subhero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.subhero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.subhero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  image-rendering: high-quality;
  will-change: transform;
}
.subhero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 13, 0.20) 0%,
    rgba(11, 11, 13, 0.30) 45%,
    rgba(11, 11, 13, 0.85) 100%
  );
}
.subhero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9rem var(--pad) 4rem;
}
.subhero__content .section__title {
  max-width: 18ch;
  margin-top: 1rem;
}

/* ---------- FLOORPLAN — property breakdown block (deals page) ---------- */

.floorplan {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.floorplan__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
}
.floorplan__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.floorplan:hover .floorplan__visual img { transform: scale(1.04); }
.floorplan__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}
.floorplan__content .section__title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.floorplan__hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 1.5rem;
}

@media (max-width: 820px) {
  .floorplan { grid-template-columns: 1fr; }
}

/* ---------- SECTION HEAD ---------- */

.section__head {
  max-width: var(--maxw);
  margin: 0 auto 5rem;
  padding: 0 var(--pad);
  text-align: center;
}

/* ---------- SERVICES ---------- */

.services {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}
.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.service {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.6s var(--ease);
}
.service:hover { border-color: rgba(201, 169, 110, 0.35); }
.service--reverse { direction: rtl; }
.service--reverse > * { direction: ltr; }

.service__media {
  overflow: hidden;
  aspect-ratio: 16/11;
}
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
  filter: brightness(0.92) saturate(0.95);
}
.service:hover .service__media img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.service__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  position: relative;
}
.service__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.service__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.service__body p {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.service__tag {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
}
.service__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12);
}

@media (max-width: 820px) {
  .service, .service--reverse { grid-template-columns: 1fr; direction: ltr; }
  .service__media { aspect-ratio: 4/3; }
}

/* ---------- BANNER ---------- */

.banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  margin: 4rem 0;
}
.banner__media {
  position: relative;
  overflow: hidden;
}
.banner__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.banner__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg) 100%);
}
.banner__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  background: var(--bg);
}
.banner__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin: 1rem 0 2.5rem;
  letter-spacing: -0.01em;
}

@media (max-width: 820px) {
  .banner { grid-template-columns: 1fr; }
  .banner__media { aspect-ratio: 16/10; }
  .banner__media::after {
    background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
  }
}

/* ---------- APPLY ---------- */

.apply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  background: var(--bg-2);
}
.apply__visual {
  position: relative;
  overflow: hidden;
}
.apply__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.05);
}
.apply__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,13,0.4), rgba(11,11,13,0.85));
}
.apply__form {
  padding: clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.apply__form .section__title { margin-bottom: 3rem; }

.apply__next-step {
  margin: 0.5rem 0 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.apply__next-step::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.field {
  display: block;
  margin-bottom: 2.5rem;
}
.field__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.8rem;
}

@media (max-width: 820px) {
  .apply { grid-template-columns: 1fr; }
  .apply__visual { aspect-ratio: 16/10; }
}

/* ---------- CUSTOM DROPDOWN ---------- */

.dropdown {
  position: relative;
  user-select: none;
}
.dropdown__btn {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  cursor: pointer;
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.dropdown__btn:focus-visible {
  border-bottom-color: var(--gold);
}
.dropdown__btn:hover,
.dropdown.is-open .dropdown__btn {
  border-bottom-color: var(--gold);
}
.dropdown__value {
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
  text-align: left;
}
.dropdown.has-value .dropdown__value { color: var(--ink); }
.dropdown__chevron {
  width: 12px;
  height: 12px;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}
.dropdown.is-open .dropdown__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
.dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--line);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 22px 60px -20px rgba(0, 0, 0, 0.7);
}
.dropdown.is-open .dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown__option {
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dropdown__option::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.dropdown__option:hover,
.dropdown__option.is-active {
  background: rgba(201, 169, 110, 0.06);
  color: var(--ink);
  padding-left: 1.6rem;
}
.dropdown__option:hover::before,
.dropdown__option.is-active::before {
  opacity: 1;
  transform: scale(1);
}
.dropdown__option.is-selected {
  color: var(--gold);
}

.dropdown.is-error .dropdown__btn {
  border-bottom-color: var(--error);
  animation: shake 0.45s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- DEAL PAGE ---------- */

.page--deal { background: var(--bg); }

.deal__hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 90vh;
  padding-top: 8rem;
}
.deal__hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 5vw, 5rem);
}
.deal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 1rem 0 2rem;
}
.deal__title em { font-style: italic; color: var(--gold); }
.deal__sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.deal__hero-image {
  position: relative;
  overflow: hidden;
}
.deal__hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .deal__hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .deal__hero-image { aspect-ratio: 4/3; order: -1; }
  .deal__hero-content { padding: 3rem clamp(1.25rem, 4vw, 2rem); }
}

/* ---------- DASHBOARD ---------- */

.dashboard {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem var(--pad);
}
.dashboard__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1px;
}
.dashboard__row--featured {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
}
.stat {
  background: var(--bg);
  padding: 2.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.4s var(--ease);
}
.stat:hover { background: var(--bg-2); }
.stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat__value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat__value small {
  font-size: 0.5em;
  color: var(--ink-mute);
  margin-left: 0.1em;
  font-family: var(--sans);
  font-weight: 300;
}
.stat__value--gold { color: var(--gold); }
.stat--lg { padding: 3.5rem 2rem; }
.stat--lg .stat__value { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.stat__hint {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
}

@media (max-width: 820px) {
  .dashboard__row, .dashboard__row--featured { grid-template-columns: repeat(2, 1fr); }
  .dashboard__row--featured { grid-template-columns: 1fr; }
}

.deal__visual {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.deal__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  will-change: transform;
}
.deal__visual-caption {
  position: absolute;
  bottom: clamp(2rem, 5vw, 4rem);
  left: clamp(2rem, 5vw, 4rem);
  color: var(--ink);
}
.deal__visual-caption h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 0.5rem;
}

.deal__cta {
  text-align: center;
  padding: 8rem var(--pad);
  max-width: 720px;
  margin: 0 auto;
}
.deal__cta .section__title { margin: 1rem 0 2.5rem; }

/* ---------- FOOTER ---------- */

.footer {
  position: relative;
  padding: 6rem var(--pad) 3rem;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.footer__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}
.footer__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.6);
}
.footer__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,13,0.6) 100%);
}
.footer__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.footer__logo-img {
  height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer__brand p {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.6rem;
}
.footer__legal {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer__legal li, .footer__legal a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
}
.footer__legal a:hover { color: var(--gold); }

.footer--slim { padding: 3.5rem var(--pad); }

/* ---------- FOOTER CONNECT (socials + phone) ---------- */

.footer__connect {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer--slim .footer__connect {
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
}
.footer__social {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.footer__social svg { width: 17px; height: 17px; display: block; }
.footer__social:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.55);
  transform: translateY(-2px);
}
.footer__divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  display: inline-block;
}
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.footer__phone svg { width: 16px; height: 16px; color: var(--whatsapp); }
.footer__phone:hover { color: var(--ink); }
.footer__phone:hover svg { color: var(--whatsapp-2); }

@media (max-width: 540px) {
  .footer__connect { gap: 1rem; }
  .footer__divider { display: none; }
  .footer__phone { width: 100%; justify-content: center; }
}

@media (max-width: 820px) {
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .footer__brand { align-items: center; }
  .footer__legal { justify-content: center; }
}

/* ---------- FLOATING CTA ---------- */

.float-cta {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 0 rgba(37, 211, 102, 0.55),
    0 16px 36px -8px rgba(37, 211, 102, 0.55);
  z-index: 60;
  transition: transform 0.4s var(--ease);
  animation: pulseCTA 2.6s var(--ease) infinite;
}
.float-cta:hover {
  transform: scale(1.08);
  animation-play-state: paused;
}
.float-cta svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulseCTA {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 16px 36px -8px rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0), 0 16px 36px -8px rgba(37, 211, 102, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 16px 36px -8px rgba(37, 211, 102, 0.55); }
}

/* ---------- SCROLL REVEAL (CSS fallback if GSAP fails) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
  will-change: transform, opacity;
}
.reveal.is-visible,
body.gsap-active .reveal {
  /* GSAP controls these when active; CSS fallback uses .is-visible */
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span, .float-cta { animation: none; }
  html { scroll-behavior: auto; }
  .preloader__bar::after { animation: none; background: var(--gold); transform: translateX(0); }
}

/* ---------- HAMBURGER BUTTON ---------- */

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.4rem;
  line-height: 0;
  transition: opacity 0.3s var(--ease);
  flex-shrink: 0;
}
.nav__hamburger:hover { opacity: 0.7; }

@media (max-width: 768px) {
  .nav__hamburger { display: flex; align-items: center; justify-content: center; }
  .nav__links { display: none !important; }
  .btn.btn--small.nav__cta { display: none; }
}

/* ---------- MOBILE MENU OVERLAY ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu__close:hover { opacity: 0.6; }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.mobile-menu__links a:hover,
.mobile-menu__links a.active { color: var(--ink); }

/* ---------- MOBILE RESPONSIVENESS ---------- */

@media (max-width: 768px) {
  /* Hero title — let descenders breathe and don't constrain width */
  .hero__title { max-width: 100%; }

  /* Subhero */
  .subhero { min-height: 55vh; }

  /* Intro padding */
  .intro { padding: 9rem var(--pad) 3rem; }

  /* Services */
  .service, .service--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service__media { aspect-ratio: 4/3; }

  /* Banner */
  .banner {
    grid-template-columns: 1fr;
    margin: 2rem 0;
  }
  .banner__media { aspect-ratio: 16/10; }
  .banner__media::after {
    background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
  }

  /* Apply form */
  .apply { grid-template-columns: 1fr; }
  .apply__visual { aspect-ratio: 16/10; }
  .apply__form {
    padding: 2.5rem var(--pad);
    max-width: 100%;
  }

  /* Dashboard */
  .dashboard__row { grid-template-columns: repeat(2, 1fr); }
  .dashboard__row--featured { grid-template-columns: 1fr; }
  .dashboard { padding: 3rem var(--pad); }

  /* Deal hero */
  .deal__hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .deal__hero-image { aspect-ratio: 4/3; order: -1; }
  .deal__hero-content { padding: 2.5rem clamp(1.25rem, 4vw, 2rem); }

  /* Floorplan */
  .floorplan { grid-template-columns: 1fr; }

  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .footer__brand { align-items: center; }
  .footer__legal { justify-content: center; }

  /* Float CTA — move up so it doesn't overlap mobile browser chrome */
  .float-cta { bottom: 5rem; right: 1.2rem; width: 52px; height: 52px; }
  .float-cta svg { width: 24px; height: 24px; }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  max-width: 420px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.cookie-banner.is-active { transform: translateY(0); opacity: 1; }
.cookie-banner__text { flex: 1; }
.cookie-banner__text a { color: var(--gold, #d4af37); text-decoration: underline; }
.cookie-banner__accept {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cookie-banner__accept:hover { background: #fff; color: #0b0b0d; border-color: #fff; }
@media (max-width: 540px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
}

