/* PropertySalt site: the shared base, top bar, header, buttons and footer (from the design's site shell).
   Each page adds its own styles in a <style> block after this file. */
:root {
  --navy: #14283A;
  --navy-2: #1C2B39;
  --clay: #F9675A;
  --clay-hover: #E8503F;
  --accent: #FF8A7A;
  --eyebrow-dark: #FFB4A8;
  --muted: #5E6B76;
  --line: #EEF1F4;
  --line-2: #E6EAEE;
  --soft: #F6F8FA;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--navy);
  font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--clay-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; flex: none;
  height: 54px; padding: 0 26px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15.5px;
  cursor: pointer; border: 0; transition: background 300ms, color 300ms, border-color 300ms;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-hover); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn-glass { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { height: 46px; padding: 0 20px; font-size: 15px; }

/* ---- the "New" bar ---- */
.newbar { background: var(--navy-2); color: #fff; }
/* one slim line at every width: the long wording on desktop, a short one on phones */
.newbar .wrap {
  height: 38px; display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 13px; flex-wrap: nowrap; white-space: nowrap;
}
.newbar .tag { height: 20px; padding: 0 8px; border-radius: 100px; background: var(--clay); font-size: 11px; font-weight: 700; display: flex; align-items: center; flex: none; }
.newbar .txt { color: #D6DDE4; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.newbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.newbar a:hover { color: var(--accent); }
.newbar .short { display: none; }
@media (max-width: 640px) {
  .newbar .wrap { height: 34px; gap: 8px; font-size: 12.5px; }
  .newbar .long { display: none; }
  .newbar .short { display: inline; }
}

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.top-in { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex: none; }
.brand img { height: 32px; width: auto; display: block; }
.nav {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 32px);
  min-width: 0; overflow: hidden; font-size: clamp(14px, 1.2vw, 15.5px); font-weight: 500;
}
.nav a { padding: 8px 0; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--clay-hover); }
.acts { display: flex; align-items: center; gap: 6px; flex: none; }
.login { height: 46px; padding: 0 16px; display: flex; align-items: center; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
  color: var(--navy); align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-btn svg { width: 20px; height: 20px; }
/* the phone menu: a sheet under the header, sized to the screen by site.js */
.menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%; height: var(--menu-h, calc(100dvh - 64px));
  flex-direction: column; gap: 18px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom));
}
.menu-main { display: flex; flex-direction: column; }
.menu-main a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.menu-main b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.menu-main small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.menu-main svg { width: 18px; height: 18px; color: #A9B3BC; flex: none; }
.menu-main a[aria-current="page"] b { color: var(--clay-hover); }
.menu-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-more a { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--soft); font-size: 15px; font-weight: 600; }
.menu-more a[aria-current="page"] { color: var(--clay-hover); }
.menu-acts { margin-top: auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.menu-acts .btn { height: 52px; padding: 0 12px; }
.top.open .menu { display: flex; animation: ps-fade 260ms var(--ease); }
html.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 600px) {
  .top-in { height: 64px; gap: 10px; }
  .brand img { height: 26px; }
  .acts .login { display: none; }
  .acts .btn-sm { height: 42px; padding: 0 16px; }
  .menu-btn { width: 42px; height: 42px; }
}
@media (min-width: 901px) { .menu { display: none !important; } }

/* ---- footer ---- */
.foot { background: var(--soft); position: relative; overflow: hidden; border-top: 1px solid var(--line-2); }
.foot-in { max-width: 1280px; margin: 0 auto; padding: clamp(64px, 8vw, 96px) clamp(16px, 3vw, 32px) 0; }
.foot-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot-brand { flex: 1 1 300px; max-width: 360px; }
.foot-brand img { height: 32px; width: auto; display: block; }
.foot-brand p { margin: 22px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.foot-brand .btn { margin-top: 26px; }
.foot-cols { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 36px; }
.foot-cols h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); }
.foot-cols ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.foot-cols a { color: var(--muted); transition: color 200ms; }
.foot-cols a:hover { color: var(--clay-hover); }
.foot-word {
  margin-top: clamp(56px, 7vw, 88px); font-size: clamp(64px, 15.5vw, 230px); font-weight: 800; letter-spacing: -.06em;
  line-height: .78; color: rgba(20, 40, 58, .06); white-space: nowrap; user-select: none; text-align: center;
}
.foot-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 16px;
  padding: 26px 0 30px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted);
}
.foot-where { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.foot-where::before { content: ''; width: 6px; height: 6px; border-radius: 100px; background: var(--clay); }
.foot-legal { display: flex; gap: 26px; justify-content: flex-end; flex-wrap: wrap; }
.foot-legal a { color: var(--muted); }
@media (max-width: 700px) {
  .foot-bottom { grid-template-columns: 1fr; justify-items: start; }
  .foot-legal { justify-content: flex-start; }
}
/* phones: a compact footer, links big enough to tap */
@media (max-width: 640px) {
  .foot-in { padding: 44px 20px 0; }
  .foot-top { gap: 30px; }
  .foot-brand { max-width: none; flex-basis: 100%; }
  .foot-brand img { height: 28px; }
  .foot-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.6; }
  .foot-brand .btn { margin-top: 18px; width: 100%; }
  .foot-cols { flex-basis: 100%; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-cols h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8A96A1; }
  .foot-cols ul { margin-top: 6px; gap: 0; }
  .foot-cols a { display: flex; align-items: center; min-height: 42px; color: var(--navy); font-weight: 500; }
  .foot-word { margin-top: 26px; font-size: 17vw; }
  .foot-bottom { gap: 4px; padding: 16px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 13px; }
  .foot-legal { gap: 20px; }
  .foot-legal a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---- phones: shared rhythm and swipe rows ---- */
/* data-rail on a grid of cards: on phones it becomes one row you swipe, each card most of the screen
   wide with the next one peeking in; site.js adds the dots under it. --rail-w sets the card width. */
.rail-dots { display: none; }
@media (max-width: 640px) {
  .btn { height: 50px; padding: 0 22px; font-size: 15px; }
  [data-rail] {
    display: flex !important; flex-wrap: nowrap !important; gap: 12px !important; align-items: stretch;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-left: -16px !important; margin-right: -16px !important; padding: 6px 16px 10px !important; scroll-padding-inline: 16px;
  }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { flex: 0 0 var(--rail-w, 84%) !important; min-width: 0; max-width: none !important; margin: 0 !important; scroll-snap-align: start; }
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 10px; background: #D3DAE0; transition: width 300ms var(--ease), background 300ms; }
  .rail-dots i.on { width: 22px; background: var(--clay); }
  .rail-dots.dark i { background: rgba(255, 255, 255, .25); }
  .rail-dots.dark i.on { background: var(--clay); }
}

/* ---- motion ---- */
/* scroll reveal: a page opts in with data-reveal (="up" default, "left", "right", "zoom") on a block, or
   data-stagger on a grid (its children come in one after another). site.js adds .in when it's seen.
   Hidden only when JS runs (<html class="js">), so the page reads fine without it. */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.94) translateY(20px); }
.js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal].in, .js [data-stagger].in > * { opacity: 1; transform: none; }
.rise { animation: rise 900ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ps-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- market: one country's prices (market.js marks <html data-market>) ---- */
html[data-market="india"] [data-m="uae"], html:not([data-market="india"]) [data-m="india"] { display: none !important; }
.mline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; color: var(--muted); }
.mline b { color: var(--navy); font-weight: 700; }
.mline svg { width: 15px; height: 15px; flex: none; color: var(--clay); }
.mline-sw { font: inherit; font-weight: 600; color: var(--navy); background: none; border: 0; padding: 10px 2px; margin: -10px 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(20, 40, 58, .3); text-underline-offset: 3px; }
.mline-sw:hover { color: var(--clay-hover); text-decoration-color: currentColor; }
