/* ============================================================
   SANKALPA DEVELOPERS — Brand stylesheet
   Palette pulled from the actual logo (logo.png):
     primary dark green #143224 · accent orange #F68E0D
     pale mint #F7FAF4 · muted sage #688760
     red #D62828 is kept purely as a status colour (SOLD).
   ============================================================ */

:root {
  --green-950: #0C1E16;
  --green-900: #143224;
  --green-800: #143427;
  --green-700: #1B4633;
  --green-600: #256B4B;
  --green-500: #33885E;
  --green-400: #5CAA80;
  --green-300: #93C9AC;
  --green-200: #C6E2D1;
  --green-100: #E4F2E9;
  --cream: #F7FAF4;
  --orange: #F68E0D;
  --orange-soft: #FDEBD3;
  --gold: #F6A100;
  --red: #D62828;
  --red-soft: #FBE6E4;
  --text: #16281F;
  --muted: #5E7268;
  --line: #E2EBE5;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(16, 40, 29, 0.07);
  --shadow: 0 8px 28px rgba(16, 40, 29, 0.12);
  --shadow-lg: 0 18px 50px rgba(16, 40, 29, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 76px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; color: var(--green-900); font-weight: 600; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--cream); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 3px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.head p { color: var(--muted); max-width: 520px; }
.center { text-align: center; }
.center .head { flex-direction: column; align-items: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; font-family: var(--font-head);
  transition: all .22s ease; background: var(--green-700); color: #fff;
  line-height: 1.2; cursor: pointer;
}
.btn:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: #D97300; }
.btn.outline { background: transparent; border-color: var(--green-700); color: var(--green-800); }
.btn.outline:hover { background: var(--green-700); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--green-800); }
.btn.ghost:hover { background: var(--green-100); }
.btn.white { background: #fff; color: var(--green-900); }
.btn.white:hover { background: var(--green-100); }
.btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #B42020; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s; color: var(--green-800);
}
.icon-btn:hover { background: var(--green-100); border-color: var(--green-300); }

/* ---------- Header (liquid glass) ---------- */
/* Flush to the very top of the page — no strip/margin above the header. */
.header {
  position: sticky; top: 0; left: 0; right: 0; width: 100%; margin: 0; z-index: 90;
  background: rgba(247, 250, 244, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(20, 50, 36, .12);
  box-shadow: 0 8px 28px -18px rgba(20, 50, 36, .35);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-900); line-height: 1.15; letter-spacing: .4px; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 600; color: var(--green-600); letter-spacing: 2.6px; }
.links { display: flex; align-items: center; gap: 4px; }
.links a { padding: 9px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--text); transition: all .18s; }
.links a:hover { background: var(--green-100); color: var(--green-800); }
.links a.btn { color: #fff; padding: 9px 18px; }
.links a.btn:hover { background: var(--green-800); }
/* the .active class was already applied by app.js but had no styling */
.links a.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.menu { display: none; font-size: 26px; cursor: pointer; background: none; border: none; color: var(--green-900); padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--green-900); color: #fff; overflow: hidden;
  padding: 130px 0 100px;
}
.hero-vid { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,32,23,.88) 15%, rgba(16,40,29,.62) 55%, rgba(16,40,29,.22)); }
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 920px); justify-content: center; gap: 50px; align-items: center; margin: 0 auto; }
.hero-logo { max-width: 130px; margin-bottom: 18px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.12; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: rgba(255,255,255,.86); font-size: 17.5px; max-width: 540px; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.hero-badges .hb b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--gold); }
.hero-badges .hb span { font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: .4px; }
.hero-art { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.14); }
.hero-art img { width: 100%; height: 430px; object-fit: cover; }
.hero-art .art-tag {
  position: absolute; left: 16px; bottom: 16px; background: rgba(10,32,23,.85);
  padding: 12px 18px; border-radius: 12px; color: #fff; font-size: 13.5px; backdrop-filter: blur(6px);
}
.hero-art .art-tag b { color: var(--gold); }

/* ---------- Stats ---------- */
.stats { margin-top: -46px; position: relative; z-index: 3; }
.stats-box {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 34px;
  border: 1px solid var(--line);
}
.stat b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--green-800); }
.stat span { color: var(--muted); font-size: 14px; }
.stat { text-align: center; }

/* ---------- Venture cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.photo { position: relative; height: auto; background-size: contain; background-position: center; }
.photo img { width: 100%; height: auto; object-fit: contain; }
.tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .4px;
}
.tag.ongoing { background: var(--green-600); }
.tag.upcoming { background: var(--orange); }
.tag.completed { background: var(--green-900); }
.vstatus { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.cardtop { margin-bottom: 12px; }
.cardtop .tag { position: static; display: inline-block; }
.cardbody { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.cardbody h3 { font-size: 20px; margin-bottom: 6px; }
.location { color: var(--muted); font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.cardline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--line); margin-bottom: 4px; }
.cardline span { color: var(--muted); font-size: 13.5px; }
.cardline b { font-size: 15px; color: var(--green-800); }
.cardline .avail { color: var(--green-600); }
.cardline .sold { color: var(--red); }
.link { color: var(--green-700); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; }
.link:hover { color: var(--orange); }
.link::after { content: "→"; transition: transform .2s; }
.link:hover::after { transform: translateX(4px); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: all .22s ease;
}
.why-card:hover { box-shadow: var(--shadow); border-color: var(--green-300); transform: translateY(-4px); }
.why-ico {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green-700); font-size: 24px; margin-bottom: 16px;
}
.why-card:nth-child(2n) .why-ico { background: var(--orange-soft); color: var(--orange); }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- About grid ---------- */
.aboutgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.aboutimg { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.aboutimg img { width: 100%; height: 460px; object-fit: cover; }
.aboutimg .imgbadge {
  position: absolute; bottom: 18px; left: 18px; background: var(--orange); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.aboutimg .about-main {
  object-fit: contain; padding: 48px 44px; background: linear-gradient(165deg, #fff 55%, var(--green-100));
}
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 28px; }
.mini div { background: var(--cream); border-radius: 12px; padding: 15px 16px; }
.mini b { display: block; color: var(--green-800); font-size: 15px; margin-bottom: 2px; font-family: var(--font-head); }
.mini span { color: var(--muted); font-size: 13.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 60px; color: #fff; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,32,23,.95), rgba(27,70,51,.88)); }
.cta .inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.85); max-width: 560px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.8); padding: 70px 0 0; margin-top: 0; }
.footergrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer h3, .footer h4 { color: #fff; }
.footer h4 { font-size: 15.5px; margin-bottom: 16px; letter-spacing: .5px; }
.footer .brand { margin-bottom: 16px; }
.footer p { font-size: 14.5px; line-height: 1.7; }
.footer a { display: block; padding: 5px 0; font-size: 14.5px; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer .contact a { padding: 3px 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--green-900); color: #fff; padding: 76px 0 72px; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10,32,23,.82), rgba(27,70,51,.58)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.crumb { font-size: 13.5px; color: rgba(255,255,255,.75); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--gold); }
.crumb span::before { content: "/"; margin: 0 8px; opacity: .6; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--green-800); margin-bottom: 7px; font-family: var(--font-head); }
.field label small { color: var(--red); }
.input, .textarea, select.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: all .2s; color: var(--text); outline: none;
}
.input:focus, .textarea:focus, select.input:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(51,136,94,.12); }
.textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
thead th { background: var(--green-900); color: #fff; text-align: left; padding: 13px 16px; font-weight: 600; font-size: 13px; letter-spacing: .5px; font-family: var(--font-head); }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-available { background: var(--green-100); color: var(--green-700); }
.status-reserved { background: var(--orange-soft); color: #B05E00; }
.status-sold { background: var(--red-soft); color: var(--red); }
.status-box { display: flex; gap: 8px; flex-wrap: wrap; }
.status-btn { padding: 6px 12px; border-radius: 8px; border: 1.5px solid transparent; font-size: 12.5px; font-weight: 700; transition: all .18s; display: inline-flex; align-items: center; gap: 6px; }
.status-btn.avail { background: var(--green-100); color: var(--green-700); }
.status-btn.avail:hover { background: var(--green-600); color: #fff; }
.status-btn.resv { background: var(--orange-soft); color: #B05E00; }
.status-btn.resv:hover { background: var(--orange); color: #fff; }
.status-btn.sold { background: var(--red-soft); color: var(--red); }
.status-btn.sold:hover { background: var(--red); color: #fff; }

/* ---------- Layout / SVG map ---------- */
.layout-stage {
  position: relative; background: #F0F4EF; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.layout-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.layout-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.layout-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.layout-legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.zoom-wrap { display: flex; gap: 8px; }
.layout-viewport { position: relative; width: 100%; height: 640px; overflow: hidden; touch-action: none; cursor: grab; }
.layout-viewport.dragging { cursor: grabbing; }
.layout-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.layout-canvas svg { display: block; }
.plot-shape { cursor: pointer; transition: filter .15s ease; }
.plot-shape:hover { filter: brightness(1.12) drop-shadow(0 0 6px rgba(0,0,0,.35)); }
.plot-shape.selected { stroke-width: 3.5 !important; stroke: var(--green-950) !important; filter: drop-shadow(0 0 8px rgba(246,142,13,.9)); outline: 2.5px solid var(--green-950); outline-offset: 1px; }
.plot-label { pointer-events: none; font-family: var(--font-head); font-weight: 600; fill: #0C1E16; text-anchor: middle; font-size: 12px; }
.plot-num { pointer-events: none; }
.road-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.layout-empty { padding: 60px; text-align: center; color: var(--muted); }
.layout-loading { display: flex; align-items: center; justify-content: center; height: 400px; color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 4px solid var(--green-200); border-top-color: var(--green-600); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Plot popup card */
.plot-popup {
  position: absolute; z-index: 30; width: 300px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; display: none;
}
.plot-popup.show { display: block; animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #fff; }
.pop-head.available { background: var(--green-600); }
.pop-head.reserved { background: var(--orange); }
.pop-head.sold { background: var(--red); }
.pop-head b { font-family: var(--font-head); font-size: 16px; }
.pop-close { background: rgba(255,255,255,.25); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1; }
.pop-body { padding: 16px 18px; }
.pop-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.pop-row { background: var(--cream); border-radius: 9px; padding: 9px 12px; }
.pop-row span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.pop-row b { font-size: 15px; color: var(--green-900); font-family: var(--font-head); }
.pop-row.full { grid-column: 1 / -1; }
.pop-rec { grid-column: 1 / -1; margin-bottom: 4px; }

/* ---------- Gallery ---------- */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-tab { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s; }
.filter-tab.active, .filter-tab:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--green-100); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item .cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(10,32,23,.82)); color: #fff; padding: 30px 16px 12px; font-size: 13.5px; font-weight: 600; }
.g-item .cat { position: absolute; top: 10px; left: 10px; background: rgba(16,40,29,.8); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .5px; text-transform: uppercase; }

/* Video tiles */
.g-item .g-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; color: rgba(255,255,255,.22); background: linear-gradient(140deg, #143224, #2E7D5B 55%, #F68E0D 170%); }
.g-item .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(16,40,29,.55); border: 2px solid rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; z-index: 2; transition: transform .2s ease, background .2s ease; }
.g-item .play::before { content: ""; display: block; width: 0; height: 0; margin-left: 4px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.g-item:hover .play { transform: scale(1.1); background: rgba(246,142,13,.92); }
#sd-lb-vid { background: #0C1E16; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-align: center; transition: all .22s; }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.team-photo { height: 250px; background: var(--green-100); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-bio { padding: 18px 16px 22px; }
.team-bio h3 { font-size: 17px; }
.team-bio .role { color: var(--orange); font-weight: 600; font-size: 13.5px; margin-top: 2px; letter-spacing: .4px; }
.team-bio p { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(10,32,23,.55); z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-back.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .22s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-lg { width: min(900px, 100%); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 90px); z-index: 200;
  background: var(--green-900); color: #fff; padding: 13px 22px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); transition: transform .3s ease;
  display: flex; align-items: center; gap: 10px; max-width: 92%;
}
.toast.show { transform: translate(-50%, 0); }
.toast.ok::before { content: "✓"; background: var(--green-500); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.toast.err::before { content: "!"; background: var(--red); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: linear-gradient(160deg, var(--green-100) 0%, var(--cream) 55%, #fff 100%); }
.auth-card { width: min(430px, 100%); }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand img { height: 74px; margin: 0 auto 12px; }
.auth-brand h1 { font-size: 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--green-100); padding: 6px; border-radius: 12px; margin-bottom: 26px; }
.auth-tab { border: none; background: transparent; padding: 11px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--green-700); font-family: var(--font-head); transition: all .2s; }
.auth-tab.active { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.auth-err { background: var(--red-soft); color: var(--red); font-size: 13.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.auth-err.show { display: block; }
.demo-cred { margin-top: 22px; background: var(--cream); border: 1px dashed var(--green-300); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; color: var(--muted); }
.demo-cred b { color: var(--green-800); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--header-h)); background: var(--cream); }
.sidebar { background: var(--green-950); color: rgba(255,255,255,.85); padding: 22px 14px 30px; display: flex; flex-direction: column; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 500; transition: all .18s; border: none; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-link.active { background: var(--green-600); color: #fff; }
.side-link .ico { width: 22px; text-align: center; font-size: 16px; }
.side-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: rgba(255,255,255,.4); margin: 22px 14px 8px; font-weight: 600; }
.side-user { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.side-user .su { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.side-user img, .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-600); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--font-head); }
.su-name { font-size: 14px; font-weight: 600; color: #fff; }
.su-role { font-size: 12px; color: rgba(255,255,255,.55); }
.dash-main { padding: 30px 32px 60px; min-width: 0; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-top h1 { font-size: 26px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.dash-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: center; }
.ds-ico { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--green-100); color: var(--green-700); }
.dash-stat.orange .ds-ico { background: var(--orange-soft); color: var(--orange); }
.dash-stat.red .ds-ico { background: var(--red-soft); color: var(--red); }
.dash-stat.gold .ds-ico { background: #FBF3DC; color: var(--gold); }
.ds-num { font-family: var(--font-head); font-size: 26px; color: var(--green-900); font-weight: 700; line-height: 1.1; }
.ds-lbl { font-size: 13px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 19px; }
.panel-head .tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dash-view { display: none; }
.dash-view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bar { background: var(--cream); border-radius: 10px; overflow: hidden; height: 8px; }
.bar > i { display: block; height: 100%; background: var(--green-600); }
.mini-stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.mini-stat b { font-family: var(--font-head); font-size: 17px; color: var(--green-900); }
.mini-stat span { font-size: 12.5px; color: var(--muted); display: block; }

/* venture manager list row */
.vrow { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; transition: all .18s; }
.vrow:hover { box-shadow: var(--shadow-sm); border-color: var(--green-300); }
.vrow img { width: 84px; height: auto; max-height: 100px; object-fit: contain; border-radius: 9px; }
.vrow h4 { font-size: 16px; }
.vrow .loc { font-size: 13px; color: var(--muted); }
.vrow .meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.file-upload { border: 2px dashed var(--green-300); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; background: var(--cream); }
.file-upload:hover { border-color: var(--green-600); background: var(--green-100); }
.file-upload b { color: var(--green-700); display: block; margin-bottom: 4px; }
.hidden-file { display: none; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* Plot layout editor canvas */
.editor-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.editor-canvas { width: 100%; height: 560px; position: relative; touch-action: none; }
.editor-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; background: var(--cream); }
.hint { font-size: 12.5px; color: var(--muted); }
.kbd { background: var(--green-100); padding: 1px 7px; border-radius: 5px; border: 1px solid var(--green-300); font-size: 11.5px; font-family: monospace; }

/* ---------- Enquiry / contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; }
/* Agent registration gives its form the wider column. This used to be an inline
   style on the element, which out-specified the mobile media query and kept the
   cards and the form side-by-side on phones. */
.agent-grid { grid-template-columns: 1fr 1.4fr; }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; align-items: flex-start; }
.info-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.info-card b { font-family: var(--font-head); color: var(--green-900); display: block; font-size: 15px; }
.info-card p, .info-card a { color: var(--muted); font-size: 14.5px; white-space: pre-line; }
.map-frame { border: 0; width: 100%; height: 240px; border-radius: var(--radius); margin-top: 14px; filter: saturate(.85); }

/* ---------- Steps (agent page) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 30px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--green-100); }
.step .si { font-size: 30px; margin-bottom: 12px; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* emergency bars */
.divider { height: 1px; background: var(--line); margin: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footergrid { grid-template-columns: 1fr 1fr; }
}

/* Admin dashboard: responsive sidebar is controlled below */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { display: none; }
  .stats-box { grid-template-columns: repeat(2, 1fr); }
  .aboutgrid, .contact-grid, .agent-grid { grid-template-columns: 1fr; }
  .aboutimg img { height: 320px; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .layout-viewport { height: 480px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .nav { height: 68px; }
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 15px; }
  .brand-name small { font-size: 9px; letter-spacing: 2px; }
  .cards, .why-grid { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stats-box { gap: 14px; padding: 22px; }
  .stat b { font-size: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footergrid { grid-template-columns: 1fr; gap: 26px; }
  .cta { padding: 40px 24px; }
  .mini { grid-template-columns: 1fr; }
  .dash-main { padding: 20px 14px 50px; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-stat { padding: 14px; }
  .ds-ico { width: 40px; height: 40px; font-size: 18px; }
  .ds-num { font-size: 21px; }
  .panel { padding: 16px; }
  .layout-viewport { height: 400px; }
  .plot-popup { width: 260px; }
  .hero { padding: 90px 0 84px; }
  .copyright { flex-direction: column; }
}

/* print-friendly, reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-vid { display: none !important; }
}

/* ============================================================
   Animations + custom cursor  (Sankalpa Developers)
   ============================================================ */
@keyframes sdRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
html.sd-anim .reveal.in {
  animation: sdRise .75s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.hero-inner > * { animation: sdRise .85s cubic-bezier(.22,.61,.36,1) both; }
.page-hero .container { animation: sdRise .85s cubic-bezier(.22,.61,.36,1) both; animation-delay: .1s; }
.hero-inner > *:nth-child(2) { animation-delay: .14s; }
.hero-inner > *:nth-child(3) { animation-delay: .26s; }
.hero-inner > *:nth-child(4) { animation-delay: .38s; }

/* floating decorations */
@keyframes sdFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.decor { animation: sdFloat 7s ease-in-out infinite; }
.cta .decor { animation-delay: -3.4s; }

/* hover micro-interactions */
.btn, .card, .why-card, .g-item, .team-card, .info-card, .plot-card {
  transition: transform .28s ease, box-shadow .28s ease;
}
.btn:hover { transform: translateY(-2px); }
.card:hover, .why-card:hover, .g-item:hover, .team-card:hover, .info-card:hover, .plot-card:hover { transform: translateY(-5px); }
.card:hover, .why-card:hover, .team-card:hover { box-shadow: 0 20px 44px -20px rgba(20,50,36,.4); }

/* nav link underline sweep */
.links a { position: relative; }
.links a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.links a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- custom cursor (desktop only) ---------- */
@media (pointer: fine) {
  html.sd-cursor-on, html.sd-cursor-on * { cursor: none !important; }
  .sd-cursor-dot, .sd-cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none;
    border-radius: 50%; z-index: 2147483000;
    opacity: 0; will-change: transform; transition: opacity .3s ease;
  }
  .sd-cursor-dot {
    width: 8px; height: 8px; margin: -4px 0 0 -4px;
    background: var(--orange);
    box-shadow: 0 0 14px rgba(246,142,13,.9), 0 0 4px rgba(246,142,13,.9);
  }
  .sd-cursor-ring {
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1.6px solid rgba(246,142,13,.7);
    box-shadow: 0 0 22px rgba(246,142,13,.18);
  }
  .sd-cursor-ring::after {
    content: ""; position: absolute; inset: -16px; border-radius: 50%;
    background: radial-gradient(circle, rgba(246,142,13,.16) 0%, transparent 70%);
  }
}
@media (pointer: coarse) {
  .sd-cursor-dot, .sd-cursor-ring { display: none !important; }
}

/* ============================================================
   Gradients + enhanced motion  (Sankalpa Developers)
   Brand-only colours: dark green → green → sage, orange accent.
   ============================================================ */
:root {
  --grad-primary: linear-gradient(135deg, var(--green-900), var(--green-600));
  --grad-brand:  linear-gradient(115deg, var(--green-900) 0%, var(--green-700) 46%, var(--orange) 138%);
  --grad-soft:   linear-gradient(160deg, var(--cream), var(--green-100));
  --grad-text:   linear-gradient(92deg, var(--green-800), var(--green-500));
}

/* gradient-accent text */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* primary buttons — living green gradient */
.btn:not(.outline):not(.ghost):not(.white):not(.orange):not(.danger) {
  background: var(--grad-primary);
  background-size: 170% 170%;
}
.btn:not(.outline):not(.ghost):not(.white):not(.orange):not(.danger):hover {
  background-position: 100% 0;
  box-shadow: 0 12px 30px -12px rgba(27, 70, 51, .55);
}

/* hero — richer brand gradient + drifting orange glow */
.hero::after {
  background: linear-gradient(100deg, rgba(10,32,23,.88) 6%, rgba(16,40,29,.58) 42%, rgba(37,107,75,.28) 78%, rgba(246,142,13,.12));
}
.hero::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  right: -180px; top: -190px;
  background: radial-gradient(circle, rgba(246,142,13,.42), rgba(246,142,13,0) 68%);
  animation: sdDrift 16s ease-in-out infinite alternate;
}
@keyframes sdDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-90px, 70px) scale(1.15); }
}

/* inner page heros */
.page-hero { background: var(--grad-primary); }
.page-hero::after {
  background: linear-gradient(112deg, rgba(12,30,22,.78) 8%, rgba(27,70,51,.44) 52%, rgba(246,142,13,.14));
}

/* stats — soft mint panel + gradient numerals */
.stats-box { background: linear-gradient(165deg, #fff 55%, var(--green-100)); }
.stat b, .ds-num {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-stat { position: relative; border-top: 3px solid var(--green-600); }
.dash-stat::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand); opacity: .9;
}

/* cards & why-icons */
.card { background: linear-gradient(175deg, #fff 62%, var(--green-100) 135%); }
.card:hover, .why-card:hover { border-color: var(--green-400); }
.why-card { position: relative; }
.why-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.why-card:hover::after { transform: scaleX(1); }
.why-ico { background: var(--grad-soft); }

/* CTA — green → orange brand sweep */
.cta::after {
  background: linear-gradient(105deg, rgba(12,30,22,.96) 6%, rgba(27,70,51,.88) 44%, rgba(246,142,13,.55));
}

/* active filter tab */
.filter-tab.active { background: var(--grad-primary); }

/* gallery hover lift */
.g-item { transition: transform .3s ease, box-shadow .3s ease; }
.g-item:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -16px rgba(20,50,36,.4); }

/* reveal direction variants (2-col grids slide from the sides) */
@keyframes sdRiseL {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sdRiseR {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}
html.sd-anim .reveal-l.in { animation-name: sdRiseL; }
html.sd-anim .reveal-r.in { animation-name: sdRiseR; }

/* Venture images retain their natural aspect ratio without cropping. */
.card .photo { position: relative; height: auto; overflow: hidden; }
.card .photo img { display: block; width: 100%; height: auto; object-fit: contain; transition: none; }
.card .photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,32,23,0) 55%, rgba(10,32,23,.42));
}
.card:hover .photo img { transform: none; }

/* ---- Founder section (home + about) ---- */
.founder { display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center; margin-top: 44px; }
.founder-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.65); }
.founder-photo img { width: 100%; height: 520px; object-fit: cover; display: block; }
.founder-body { position: relative; }
.founder-mark { font-family: Georgia, serif; font-size: 92px; line-height: .55; color: var(--orange); user-select: none; }
.founder-body blockquote { font-family: var(--font-head); font-weight: 600; font-size: clamp(19px, 2.3vw, 27px); line-height: 1.4; color: var(--green-900); margin: 4px 0 16px; }
.founder-name { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.founder-name b { font-family: var(--font-head); font-size: 20px; color: var(--green-900); }
.founder-name span { color: var(--orange); font-weight: 600; font-size: 13.5px; letter-spacing: .3px; }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; gap: 26px; }
  .founder-photo img { height: 340px; }
}
/* leadership team: centre the cards so a small team looks intentional */
.team-grid.centered { grid-template-columns: repeat(auto-fit, minmax(240px, 260px)); justify-content: center; }

/* ---- icon colour fix: emoji stay colourful, tiles vary (no flat dark green) ---- */
.why-ico, .si, .info-card .ic, .ds-ico, .side-link .ico, .step .si, .stat b .em {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.stat b .em {
  display: inline-block; margin-right: 7px;
  background: none !important;
  -webkit-text-fill-color: var(--green-700); color: var(--green-700);
}
.why-card:nth-child(3n + 2) .why-ico { background: var(--orange-soft); color: var(--orange); }
.why-card:nth-child(3n) .why-ico { background: #FBF3DC; color: var(--gold); }
.step .si {
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 18px; background: var(--green-100);
}
.step:nth-child(3n + 2) .si { background: var(--orange-soft); }
.step:nth-child(3n) .si { background: #FBF3DC; }
.info-card:nth-child(even) .ic { background: var(--orange-soft); color: var(--orange); }

/* ---- plot multi-select (dashboard) ---- */
.bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  background: rgba(46, 125, 91, .07); border: 1px solid rgba(46, 125, 91, .22);
  border-radius: 10px; font-size: 14px; color: var(--green-900);
}
.bulk-bar .input { max-width: 170px; }
.pm-chk, #pm-all { width: 17px; height: 17px; accent-color: var(--green-600); cursor: pointer; }

/* ============================================================
   RESPONSIVE FIXES
   ------------------------------------------------------------
   1. The public header carries seven links plus two buttons. At the
      real font sizes that row needs roughly 1080px, so between
      861px and ~1160px (i.e. every tablet, including iPad in
      landscape) it outgrew its container and pushed the page wide.
      The drawer used to appear only below 860px; it now takes over
      at 1200px, which is where the row genuinely stops fitting.
   2. The agent-registration split was an inline style, which
      out-specified the mobile media query. It is a class now
      (see .agent-grid above).
   3. Form controls inherit 15px, and iOS Safari zooms the whole
      page in when a control smaller than 16px gains focus. They
      are bumped to 16px on small screens.
   ============================================================ */

/* ---------- 1. navigation drawer ---------- */
@media (max-width: 1200px) {
  .menu { display: block; }
  .links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(247, 250, 244, .97);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    flex-direction: column; align-items: stretch;
    padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    /* hidden rather than merely off-screen, so closed links cannot be
       reached by keyboard focus or a stray tap */
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    border-bottom: 3px solid var(--green-700);
    z-index: 95;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s;
  }
  /* the horizontal underline sweep does not suit a stacked menu */
  .links a:not(.btn)::after { display: none; }
  .links a { padding: 13px 14px; font-size: 15.5px; border-radius: 10px; }
  .links a.btn { justify-content: center; margin-top: 8px; padding: 12px 18px; }
  .links a.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }
  /* set by app.js while the drawer is open */
  body.sd-menu-open { overflow: hidden; }
}

/* ---------- 2 + 3. forms, cards and inner-page heros ---------- */
@media (max-width: 860px) {
  .contact-grid { gap: 26px; }
  .form-box { padding: 26px 22px; }
  .steps { gap: 16px; }
  .step { padding: 26px 20px; }
  .page-hero { padding: 62px 0 58px; }
}

@media (max-width: 560px) {
  /* >=16px stops iOS Safari zooming the page when a field is focused */
  .input, .textarea, select.input { font-size: 16px; }
  .contact-grid { gap: 20px; }
  .form-box { padding: 22px 16px; }
  .page-hero { padding: 52px 0 48px; }
  .step { padding: 22px 18px; }
  .step .si { width: 60px; height: 60px; font-size: 26px; border-radius: 14px; }
  .info-card { padding: 16px; gap: 12px; }
  .info-card .ic { width: 40px; height: 40px; font-size: 18px; }
}

/* ============================================================
   Admin dashboard sidebar — single responsive implementation
   Desktop: 769px and above. Mobile: 768px and below.
   ============================================================ */
.mobile-menu-btn,
.mobile-sidebar-overlay { display: none; }

@media screen and (max-width: 768px) {
  .dash {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dash > #sd-sidebar.sidebar {
    display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 82vw);
    max-width: 82vw;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
    z-index: 1200;
    -webkit-overflow-scrolling: touch;
  }

  .dash.mobile-sidebar-open > #sd-sidebar.sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .dash > #sd-sidebar > .side-head,
  .dash > #sd-sidebar > .side-link {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dash > #sd-sidebar > .side-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    text-align: left;
    white-space: normal;
  }

  .dash > #sd-sidebar > .side-link .ico {
    flex: 0 0 22px;
  }

  .dash > #sd-sidebar > .side-user {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: auto;
  }

  .dash > #sd-sidebar #sd-logout {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
  }

  .dash > .dash-main {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .dash-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  #sd-view-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    color: #172554;
    font-size: 25px;
    position: relative;
    z-index: 1201;
  }

  .dash.mobile-sidebar-open #mobile-menu-btn { display: none; }

  .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 40, .55);
    z-index: 1190;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .dash.mobile-sidebar-open .mobile-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media screen and (min-width: 769px) {
  .dash {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-width: 0;
  }

  .dash > #sd-sidebar.sidebar {
    position: sticky;
    top: var(--header-h);
    width: auto;
    max-width: none;
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    transform: none;
    visibility: visible;
  }

  .dash > .dash-main {
    min-width: 0;
    width: auto;
    margin-left: 0;
  }

  #mobile-menu-btn,
  .mobile-sidebar-overlay { display: none; }
}

/* Sankalpa customer layout: retain full 1400x900 coordinate area at every screen width.
   The existing zoom/pan renderer continues to work unchanged. */
#sd-layout .layout-viewport {
  height: auto;
  aspect-ratio: 14 / 9;
  min-height: 300px;
}

/* Footer contact alignment only — 20261022 */
.footer .sd-footer-contact-row { display:flex; align-items:flex-start; gap:10px; margin:0 0 10px; min-width:0; font-size:14.5px; line-height:1.7; }
.footer .sd-footer-contact-icon { display:inline-flex; flex:0 0 22px; width:22px; align-items:flex-start; justify-content:center; line-height:1.7; }
.footer .sd-footer-contact-row > a, .footer .sd-footer-contact-row > #sd-footer-addr { display:block; flex:1 1 auto; min-width:0; padding:0; margin:0; overflow-wrap:anywhere; line-height:1.7; }
