/* ============================================
   SAM TEE — PROPERTY ADVISOR
   Design system: Navy / Gold / White
   Fonts: Cormorant Garamond (display) + Jost (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --navy-900: #0A1B2E;
  --navy-800: #102A43;
  --navy-700: #1A3A5C;
  --navy-600: #2C4F73;
  --gold-500: #C9933A;
  --gold-400: #D4A656;
  --gold-300: #E0BC7E;
  --gold-100: #F3E6CC;
  --white: #FFFFFF;
  --off-white: #F7F5F1;
  --ink: #1C1C1A;
  --ink-muted: #5C5B57;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 27, 46, 0.12);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', -apple-system, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.section-title {
  font-size: 34px;
  color: var(--navy-900);
  margin-top: 10px;
}

.section-title.on-dark { color: var(--white); }

.section-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 620px;
  margin-top: 14px;
}

.section-sub.on-dark { color: rgba(255,255,255,0.72); }

/* ---------- Top nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 27, 46, 0.96);
  padding: 14px 40px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav-brand span { color: var(--gold-400); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (full-bleed photo) ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,27,46,0.55) 0%,
    rgba(10,27,46,0.35) 35%,
    rgba(10,27,46,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px 80px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  border: 1px solid rgba(212, 166, 86, 0.5);
  padding: 6px 14px;
  border-radius: 100px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 820px;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  max-width: 560px;
  margin-top: 18px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-400);
}

.hero-meta-text { color: rgba(255,255,255,0.9); font-size: 13px; }
.hero-meta-text strong { display: block; font-size: 14px; color: var(--white); }

/* ---------- Sections (general) ---------- */

section { padding: 96px 0; }

.on-navy { background: var(--navy-800); }
.on-white { background: var(--white); }
.on-offwhite { background: var(--off-white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
}

/* ---------- Market brief (text columns) ---------- */

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 16px;
}

.brief-col p {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.brief-col p strong { color: var(--ink); font-weight: 600; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stat {
  border-left: 2px solid var(--gold-500);
  padding-left: 16px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy-900);
}

.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .brief-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Article cards ---------- */

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

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10,27,46,0.1);
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--navy-700);
}

.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }

.card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 16px;
}

.card-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after { content: '→'; transition: transform 0.2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

.card-placeholder {
  opacity: 0.55;
}

.card-placeholder .card-excerpt::before {
  content: 'Content coming soon — draft pending.';
  font-style: italic;
}

/* ---------- Project cards ---------- */

.project-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,46,0) 30%, rgba(10,27,46,0.92) 100%);
}

.project-status {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 5px 12px;
  border-radius: 100px;
}

.project-body {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
}

.project-name {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--white);
}

.project-price {
  font-size: 13px;
  color: var(--gold-300);
  margin-top: 6px;
  font-weight: 600;
}

.project-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-top: 10px;
}

.project-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-cta:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 100px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn-outline-dark {
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Area nav cards (homepage) ---------- */

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

@media (max-width: 860px) {
  .area-grid { grid-template-columns: 1fr; }
}

.area-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
}

.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,46,0.05) 0%, rgba(10,27,46,0.95) 100%);
  transition: background 0.3s ease;
}

.area-card:hover::before {
  background: linear-gradient(180deg, rgba(10,27,46,0.15) 0%, rgba(10,27,46,0.97) 100%);
}

.area-card-body {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.area-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.area-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
}

.area-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
  max-width: 280px;
}

.area-card-link {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.area-card-link::after { content: '→'; transition: transform 0.2s ease; }
.area-card:hover .area-card-link::after { transform: translateX(4px); }

/* ---------- Divider ---------- */

.divider {
  width: 56px;
  height: 2px;
  background: var(--gold-500);
  margin: 18px 0;
}

/* ---------- Footer ---------- */

footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
}

.footer-brand span { color: var(--gold-400); }

.footer-tagline {
  font-size: 13px;
  margin-top: 10px;
  max-width: 280px;
}

.footer-cols { display: flex; gap: 64px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 36px; flex-wrap: wrap; }
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 18px; width: 54px; height: 54px; }
  .hero-content { padding: 0 24px 56px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
}

/* ---------- Project detail page ---------- */

.project-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,46,0.3) 0%, rgba(10,27,46,0.88) 100%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px 56px;
  max-width: var(--container);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}

.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--gold-400); }

.project-hero-title {
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 52px);
}

.project-hero-price {
  color: var(--gold-300);
  font-size: 18px;
  margin-top: 12px;
  font-weight: 600;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  padding: 28px;
}

.fact-card h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 18px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 14px;
}

.fact-row:last-child { border-bottom: none; }
.fact-row span:first-child { color: var(--ink-muted); }
.fact-row span:last-child { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Enquiry form ---------- */

.enquiry-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-500);
}

.field textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  border: none;
  font-family: var(--font-body);
}

.form-note {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 14px;
}

/* ---------- Profile split section ---------- */

@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .profile-grid img {
    width: 240px !important;
    margin: 0 auto;
  }
  .profile-grid .btn { justify-content: center; }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   MOBILE — comprehensive overrides
   Tested target: 375px (iPhone SE) to 768px
   ============================================ */

@media (max-width: 768px) {

  /* ----- Global ----- */
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }

  /* ----- Nav ----- */
  .nav { padding: 16px 18px; }
  .nav.scrolled { padding: 12px 18px; }
  .nav-brand { font-size: 15px; }

  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(10,27,46,0.98);
    flex-direction: column;
    padding: 24px 24px 32px;
    gap: 22px;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; }
  .nav-toggle { display: block; }

  /* ----- Hero ----- */
  .hero { min-height: 85vh; }
  .hero-content { padding: 0 18px 52px; }
  .hero-title { font-size: 28px; line-height: 1.2; }
  .hero-sub { font-size: 15px; margin-top: 14px; }
  .hero-tags { gap: 8px; margin-bottom: 18px; }
  .tag { font-size: 10px; padding: 5px 10px; }
  .hero-meta { margin-top: 28px; }
  .hero-meta img { width: 40px; height: 40px; }

  /* ----- Profile split section ----- */
  .wrap > div[style*="grid-template-columns: 380px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    align-items: center !important;
    text-align: center;
  }

  /* Photo block */
  .wrap > div[style*="grid-template-columns: 380px"] > div:first-child {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .wrap > div[style*="grid-template-columns: 380px"] img {
    width: 220px !important;
  }

  /* Text block in profile */
  .wrap > div[style*="grid-template-columns: 380px"] > div:last-child {
    width: 100%;
    text-align: center;
  }

  .wrap > div[style*="grid-template-columns: 380px"] .divider {
    margin: 18px auto;
  }

  .wrap > div[style*="grid-template-columns: 380px"] div[style*="display:flex; gap:14px"] {
    justify-content: center;
  }

  /* ----- Section titles ----- */
  .section-title { font-size: 26px; }
  .section-head { margin-bottom: 32px; }

  /* ----- About brief grid ----- */
  .brief-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .stat-row { gap: 24px; }
  .stat-num { font-size: 24px; }

  /* ----- 3-col card grid ----- */
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* ----- Area cards grid ----- */
  .area-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .area-card { height: 300px; }
  .area-card-title { font-size: 22px; }

  /* ----- Project cards grid ----- */
  .project-card { height: 300px; }
  .project-name { font-size: 18px; }

  /* ----- Intro grid (project detail page) ----- */
  .intro-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ----- Form ----- */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .enquiry-form { padding: 0; }

  /* ----- Buttons ----- */
  .btn { padding: 13px 22px; font-size: 12px; }
  .form-submit { padding: 15px; }

  /* ----- Footer ----- */
  .footer-top {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-cols {
    flex-direction: column;
    gap: 24px;
  }
  .footer-brand { font-size: 18px; }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
  }

  /* ----- Project hero ----- */
  .project-hero { min-height: 45vh; }
  .project-hero-content { padding: 0 18px 40px; }
  .project-hero-title { font-size: 28px; }
  .project-hero-price { font-size: 15px; }

  /* ----- Floating WhatsApp ----- */
  .wa-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg { width: 26px; height: 26px; }

  /* ----- CTA sections ----- */
  section[style*="padding: 72px 0"] { padding: 48px 0 !important; }
  section[style*="padding: 72px 0"] h2 { font-size: 22px !important; }

}

/* Extra small — iPhone SE, Galaxy A series */
@media (max-width: 390px) {
  .hero-title { font-size: 24px; }
  .section-title { font-size: 22px; }
  .area-card { height: 260px; }
  .area-card-title { font-size: 20px; }
  .wrap { padding: 0 14px; }
}

/* ============================================
   THE JB RESIDENCE — Phase 1 additions
   ============================================ */

/* ---------- Brand rename ---------- */
.nav-brand { font-size: 16px; }
.nav-brand span { color: var(--gold-400); font-size: 14px; }

/* ---------- Nav dropdown ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle { cursor: pointer; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  z-index: 200;
  border-top: 2px solid var(--gold-500);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}

.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  text-transform: none;
  border-bottom: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(201,147,58,0.12);
  color: var(--gold-400);
}

/* ---------- Hero updates ---------- */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 16px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- Topic band ---------- */
.topic-band {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  overflow: hidden;
}

.topic-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topic-scroll::-webkit-scrollbar { display: none; }

.topic-pill {
  display: inline-block;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.topic-pill:hover {
  color: var(--gold-400);
  background: rgba(201,147,58,0.07);
}

/* ---------- Insight cards (homepage market section) ---------- */
.insight-card {
  background: var(--navy-700);
  display: block;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 2px solid transparent;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-bottom-color: var(--gold-500);
}

.insight-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.insight-body {
  padding: 24px;
}

.insight-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 10px;
}

.insight-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.insight-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

.insight-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-400);
}

/* ---------- Project grid (homepage + hub) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ---------- Guides grid ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .guides-grid { grid-template-columns: 1fr; } }

.guide-cluster {
  background: var(--white);
  border: 1px solid var(--line-dark);
  padding: 28px 24px;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--gold-500);
}

.guide-cluster:hover {
  border-color: var(--gold-500);
  box-shadow: 0 8px 24px rgba(10,27,46,0.08);
}

.guide-cluster-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.guide-cluster-label {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.guide-cluster-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-cluster-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-500);
}

/* ---------- About Sam section ---------- */
.about-sam-section { padding: 96px 0; }

.about-sam-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
}

.about-sam-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: 300px;
}

.photo-accent {
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(201,147,58,0.4);
  border-radius: 2px;
}

.photo-frame img {
  width: 300px;
  display: block;
  position: relative;
  z-index: 1;
}

.about-sam-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--white);
  margin-top: 12px;
  line-height: 1.1;
}

.about-sam-role {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-sam-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 16px;
}

.about-sam-stats {
  display: flex;
  gap: 36px;
  margin: 24px 0 28px;
}

.about-sam-stats .stat {
  border-left: 2px solid var(--gold-500);
  padding-left: 16px;
}

.about-sam-stats .stat-num {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 26px;
}

.about-sam-stats .stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.about-sam-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.about-sam-social {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
}

.social-link:hover { color: var(--gold-400); }

.footer-social {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social .social-link { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-social .social-link:hover { color: var(--gold-400); }

@media (max-width: 860px) {
  .about-sam-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .about-sam-photo { justify-content: center; }
  .about-sam-desc { max-width: 100%; }
  .about-sam-stats { justify-content: center; }
  .about-sam-ctas { justify-content: center; }
  .about-sam-social { justify-content: center; }
  .divider { margin: 18px auto; }
}

/* ---------- CTA section ---------- */
.cta-section { padding: 96px 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy-900);
  padding: 140px 0 60px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  margin-top: 12px;
}

.page-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  max-width: 600px;
  font-weight: 300;
  line-height: 1.65;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.breadcrumb-nav a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.breadcrumb-nav a:hover { color: var(--gold-400); }
.breadcrumb-nav span { color: rgba(255,255,255,0.35); }

/* ---------- Topic filter bar ---------- */
.topic-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topic-filter-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topic-filter-scroll::-webkit-scrollbar { display: none; }

.topic-filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topic-filter-btn:hover { color: var(--navy-900); }

.topic-filter-btn.active {
  color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

/* ---------- Footer brand block ---------- */
.footer-brand-block { max-width: 280px; }

/* ---------- Mobile Phase 1 ---------- */
@media (max-width: 768px) {
  .hero-eyebrow { font-size: 10px; }
  .hero-ctas { margin-top: 22px; }
  .topic-pill { padding: 12px 14px; font-size: 10px; }
  .insight-img { height: 140px; }
  .guides-grid { grid-template-columns: 1fr; }
  .about-sam-grid { grid-template-columns: 1fr; text-align: center; }
  .photo-frame { width: 220px; }
  .photo-frame img { width: 220px; }
  .about-sam-name { font-size: 36px; }
  .project-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 110px 0 44px; }
  .topic-filter-btn { padding: 13px 14px; }

  /* Nav dropdown on mobile — show below toggle */
  .nav-dropdown .nav-dropdown-menu {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: auto;
    border-top: none;
    background: transparent;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown-menu.mobile-open { display: block; }
  .nav-dropdown-menu a { padding: 8px 0; font-size: 14px; color: rgba(255,255,255,0.7); }
  .nav-dropdown-toggle::after { content: ''; }
}
