/* =========================================================
   Legacy Land Developers — Design System
   ---------------------------------------------------------
   Minimal, premium, real-estate, trustworthy, Indian.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand — matches the Legacy Land Developers logo (navy + gold) */
  --color-primary: #101f3d;         /* Deep navy from the LLD logo */
  --color-primary-800: #08132a;
  --color-primary-600: #2a3b60;
  --color-primary-100: #e6e9f1;

  --color-accent: #c9a340;          /* Warm gold from the LLD logo */
  --color-accent-700: #a48330;
  --color-accent-100: #f6eed3;

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe57;

  /* Neutral */
  --color-bg: #fbf9f5;              /* Warm off-white */
  --color-surface: #ffffff;
  --color-surface-alt: #f4efe6;
  --color-text: #16221d;
  --color-text-muted: #5b6a64;
  --color-text-soft: #8a9691;
  --color-border: #e6e1d6;
  --color-border-strong: #cfc7b4;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(16, 31, 61, 0.06);
  --shadow-sm: 0 2px 6px rgba(16, 31, 61, 0.07), 0 1px 2px rgba(16, 31, 61, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 31, 61, 0.10), 0 2px 6px rgba(16, 31, 61, 0.05);
  --shadow-lg: 0 16px 40px rgba(16, 31, 61, 0.14), 0 4px 10px rgba(16, 31, 61, 0.06);
  --shadow-float: 0 10px 30px rgba(37, 211, 102, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Typography */
  --font-heading: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;   /* 12 */
  --text-sm: 0.875rem;  /* 14 */
  --text-base: 1rem;    /* 16 */
  --text-md: 1.0625rem; /* 17 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.375rem;  /* 22 */
  --text-2xl: 1.75rem;  /* 28 */
  --text-3xl: 2.25rem;  /* 36 */
  --text-4xl: 3rem;     /* 48 */
  --text-5xl: 3.75rem;  /* 60 */

  /* Layout */
  --container: 1200px;
  --container-narrow: 900px;
  --header-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 480ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--color-accent); color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, var(--text-5xl)); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, var(--text-3xl)); }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }
p { color: var(--color-text-muted); }
p.lead { font-size: var(--text-lg); color: var(--color-text); line-height: 1.55; }

.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent-700); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 720px;
}
.section-title--split {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  max-width: 100%;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title h2 span { color: var(--color-accent-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-800); border-color: var(--color-primary-800); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-accent:hover { background: var(--color-accent-700); border-color: var(--color-accent-700); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding-inline: 10px;
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); border-color: var(--color-whatsapp-dark); box-shadow: var(--shadow-md); }
.btn-whatsapp svg { fill: #fff; }

.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: var(--text-xs); }
.btn-lg { min-height: 54px; padding: 16px 28px; font-size: var(--text-base); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(251, 249, 245, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #ffffff;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-xs);
  flex-shrink: 0;
}
.brand-mark img,
.brand-mark svg {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name .brand-primary {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-name .brand-secondary {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.primary-nav a:hover { color: var(--color-text); background: rgba(16, 31, 61, 0.06); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); background: var(--color-primary-100); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Social links (header + footer) ---------- */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  transition:
    transform var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.social-link svg { width: 18px; height: 18px; display: block; }
.social-link:hover,
.social-link:focus-visible {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Footer variant sits on the dark primary background */
.site-footer .social-links { margin-top: 16px; }
.site-footer .social-link {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}
.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  color: var(--color-primary);
  background: #fff;
  border-color: #fff;
}

@media (max-width: 640px) {
  .social-links--header { display: none; }
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  align-items: center; justify-content: center;
  background: var(--color-surface);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 6px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 14px 16px; font-size: var(--text-base); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-whatsapp .btn-label { display: none; }
  .header-actions .btn-whatsapp { padding: 10px 14px; min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hero-copy h1 { max-width: 18ch; }
.hero-copy p { max-width: 46ch; font-size: var(--text-md); color: var(--color-text-muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-meta {
  display: flex;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.hero-meta div {
  display: flex; flex-direction: column;
}
.hero-meta strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1.1;
}
.hero-meta span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-primary-100);
  box-shadow: var(--shadow-md);
}
.hero-visual svg,
.hero-visual img,
.hero-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
  max-width: calc(100% - 40px);
}
.hero-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}
.hero-badge .label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-badge .value { font-weight: 600; font-size: var(--text-sm); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Property card ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
}
.property-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .property-grid--home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .property-grid--home { grid-template-columns: 1fr; } }

/* 3-item related-projects grid on property detail pages */
.property-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .property-grid--related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .property-grid--related { grid-template-columns: 1fr; } }

.property-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.property-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(201, 163, 64, 0.10) 0%, transparent 60%),
    linear-gradient(160deg, var(--color-primary-100) 0%, var(--color-surface-alt) 100%);
}
.property-card__media img,
.property-card__media svg {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 600ms var(--ease-out);
}
.property-card:hover .property-card__media img,
.property-card:hover .property-card__media svg { transform: scale(1.04); }

.property-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.94);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.property-card__tag--accent { background: var(--color-accent); color: #fff; }

.property-card__body {
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.property-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.25;
}
.property-card__title a { display: inline; color: inherit; }
.property-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.property-card__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.property-card__location svg { width: 14px; height: 14px; color: var(--color-accent-700); flex-shrink: 0; }
.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.property-card__pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-100);
  color: var(--color-primary);
  font-weight: 500;
}
.property-card__pill--accent {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}
.property-card__footer {
  padding: 12px 18px 18px;
  display: flex;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
.property-card__footer .btn { flex: 1; }
.property-card__footer .btn-sm { padding: 10px 14px; }

/* ---------- Featurettes / Why us ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  display: grid; place-items: center;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--text-md); }
.feature p { font-size: var(--text-sm); }

/* ---------- Brand statement / band ---------- */
.brand-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.brand-band::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(60% 60% at 100% 0%, rgba(201, 163, 64, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.brand-band h2 { color: #fff; font-size: clamp(1.5rem, 2vw + 1rem, var(--text-2xl)); }
.brand-band p { color: rgba(255, 255, 255, 0.75); }
.brand-band .btn { position: relative; }

.brand-band__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
}
.brand-band__stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px;
}
.brand-band__stat strong {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
}
.brand-band__stat span {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
@media (max-width: 780px) { .brand-band { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      100deg,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.90) 38%,
      rgba(255,255,255,0.55) 58%,
      rgba(255,255,255,0.10) 100%
    ),
    url("../../image/projectimage.png") center right / cover no-repeat,
    linear-gradient(135deg, #fff 0%, var(--color-accent-100) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 280px;
}
.cta-band__copy h2 { max-width: 20ch; }
.cta-band__copy p { margin-top: 8px; max-width: 46ch; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .cta-band {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.97) 0%,
        rgba(255,255,255,0.88) 55%,
        rgba(255,255,255,0.30) 100%
      ),
      url("../../image/projectimage.png") center bottom / cover no-repeat,
      linear-gradient(135deg, #fff 0%, var(--color-accent-100) 100%);
  }
}

/* ---------- About / Contact modules ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-primary-100);
  box-shadow: var(--shadow-md);
}
.split__media img,
.split__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__copy { display: flex; flex-direction: column; gap: 14px; }
.split__copy .bullets { display: grid; gap: 10px; margin-top: 8px; }
.bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.bullets li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------- Search bar ---------- */
.search-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.search-bar:focus-within { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.search-bar svg { width: 20px; height: 20px; color: var(--color-text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  font-size: var(--text-sm);
  padding: 10px 0;
  color: var(--color-text);
}
.search-bar input::placeholder { color: var(--color-text-soft); }
.search-bar .btn { padding: 10px 18px; min-height: 40px; }

.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.filter-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--dur) var(--ease-out);
}
.filter-chip:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.filter-chip.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.search-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
}
.search-empty h3 { color: var(--color-text); margin-bottom: 6px; }

/* ---------- Property detail page ---------- */
.detail-hero {
  padding-top: clamp(24px, 3vw, 40px);
}
.breadcrumbs {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span[aria-current] { color: var(--color-text); }
.detail-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-top: clamp(20px, 3vw, 32px);
}
@media (max-width: 900px) {
  .detail-hero__top {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }
  .detail-hero__media { max-width: 780px; margin-inline: auto; width: 100%; }
}
.detail-hero__media {
  align-self: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(201, 163, 64, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--color-primary-100) 0%, var(--color-surface-alt) 100%);
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.detail-hero__media svg,
.detail-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 6px);
}
/* Portrait modifier kept for backward compatibility; the contain rule above already
   handles portrait images correctly, so this variant just adjusts the backdrop. */
.detail-hero__media--portrait {
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(201, 163, 64, 0.16) 0%, transparent 60%),
    linear-gradient(160deg, var(--color-primary-100) 0%, var(--color-accent-100) 100%);
}

.detail-hero__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.detail-hero__panel h1 {
  font-size: clamp(1.6rem, 1.4vw + 1rem, var(--text-3xl));
  line-height: 1.15;
}
.detail-hero__location {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.detail-hero__location svg { width: 16px; height: 16px; color: var(--color-accent-700); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.spec {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.spec span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}
.spec strong {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
}
.detail-hero__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
}
.detail-hero__actions .btn { flex: 1 1 auto; }
.detail-hero__note {
  background: var(--color-accent-100);
  border: 1px solid rgba(201,163,64,0.25);
  color: var(--color-accent-700);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.5;
}


.detail-body {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.detail-body__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 900px) { .detail-body__grid { grid-template-columns: 1fr; } }
.detail-body__grid h2 { font-size: var(--text-xl); margin-bottom: 12px; }
.detail-body__grid p { margin-bottom: 12px; line-height: 1.65; }
.highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.highlight-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.highlight-list li svg {
  width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px;
}
.side-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: calc(var(--header-height) + 20px);
}
.side-card h3 { font-size: var(--text-md); }
.side-card p { font-size: var(--text-sm); }
.side-card__row { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--color-text-muted); }
.side-card__row svg { width: 16px; height: 16px; color: var(--color-accent-700); }

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 16px; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.contact-list li svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.contact-list h4 { font-size: var(--text-sm); font-weight: 600; }
.contact-list p, .contact-list a { font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-list a:hover { color: var(--color-primary); }

form.enquiry-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  min-height: 44px;
  color: var(--color-text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.82);
  padding: clamp(48px, 6vw, 72px) 0 24px;
  margin-top: clamp(48px, 6vw, 80px);
}
.site-footer h4 { color: #fff; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-mark {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), var(--shadow-md);
}
.footer-brand .brand-name .brand-primary { color: #fff; }
.footer-brand .brand-name .brand-secondary { color: rgba(255,255,255,0.6); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: var(--text-sm); margin-top: 14px; max-width: 34ch; }
.footer-links ul { display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: var(--text-sm); }
.footer-links a:hover { color: #fff; }
.footer-contact p, .footer-contact a { color: rgba(255,255,255,0.75); font-size: var(--text-sm); }
.footer-contact a { display: block; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: var(--text-xs); color: rgba(255,255,255,0.55);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-float);
  transition: transform var(--dur) var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  animation: wa-pulse 2.2s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Motion primitives ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--color-border); margin: clamp(40px, 6vw, 64px) 0; }
.stack > * + * { margin-top: var(--stack, 12px); }


/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.faq__item[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 50%;
  position: relative;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 12px 2px, 2px 12px;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-accent-700);
}
.faq__item[open] > summary::after {
  background-size: 12px 2px, 0 0;
  transform: rotate(180deg);
}
.faq__body {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.faq__body p { margin: 0; }
.faq__body a { color: var(--color-accent-700); text-decoration: underline; }
