/* ═══════════════════════════════════════════
   SANDWORTH PROPERTIES LTD. — STYLESHEET
   Brand Colors extracted from official logo:
   Navy  #1B2A4A  |  Blue  #3A7EC6  |  Gold  #B8974A
   ═══════════════════════════════════════════ */

:root {
  /* Brand Palette */
  --navy:        #1B2A4A;
  --navy-deep:   #111D33;
  --navy-mid:    #243460;
  --blue:        #3A7EC6;
  --blue-light:  #5B9BD5;
  --blue-pale:   #EAF2FB;
  --gold:        #B8974A;
  --gold-light:  #D4B06A;
  --gold-pale:   #F7F0E1;
  --gold-dark:   #8A6E2E;
  --white:       #FFFFFF;
  --off-white:   #F8F9FC;
  --gray-100:    #F2F4F8;
  --gray-200:    #E4E8F0;
  --gray-400:    #9BAABF;
  --gray-600:    #5C6F8A;
  --text:        #1B2A4A;
  --text-soft:   #4A5B72;

  --header-h:    78px;
  --max-w:       1220px;
  --r:           6px;
  --r-lg:        12px;
  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           .3s var(--ease);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,blockquote {
  font-family: 'Playfair Display', serif;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
p  { color: var(--text-soft); line-height: 1.75; }
em { font-style: italic; color: var(--gold); }
strong { color: var(--navy); font-weight: 600; }

/* ── SECTIONS ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 32px;
}
.sec-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(184,151,74,.25);
  border-radius: 40px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.sec-tag.light {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: var(--gold-light);
}
.sec-head-row {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.sec-head-row h2 { flex: 1; min-width: 260px; }
.sec-head-row p { flex: 1; min-width: 260px; color: var(--text-soft); font-size: 1rem; }


/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  padding: 14px 30px;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: var(--r);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(184,151,74,.38);
}
.btn-primary svg { flex-shrink: 0; transition: transform var(--t); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--navy);
  padding: 13px 28px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: var(--r);
  border: 2px solid var(--navy);
  transition: background var(--t), color var(--t);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color var(--t), border-color var(--t);
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  padding: 14px 30px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: var(--r);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.15); }
.btn-white svg { transition: transform var(--t); }
.btn-white:hover svg { transform: translateX(3px); }

/* ── HEADER ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27,42,74,.08);
  box-shadow: 0 2px 24px rgba(27,42,74,.06);
  transition: box-shadow var(--t);
  /* Allow dropdown to escape header bounds */
  overflow: visible;
}
#site-header.scrolled { box-shadow: 0 4px 40px rgba(27,42,74,.14); }
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  /* Must be visible so dropdown panel can appear below header */
  overflow: visible;
}
.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.footer-logo { height: 60px; }

.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; overflow: visible; }
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
  letter-spacing: .02em;
}
.nav-link:hover { color: var(--navy); background: var(--gray-100); }
.nav-link.active { color: var(--blue); font-weight: 600; background: var(--blue-pale); }

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: var(--r);
  flex-shrink: 0;
  transition: background var(--t), box-shadow var(--t);
}
.header-cta:hover { background: var(--navy-mid); box-shadow: 0 6px 24px rgba(27,42,74,.25); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGES ── */
#app { padding-top: var(--header-h); }
.page { display: none; animation: fadeIn .4s var(--ease); }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* Grid lines echoing architectural blueprints */
.hb-grid { position: absolute; inset: 0; }
.hbg-line { position: absolute; background: rgba(58,126,198,.07); }
.hbg-v { top: 0; bottom: 0; width: 1px; }
.hbg-h { left: 0; right: 0; height: 1px; }
/* Blue light orbs — matched to logo buildings */
.hb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hb-orb1 {
  width: 700px; height: 700px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(58,126,198,.22) 0%, transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
}
.hb-orb2 {
  width: 500px; height: 500px;
  bottom: -100px; left: -50px;
  background: radial-gradient(circle, rgba(184,151,74,.14) 0%, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes drift { 0%{transform:translate(0,0)} 100%{transform:translate(30px,20px)} }
/* Diamond — echoes logo diamond */
.hb-diamond {
  position: absolute;
  width: 320px; height: 320px;
  top: 50%; right: 8%;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(184,151,74,.14);
  animation: spin-slow 40s linear infinite;
}
.hb-diamond::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(58,126,198,.12);
}
@keyframes spin-slow { to { transform: translateY(-50%) rotate(405deg); } }

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px 40px;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--gold-light); }
.hero-desc {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.hstat {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.hstat:last-child { border-right: none; }
.hstat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -.02em;
}
.hstat-label { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; }
.hstat-sep { display: none; }

/* ── SERVICES ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc-card {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  /* transition: background var(--t); */
  position: relative;
  overflow: hidden;
  color: #181414;
}

/* Overlay for readability */
/* .svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(113, 102, 102, 0.65);
  z-index: 1;
} */

/* Keep content above overlay */
/* .svc-card > * {
  position: relative;
  z-index: 2;
} */

/* .svc-residential {
  background: url('images/abraham-1-1024x576.jpg') center/cover no-repeat;
}

.svc-commercial {
  background: url('images/commercial.jpg') center/cover no-repeat;
}

.svc-management {
  background: url('images/property-management.jpg') center/cover no-repeat;
}

.svc-advisory {
  background: url('images/advisory.jpg') center/cover no-repeat;
}

.svc-land {
  background: url('images/land.jpg') center/cover no-repeat;
}

.svc-facility {
  background: url('images/facility.jpg') center/cover no-repeat;
} */

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.svc-card:hover { background: var(--gray-100); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-card.svc-featured {
  background: var(--navy);
}
.svc-card.svc-featured .svc-ico,
.svc-card.svc-featured h3 { color: var(--white); }
.svc-card.svc-featured p { color: rgba(255,255,255,.6); }
.svc-card.svc-featured .svc-chip { background: rgba(184,151,74,.2); color: var(--gold-light); border-color: rgba(184,151,74,.2); }
.svc-card.svc-featured::after { background: linear-gradient(90deg, var(--gold), var(--blue-light)); }

.svc-ico {
  width: 52px; height: 52px;
  color: var(--blue);
  margin-bottom: 20px;
}
.svc-ico svg { width: 100%; height: 100%; }
.svc-card h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.25rem; }
.svc-card p { font-size: .9rem; margin-bottom: 20px; }
.svc-chip {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid rgba(58,126,198,.2);
  padding: 4px 12px;
  border-radius: 40px;
}


/* ── WHY US ── */
.why-wrap {
  background: var(--navy);
  padding: 100px 0;
}
.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-left h2 { color: var(--white); margin: 12px 0 16px; }
.why-left > p { color: rgba(255,255,255,.6); margin-bottom: 36px; font-size: 1rem; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.why-list li { display: flex; gap: 16px; }
.why-tick {
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-list li strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 4px; }
.why-list li p { color: rgba(255,255,255,.55); font-size: .875rem; }

.why-right {
  position: relative;
  height: 420px;
}
.wcard {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--t), background var(--t);
}
.wcard:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.wcard-icon { font-size: 1.6rem; }
.wcard div strong { display: block; color: var(--white); font-size: .875rem; }
.wcard div span { font-size: .75rem; color: rgba(255,255,255,.5); }
.wcard-val {
  margin-left: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold-light);
  white-space: nowrap;
}
.wcard-a { top: 0; left: 0; right: 60px; }
.wcard-b { top: 120px; left: 40px; right: 0; }
.wcard-c { top: 240px; left: 20px; right: 40px; }
.why-badge {
  position: absolute;
  bottom: 0; right: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--r-lg);
  padding: 20px 28px;
  text-align: center;
}
.why-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
}
.why-badge span { font-size: .72rem; color: rgba(255,255,255,.8); letter-spacing: .08em; text-transform: uppercase; }

/* ── PROPERTIES ── */
.props-section { background: var(--gray-100); max-width: 100%; padding: 96px 0; }
.props-section .sec-tag,
.props-section .sec-head-row { max-width: var(--max-w); margin-left: auto; margin-right: auto; padding: 0 32px; }
.props-section .sec-tag { display: block; }
.props-section .sec-head-row { padding: 0 32px; }
.view-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  padding: 4px 0;
  border-bottom: 2px solid rgba(58,126,198,.3);
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.view-all:hover { color: var(--navy); border-color: var(--navy); }
.props-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prop-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,42,74,.06);
  border: 1px solid var(--gray-200);
  transition: transform var(--t), box-shadow var(--t);
}
.prop-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(27,42,74,.14); }

.prop-img {
  height: 230px;
  position: relative;
  overflow: hidden;
}
/* Property visual placeholders with brand colors */
.pi1 {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(58,126,198,.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(184,151,74,.2) 0%, transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, #243460 50%, var(--navy-deep) 100%);
}
.pi2 {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(58,126,198,.35) 0%, transparent 50%),
    linear-gradient(135deg, #112040 0%, var(--navy-mid) 50%, #1a2d50 100%);
}
.pi3 {
  background:
    radial-gradient(ellipse at 40% 70%, rgba(184,151,74,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(58,126,198,.2) 0%, transparent 40%),
    linear-gradient(135deg, var(--navy-deep) 0%, #1d3055 50%, var(--navy) 100%);
}
.prop-img::before {
  content: '⌂';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 6rem;
  color: rgba(255,255,255,.05);
  pointer-events: none;
}
.prop-badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.pbadge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 40px;
}
.pbadge.sale { background: var(--gold); color: var(--white); }
.pbadge.rent { background: var(--blue); color: var(--white); }
.pbadge.prem { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.pbadge.comm { background: var(--navy); color: var(--gold-light); }

.prop-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  opacity: 0;
  transition: opacity var(--t);
  z-index: 1;
}
.prop-card:hover .prop-ov { opacity: 1; }
.prop-ov a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--gold);
  padding: 8px 20px;
  border-radius: 40px;
  transition: background var(--t);
}
.prop-ov a:hover { background: var(--gold-light); }

.prop-body { padding: 24px; }
.prop-loc { font-size: .75rem; color: var(--blue); font-weight: 500; margin-bottom: 8px; }
.prop-body h4 { color: var(--navy); margin-bottom: 8px; }
.prop-body p { font-size: .875rem; margin-bottom: 14px; }
.prop-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 14px;
}
.prop-specs span {
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 40px;
}
.prop-foot { display: flex; align-items: center; justify-content: space-between; cursor: pointer;}
.prop-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}
.prop-price small { font-size: .7rem; color: var(--gray-400); font-family: 'Outfit', sans-serif; font-weight: 400; }
.prop-foot a { font-size: .8rem; color: var(--blue); font-weight: 600; transition: color var(--t); }
.prop-foot a:hover { color: var(--gold); }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  right: 10%; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(184,151,74,.12);
}
.cta-strip::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  right: 18%; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(58,126,198,.1);
}
.cta-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-strip h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.6rem); }
.cta-strip p { color: rgba(255,255,255,.6); margin-top: 8px; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
}
.ph-about {
  background:
    radial-gradient(ellipse at 65% 40%, rgba(58,126,198,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(184,151,74,.1) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy-deep) 0%, #1a2a48 60%, var(--navy) 100%);
}
.ph-team {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(58,126,198,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(184,151,74,.15) 0%, transparent 45%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.ph-contact {
  /* background:
    radial-gradient(ellipse at 70% 60%, rgba(184,151,74,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 30%, rgba(58,126,198,.2) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); */
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('images/interior-hero.jpg') center/cover no-repeat;
}
/* Dot grid overlay */
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.page-hero-content h1 { color: var(--white); }
.page-hero-content h1 em { color: var(--gold-light); }
.page-hero-content p { color: rgba(255,255,255,.6); margin-top: 12px; font-size: 1.05rem; }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p { margin-bottom: 18px; }
.about-text .btn-primary { margin-top: 8px; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.acard {
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac1 { background: var(--navy); }
.ac2 { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); }
.ac3 { background: var(--blue); }
.ac4 { background: var(--gray-100); border: 1px solid var(--gray-200); }
.ac-n {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.ac1 .ac-n, .ac2 .ac-n, .ac3 .ac-n { color: var(--white); }
.ac4 .ac-n { color: var(--navy); }
.ac-l { font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.ac1 .ac-l, .ac2 .ac-l, .ac3 .ac-l { color: rgba(255,255,255,.7); }
.ac4 .ac-l { color: var(--gray-600); }

/* Values section */
.vals-section {
  background: var(--navy);
  padding: 100px 0;
}
.vals-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.vals-inner h2 { color: var(--white); margin: 12px 0 56px; }
.vals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.val {
  background: rgba(255,255,255,.03);
  padding: 40px 32px;
  transition: background var(--t);
}
.val:hover { background: rgba(58,126,198,.08); }
.val-n {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(184,151,74,.18);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--t);
}
.val:hover .val-n { color: rgba(184,151,74,.4); }
.val h3 { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 12px; }
.val p { color: rgba(255,255,255,.55); font-size: .875rem; line-height: 1.75; }

/* Mission/Vision */
.mv-section { padding: 96px 32px; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  background: var(--gray-100);
  border-radius: var(--r-lg);
  padding: 52px 48px;
  border: 1px solid var(--gray-200);
}
.mv-card.mv-accent { background: var(--navy); border-color: var(--navy-mid); }
.mv-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.mv-card blockquote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
}
.mv-card.mv-accent blockquote { color: var(--white); }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tcard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.tcard:hover { box-shadow: 0 20px 60px rgba(27,42,74,.12); transform: translateY(-4px); }
.tphoto {
  height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.tp-blue { background: linear-gradient(135deg, var(--blue) 0%, #2a5d9e 100%); }
.tp-gold { background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%); }

.tinit {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  z-index: 1;
}
.thover {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--t);
}
.tcard:hover .thover { opacity: 1; }
.thover a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px;
  border-radius: 40px;
  transition: background var(--t);
}
.thover a:hover { background: var(--gold); border-color: var(--gold); }

.tcard h4 { color: var(--navy); padding: 20px 22px 4px; }
.trole {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 22px 14px;
}
.tcard p { font-size: .875rem; padding: 0 22px 22px; line-height: 1.7; }

.careers-strip {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  padding: 72px 32px;
}
.careers-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.careers-inner h2 { color: var(--navy); }
.careers-inner p { color: rgba(27,42,74,.7); margin-top: 8px; }
.careers-inner .btn-primary {
  background: var(--navy);
  flex-shrink: 0;
}
.careers-inner .btn-primary:hover { background: var(--navy-mid); }

/* ── CONTACT ── */
.contact-section { max-width: 100%; padding: 96px 0; }
.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin: 12px 0 16px; }
.contact-info > p { margin-bottom: 40px; }
.cinfo-list { display: flex; flex-direction: column; gap: 24px; }
.ci-item { display: flex; gap: 14px; }
.ci-ico { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.ci-item strong { display: block; color: var(--navy); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ci-item p { font-size: .875rem; line-height: 1.65; }

/* Form */
.contact-form-wrap { }
.cform {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 48px;
  box-shadow: 0 4px 40px rgba(27,42,74,.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cform-head { margin-bottom: 4px; }
.cform-head h3 { margin-bottom: 6px; }
.cform-head p { font-size: .875rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  outline: none;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--gray-400); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(58,126,198,.1);
}
.fg textarea { resize: vertical; min-height: 120px; }
.sel-wrap { position: relative; }
.sel-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.sel-arr { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; pointer-events: none; color: var(--gray-400); }

.btn-submit { width: 100%; justify-content: center; padding: 16px; font-size: .9rem; }

.form-success {
  display: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 4px 40px rgba(27,42,74,.06);
}
.form-success.show { display: block; animation: fadeIn .4s var(--ease); }
.fs-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.form-success h3 { color: var(--navy); margin-bottom: 12px; }
.form-success p { margin-bottom: 28px; }
.form-success .btn-outline { display: inline-flex; }

/* ── FOOTER ── */
#site-footer {
  background: var(--navy-deep);
}
.footer-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 50%, var(--blue-light) 100%);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand > p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  margin-top: 20px;
  margin-bottom: 28px;
  line-height: 1.75;
  max-width: 290px;
}
.footer-socials { display: flex; gap: 10px; }
.fsoc {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  font-weight: 800;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.fsoc:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.footer-col h5 { color: rgba(255,255,255,.8); margin-bottom: 20px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.45);
  font-size: .875rem;
  margin-bottom: 10px;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { color: rgba(255,255,255,.4); font-size: .85rem; line-height: 1.7; margin-bottom: 8px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom > p { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.3); transition: color var(--t); }
.footer-legal a:hover { color: var(--gold-light); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .vals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; }
  .why-right { height: 360px; }
  .mv-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
 .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 8px 32px rgba(27, 42, 74, .1);
        z-index: 999;
        overflow: hidden;

        /* Hidden state */
        max-height: 0;
        visibility: hidden;
        transition: max-height .35s var(--ease), visibility .35s;
    }

    .main-nav.open {
        max-height: 100vh;
        visibility: visible;
    }
  .nav-link {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    border-left: 3px solid transparent;
  }
  .nav-link.active { border-left-color: var(--blue); }

  .section { padding: 64px 20px; }
  .svc-grid { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .vals-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat { padding: 20px 20px; }
  .hero-content { padding: 60px 20px 40px; }
  .page-hero { height: 380px; padding-bottom: 44px; }
  .page-hero-content { padding: 0 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
  .cform { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { padding: 0 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .careers-inner { flex-direction: column; align-items: flex-start; }
  .why-right { height: auto; position: static; display: flex; flex-direction: column; gap: 12px; }
  .wcard-a, .wcard-b, .wcard-c { position: static; }
  .why-badge { position: static; display: inline-block; align-self: flex-start; }
  .mv-card { padding: 36px 28px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
  .props-section .sec-tag,
  .props-section .sec-head-row { padding: 0 20px; }
}

/* ═══════════════════════════════════════════
   SANDWORTH v2 — ADDITIONS & IMPROVEMENTS
   Hero Slider · Property Strip · Team Photos
   Contact Form Polish · Font Update
   ═══════════════════════════════════════════ */

/* ── FONT OVERRIDE (Cormorant + DM Sans) ── */
body {
  font-family: 'DM Sans', sans-serif;
}
h1,h2,h3,h4,h5,blockquote {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 600; }

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg { display: none; } /* hide old abstract bg */

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 6s cubic-bezier(.25,.46,.45,.94);
  will-change: opacity, transform;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.slide.prev {
  opacity: 0;
  transform: scale(1.06);
}

/* Gradient overlay: left-heavy for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(17,29,51,.85) 0%,
      rgba(17,29,51,.6) 45%,
      rgba(17,29,51,.2) 70%,
      rgba(17,29,51,.05) 100%),
    linear-gradient(180deg,
      transparent 55%,
      rgba(17,29,51,.9) 100%);
  pointer-events: none;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform .2s;
  backdrop-filter: blur(6px);
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 28px; }
.slider-next { right: 28px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background var(--t), width var(--t), border-radius var(--t);
  padding: 0;
}
.sdot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--gold);
}

/* Slide counter */
.slider-counter {
  position: absolute;
  bottom: 108px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
}
#slideCurrentNum { color: var(--gold-light); font-size: 1.2rem; font-family: 'Cormorant Garamond', serif; }
.sc-div {
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.3);
}

/* Keep hero content above overlay */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px 40px;
  width: 100%;
}
.hero-stats {
  position: relative;
  z-index: 5;
}

/* ── PROPERTY PHOTO STRIP ── */
.prop-strip {
  background: var(--navy-deep);
  padding: 0;
  overflow: hidden;
}
.prop-strip-inner {
  display: flex;
  height: 200px;
}
.ps-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ps-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.ps-card:hover img { transform: scale(1.08); }
.ps-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,29,51,.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--t);
}
.ps-card:hover .ps-overlay { opacity: 1; }
.ps-overlay span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ── TEAM PHOTO CARDS (real photos) ── */
.tphoto {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.tphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}
.tcard:hover .tphoto img { transform: scale(1.04); }

/* Fallback for placeholder cards (initials) */
.tphoto.tp-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.tphoto.tp-blue { background: linear-gradient(135deg, var(--blue) 0%, #2a5d9e 100%); }
.tphoto.tp-gold { background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%); }
.tphoto.tp-navy .tinit,
.tphoto.tp-blue .tinit,
.tphoto.tp-gold .tinit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  z-index: 1;
}

.tcard-body {
  padding: 22px 24px 24px;
}
.tcard-body h4 { color: var(--navy); margin-bottom: 4px; font-size: 1.15rem; }
.tcard-body .trole {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.tcard-body p { font-size: .875rem; line-height: 1.7; color: var(--text-soft); }

/* Remove duplicate padding from old selectors */
.tcard h4, .tcard .trole, .tcard > p { padding: 0; }

/* ── CONTACT FORM IMPROVEMENTS ── */
.req { color: var(--gold); }
.ferr {
  font-size: .72rem;
  color: #e05454;
  min-height: 18px;
  display: block;
  margin-top: 2px;
}
.fg input.invalid,
.fg select.invalid,
.fg textarea.invalid {
  border-color: #e05454;
  background: #fff8f8;
}
.form-flash {
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.form-flash.error { background: #fef2f2; color: #c53030; border: 1px solid #fecaca; }
.form-flash.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* AJAX loading spinner on submit button */
.btn-submit.loading {
  opacity: .75;
  pointer-events: none;
}

/* ── PROPERTY CARDS — use real images ── */
.prop-img {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.prop-card:hover .prop-img img { transform: scale(1.04); }

/* Remove old CSS background placeholders */
.pi1, .pi2, .pi3 {
  background: var(--navy);
}
.prop-img::before { display: none; }

/* ── MOBILE SLIDER ADJUSTMENTS ── */
@media (max-width: 768px) {
  .slider-btn { width: 40px; height: 40px; }
  .slider-prev { left: 12px; }
  .slider-next { right: 12px; }
  .slider-dots { bottom: 80px; }
  .slider-counter { display: none; }
  .prop-strip-inner { height: 140px; }
  .tphoto { height: 240px; }
}
@media (max-width: 480px) {
  .prop-strip { display: none; } /* too cramped on very small screens */
  .tphoto { height: 200px; }
}

/* ═══════════════════════════════════════════
   SANDWORTH v3 — VIDEO CARDS + PROJECTS PAGE
   ═══════════════════════════════════════════ */

/* ── VIDEO SECTION ── */
.video-section { background: var(--off-white); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vcard {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(27,42,74,.05);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.vcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(27,42,74,.13);
}

.vcard-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-deep);
  flex-shrink: 0;
}
.vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.vcard:hover .vcard-thumb img { transform: scale(1.05); }

.vcard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,29,51,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.vcard:hover .vcard-overlay { background: rgba(17,29,51,.35); }

.vplay-btn {
  width: 68px;
  height: 68px;
  color: var(--white);
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform .2s;
  backdrop-filter: blur(4px);
}
.vplay-btn svg { width: 44px; height: 44px; }
.vplay-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}

.vcard-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
}
.vduration {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  background: rgba(0,0,0,.55);
  padding: 3px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.vcard-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vcard-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.vcard-body h4 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.vcard-body p {
  font-size: .875rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.vcard-cta {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(58,126,198,.3);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color var(--t), border-color var(--t);
}
.vcard-cta:hover { color: var(--gold); border-color: var(--gold); }

/* ── VIDEO LIGHTBOX ── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(6px);
}
.video-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.vlb-inner {
  position: relative;
  width: min(900px, 92vw);
}
.vlb-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
  background: none;
}
.vlb-close svg { width: 18px; height: 18px; }
.vlb-close:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.1); }
.vlb-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.vlb-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── PROJECTS PAGE ── */
.ph-projects {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(184,151,74,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(58,126,198,.18) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy-deep) 0%, #1f3060 60%, var(--navy) 100%);
}

.proj-section { padding-top: 64px; }

/* Filter tabs */
.proj-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.pf-btn {
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 40px;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--t);
}
.pf-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.pf-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27,42,74,.18);
}

/* Project card grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.proj-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,42,74,.05);
  transition: transform var(--t), box-shadow var(--t), opacity .3s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(27,42,74,.14);
}
.proj-card.hidden {
  display: none;
}

.proj-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.proj-card:hover .proj-img-wrap img { transform: scale(1.05); }

/* Status badge */
.proj-status {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
}
.proj-status.ongoing {
  background: var(--gold);
  color: var(--white);
}
.proj-status.completed {
  background: #22c55e;
  color: var(--white);
}

/* Type badge */
.proj-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.proj-type-badge.commercial {
  background: rgba(58,126,198,.3);
  border-color: rgba(58,126,198,.4);
}

/* Card body */
.proj-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proj-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.proj-loc {
  font-size: .75rem;
  color: var(--blue);
  font-weight: 500;
}
.proj-year {
  font-size: .72rem;
  color: var(--gray-400);
  font-weight: 500;
}
.proj-body h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
.proj-body > p {
  font-size: .875rem;
  line-height: 1.72;
  margin-bottom: 20px;
  flex: 1;
}

/* Progress bar */
.proj-progress-wrap { margin-bottom: 20px; }
.proj-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.proj-progress-head strong { color: var(--navy); }
.proj-progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}
.proj-progress-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
  border-radius: 3px;
  transition: width 1s cubic-bezier(.25,.46,.45,.94);
}
.proj-progress-fill.done {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

/* Specs row */
.proj-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}
.ps-item {
  background: var(--off-white);
  padding: 10px 8px;
  text-align: center;
}
.ps-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 3px;
}
.ps-lbl {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.proj-btn {
  align-self: flex-start;
  font-size: .78rem;
  padding: 9px 20px;
}

.proj-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
  .proj-grid  { grid-template-columns: 1fr; }
  .proj-filters { gap: 8px; }
  .pf-btn { padding: 8px 16px; font-size: .75rem; }
  .proj-specs-row { grid-template-columns: repeat(2, 1fr); }
  .vlb-inner { width: 96vw; }
  .vlb-close { top: -44px; }
}

/* ═══════════════════════════════════════════════════
   SANDWORTH v4 — DROPDOWN NAV + PROPERTIES PAGE
   ═══════════════════════════════════════════════════ */

/* ══ NAV DROPDOWN ══ */
/* ══ NAV DROPDOWN — FIXED ══
   Key fixes:
   1. .main-nav needs overflow:visible so absolute child escapes
   2. .drop-menu uses fixed positioning anchored via JS, or
      position:absolute relative to .nav-dropdown (which must be
      position:relative AND not inside overflow:hidden parent)
   3. z-index hierarchy: header=1000, drop-menu=1100
   ══════════════════════════════════════════════════════ */

.main-nav {
  overflow: visible !important;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: var(--r);
  border: none;
  background: none;
  cursor: pointer;
  letter-spacing: .02em;
  transition: color var(--t), background var(--t);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  line-height: 1;
}
.nav-drop-trigger:hover {
  color: var(--navy);
  background: var(--gray-100);
}
.nav-dropdown.open .nav-drop-trigger {
  color: var(--blue);
  background: var(--blue-pale);
}

.drop-arrow {
  transition: transform .25s var(--ease);
  flex-shrink: 0;
  display: inline-block;
}
.nav-dropdown.open .drop-arrow {
  transform: rotate(180deg);
}

/* ── Drop panel ── */
.drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 286px;
  background: var(--white);
  border: 1px solid rgba(27,42,74,.1);
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(27,42,74,.04),
    0 20px 60px rgba(27,42,74,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .2s var(--ease),
    transform .2s var(--ease),
    visibility .2s;
  z-index: 1100;
  overflow: hidden;
}
.nav-dropdown.open .drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Caret arrow */
.drop-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--white);
  border-top: 1px solid rgba(27,42,74,.1);
  border-left: 1px solid rgba(27,42,74,.1);
  border-radius: 2px 0 0 0;
  z-index: 1;
}

.drop-header {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 14px 16px 7px;
  border-bottom: 1px solid var(--gray-100);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t);
  border-bottom: 1px solid var(--gray-100);
}
.drop-item:last-of-type { border-bottom: none; }
.drop-item:hover { background: var(--gray-100); }
.drop-item:hover .drop-text strong { color: var(--blue); }

.drop-icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t);
}
.drop-item:hover .drop-icon {
  background: var(--blue-pale);
  border-color: rgba(58,126,198,.25);
}

.drop-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.drop-text strong {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  transition: color var(--t);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drop-text span {
  font-size: .7rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.drop-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--blue);
  padding: 11px 16px 13px;
  border-top: 1px solid var(--gray-100);
  background: var(--off-white);
  transition: background var(--t), color var(--t);
  text-decoration: none;
}
.drop-footer:hover {
  background: var(--blue-pale);
  color: var(--navy);
}

/* ── Mobile: full-width accordion inside the mobile nav ── */
@media (max-width: 768px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-drop-trigger {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    justify-content: space-between;
    border-left: 3px solid transparent;
    font-size: .9rem;
  }
  .nav-dropdown.open .nav-drop-trigger {
    border-left-color: var(--blue);
  }
  .drop-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--gray-100);
    width: 100%;
    display: none;
  }
  .drop-menu::before { display: none; }
  .nav-dropdown.open .drop-menu {
    display: block;
    animation: fadeIn .2s ease;
  }
  .drop-item {
    padding: 10px 28px 10px 36px;
    border-bottom: 1px solid rgba(27,42,74,.06);
    background: transparent;
  }
  .drop-item:hover { background: var(--gray-200); }
  .drop-header { padding: 10px 28px 6px 36px; background: transparent; border-bottom: none; }
  .drop-footer { padding: 11px 28px; text-align: left; justify-content: flex-start; }
}


/* ══ PROPERTIES PAGE HERO ══ */
.prop-page-hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.prop-page-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

/* Rich layered overlay: dark on left + soft vignette everywhere */
.prop-page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(17,29,51,.88) 0%,
      rgba(17,29,51,.65) 40%,
      rgba(17,29,51,.3) 65%,
      rgba(17,29,51,.1) 100%),
    linear-gradient(180deg,
      rgba(17,29,51,.15) 0%,
      transparent 40%,
      rgba(17,29,51,.55) 100%);
}

.prop-page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  padding-top: var(--header-h);
}

.prop-page-hero-content h1 {
  color: var(--white);
  max-width: 680px;
  margin: 16px 0 20px;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
}
.prop-page-hero-content h1 em { color: var(--gold-light); }
.prop-hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* Property type pills */
.prop-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.prop-hero-pills span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

/* Scroll indicator */
.prop-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .5; transform: scaleY(1); }
  50%      { opacity: 1;  transform: scaleY(1.15); }
}


/* ══ FILTER BAR ══ */
.prop-page-filters {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 2px 12px rgba(27,42,74,.05);
}
.ppf-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ppf-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ppf-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gray-600);
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 40px;
  padding: 7px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
}
.ppf-tab:hover { border-color: var(--navy); color: var(--navy); }
.ppf-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.ppf-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  letter-spacing: .04em;
  flex-shrink: 0;
}


/* ══ PROPERTY LISTING CARDS ══ */
.prop-listing-section { padding-top: 56px; }

.prop-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.plcard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,42,74,.05);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.plcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(27,42,74,.14);
}
.plcard.phidden { display: none; }

/* Card media */
.plcard-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy);
}
.plcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.plcard:hover .plcard-media img { transform: scale(1.06); }

/* Hover overlay with "View Detail" button */
.plcard-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,29,51,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
}
.plcard:hover .plcard-media-overlay { opacity: 1; }

.plcard-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
  background: var(--gold);
  border: none;
  border-radius: 40px;
  padding: 11px 24px;
  cursor: pointer;
  transform: translateY(8px);
  transition: transform .3s var(--ease), background var(--t), box-shadow var(--t);
  box-shadow: 0 4px 20px rgba(184,151,74,.4);
}
.plcard-view-btn svg { width: 16px; height: 16px; }
.plcard:hover .plcard-view-btn { transform: translateY(0); }
.plcard-view-btn:hover { background: var(--gold-light); box-shadow: 0 8px 28px rgba(184,151,74,.5); }

/* Card badges */
.plcard-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.plbadge {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 40px;
  color: var(--white);
}
.plbadge.residential { background: var(--blue); }
.plbadge.commercial  { background: var(--navy); }
.plbadge.retail      { background: #7c3aed; }
.plbadge.villa       { background: var(--gold-dark); }
.plbadge.sale        { background: var(--gold); }
.plbadge.rent        { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); }
.plbadge.avail       { background: #22c55e; }

/* Gallery dots */
.plcard-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.plcard-gallery-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.plcard-gallery-dots span.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}

/* Card body */
.plcard-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.plcard-loc {
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.plcard-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
}
.plcard-price-tag {
  text-align: right;
  flex-shrink: 0;
}
.plcard-price-tag span {
  display: block;
  font-size: .65rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 2px;
}
.plcard-price-tag strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--navy);
  white-space: nowrap;
}
.plcard-price-tag strong small {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  color: var(--gray-400);
  font-weight: 400;
}
.plcard-desc {
  font-size: .875rem;
  line-height: 1.72;
  color: var(--text-soft);
  flex: 1;
}

/* Feature pills */
.plcard-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.plf {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--gray-600);
  font-weight: 500;
}
.plf svg {
  width: 14px; height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Card footer buttons */
.plcard-foot {
  display: flex;
  gap: 10px;
  align-items: center;
}
.plcard-detail-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: var(--r);
  padding: 11px 18px;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.plcard-detail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,151,74,.3);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.plcard-detail-btn svg { flex-shrink: 0; transition: transform var(--t); }
.plcard-detail-btn:hover svg { transform: translateX(3px); }

.plcard-enquire-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  padding: 11px 16px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: all var(--t);
  white-space: nowrap;
}
.plcard-enquire-btn:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}


/* ══ PROPERTY DETAIL MODAL ══ */
.prop-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10,18,35,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.prop-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.prop-modal {
  background: var(--white);
  border-radius: 16px;
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
}
.prop-modal-backdrop.open .prop-modal {
  transform: translateY(0) scale(1);
}

.prop-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--navy);
  backdrop-filter: blur(4px);
  transition: background var(--t), box-shadow var(--t);
  box-shadow: 0 2px 12px rgba(27,42,74,.1);
}
.prop-modal-close svg { width: 18px; }
.prop-modal-close:hover { background: var(--navy); color: var(--white); }

/* Modal gallery */
.pmod-gallery {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 6px;
  height: 320px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.pmod-gallery-main {
  overflow: hidden;
}
.pmod-gallery-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.pmod-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.pmod-thumb {
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color var(--t);
}
.pmod-thumb.active { border-color: var(--gold); }
.pmod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modal content */
.pmod-content {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pmod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.pmod-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pmod-header h2 {
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.pmod-loc {
  font-size: .8rem;
  color: var(--blue);
  font-weight: 600;
}
.pmod-price-box {
  text-align: right;
  background: var(--gold-pale);
  border: 1px solid rgba(184,151,74,.2);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  flex-shrink: 0;
}
.pmod-price-box span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.pmod-price-box strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 700;
}
.pmod-desc {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-soft);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
.pmod-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pmod-spec {
  background: var(--off-white);
  padding: 16px 14px;
  text-align: center;
}
.pmod-spec-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.pmod-spec-lbl {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.pmod-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pmod-feat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 40px;
  padding: 6px 14px;
}
.pmod-feat::before {
  content: '✓';
  color: var(--gold);
  font-size: .8rem;
}
.pmod-actions {
  display: flex;
  gap: 14px;
  padding-top: 4px;
}
.pmod-enquire {
  flex: 1;
  justify-content: center;
  padding: 15px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .prop-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .prop-page-hero { height: 75vh; }
  .prop-page-hero-content { padding: 0 20px; padding-top: var(--header-h); }
  .prop-listing-grid { grid-template-columns: 1fr; }
  .ppf-inner { padding: 0 16px; }
  .prop-listing-section { padding-left: 20px; padding-right: 20px; }
  .pmod-gallery { grid-template-columns: 1fr; height: auto; }
  .pmod-gallery-thumbs { flex-direction: row; height: 70px; overflow-x: auto; }
  .pmod-thumb { width: 100px; height: 70px; }
  .pmod-gallery-main img { height: 240px; }
  .pmod-content { padding: 20px; }
  .pmod-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .pmod-actions { flex-direction: column; }
}


/* ═══════════════════════════════════════════════════════════
   SANDWORTH v5 — MULTI-PAGE ADDITIONS
   Append these rules to the bottom of style.css
   ═══════════════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */

.prop-breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
}
.pbc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--gray-400);
}
.pbc-inner a {
  color: var(--blue);
  font-weight: 500;
  transition: color var(--t);
}
.pbc-inner a:hover { color: var(--navy); }
.pbc-sep { color: var(--gray-200); font-size: .8rem; }
.pbc-inner [aria-current="page"] { color: var(--text-soft); font-weight: 500; }

/* ── PROPERTY DETAIL PAGE ── */
.prop-detail-page {}

/* Hero gallery */
.pdp-hero {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 6px;
  max-height: 540px;
  overflow: hidden;
  background: var(--navy-deep);
}
.pdp-hero-main {
  position: relative;
  overflow: hidden;
}
.pdp-hero-main img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  transition: src .3s;
}
.pdp-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
}
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding: 0;
  background: var(--navy-deep);
}
.pdp-thumb {
  height: 108px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color var(--t), opacity var(--t);
  opacity: .65;
}
.pdp-thumb:hover { opacity: .85; }
.pdp-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body layout */
.pdp-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 80px;
}
.pdp-main { display: flex; flex-direction: column; gap: 36px; }

/* Title block */
.pdp-title-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.pdp-loc {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.pdp-title-block h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
}
.pdp-price-box {
  background: var(--gold-pale);
  border: 1px solid rgba(184,151,74,.2);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  text-align: right;
  flex-shrink: 0;
}
.pdp-price-box span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.pdp-price-box strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 700;
}
.pdp-price-box strong small {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 400;
}

/* Description */
.pdp-desc p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

/* Specs grid */
.pdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pdp-spec {
  background: var(--off-white);
  padding: 18px 14px;
  text-align: center;
}
.pdp-spec-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 5px;
}
.pdp-spec-lbl {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Features */
.pdp-section-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 600;
}
.pdp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sidebar */
.pdp-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pdp-cta-card {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdp-cta-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0;
}
.pdp-cta-card > p {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  line-height: 1.65;
}
.pdp-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: .875rem;
}
.pdp-cta-card .btn-outline {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
}
.pdp-cta-card .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.pdp-contact-info {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-ci {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}
.pdp-ci span { font-size: 1rem; }
.pdp-ci a {
  color: rgba(255,255,255,.6);
  transition: color var(--t);
}
.pdp-ci a:hover { color: var(--gold-light); }

.pdp-summary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 2px 16px rgba(27,42,74,.05);
}
.pdp-summary-card h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.pdp-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdp-srow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  gap: 12px;
}
.pdp-srow span { color: var(--gray-400); }
.pdp-srow strong { color: var(--navy); text-align: right; }

/* Nearby section */
.pdp-nearby { padding-top: 0; }
.pdp-nearby h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }

/* ── RESPONSIVE: PROPERTY DETAIL PAGE ── */
@media (max-width: 1024px) {
  .pdp-body { grid-template-columns: 1fr; gap: 40px; }
  .pdp-sidebar { position: static; }
  .pdp-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-hero { grid-template-columns: 1fr; max-height: none; }
  .pdp-hero-main img { height: 380px; }
  .pdp-thumbs { flex-direction: row; overflow-x: auto; height: 80px; }
  .pdp-thumb { width: 120px; height: 80px; flex-shrink: 0; }
}
@media (max-width: 768px) {
  .pbc-inner { padding: 12px 20px; }
  .pdp-body { padding: 32px 20px 60px; }
  .pdp-title-block { flex-direction: column; }
  .pdp-price-box { text-align: left; width: 100%; }
  .pdp-hero-main img { height: 260px; }
  .pdp-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-cta-card { padding: 24px 20px; }
  .pdp-summary-card { padding: 20px; }
}

/* ── PAGE ACTIVE STATE — non-SPA ── */
/* In multi-page mode every page IS active, remove the display:none default */
.page { display: block; }

/* Re-apply animation on load */
.page.active { animation: fadeIn .5s cubic-bezier(.4,0,.2,1); }

/* Hide success message by default */
#form-success {
    display: none;
}

/* Lightbox loading spinner */
.vlb-loading .vlb-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 2;
}

.vlb-loading .vlb-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold, #B8974A);
  border-radius: 50%;
  animation: vlb-spin 0.8s linear infinite;
  z-index: 3;
}

@keyframes vlb-spin {
  to { transform: rotate(360deg); }
}

.vlb-frame iframe {
  transition: opacity 0.4s ease;
}