/* =========================================================
   Vevien Ong District (VOD) — Global Stylesheet
   PropNex Realty | Fluid, responsive, animated design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --navy-900: #060f22;
  --navy-800: #0b1f3a;
  --navy-700: #122b4d;
  --navy-600: #1c3b63;
  --gold-500: #c9a44c;
  --gold-400: #ddbd6f;
  --gold-300: #e6cd8f;
  --cream-100: #f8f6f1;
  --cream-200: #f0ecE2;
  --white: #ffffff;
  --ink: #16191f;
  --muted: #626a78;
  --line: rgba(11, 31, 58, 0.1);
  --success: #2f8f5b;

  /* Fluid type scale */
  --fs-xs: clamp(0.75rem, 0.72rem + 0.1vw, 0.85rem);
  --fs-sm: clamp(0.875rem, 0.83rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  --fs-2xl: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.4rem, 1.8rem + 2.6vw, 4rem);
  --fs-hero: clamp(2.6rem, 1.9rem + 3.4vw, 5.2rem);

  /* Spacing */
  --space-section: clamp(3.5rem, 3rem + 3vw, 8rem);
  --space-lg: clamp(2rem, 1.6rem + 1.6vw, 3.5rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --container: 1240px;

  --shadow-sm: 0 4px 16px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 14px 40px rgba(11, 31, 58, 0.14);
  --shadow-gold: 0 12px 30px rgba(201, 164, 76, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--muted); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: var(--fs-base); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 2vw, 3rem);
}

section { padding-block: var(--space-section); position: relative; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.section-head { max-width: 700px; margin-bottom: var(--space-lg); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p { font-size: var(--fs-lg); }

.text-gold { color: var(--gold-500); }
.bg-navy { background: var(--navy-800); color: var(--cream-100); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(248, 246, 241, 0.75); }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary::before { background: var(--navy-800); }
.btn-primary:hover { color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline::before { background: var(--white); }
.btn-outline:hover { color: var(--navy-900); transform: translateY(-3px); }
.btn-outline:hover::before { transform: scaleX(1); }

.btn-dark { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-dark::before { background: var(--navy-800); }
.btn-dark:hover { color: var(--white); transform: translateY(-3px); }
.btn-dark:hover::before { transform: scaleX(1); }

.btn-sm { padding: 0.65em 1.4em; font-size: var(--fs-xs); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  padding-block: 1.1rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.solid { background: rgba(6, 15, 34, 0.92); backdrop-filter: blur(10px); padding-block: 0.7rem; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 60%, #a3812f);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--navy-900);
  font-size: 1rem; letter-spacing: -0.03em;
  box-shadow: 0 6px 18px rgba(201,164,76,0.4);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--white); letter-spacing: 0.01em; }
.brand-text span { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); }

.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 1vw, 1.7rem); }
.nav-links a {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding-block: 0.4rem;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--gold-500);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { margin-left: 0.3rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 1100; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; top: 0;
    width: min(78vw, 340px); height: 100vh;
    background: var(--navy-900);
    flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.5rem;
    padding: 2rem clamp(1.5rem, 5vw, 3rem);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  .nav-links .btn { margin-left: 0; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at top right, var(--navy-700), var(--navy-900) 65%);
  color: var(--white);
  overflow: hidden;
  padding-top: 6rem;
}
.hero-skyline { position: absolute; left: 0; right: 0; bottom: -2px; opacity: 0.5; pointer-events: none; }
.hero-skyline svg { width: 100%; height: auto; display: block; }
.hero .glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none;
}
.hero .glow.g1 { width: 420px; height: 420px; background: var(--gold-500); top: -120px; right: -80px; }
.hero .glow.g2 { width: 320px; height: 320px; background: #2952a3; bottom: -100px; left: -60px; }
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { font-size: var(--fs-hero); color: var(--white); margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lede { font-size: var(--fs-lg); color: rgba(255,255,255,0.78); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6);
  z-index: 2;
}
.hero-scroll .line { width: 1px; height: 36px; background: linear-gradient(var(--gold-400), transparent); animation: scrollpulse 2s infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Stats ---------- */
.stats-bar { background: var(--navy-800); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.stat { text-align: center; color: var(--white); }
.stat .num { font-family: 'Poppins', sans-serif; font-size: var(--fs-3xl); font-weight: 800; color: var(--gold-400); display: block; }
.stat .label { font-size: var(--fs-sm); letter-spacing: 0.04em; color: rgba(255,255,255,0.7); text-transform: uppercase; }

/* ---------- Performance Dashboard (CMS-editable big numbers) ---------- */
.perf-dashboard { background: var(--navy-900); position: relative; overflow: hidden; }
.perf-dashboard::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 420px; height: 420px; border-radius: 50%;
  background: var(--gold-500); opacity: 0.12; filter: blur(100px); pointer-events: none;
}
.perf-card {
  position: relative; text-align: center; padding: clamp(1.75rem, 1.4rem + 1.2vw, 2.6rem) 1.25rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.perf-card:hover { transform: translateY(-8px); border-color: var(--gold-500); background: rgba(255,255,255,0.05); }
.perf-card .perf-num {
  display: block; font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--gold-400);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em;
}
.perf-card .perf-label { margin-top: 0.6rem; font-size: var(--fs-sm); color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }

.perf-dashboard-layout { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.perf-card-featured {
  padding: clamp(2.5rem, 2rem + 2.5vw, 4rem) 1.5rem;
  background: linear-gradient(135deg, rgba(201,164,76,0.1), rgba(255,255,255,0.03));
  border-color: rgba(201,164,76,0.35);
}
.perf-card-featured:hover { border-color: var(--gold-500); }
.perf-card-featured .perf-num { font-size: clamp(3rem, 2.1rem + 4.5vw, 5.5rem); }
.perf-card-featured .perf-label { margin-top: 0.9rem; font-size: var(--fs-lg); }
.perf-asof { text-align: center; margin-top: 2.2rem; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.3rem + 1vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--gold-400);
  transition: transform 0.45s var(--ease);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: var(--fs-lg); }
.card p { margin-bottom: 0; }

/* ---------- Leader Cards ---------- */
.leader-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.leader-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.leader-photo {
  aspect-ratio: 4 / 4.6;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.6rem; color: var(--white);
  overflow: hidden;
}
.leader-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,15,34,0.75));
}
.leader-photo span { position: relative; z-index: 1; }
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader-card:hover .leader-photo { filter: saturate(1.15); }
.leader-card:hover .leader-photo img { transform: scale(1.05); transition: transform 0.5s var(--ease); }
.leader-body { padding: 1.4rem 1.5rem 1.7rem; }
.leader-body h3 { font-size: var(--fs-lg); margin-bottom: 0.15em; }
.leader-role { color: var(--gold-500); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.7em; display: block; }
.leader-socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.leader-socials a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--navy-800);
  transition: all 0.3s var(--ease);
}
.leader-socials a:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); transform: translateY(-3px); }

/* palette rotation for avatar backgrounds */
.av-1 { background: linear-gradient(135deg, #1c3b63, #0b1f3a); }
.av-2 { background: linear-gradient(135deg, #8a6a24, #c9a44c); }
.av-3 { background: linear-gradient(135deg, #2c4a7c, #16294a); }
.av-4 { background: linear-gradient(135deg, #6b4f1a, #b08a34); }
.av-5 { background: linear-gradient(135deg, #234066, #0b1f3a); }
.av-6 { background: linear-gradient(135deg, #9c7a30, #d8b45c); }

/* ---------- Awards ---------- */
.award-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}
.award-card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: var(--shadow-md); }
.award-badge {
  width: 78px; height: 78px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--gold-300), var(--gold-500), var(--gold-300));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900); font-family: 'Poppins',sans-serif; font-weight: 800;
  box-shadow: var(--shadow-gold);
  transition: transform 0.5s var(--ease);
}
.award-card:hover .award-badge { transform: scale(1.1) rotate(10deg); }
.award-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.award-card .year { color: var(--gold-500); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.05em; }
.award-card h3 { font-size: var(--fs-base); margin: 0.3em 0; }

.timeline { position: relative; margin-top: 2rem; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold-500), transparent); }
.timeline-item { position: relative; padding-left: 3.2rem; margin-bottom: 2.4rem; }
.timeline-item::before {
  content: ''; position: absolute; left: 10px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-500); border: 4px solid var(--cream-100); box-shadow: 0 0 0 2px var(--gold-500);
}
.timeline-item h4 { font-size: var(--fs-base); margin-bottom: 0.2em; color: var(--navy-800); }
.timeline-item .yr { color: var(--gold-500); font-weight: 700; font-size: var(--fs-sm); }

/* ---------- Education ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.tab-btn {
  padding: 0.7em 1.4em; border-radius: 100px; border: 1.5px solid var(--line);
  background: var(--white); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: var(--fs-sm);
  color: var(--navy-800); transition: all 0.3s var(--ease);
}
.tab-btn:hover { border-color: var(--gold-500); color: var(--gold-500); transform: translateY(-2px); }
.tab-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; animation: fadein 0.5s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.resource-card { position: relative; }
.resource-thumb {
  aspect-ratio: 16/10; border-radius: var(--radius-sm); margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.resource-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.resource-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,15,34,0.1), rgba(6,15,34,0.6)); pointer-events: none; }
.resource-card:hover .resource-thumb img { transform: scale(1.06); }
.resource-thumb .play {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all 0.35s var(--ease);
}
.resource-card:hover .play { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: scale(1.12); }
.resource-tag { position: absolute; top: 10px; left: 10px; background: rgba(6,15,34,0.65); color: var(--gold-300); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35em 0.8em; border-radius: 100px; font-weight: 600; }
.resource-lock { position: absolute; top: 10px; right: 10px; background: var(--gold-500); color: var(--navy-900); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.resource-meta { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-top: 0.6rem; }

/* ---------- Login / Portal ---------- */
.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--navy-900);
  padding-top: clamp(4.5rem, 4rem + 2vw, 5.5rem);
}
@media (max-width: 900px) { .portal-shell { grid-template-columns: 1fr; } }
.portal-shell.unlocked-view { grid-template-columns: 1fr; }
.portal-shell.unlocked-view .portal-visual { display: none; }
.portal-shell.unlocked-view .portal-form-side { padding-block: clamp(2rem, 4vw, 3.5rem); }
.portal-visual {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--navy-600), var(--navy-900) 70%);
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem,4vw,4rem); color: var(--white);
}
.portal-visual .checklist li { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 900px) { .portal-visual { display: none; } }
.portal-form-side { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 5rem); }
.portal-card { width: 100%; max-width: 420px; transition: max-width 0.4s var(--ease); }
.portal-card.wide { max-width: 1100px; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.5em; font-weight: 600; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%; padding: 0.95em 1em 0.95em 2.7em; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: var(--white);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold-500); background: rgba(255,255,255,0.09); }
.field .input-icon { position: absolute; left: 0.9em; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.45); }
.field input::placeholder { color: rgba(255,255,255,0.35); }
.field input.invalid { border-color: #e0697a; background: rgba(224,105,122,0.08); }
.field-error { display: none; color: #f29aa8; font-size: var(--fs-xs); margin: 0.6em 0 0; }
.field-error.show { display: block; animation: fadein 0.3s var(--ease); }
.form-note { font-size: var(--fs-xs); color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2); padding: 0.9em 1em; border-radius: var(--radius-sm); margin-top: 1.3rem; }
.hint-btn { background: none; border: none; color: var(--gold-400); text-decoration: underline; font-size: inherit; padding: 0; }

.portal-locked, .portal-unlocked { display: none; }
.portal-locked.active, .portal-unlocked.active { display: block; animation: fadein 0.6s var(--ease); }

.resource-grid-portal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.portal-res-item {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  padding: 1.2rem; color: var(--white); transition: all 0.3s var(--ease);
}
.portal-res-item:hover { background: rgba(201,164,76,0.1); border-color: var(--gold-500); transform: translateY(-4px); }

.portal-video-section { margin-top: 2.6rem; }
.portal-video-section h2 { color: var(--white); font-size: var(--fs-xl); margin-bottom: 0.2em; }
.portal-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.portal-video-card {
  display: block; width: 100%; text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.portal-video-card:hover { transform: translateY(-5px); border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.portal-video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-700); overflow: hidden; }
.portal-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.portal-video-card:hover .portal-video-thumb img { transform: scale(1.06); }
.portal-video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,15,34,0.1), rgba(6,15,34,0.65)); }
.portal-video-thumb .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; z-index: 1;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.55); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: all 0.35s var(--ease);
}
.portal-video-card:hover .play { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translate(-50%, -50%) scale(1.12); }
.portal-video-title { display: block; padding: 0.65rem 0.85rem 0.9rem; font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--white); }

/* ---------- Video Modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.video-modal.open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(6,15,34,0.85); backdrop-filter: blur(4px); }
.video-modal-dialog {
  position: relative; z-index: 1; width: min(920px, 100%);
  background: var(--navy-900); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.94) translateY(10px); transition: transform 0.4s var(--ease);
}
.video-modal.open .video-modal-dialog { transform: scale(1) translateY(0); }
.video-modal-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: var(--white); font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease);
}
.video-modal-close:hover { background: var(--gold-500); color: var(--navy-900); transform: rotate(90deg); }
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-locked { padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); text-align: center; color: var(--white); }
.video-modal-locked .resource-lock { position: static; width: 52px; height: 52px; margin: 0 auto 1.2rem; }
.video-modal-locked h3 { color: var(--white); font-size: var(--fs-xl); }
.video-modal-locked p { color: rgba(255,255,255,0.65); max-width: 380px; margin-inline: auto; margin-bottom: 1.5rem; }
.resource-card[data-video] { cursor: pointer; }

/* ---------- Map page ---------- */
.map-layout { display: grid; grid-template-columns: 380px 1fr; gap: 1.5rem; height: min(720px, 78vh); }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; height: auto; } #map { height: 60vh; } }
.map-sidebar { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.map-search { padding: 1rem; border-bottom: 1px solid var(--line); }
.map-search input { width: 100%; padding: 0.75em 1em; border-radius: 100px; border: 1.5px solid var(--line); }
.map-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1rem 1rem; border-bottom: 1px solid var(--line); }
.map-filters button { padding: 0.4em 1em; border-radius: 100px; border: 1.5px solid var(--line); background: var(--white); font-size: var(--fs-xs); font-weight: 600; transition: all 0.25s var(--ease); }
.map-filters button.active, .map-filters button:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.map-list { overflow-y: auto; flex: 1; }
.map-item { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.25s var(--ease); }
.map-item:hover, .map-item.active { background: var(--cream-200); }
.map-item h4 { margin: 0 0 0.2em; font-size: var(--fs-sm); color: var(--navy-800); }
.map-item .region-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-500); font-weight: 700; }
.map-item p { margin: 0.3em 0 0; font-size: var(--fs-xs); }
#map { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.map-popup h4 { margin: 0 0 0.2em; font-size: 0.95rem; color: var(--navy-800); }
.map-popup .region-tag { color: var(--gold-500); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.map-popup a.btn { margin-top: 0.6rem; }
.map-market-stat, .map-market-stat-list { color: var(--gold-500) !important; font-size: 0.74rem !important; margin-top: 0.4em !important; }
.map-market-stat strong, .map-market-stat-list strong { color: var(--navy-800); }
.sample-note { display: flex; gap: 0.7rem; align-items: flex-start; background: #fdf6e3; border: 1px solid var(--gold-300); color: #6b5417; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 2vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-info-item .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: var(--gold-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h4 { margin-bottom: 0.2em; font-size: var(--fs-base); }
.contact-info-item p { margin: 0; }
.form-card { background: var(--white); border-radius: var(--radius-md); padding: clamp(1.5rem, 1.3rem + 1vw, 2.4rem); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-card .field label { color: var(--muted); }
.form-card .field input, .form-card .field textarea, .form-card .field select {
  width: 100%; padding: 0.85em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream-100);
  transition: border-color 0.3s var(--ease);
}
.form-card .field input:focus, .form-card .field textarea:focus, .form-card .field select:focus { outline: none; border-color: var(--gold-500); }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; animation: fadein 0.5s var(--ease); }
.form-success .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: var(--white); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%;
  background: var(--gold-500); opacity: 0.18; filter: blur(60px);
}
.cta-banner h2 { color: var(--white); font-size: var(--fs-3xl); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding-top: var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: var(--white); font-family: 'Poppins',sans-serif; font-size: var(--fs-sm); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul li { margin-bottom: 0.7rem; }
.site-footer ul a { transition: color 0.25s var(--ease), padding-left 0.25s var(--ease); }
.site-footer ul a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.footer-socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-4px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding-block: 1.6rem; font-size: var(--fs-xs); }
.footer-bottom a:hover { color: var(--gold-400); }

.back-to-top {
  position: fixed; right: clamp(1rem,2vw,2rem); bottom: clamp(1rem,2vw,2rem); z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; border: none; box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.35s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(ellipse at top left, var(--navy-700), var(--navy-900) 70%);
  color: var(--white); padding-top: clamp(8rem, 6rem + 6vw, 11rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: var(--fs-3xl); }
.page-hero .breadcrumb { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.8em; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero p.lede { font-size: var(--fs-lg); color: rgba(255,255,255,0.75); max-width: 620px; }

/* ---------- Misc ---------- */
.divider-gold { width: 60px; height: 3px; background: var(--gold-500); border-radius: 2px; margin-bottom: 1.2rem; }
.quote-block { border-left: 3px solid var(--gold-500); padding-left: 1.4rem; font-style: normal; font-size: var(--fs-lg); color: var(--navy-800); font-family: 'Poppins', sans-serif; }
.tag-pill { display: inline-block; padding: 0.3em 0.9em; border-radius: 100px; background: rgba(201,164,76,0.12); color: var(--gold-500); font-size: var(--fs-xs); font-weight: 600; margin: 0.2em; }
.leader-associates { margin: 0.3em 0 0.6em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 3vw, 4rem); align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.mini-skyline { opacity: 0.9; }
.checklist li { display: flex; gap: 0.7em; align-items: flex-start; margin-bottom: 0.8em; color: var(--ink); }
.checklist li .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: flex; align-items: center; justify-content: center; margin-top: 0.15em; }
