/* RA Realty and Construction Services — design system
   Brand cues from the client's own cover art: cream, olive-taupe, espresso, brushed gold. */
:root {
  --cream: #F3EEE6;
  --linen: #FBF8F3;
  --sand: #E7DED0;
  --stone: #D6CBB9;
  --taupe: #8A7B62;
  --olive: #6B6150;
  --gold: #B38E52;
  --gold-soft: #D9C29A;
  --espresso: #1D1915;
  --espresso-2: #29231D;
  --ink: #26211B;
  --muted: #6E655A;
  --line: rgba(38, 33, 27, .12);
  --line-light: rgba(255, 250, 240, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(40, 30, 15, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Cinzel", "Cormorant Garamond", serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--gold-soft); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(84px, 11vw, 160px) 0; position: relative; }
.section--dark { background: var(--espresso); color: #EFE8DC; }
.section--linen { background: var(--linen); }
.section--sand { background: var(--sand); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section--dark .eyebrow { color: var(--gold-soft); }
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
h1, .h1 { font-size: clamp(46px, 7.4vw, 108px); }
h2, .h2 { font-size: clamp(38px, 5.4vw, 76px); }
h3, .h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.display em, h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); font-weight: 500; }
.section--dark h2 em, .section--dark h3 em { color: var(--gold-soft); }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 60ch; line-height: 1.7; }
.section--dark .lead { color: rgba(239, 232, 220, .72); }
.head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.head--split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; }
.head--center { text-align: center; justify-items: center; }
.head--center .lead { margin-inline: auto; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--espresso); --fg: #F6F0E6;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--gold); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 40px -18px rgba(179, 142, 82, .8); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { --bg: var(--gold); --fg: #1D1915; }
.btn--gold::after { background: var(--espresso); }
.btn--gold:hover { color: #F6F0E6; }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: #1D1915; }
.btn--light { --bg: #F6F0E6; --fg: var(--espresso); }
.section--dark .btn--ghost, .on-dark .btn--ghost { --fg: #F3ECE0; box-shadow: inset 0 0 0 1px var(--line-light); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 60; pointer-events: none;
  transition: transform .6s var(--ease);
}
.nav__bar {
  pointer-events: auto;
  width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(251, 248, 243, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(38, 33, 27, .08), 0 10px 40px -20px rgba(40, 30, 15, .25);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
}
.nav.is-night .nav__bar { background: rgba(29, 25, 21, .5); color: #F3ECE0; box-shadow: inset 0 0 0 1px rgba(255, 250, 240, .1); }
.nav.is-hidden { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--brand); font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.brand__sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: .82;
  transition: opacity .3s, background .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; background: rgba(38, 33, 27, .06); }
.nav.is-night .nav__links a:hover, .nav.is-night .nav__links a[aria-current="page"] { background: rgba(255, 250, 240, .1); }
.nav__cta { display: flex; gap: 8px; align-items: center; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--espresso); color: #F6F0E6; place-items: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.menu-open .nav__burger span { background: transparent; }
.menu-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--espresso); color: #F3ECE0;
  display: grid; align-content: center; gap: 8px; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 50px) 40px); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 40px); visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(38px, 10vw, 56px); line-height: 1.15; }
.mobile-menu a em { color: var(--gold-soft); }
.mobile-menu .mobile-menu__contact { margin-top: 30px; display: grid; gap: 6px; font-family: var(--sans); font-size: 15px; opacity: .75; }
.mobile-menu .mobile-menu__contact a { font-family: var(--sans); font-size: 16px; }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__cta .btn { display: none; }
}

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--linen); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); font-style: italic; color: var(--olive); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: #E9E1D3; padding: 100px 0 40px; position: relative; overflow: hidden; }
.footer__big { font-family: var(--serif); font-size: clamp(54px, 11vw, 170px); line-height: .9; letter-spacing: -.02em; margin: 0 0 70px; }
.footer__big em { color: var(--gold-soft); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 50px; border-top: 1px solid var(--line-light); }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a { opacity: .8; transition: opacity .3s; }
.footer a:hover { opacity: 1; }
.footer__legal { margin-top: 70px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; opacity: .55; }
.footer .brand__mark { width: 52px; height: 52px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- floating contact + share ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 10px; justify-items: end; }
.fab__btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--espresso); color: #F6F0E6; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease), background .3s;
}
.fab__btn:hover { transform: translateY(-3px) scale(1.04); background: var(--gold); color: var(--espresso); }
.fab__btn svg { width: 22px; height: 22px; }
.fab__btn--wa { background: #1f9e5a; }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 140%);
  background: var(--espresso); color: #F6F0E6; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .5s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: width .35s var(--ease), height .35s var(--ease); }
.cursor.is-hover .cursor__dot { width: 46px; height: 46px; }
.cursor.is-drag .cursor__dot { width: 64px; height: 64px; }
.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #000; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-drag .cursor__label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--espresso); color: #F6F0E6; font-weight: 700; }
.skip:focus { left: 16px; }
