/* =========================================================
   KAVORA INTERIORS — base.css
   Tokens, typography, buttons, header, menu, footer, forms,
   cursor, loader, page transition. Motif: the diamond and the
   gold square of the KAVORA mark.
   ========================================================= */
:root {
  --gold: #F2B927; --gold-d: #D9A31C; --gold-s: rgba(242,185,39,.16);
  --black: #111111; --char: #242424; --char-2: #1a1a1a; --ivory: #F7F5F0; --beige: #E8DFD0; --taupe: #B9A58C; --taupe-d: #8a7863; --white: #FFFFFF;
  --text: #3b3833; --mute: #847b70; --mute-d: #a59c90;
  --line: rgba(17,17,17,.13); --line-d: rgba(247,245,240,.15);
  --serif: "Instrument Serif", "Playfair Display", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.19,1,.22,1); --ease-io: cubic-bezier(.77,0,.18,1);
  --pad: clamp(20px, 4.8vw, 84px); --max: 1500px; --nh: 96px;
  --dia: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ivory); color: var(--black); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 14px; top: -60px; z-index: 999; background: var(--gold); color: var(--black); padding: 10px 18px; font-size: .78rem; font-weight: 500; transition: top .2s; }
.skip:focus { top: 14px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.bk { background: var(--black); color: var(--ivory); }
.ch { background: var(--char); color: var(--ivory); }
.iv { background: var(--ivory); }
.bg { background: var(--beige); }
.wt { background: var(--white); }

/* ---------- Typography ---------- */
.d1, .d2, .d3, .d4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.d1 { font-size: clamp(3.2rem, 9vw, 10rem); line-height: .9; text-transform: uppercase; }
.d2 { font-size: clamp(2.6rem, 5.8vw, 6.2rem); line-height: .95; text-transform: uppercase; }
.d3 { font-size: clamp(2rem, 3.8vw, 3.9rem); line-height: 1.04; }
.d4 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.15; }
.d1 em, .d2 em, .d3 em, .d4 em { font-style: italic; text-transform: none; }
.hl { position: relative; display: inline-block; isolation: isolate; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.12em; top: .12em; bottom: .02em; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .4s; }
.in .hl::before, .hl.in::before { transform: none; }
.kk { display: inline-flex; align-items: center; gap: 14px; font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe-d); margin-bottom: 26px; }
.kk::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); flex: none; }
.kk b { font-weight: 500; color: var(--black); }
.bk .kk, .ch .kk { color: var(--taupe); } .bk .kk b, .ch .kk b { color: var(--gold); }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.8; color: var(--text); max-width: 56ch; }
.bk .lead, .ch .lead { color: #cfc8bd; }
.n { font-family: var(--serif); font-style: italic; color: var(--taupe-d); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: 6px 11px 5px; border: 1px solid currentColor; color: var(--taupe-d); white-space: nowrap; }
.chip--g { color: var(--black); background: var(--gold); border-color: var(--gold); }
.on-dk .chip, .bk .chip, .ch .chip { color: var(--beige); }
body:not(.show-pp) .chip.pp { display: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 18px; height: 56px; padding: 0 12px 0 28px; overflow: hidden; isolation: isolate; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; background: var(--black); color: var(--ivory); transition: color .5s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; background: var(--gold); clip-path: var(--dia); transform: translate(-50%, -50%) scale(0); transition: transform .8s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1.5); }
.btn:hover, .btn:focus-visible { color: var(--black); }
.btn i { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.btn i::before { content: ""; position: absolute; inset: 6px; border: 1px solid currentColor; transform: rotate(45deg); transition: transform .6s var(--ease), background .4s; }
.btn:hover i::before { transform: rotate(135deg); }
.btn i svg { position: relative; width: 12px; height: 12px; }
.btn--g { background: var(--gold); color: var(--black); }
.btn--g::before { background: var(--black); }
.btn--g:hover, .btn--g:focus-visible { color: var(--ivory); }
.btn--o { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--o:hover { color: var(--black); }
.btn--sm { height: 46px; padding: 0 8px 0 20px; font-size: .64rem; gap: 12px; }
.btn--sm i { width: 28px; height: 28px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lk { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
.lk::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); transition: transform .5s var(--ease); flex: none; }
.lk::after { content: ""; position: absolute; left: 20px; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.lk:hover::before { transform: rotate(225deg); }
.lk:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 400; height: var(--nh); color: var(--black); transition: background .6s var(--ease), height .6s var(--ease), transform .6s var(--ease), box-shadow .6s; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.hdr__logo { flex: none; height: 78px; display: block; transition: height .6s var(--ease), padding .5s, background .5s; }
.hdr__logo img { height: 100%; width: auto; }
.hdr__nav { margin-left: auto; display: flex; gap: clamp(6px, 1.3vw, 24px); }
.hdr__a { position: relative; padding: 8px 2px; font-size: .74rem; font-weight: 400; letter-spacing: .08em; }
.hdr__a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1.5px; background: var(--gold); transition: left .5s var(--ease), right .5s var(--ease); }
.hdr__a:hover::after, .hdr__a[aria-current]::after, .hdr__a.on::after { left: 2px; right: 2px; }
.hdr__a.on::before { content: ""; position: absolute; left: 50%; top: -4px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--gold); transform: rotate(45deg); }
.hdr__tel { font-size: .74rem; letter-spacing: .06em; white-space: nowrap; }
.hdr__tel:hover { color: var(--gold-d); }
.mb { position: relative; width: 50px; height: 50px; display: grid; place-items: center; }
.mb::before { content: ""; position: absolute; inset: 8px; border: 1px solid currentColor; transform: rotate(45deg); transition: transform .7s var(--ease), background .4s, border-color .4s; }
.mb:hover::before { transform: rotate(135deg); border-color: var(--gold); }
.mb span { position: relative; width: 16px; height: 7px; }
.mb i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.mb i:nth-child(1) { top: 0; } .mb i:nth-child(2) { top: 6px; }
.mb[aria-expanded="true"]::before { background: var(--gold); border-color: var(--gold); transform: rotate(135deg); }
.mb[aria-expanded="true"] i { top: 3px; color: var(--black); }
.mb[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); } .mb[aria-expanded="true"] i:nth-child(2) { transform: rotate(-45deg); }
body.hdr-dk .hdr:not(.solid) { color: var(--ivory); }
body.hdr-dk .hdr:not(.solid) .hdr__logo { background: var(--ivory); padding: 5px 7px; }
.hdr.solid { height: 76px; background: rgba(247,245,240,.92); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr.solid .hdr__logo { height: 62px; }
.hdr.hide { transform: translateY(-100%); }
body.menu-open .hdr { color: var(--ivory); background: transparent !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .hdr__nav, body.menu-open .hdr__tel, body.menu-open .hdr__in > .btn { opacity: 0; pointer-events: none; }
body.menu-open .hdr__logo { background: var(--ivory); padding: 5px 7px; }

/* ---------- Full-screen menu: opens as a diamond iris ---------- */
.menu { position: fixed; inset: 0; z-index: 390; background: var(--black); color: var(--ivory); display: grid; grid-template-columns: 1.25fr 1fr; overflow-y: auto; visibility: hidden; clip-path: circle(0% at calc(100% - var(--pad) - 25px) 48px); transition: clip-path .9s var(--ease-io), visibility 0s .9s; }
.menu.open { visibility: visible; clip-path: circle(150% at calc(100% - var(--pad) - 25px) 48px); transition: clip-path 1s var(--ease-io); }
.menu__main { padding: calc(var(--nh) + 40px) var(--pad) 60px; display: flex; flex-direction: column; justify-content: center; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: center; gap: 20px; padding: 4px 0; font-family: var(--serif); font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.04; transform: translateY(110%); transition: transform .9s var(--ease), color .4s; }
.menu__list a::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--gold); transform: rotate(45deg) scale(0); transition: transform .5s var(--ease); flex: none; }
.menu__list a:hover::before, .menu__list a[aria-current]::before { transform: rotate(45deg) scale(1); }
.menu__list a:hover, .menu__list a[aria-current] { color: var(--gold); font-style: italic; }
.menu.open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .05s; } .menu__list li:nth-child(3) a { transition-delay: .1s; } .menu__list li:nth-child(4) a { transition-delay: .15s; } .menu__list li:nth-child(5) a { transition-delay: .2s; } .menu__list li:nth-child(6) a { transition-delay: .25s; } .menu__list li:nth-child(7) a { transition-delay: .3s; }
.menu__side { padding: calc(var(--nh) + 40px) var(--pad) 60px; background: var(--char); display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.menu__side h4 { font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.menu__side a, .menu__side address { display: block; font-style: normal; color: #d9d2c6; line-height: 1.95; }
.menu__side a:hover { color: var(--gold); }
.menu__sv { columns: 2; column-gap: 20px; font-size: .9rem; }

/* ---------- Inner page header ---------- */
.ph { position: relative; padding: calc(var(--nh) + clamp(70px, 9vw, 140px)) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.ph__g { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: end; }
.ph__g > * { min-width: 0; }
.ph__dia { position: absolute; right: -6vw; top: 18%; width: min(36vw, 520px); aspect-ratio: 1; border: 1px solid var(--line); transform: rotate(45deg); pointer-events: none; }
.ph__dia::after { content: ""; position: absolute; inset: 22%; border: 1px solid rgba(242,185,39,.5); }
.ph__sq { position: absolute; right: calc(var(--pad) + 4vw); bottom: 18%; width: 90px; height: 90px; background: var(--gold); opacity: .9; pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 30px; }
.crumbs a:hover { color: var(--black); }
.on-dk .crumbs { color: #cfc8bd; } .on-dk .crumbs a:hover { color: var(--gold); }

/* ---------- Layout ---------- */
.sec { position: relative; padding: clamp(100px, 12vw, 200px) 0; }
.sec--s { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.hd { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 100px); align-items: end; margin-bottom: clamp(56px, 6vw, 100px); }
.hd > *, .split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 120px); align-items: center; }
.split--t { align-items: start; }
.sticky { position: sticky; top: calc(var(--nh) + 30px); }
.im { position: relative; overflow: hidden; background: var(--beige); }
.im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.im__t { position: absolute; z-index: 2; left: 12px; bottom: 12px; font-size: .54rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); background: rgba(17,17,17,.5); padding: 5px 9px 4px; backdrop-filter: blur(4px); pointer-events: none; }
.img-fb { background: linear-gradient(140deg, var(--beige), var(--taupe) 70%, #8f7c66) !important; }
.img-fb > img { opacity: 0; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: var(--white); border-left: 3px solid var(--gold); font-size: .9rem; line-height: 1.65; color: var(--text); max-width: 860px; }
.bk .note, .ch .note { background: var(--char); color: #d9d2c6; }
.note svg { flex: none; color: var(--gold-d); margin-top: 3px; }

/* ---------- CTA: full-width image, diamond reveal ---------- */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--ivory); background: var(--black); isolation: isolate; text-align: center; }
.cta__img { position: absolute; inset: 0; z-index: -2; clip-path: polygon(50% 20%, 80% 50%, 50% 80%, 20% 50%); }
.cta__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(17,17,17,.35), rgba(17,17,17,.78)); }
.cta__in { padding: 120px var(--pad); display: grid; justify-items: center; }
.cta .d2 { max-width: 13ch; margin-bottom: 28px; }
.cta .lead { color: #e2dbcf; margin: 0 auto 40px; text-align: center; }
.cta .btns { justify-content: center; }
.cta .kk { color: var(--beige); }

/* ---------- Footer ---------- */
.ft { background: var(--black); color: var(--ivory); position: relative; overflow: hidden; }
.ft__top { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 70px); align-items: center; padding: clamp(70px, 8vw, 120px) 0 clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line-d); }
.ft__top > * { min-width: 0; }
.ft__logo { display: block; width: 120px; background: var(--ivory); padding: 12px; }
.ft .ft__word { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 6rem); line-height: .9; letter-spacing: .02em; margin: 0; }
.ft .ft__word small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .4em; color: var(--taupe); margin-top: 14px; }
.ft__cta { justify-self: end; }
.ft__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.3fr; gap: 40px; padding: 60px 0; }
.ft__grid > * { min-width: 0; }
.ft h4 { font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.ft p, .ft address { color: var(--mute-d); font-style: normal; font-size: .92rem; line-height: 1.85; overflow-wrap: anywhere; }
.ft li a, .ft address a { color: #e7e1d6; line-height: 2.1; transition: color .3s; }
.ft li a:hover, .ft address a:hover { color: var(--gold); }
.ft__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 24px 0 30px; border-top: 1px solid var(--line-d); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); }
.ft__bar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ft__bar a:hover { color: var(--gold); }

/* ---------- Cursor ---------- */
.has-cur, .has-cur a, .has-cur button { cursor: none; }
.has-cur input, .has-cur textarea, .has-cur select { cursor: auto; }
.cu-d, .cu-r { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; }
.cu-d { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--gold); border-radius: 50%; transition: opacity .3s; }
.cu-r { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(17,17,17,.6); border-radius: 50%; display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s, opacity .3s; mix-blend-mode: normal; }
.cu-r span { font-size: .54rem; font-weight: 500; letter-spacing: .22em; color: var(--black); opacity: 0; transition: opacity .3s; padding-left: .22em; }
body.cu-dk .cu-r { border-color: rgba(247,245,240,.7); }
body.cu-h .cu-r { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: var(--gold); }
body.cu-l .cu-r { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
body.cu-l .cu-r span { opacity: 1; }
body.cu-l .cu-d { opacity: 0; }
body.cu-x .cu-d, body.cu-x .cu-r { opacity: 0; }

/* ---------- Forms ---------- */
.fm { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.f { display: grid; gap: 8px; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.f label em { color: var(--gold-d); font-style: normal; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 1rem; color: inherit; background: var(--white); border: 1px solid var(--line); padding: 15px 16px; border-radius: 0; -webkit-appearance: none; appearance: none; transition: border-color .3s, box-shadow .3s; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' fill='none' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--black); box-shadow: 4px 4px 0 var(--gold); }
.f.err input, .f.err select, .f.err textarea { border-color: #b3261e; }
.f__err { font-size: .8rem; color: #b3261e; }
.f__hint { font-size: .8rem; color: var(--mute); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; letter-spacing: 0 !important; text-transform: none !important; color: var(--text) !important; font-weight: 300 !important; }
.f .chk input { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; padding: 0; margin-top: 4px; accent-color: var(--black); flex: none; box-shadow: none; }
.fm__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.fm__msg { grid-column: 1 / -1; display: none; padding: 16px 20px; font-size: .94rem; border-left: 3px solid; background: var(--white); }
.fm__msg.show { display: block; }
.fm__msg--ok { border-color: #3c7a4f; } .fm__msg--info { border-color: var(--gold); } .fm__msg--err { border-color: #b3261e; }
.fm__msg a { text-decoration: underline; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal / 404 ---------- */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--serif); font-size: 2rem; margin: 52px 0 14px; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nh) + 40px) var(--pad) 80px; position: relative; overflow: hidden; }
.nf__n { font-family: var(--serif); font-size: clamp(8rem, 26vw, 22rem); line-height: .8; }
.nf__n span { display: inline-block; width: .62em; height: .62em; border: .07em solid var(--black); transform: rotate(45deg) translateY(-.06em); vertical-align: middle; margin: 0 .06em; background: linear-gradient(var(--gold), var(--gold)) center / 46% 46% no-repeat; }
.nf .btns { justify-content: center; }
.ph__sq { top: calc(var(--nh) + 46px); bottom: auto; width: 56px; height: 56px; } .ph__g { position: relative; z-index: 1; }
