/* ==========================================================================
   Villa 248 Canterbury — Kahatuduwa
   ========================================================================== */

:root {
  --navy: #131515;
  --navy-2: #1b1d1d;
  --navy-3: #262828;
  --ink: #1a2333;
  --gold: #c08a2b;
  --gold-2: #e0b45a;
  --gold-deep: #9c6e1e;
  --cream: #f6f1e7;
  --ivory: #fbf8f2;
  --paper: #ffffff;
  --muted: #6c7180;
  --line: rgba(19, 21, 21, .12);
  --line-light: rgba(255, 255, 255, .14);

  --display: "Cinzel", "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 3px;
  --radius-lg: 12px;
  --shadow: 0 24px 60px -24px rgba(19, 21, 21, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 86px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--ivory); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading, body.menu-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold-2); }
.title { font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); font-weight: 400; color: var(--navy); margin-bottom: 24px; letter-spacing: -.005em; }
.title em { font-style: italic; color: var(--gold-deep); }
.title--light { color: #fff; }
.title--light em { color: var(--gold-2); }
.flourish { display: block; width: 120px; height: 16px; color: var(--gold); }
.flourish--center { margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(44px, 6vw, 70px); }
.section-head .eyebrow::after { content: ""; width: 30px; height: 1px; background: currentColor; }
.section-head .title { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: var(--navy); }
.btn--gold:hover { box-shadow: 0 16px 34px -14px rgba(192, 138, 43, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--gold); color: var(--navy); }
.btn--sm { padding: 12px 22px; font-size: 11.5px; }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--navy); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.preloader__inner { display: grid; justify-items: center; color: #f3ead7; }
.preloader__mark { width: 120px; height: 120px; animation: markIn 1.2s var(--ease) both; }
.preloader__word { font-family: var(--display); font-size: 34px; letter-spacing: .4em; padding-left: .4em; margin-top: 14px; animation: fadeUp 1s .4s var(--ease) both; }
.preloader__sub { font-family: var(--display); font-size: 11px; letter-spacing: .5em; padding-left: .5em; color: var(--gold-2); animation: fadeUp 1s .6s var(--ease) both; }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }
@keyframes markIn { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #fff; transition: background .45s var(--ease), height .45s var(--ease), box-shadow .45s, transform .45s var(--ease); }
.header__inner { height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.is-scrolled { --header-h: 72px; background: rgba(19, 21, 21, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(192, 138, 43, .25); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; color: #f3ead7; }
.brand__mark { width: 52px; height: 52px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-5deg) scale(1.04); }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: .22em; color: #fff; }
.brand__sub { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); margin-top: 7px; }
.nav__list { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__link { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--gold-2); }
.nav__foot { display: none; }
.header__actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; left: 16px; background: var(--gold); }
.burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.6s var(--ease), transform 8s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(10, 11, 11, .6) 0%, rgba(10, 11, 11, .2) 35%, rgba(10, 11, 11, .35) 65%, rgba(10, 11, 11, .92) 100%),
    linear-gradient(90deg, rgba(10, 11, 11, .7) 0%, rgba(10, 11, 11, 0) 70%);
}
.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); padding-bottom: 170px; }
.hero__badge { width: 96px; height: 96px; margin-bottom: 26px; color: #f3ead7; opacity: 0; animation: markIn 1.2s 1.1s var(--ease) forwards; }
.hero__badge-mark { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.hero__eyebrow { opacity: 0; animation: fadeUp 1s 1.2s var(--ease) forwards; }
.hero__title { font-family: var(--serif); font-size: clamp(48px, 7.6vw, 108px); font-weight: 400; line-height: 1; letter-spacing: -.015em; margin-bottom: 26px; }
.hero__title em { color: var(--gold-2); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: 1.3s; }
.hero__title .line:nth-child(2) > span { animation-delay: 1.45s; }
@keyframes lineUp { to { transform: none; } }
.hero__lead { max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .86); opacity: 0; animation: fadeUp 1s 1.7s var(--ease) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fadeUp 1s 1.9s var(--ease) forwards; }
.hero__facts {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 100px; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; gap: clamp(20px, 4vw, 54px); opacity: 0; animation: fadeUp 1s 2.1s var(--ease) forwards;
}
.hero__facts div { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.hero__facts svg { grid-row: span 2; width: 28px; height: 28px; color: var(--gold-2); }
.hero__facts strong { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.hero__facts span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.hero__dots { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.hero__dots button { width: 2px; height: 30px; background: rgba(255, 255, 255, .35); transition: background .4s, height .4s; }
.hero__dots button.is-active { background: var(--gold); height: 52px; }

/* ---------- Booking ---------- */
.booking { position: relative; z-index: 5; margin-top: -64px; scroll-margin-top: calc(var(--header-h) + 16px); }
.section { scroll-margin-top: calc(var(--header-h) + 16px); }
.hero { scroll-margin-top: 0; }
.booking__form {
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -30px rgba(19, 21, 21, .55);
  border-top: 3px solid var(--gold);
  display: grid; grid-template-columns: 1fr 1fr .85fr .85fr auto; padding: 10px; align-items: stretch;
}
.booking .field { padding: 14px 22px; border-right: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.booking .field:nth-of-type(4) { border-right: 0; }
.booking label { font-family: var(--display); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.booking input { border: 0; background: transparent; padding: 2px 0; font-size: 17px; font-weight: 400; color: var(--navy); width: 100%; min-width: 0; outline: none; -webkit-appearance: none; appearance: none; }
.booking input[type="date"] { cursor: pointer; min-height: 28px; }
.booking input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-deep); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: background .3s, color .3s; }
.stepper button:hover { background: var(--navy); color: #fff; }
.stepper input { text-align: center; width: 40px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.booking__submit { border-radius: 8px; margin-left: 6px; }
.booking__submit svg { width: 20px; height: 20px; }
.booking__note { grid-column: 1 / -1; margin: 0; padding: 10px 22px 4px; font-size: 13.5px; color: var(--muted); }
.booking__error { grid-column: 1 / -1; margin: 0; color: #b4462f; font-size: 14px; padding: 4px 22px; }
.booking__error:empty { display: none; }

/* ---------- Welcome ---------- */
.welcome__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.welcome__media { position: relative; min-height: 600px; }
.welcome__img { position: absolute; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.welcome__img--a { left: 0; top: 0; width: 66%; height: 86%; }
.welcome__img--b { right: 0; bottom: 0; width: 52%; height: 46%; border: 8px solid var(--ivory); }
.welcome__stamp {
  position: absolute; right: 8%; top: 6%; width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: #f3ead7;
  display: grid; place-items: center; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.welcome__stamp svg { width: 96px; height: 96px; }
@keyframes float { 50% { transform: translateY(-10px); } }
.welcome__text > p { color: #4b5160; font-size: 18px; }
.sign { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.sign .flourish { margin-bottom: 14px; }
.sign p { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--navy); margin-bottom: 8px; }
.sign span { font-family: var(--display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }

.floors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(64px, 9vw, 110px); }
.floor { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 32px; position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.floor::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-2), var(--gold-deep)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.floor:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.floor:hover::before { transform: scaleX(1); }
.floor__num { position: absolute; right: 24px; top: 14px; font-family: var(--display); font-size: 54px; color: rgba(192, 138, 43, .18); line-height: 1; }
.floor h3 { font-family: var(--display); font-size: 19px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 22px; }
.floor ul { display: grid; gap: 12px; }
.floor li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.floor li svg { width: 20px; height: 20px; color: var(--gold-deep); }

/* ---------- Spaces ---------- */
.spaces { background: var(--navy); color: #fff; }
.spaces::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 50% -10%, rgba(192, 138, 43, .12), transparent 60%); pointer-events: none; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; position: relative; }
.tab { padding: 10px 22px; border-radius: 30px; border: 1px solid var(--line-light); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); transition: background .3s, color .3s, border-color .3s; }
.tab:hover { border-color: var(--gold); color: #fff; }
.tab.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 500; }
.masonry { columns: 4 240px; column-gap: 16px; position: relative; }
.g-item { margin: 0 0 16px; break-inside: avoid; border-radius: 10px; overflow: hidden; cursor: zoom-in; position: relative; background: var(--navy-2); }
.g-item img { width: 100%; transition: transform 1s var(--ease); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(10, 11, 11, .85)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.g-item.is-hidden { display: none; }
.g-item.is-entering { animation: popIn .6s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Amenities ---------- */
.amenities { background: var(--cream); }
.amen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.amen-grid li { background: var(--ivory); padding: 34px 26px; display: grid; gap: 4px; transition: background .4s; }
.amen-grid li:hover { background: var(--paper); }
.amen-grid svg { width: 32px; height: 32px; color: var(--gold-deep); margin-bottom: 14px; transition: transform .5s var(--ease); }
.amen-grid li:hover svg { transform: translateY(-4px); }
.amen-grid strong { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy); }
.amen-grid span { font-size: 14.5px; color: var(--muted); }

/* ---------- Estate ---------- */
.estate { background: var(--ivory); padding-bottom: clamp(80px, 10vw, 130px); }
.estate__hero { position: relative; background-size: cover; background-position: center 60%; background-attachment: fixed; padding: clamp(110px, 15vw, 190px) 0 clamp(140px, 17vw, 220px); color: #fff; }
.estate__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 11, .9), rgba(10, 11, 11, .45)), linear-gradient(180deg, transparent 60%, rgba(10, 11, 11, .5)); }
.estate__intro { position: relative; }
.estate__intro > p { max-width: 600px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.estate__stats { display: flex; flex-wrap: wrap; gap: clamp(26px, 5vw, 60px); margin-top: 36px; }
.estate__stats strong { display: block; font-family: var(--serif); font-size: clamp(44px, 5vw, 62px); font-weight: 400; color: var(--gold-2); line-height: 1; }
.estate__stats span { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.estate__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: -90px; position: relative; }
.e-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; min-height: 340px; box-shadow: var(--shadow); }
.e-card--wide { grid-column: span 2; }
.e-card--full { grid-column: 1 / -1; min-height: 420px; }
.e-card--full img { object-position: center 70%; }
.e-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.e-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 11, 0) 35%, rgba(10, 11, 11, .92)); }
.e-card:hover img { transform: scale(1.06); }
.e-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 28px; }
.e-card__body svg { width: 28px; height: 28px; color: var(--gold-2); margin-bottom: 10px; }
.e-card h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.e-card p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 460px; }
.estate__note { text-align: center; color: var(--muted); font-size: 14px; margin: 30px auto 0; max-width: 720px; }

/* ---------- Location ---------- */
.location { background: var(--cream); }
.location__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.location__addr { display: flex; gap: 14px; color: #4b5160; }
.location__addr svg { width: 24px; height: 24px; color: var(--gold-deep); margin-top: 3px; }
.dist { margin: 26px 0 34px; border-top: 1px solid var(--line); }
.dist li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.dist svg { width: 20px; height: 20px; color: var(--gold-deep); }
.dist span { flex: 1; }
.dist b { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.6; background: #dde3e8; border: 6px solid var(--paper); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Rules ---------- */
.rules { background: var(--navy-2); color: #fff; }
.rules__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rule { border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 32px 30px; transition: border-color .4s, background .4s; }
.rule:hover { border-color: rgba(192, 138, 43, .6); background: rgba(255, 255, 255, .03); }
.rule svg { width: 30px; height: 30px; color: var(--gold-2); margin-bottom: 16px; }
.rule h4 { font-family: var(--display); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.rule p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15.5px; }

/* ---------- FAQ + Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 23px; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--gold-deep); transition: transform .4s var(--ease); }
.faq__item summary::before { transform: rotate(90deg); }
.faq__item[open] summary::before { transform: rotate(0); }
.faq__item p { color: #4b5160; padding-bottom: 22px; margin: 0; animation: fadeUp .5s var(--ease); }
.contact__card { background: var(--navy); color: #fff; padding: clamp(30px, 4vw, 48px); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: sticky; top: 100px; text-align: center; }
.contact__mark { width: 84px; height: 84px; color: #f3ead7; margin: 0 auto 14px; display: block; }
.contact__card h3 { font-family: var(--serif); font-size: 34px; margin-bottom: 6px; }
.contact__card > p { color: rgba(255, 255, 255, .72); }
.contact__form { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.field--float { position: relative; }
.field--float input, .field--float textarea {
  width: 100%; border: 1px solid var(--line-light); border-radius: 8px; padding: 24px 16px 10px; background: rgba(255, 255, 255, .05);
  font-size: 16px; color: #fff; outline: none; transition: border-color .3s, background .3s; resize: vertical;
}
.field--float label { position: absolute; left: 17px; top: 17px; color: rgba(255, 255, 255, .6); font-size: 16px; pointer-events: none; transition: transform .3s var(--ease), font-size .3s, color .3s; transform-origin: left top; }
.field--float input:focus, .field--float textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .08); }
.field--float input:focus + label, .field--float input:not(:placeholder-shown) + label,
.field--float textarea:focus + label, .field--float textarea:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.field--float.is-invalid input, .field--float.is-invalid textarea { border-color: #e07a5f; }
.form-error { color: #f0a58f; font-size: 14px; margin: 0; }
.form-error:empty { display: none; }
.contact__direct { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-light); text-align: left; }
.contact__line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 8px; transition: border-color .3s, background .3s; }
.contact__line:hover { border-color: var(--gold); background: rgba(255, 255, 255, .04); }
.contact__line svg { width: 22px; height: 22px; color: var(--gold-2); }
.contact__line span { display: grid; font-size: 14.5px; line-height: 1.3; }
.contact__line small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* ---------- CTA ---------- */
.cta { position: relative; background-size: cover; background-position: center; background-attachment: fixed; padding: clamp(100px, 13vw, 160px) 0; color: #fff; text-align: center; }
.cta__shade { position: absolute; inset: 0; background: rgba(10, 11, 11, .72); }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.cta__mark { width: 90px; height: 90px; color: #f3ead7; }
.cta h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); }
.cta em { color: var(--gold-2); }

/* ---------- Footer ---------- */
.footer { background: #0d0e0e; color: rgba(255, 255, 255, .7); padding: 80px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer__logo { display: grid; justify-items: center; width: max-content; color: #f3ead7; }
.footer__mark { width: 110px; height: 110px; }
.footer__word { font-family: var(--display); font-size: 34px; letter-spacing: .3em; padding-left: .3em; line-height: 1.1; margin-top: 6px; }
.footer__logo .flourish { margin: 6px 0; }
.footer__sub { font-family: var(--display); font-size: 12px; letter-spacing: .5em; padding-left: .5em; color: rgba(243, 234, 215, .85); }
.footer h5 { color: var(--gold-2); font-family: var(--display); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold-2); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: 13px; }
.footer__credit { color: rgba(255, 255, 255, .45); }

/* ---------- Floating ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .35s var(--ease); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.4s infinite; z-index: -1; }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: scale(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-2); border: 1px solid rgba(192, 138, 43, .4); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s, transform .4s, visibility .4s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(5, 11, 21, .96); display: flex; align-items: center; justify-content: center; padding: 60px 80px; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); object-fit: contain; border-radius: 6px; animation: popIn .5s var(--ease); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .75); font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; color: #fff; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--navy); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translate3d(0, 42px, 0); transition: opacity .95s var(--ease), transform .95s var(--ease); will-change: opacity, transform; }
.reveal--right { transform: translate3d(42px, 0, 0); }
.reveal--scale { transform: translate3d(0, 32px, 0) scale(0.96); }
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__list { gap: 18px; }
  .nav__link { font-size: 11.5px; letter-spacing: .14em; }
  .amen-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--navy); display: flex; flex-direction: column; justify-content: center;
    padding: 100px var(--gutter) 40px; clip-path: circle(0 at calc(100% - 44px) 37px); transition: clip-path .8s var(--ease); visibility: hidden;
  }
  body.menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 37px); visibility: visible; }
  body.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open .header__book { display: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { font-family: var(--serif); font-size: clamp(32px, 7vw, 46px); letter-spacing: 0; text-transform: none; display: inline-block; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
  .nav__link::after { display: none; }
  body.menu-open .nav__link { opacity: 1; transform: none; }
  body.menu-open .nav__list li:nth-child(1) .nav__link { transition-delay: .15s; }
  body.menu-open .nav__list li:nth-child(2) .nav__link { transition-delay: .2s; }
  body.menu-open .nav__list li:nth-child(3) .nav__link { transition-delay: .25s; }
  body.menu-open .nav__list li:nth-child(4) .nav__link { transition-delay: .3s; }
  body.menu-open .nav__list li:nth-child(5) .nav__link { transition-delay: .35s; }
  body.menu-open .nav__list li:nth-child(6) .nav__link { transition-delay: .4s; }
  body.menu-open .nav__list li:nth-child(7) .nav__link { transition-delay: .5s; }
  .nav__foot { display: grid; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light); }
  .nav__foot a { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .85); }
  .nav__foot svg { width: 20px; height: 20px; color: var(--gold-2); }

  .booking__form { grid-template-columns: 1fr 1fr; }
  .booking .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .booking .field:nth-of-type(odd) { border-right: 1px solid var(--line); }
  .booking__submit { grid-column: 1 / -1; margin: 10px 0 0; padding: 18px; }

  .welcome__grid, .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .welcome__media { min-height: 520px; max-width: 640px; width: 100%; }
  .floors { grid-template-columns: 1fr 1fr; }
  .floors .floor:last-child { grid-column: 1 / -1; }
  .estate__grid { grid-template-columns: 1fr 1fr; }
  .e-card--wide, .e-card--full { grid-column: 1 / -1; }
  .rules__grid { grid-template-columns: 1fr 1fr; }
  .contact__card { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .estate__hero, .cta { background-attachment: scroll; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; --gutter: clamp(14px, 4.2vw, 22px); }
  body { font-size: 16px; }
  .section { padding: clamp(52px, 11vw, 76px) 0; }
  .header__book { display: none; }
  .header .brand__mark { width: 44px; height: auto; }
  .brand__name { font-size: 16px; letter-spacing: .16em; }
  .brand__sub { font-size: 8px; letter-spacing: .18em; }

  .nav {
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .eyebrow { font-size: 10px; letter-spacing: .2em; gap: 10px; max-width: 100%; }
  .eyebrow::before { width: 18px; }
  .section-head .eyebrow::after { width: 18px; }

  .hero { align-items: flex-end; min-height: 100svh; }
  .hero__content { padding-bottom: 200px; }
  .hero__title { font-size: clamp(36px, 10.5vw, 52px); }
  .hero__badge { width: 76px; height: 76px; margin-bottom: 18px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; white-space: normal; text-align: center; min-height: 48px; }
  .hero__facts {
    bottom: 78px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
  }
  .hero__facts div { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 2px; }
  .hero__facts svg { grid-row: auto; width: 22px; height: 22px; }
  .hero__facts strong { font-size: 21px; }
  .hero__facts span { font-size: 8.5px; letter-spacing: .1em; line-height: 1.25; }
  .hero__dots { top: auto; bottom: 56px; right: auto; left: var(--gutter); transform: none; display: flex; gap: 8px; }
  .hero__dots button { width: 26px; height: 2px; }
  .hero__dots button.is-active { width: 44px; height: 2px; }

  .booking { margin-top: -32px; scroll-margin-top: calc(var(--header-h) + 12px); }
  .booking__form { grid-template-columns: 1fr; padding: 8px; }
  .booking .field { padding: 12px 14px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .booking .field:last-of-type { border-bottom: 0; }
  .booking__submit { grid-column: 1 / -1; margin: 8px 0 0; padding: 16px; min-height: 48px; }
  .booking__note, .booking__error { padding-left: 14px; padding-right: 14px; }
  .stepper button { width: 40px; height: 40px; }

  .welcome__media { min-height: 340px; max-width: 100%; }
  .welcome__img--a { width: 72%; height: 72%; }
  .welcome__img--b { width: 58%; height: 44%; border-width: 5px; }
  .welcome__text > p { font-size: 16px; }
  .sign p { font-size: 20px; }
  .welcome__stamp { width: 90px; height: 90px; right: 2%; }
  .welcome__stamp svg { width: 72px; height: 72px; }
  .floors { grid-template-columns: 1fr; margin-top: 48px; }
  .floor { padding: 28px 22px; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 10px 16px; min-height: 44px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 8px; }
  .g-item figcaption { opacity: 1; transform: none; font-size: 9.5px; padding: 24px 10px 10px; }

  .amen-grid { grid-template-columns: 1fr 1fr; }
  .amen-grid li { padding: 22px 16px; }
  .amen-grid strong { font-size: 18px; }
  .amen-grid span { font-size: 13px; }

  .estate__grid { grid-template-columns: 1fr; margin-top: -70px; }
  .page-inner .estate__grid { margin-top: 0; }
  .e-card { min-height: 280px; }
  .e-card h3 { font-size: 24px; }
  .rules__grid { grid-template-columns: 1fr; }
  .rule { padding: 26px 22px; }

  .location__map { border-width: 4px; }
  .dist li { align-items: flex-start; font-size: 15px; }
  .dist b { white-space: normal; font-size: 17px; margin-left: auto; text-align: right; max-width: 42%; }

  .faq__item summary { font-size: 19px; padding: 18px 36px 18px 0; line-height: 1.35; }
  .contact__card h3 { font-size: 28px; }
  .contact__direct { grid-template-columns: 1fr; }
  .contact__line { min-height: 48px; }

  .cta h2 { font-size: clamp(28px, 8vw, 40px); }
  .footer { padding: 56px 0 max(24px, env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__img { width: 168px; margin: 0 auto; }

  .page-hero { min-height: clamp(220px, 52vw, 320px); }
  .page-hero__content { padding-top: calc(var(--header-h) + 20px); padding-bottom: 28px; }
  .page-hero__content .title { font-size: clamp(28px, 8.5vw, 40px); }
  .page-hero__lead { font-size: 15px; }
  .page-inner .booking--compact { padding-top: 32px; }

  .explore-card__body strong { font-size: 21px; }
  .explore-card__body { padding-right: 44px; }

  .lightbox { padding: max(56px, env(safe-area-inset-top)) 10px max(72px, env(safe-area-inset-bottom)); }
  .lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; }
  .lightbox__nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }

  .fab-wa { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .to-top { right: max(18px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }

  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}

/* ---------- Logo artwork ---------- */
.preloader__logo { width: min(240px, 72vw); height: auto; animation: markIn 1.2s var(--ease) both; }
.header .brand__mark { width: 52px; height: auto; max-height: 52px; object-fit: contain; }
.hero__logo {
  display: block;
  width: min(205px, 46vw);
  max-width: 205px;
  height: auto;
  margin-bottom: 22px;
  opacity: 0;
  animation: markIn 1.2s 1.1s var(--ease) forwards;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .45));
}
/* the big logo lives in the hero; the header logo only appears once it has scrolled away */
.header .brand { transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.header:not(.show-brand) .brand { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.footer__img { display: block; width: min(210px, 58vw); height: auto; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  min-height: clamp(260px, 38vw, 400px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy) center/cover no-repeat;
  overflow: hidden;
}
.page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 21, 21, .35) 0%, rgba(19, 21, 21, .82) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(var(--header-h) + 36px) 0 clamp(36px, 6vw, 56px);
}
.page-hero__content .title { margin-bottom: 14px; font-size: clamp(34px, 5vw, 52px); }
.page-hero__lead { max-width: 560px; margin: 0; font-size: clamp(16px, 1.5vw, 18px); color: rgba(255, 255, 255, .86); }

body.page-inner .header { background: rgba(19, 21, 21, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(192, 138, 43, .25); }
body.page-inner .header .brand { opacity: 1; visibility: visible; transform: none; }

.page-inner .booking { margin-top: 0; }
.page-inner .booking--compact { padding: clamp(40px, 6vw, 70px) 0 0; }
.page-inner .estate .estate__grid { margin-top: 0; }
.page-inner .section.spaces { padding-top: clamp(48px, 7vw, 80px); }

.explore__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.explore-card {
  display: grid;
  grid-template-rows: 160px auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
  position: relative;
}
.explore-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -24px rgba(19, 21, 21, .5); }
.explore-card__img { background: center/cover no-repeat; min-height: 160px; }
.explore-card__body { padding: 20px 52px 20px 20px; display: grid; gap: 8px; align-content: start; }
.explore-card__body strong { font-family: var(--serif); font-size: 24px; color: var(--navy); font-weight: 500; }
.explore-card__body span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.explore-card__arrow { position: absolute; right: 18px; bottom: 22px; width: 22px; height: 22px; color: var(--gold); }

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

@media (max-width: 720px) {
  .explore__grid { grid-template-columns: 1fr; }
  .explore-card { grid-template-rows: 140px auto; }
  .preloader__logo { width: min(160px, 58vw); }

  /* Use compact header mark on home; hide the tall hero logo on small screens */
  body:not(.page-inner) .hero__logo { display: none; }
  body:not(.page-inner) .header .brand {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body:not(.page-inner) .header:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(19, 21, 21, .82) 0%, rgba(19, 21, 21, 0) 100%);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 15px; }
  .header .brand__mark { width: 40px; max-height: 40px; }
  .header .brand__name { font-size: 14px; letter-spacing: .14em; }
  .hero__content { padding-bottom: 228px; }
  .hero__lead { font-size: 15px; }
  .hero__facts { bottom: 64px; gap: 8px; }
  .hero__dots { bottom: 46px; }
  .masonry { columns: 1; }
  .amen-grid { grid-template-columns: 1fr; }
  .estate__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .location__map { aspect-ratio: 1 / 1; min-height: 240px; }
  .section-head .title { font-size: clamp(26px, 8vw, 34px); }
  .title { font-size: clamp(28px, 8vw, 36px); }
  .floor__num { font-size: 44px; }
}

@media (max-width: 360px) {
  .hero__facts strong { font-size: 18px; }
  .hero__facts span { font-size: 7.5px; }
  .tab { font-size: 11px; padding: 9px 12px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover { transform: none; box-shadow: none; }
  .explore-card:hover { transform: none; box-shadow: var(--shadow); }
  .floor:hover { transform: none; box-shadow: none; }
  .g-item:hover img { transform: none; }
}
