/* ============================================
   ARON ZHAO — Real Estate
   "Neighbour in Real Estate" Design System
   Warm · Active · Community Energy
   ============================================ */

:root {
  /* Primary — teal (brand) */
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --primary-subtle: rgba(13, 148, 136, 0.08);

  /* Accent — amber (warm energy) */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;

  /* Darks — warm, not cold navy */
  --dark: #1c1917;
  --dark-light: #292524;

  /* Backgrounds — warm off-whites */
  --warm-bg: #faf8f5;
  --warm-bg-alt: #f3efe8;
  --white: #fffffe;

  /* Text — warm grays */
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-light: #a8a29e;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-zh: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;

  /* Radius — friendly rounded shapes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Global Bilingual Toggle ---- */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

html[data-lang="zh"] body {
  font-family: var(--font-zh);
}

html[data-lang="zh"] .hero-title span span,
html[data-lang="zh"] .section-title,
html[data-lang="zh"] .about-lead,
html[data-lang="zh"] .testimonial-card blockquote {
  font-family: var(--font-zh);
}

html[data-lang="zh"] .nav-links {
  gap: 36px;
}

html[data-lang="zh"] .nav-links a {
  font-size: 15px;
  letter-spacing: 2px;
}

html[data-lang="zh"] .dropdown-menu a {
  font-size: 14px;
  letter-spacing: 1.5px;
}

html[data-lang="zh"] .hero-title span span {
  letter-spacing: 1px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
  animation: loaderFallbackHide 0.6s ease forwards 3.5s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes loaderFallbackHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
}

.loader-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.5); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* ---- Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 254, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Logo: Bold modern sans ---- */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.3s ease;
}

.nav-logo::before,
.nav-logo::after {
  display: none;
}

.nav-logo:hover {
  opacity: 0.85;
}

.logo-first {
  font-family: var(--font-accent);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.logo-first::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -2px;
  right: -2px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.3;
  z-index: -1;
}

.nav-logo:hover .logo-first {
  color: var(--accent);
}

.logo-last {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-top: 0;
  transition: color 0.3s ease;
}

.nav-logo:hover .logo-last {
  color: var(--white);
}

.logo-slash {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(8px);
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.dropdown-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2px;
  border-radius: var(--radius-full);
  background: var(--white);
  overflow: hidden;
}

.lang-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: transform 0.35s var(--ease-in-out);
  z-index: 0;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

html[data-lang="zh"] .lang-toggle::before {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.35s ease;
  white-space: nowrap;
  border-radius: var(--radius-full);
}

.lang-btn.active {
  color: var(--white);
  background: transparent;
}

.lang-btn:hover:not(.active) {
  color: var(--text-secondary);
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- Hero: Warm Community ---- */
/* ---- Hero: Warm Professional ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, #f0f5f4 0%, #e8efe8 35%, #f5f0e8 65%, #f0ece4 100%);
  padding: clamp(100px, 12vh, 140px) clamp(16px, 4vw, 48px) clamp(24px, 3vh, 40px);
}

/* ---- Outer decorative shapes ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  filter: blur(60px);
  animation: blobFloat var(--dur, 20s) ease-in-out infinite, blobIn 1.2s ease-out var(--delay, 0s) forwards;
}

.hero-blob-1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  bottom: -15%;
  left: -10%;
  background: rgba(13, 148, 136, 0.15);
  --dur: 24s;
  --delay: 0.2s;
}

.hero-blob-2 {
  width: clamp(250px, 30vw, 480px);
  height: clamp(250px, 30vw, 480px);
  top: -10%;
  right: -8%;
  background: rgba(245, 158, 11, 0.12);
  --dur: 22s;
  --delay: 0.4s;
}

.hero-blob-3 {
  width: clamp(200px, 24vw, 380px);
  height: clamp(200px, 24vw, 380px);
  top: 40%;
  left: 45%;
  background: rgba(13, 148, 136, 0.08);
  --dur: 28s;
  --delay: 0.6s;
}

@keyframes blobIn { to { opacity: 1; } }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -15px) scale(1.04); }
  66%      { transform: translate(-15px, 10px) scale(0.96); }
}

/* ---- Hero Card Container ---- */
.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  background: var(--white);
  border-radius: clamp(24px, 3vw, 40px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.hero-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px);
}

/* ---- Hero Content ---- */
.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(96, 165, 250, 0.08));
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 28px;
}

.hero-tag svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title {
  line-height: 1.06;
  margin-bottom: 24px;
}

.hero-title .en,
.hero-title .zh {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2.5px;
}

.hero-accent {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  display: inline-block;
  font-size: 1.3em;
  letter-spacing: 0.5px;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.3;
  z-index: -1;
}

.hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Soft button variant */
.btn-soft {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-soft:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13, 148, 136, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
}

/* Trust badges */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ---- Hero Portrait (with decorative shapes) ---- */
.hero-portrait {
  position: relative;
  flex-shrink: 0;
  width: clamp(300px, 28vw, 420px);
}

/* Green background frame — top edge below the head */
.hero-portrait-frame {
  position: relative;
  background: linear-gradient(160deg, #d1ede8 0%, #c2e0c6 100%);
  border-radius: clamp(20px, 2.5vw, 36px);
  padding-top: clamp(60px, 7vw, 100px);
  overflow: hidden;
}

/* Offset accent behind the green frame */
.hero-portrait-accent {
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border-radius: clamp(20px, 2.5vw, 36px);
  background: rgba(13, 148, 136, 0.06);
  border: 1.5px solid rgba(13, 148, 136, 0.08);
  z-index: 0;
}

/* Person image — head exceeds above the frame, bottom stays inside */
.hero-portrait-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: clamp(-100px, -11vw, -60px);
  animation: portraitReveal 0.8s var(--ease-out) 0.5s both;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

@keyframes portraitReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: blobIn 0.5s ease-out forwards !important; }
}

/* Hero tablet */
@media (max-width: 1024px) {
  .hero-card-inner {
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(32px, 4vw, 56px);
  }

  .hero-portrait {
    width: 260px;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.35s var(--ease-out);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2), 0 1px 3px rgba(13, 148, 136, 0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.3), 0 4px 12px rgba(13, 148, 136, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(28, 25, 23, 0.15);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13, 148, 136, 0.04);
  transform: translateY(-2px);
}

.cta-inner .btn-outline {
  color: rgba(255, 255, 254, 0.8);
  border-color: rgba(255, 255, 254, 0.2);
}

.cta-inner .btn-outline:hover {
  color: var(--white);
  border-color: rgba(255, 255, 254, 0.5);
  background: rgba(255, 255, 254, 0.06);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---- Section Styles ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.section-title em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  transform: rotate(-1deg);
  font-size: 1.4em;
}

.section-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -4px;
  right: -4px;
  height: 10px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.3;
  transform: rotate(0.5deg);
}

.section-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ---- Stacking Sections & Parallax ---- */
.stack-sections {
  position: relative;
  margin-top: -1px;
  background: linear-gradient(170deg, #f0ece4 0%, #e8efe8 30%, #f0f5f4 60%, #f0ece4 100%);
}

.stack-card {
  position: sticky;
  top: 80px;
  z-index: 1;
  will-change: transform;
}

.stack-card:nth-child(1) { z-index: 5; }
.stack-card:nth-child(2) { z-index: 6; top: 84px; }
.stack-card:nth-child(3) { z-index: 7; top: 88px; }
.stack-card:nth-child(4) { z-index: 8; top: 92px; }
.stack-card:nth-child(5) { z-index: 9; top: 96px; }

/* Giant background text — decorative, behind card content */
.section-bg-text {
  position: absolute;
  top: clamp(16px, 3vw, 36px);
  left: clamp(16px, 4vw, 48px);
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -5px;
  color: rgba(13, 148, 136, 0.07);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}

@media (max-width: 768px) {
  .stack-card {
    position: relative;
    top: auto !important;
  }

  .section-bg-text {
    font-size: clamp(48px, 14vw, 80px);
    top: 12px;
    left: 12px;
  }
}

/* ---- Services ---- */
.services {
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
  position: relative;
}

.services > .container {
  background: var(--white);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.03);
  max-width: 1280px;
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 10px;
  align-items: stretch;
}

.service-card {
  position: relative;
  padding: 40px 32px 36px;
  background: var(--warm-bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

/* First card spans full width — featured */
.service-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 0 28px;
  padding: 44px 40px 40px;
  background: linear-gradient(145deg, var(--warm-bg) 0%, rgba(13, 148, 136, 0.04) 100%);
}

.service-card:first-child .service-card-number {
  grid-column: 1 / -1;
  font-size: 64px;
}

.service-card:first-child .service-card-icon {
  grid-row: 2 / 4;
  width: 56px;
  height: 56px;
  align-self: start;
}

.service-card:first-child h3 {
  font-size: 26px;
}

.service-card:first-child p {
  max-width: 560px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::after {
  display: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.1), 0 6px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(13, 148, 136, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.5s ease;
}

.service-card:hover .service-card-number {
  color: rgba(13, 148, 136, 0.08);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--primary);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  transition: color 0.4s ease;
}

.service-card:hover h3 {
  color: var(--primary-dark);
}

.service-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---- Listings — open layout ---- */
.listings {
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
  position: relative;
}

.listings > .container {
  max-width: 1280px;
  position: relative;
  z-index: 2;
}

.listings-iframe {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.listings-iframe iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: clamp(12px, 1.5vw, 20px);
}

/* ---- About ---- */
.about {
  overflow: hidden;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 70% center;
  border-radius: var(--radius-xl);
}

.about-image-accent {
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  background: linear-gradient(160deg, var(--primary-subtle), rgba(245, 158, 11, 0.04));
  border: 1.5px solid rgba(13, 148, 136, 0.1);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 22px !important;
  font-weight: 700;
  font-style: normal;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.85;
}

html[data-lang="zh"] .about-lead {
  font-family: var(--font-zh);
  font-style: normal;
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}

html[data-lang="zh"] .about-content p {
  line-height: 2;
}

.about-closing {
  color: var(--text-primary) !important;
  font-weight: 400 !important;
  border-top: 1px solid var(--warm-bg-alt);
  padding-top: 20px;
  margin-top: 8px;
}

.about-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
}

.service-tag {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--warm-bg-alt);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--warm-bg);
  transition: all 0.3s ease;
}

.service-tag:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-subtle);
}

/* ---- Listings Page ---- */
.listings-page {
  padding: 60px 0 100px;
  background: var(--white);
}

.listings-page-iframe {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.listings-page-iframe iframe {
  display: block;
  width: 100%;
  min-height: 2000px;
  border: none;
  border-radius: var(--radius-md);
}

.listings-page-map .listings-page-iframe iframe {
  min-height: 900px;
}

/* Featured uses the card-only widget (type=1), which is much shorter than
   the full 2000px page. One row of cards renders ~837px (incl. the widget's
   own ~360px trailing space); each extra row adds ~500px. 1350px fits two
   rows / up to 6 listings without re-tuning. */
.listings-page-iframe--widget iframe {
  min-height: 1350px;
}

@media (max-width: 767px) {
  .listings-page-iframe--widget iframe {
    min-height: 1800px;
  }
}

/* ---- About Unified ---- */
.about-unified {
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
  position: relative;
}

.about-unified > .container {
  background: var(--white);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(40px, 5vw, 72px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.03);
  max-width: 1280px;
  position: relative;
  z-index: 2;
}

.about-unified-top {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 1024px) {
  .about-unified-top {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .about-unified {
    padding: clamp(40px, 6vw, 60px) clamp(12px, 3vw, 24px);
  }

  .about-unified > .container {
    padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  }

  .about-unified-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  background: var(--dark);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 40%, #1a3a36 80%, #0d4a42 100%);
}

.page-hero .section-tag {
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary-light);
}

.page-hero-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-top: 12px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
  margin-top: 8px;
  letter-spacing: -0.5px;
}

.page-hero-title em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  display: inline-block;
  transform: rotate(-1.5deg);
  font-size: 1.5em;
}

.page-hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.45;
  transform: rotate(0.5deg);
}

.page-hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  max-width: 520px;
  line-height: 1.75;
}

.page-hero-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin-top: 32px;
}

/* Solid header for inner pages */
.header--solid {
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header--solid .logo-last {
  color: var(--white);
}

.header--solid .nav-links a {
  color: rgba(255, 255, 255, 0.75);
}

.header--solid .nav-links a:hover {
  color: var(--white);
}

.header--solid .nav-links a::after {
  background: var(--accent);
}

.header--solid .dropdown-menu {
  background: rgba(28, 25, 23, 0.96);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.header--solid .dropdown-menu a {
  color: rgba(255, 255, 255, 0.65);
}

.header--solid .dropdown-menu a:hover {
  color: var(--accent-light);
  background: rgba(245, 158, 11, 0.06);
}

.header--solid .lang-toggle {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.header--solid .lang-btn {
  color: rgba(255, 255, 255, 0.45);
}

.header--solid .lang-btn.active {
  color: var(--white);
}

.header--solid .nav-toggle span {
  background: var(--white);
}

.nav-active {
  color: var(--primary) !important;
}

.header--solid .nav-active {
  color: var(--accent) !important;
}

/* Scrolled state overrides solid colors back to dark */
.header--solid.scrolled {
  background: rgba(255, 255, 254, 0.9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header--solid.scrolled .logo-last {
  color: var(--text-primary);
}

.header--solid.scrolled .nav-links a {
  color: var(--text-secondary);
}

.header--solid.scrolled .nav-links a:hover {
  color: var(--text-primary);
}

.header--solid.scrolled .nav-links a::after {
  background: var(--primary);
}

.header--solid.scrolled .dropdown-menu {
  background: rgba(255, 255, 254, 0.98);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.header--solid.scrolled .dropdown-menu a {
  color: var(--text-secondary);
}

.header--solid.scrolled .dropdown-menu a:hover {
  color: var(--primary-dark);
  background: var(--primary-subtle);
}

.header--solid.scrolled .lang-toggle {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}

.header--solid.scrolled .lang-btn {
  color: var(--text-light);
}

.header--solid.scrolled .lang-btn.active {
  color: var(--text-primary);
}

.header--solid.scrolled .nav-toggle span {
  background: var(--text-primary);
}

.header--solid.scrolled .nav-active {
  color: var(--primary) !important;
}

/* ---- About Page ---- */
.about-page {
  padding: 100px 0 80px;
  background: var(--white);
}

.about-page-grid {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 80px;
  align-items: start;
}

.about-page-image {
  position: relative;
  position: sticky;
  top: 120px;
}

.about-page-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

.about-page-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-page-text .section-tag {
  display: inline-block;
  text-align: left;
  margin-bottom: 12px;
}

.about-page-text .section-title {
  text-align: left;
  margin-bottom: 28px;
}

html[data-lang="zh"] .about-page-text p {
  line-height: 2;
}

.about-page-text .about-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 24px;
}

html[data-lang="zh"] .about-page-text .about-lead {
  font-family: var(--font-zh);
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

/* ---- About Skills ---- */
.about-skills {
  padding: 80px 0 100px;
  background: var(--dark);
}

.about-skills-header {
  margin-bottom: 48px;
  text-align: center;
}

.about-skills-header .section-tag {
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary-light);
}

.about-skills-header .section-title {
  color: var(--white);
  text-align: center;
}

.about-skills-header .section-title em {
  color: var(--accent);
}

.about-skills-header .section-title em::after {
  background: var(--accent);
  opacity: 0.5;
}

.about-skills-intro {
  margin-bottom: 48px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.about-skills-intro p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1.8;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.skill-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  padding: 36px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  overflow: hidden;
}

.skill-card::before,
.skill-card::after {
  display: none;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.skill-card-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  margin-bottom: 12px;
}

.skill-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.skill-card-label svg {
  color: var(--primary-light);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.skill-card p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.skill-card-image {
  margin-top: auto;
  padding-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.skill-card-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s var(--ease-out);
}

.skill-card:hover .skill-card-image img {
  transform: scale(1.03);
}

/* Side-by-side images in a skill card */
.skill-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.skill-card-images .skill-card-image {
  margin-top: 0;
}

.skill-card-images .skill-card-image img {
  height: 180px;
}

/* ---- About Philosophy ---- */
.about-philosophy {
  padding: 100px 0 120px;
  background: var(--warm-bg);
}

.about-philosophy-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-philosophy-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin: 0 auto 40px;
}

.about-philosophy blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

html[data-lang="zh"] .about-philosophy blockquote {
  font-family: var(--font-zh);
  font-style: normal;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 2;
}

.about-philosophy-cta {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-philosophy-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-philosophy .btn-outline {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.12);
}

.about-philosophy .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(245, 158, 11, 0.06);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 60px;
  }

  .about-page {
    padding: 60px 0;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-page-image {
    position: static;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card-images .skill-card-image img {
    height: 140px;
  }

  .about-philosophy {
    padding: 60px 0 80px;
  }

  .about-philosophy-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Testimonials ---- */
.testimonials {
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
  position: relative;
}

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

.testimonial-card {
  background: var(--white);
  padding: 40px 36px;
  text-align: left;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin-bottom: 24px;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 auto 28px;
  flex: 1;
  letter-spacing: -0.2px;
}

.testimonial-author {
  margin-top: auto;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-light);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.test-nav-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.test-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.test-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ---- CTA Banner ---- */
.cta-banner {
  position: relative;
  padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
}

.cta-banner-bg {
  display: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--dark);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(64px, 8vw, 120px) clamp(32px, 5vw, 72px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.14),
    0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.cta-inner p {
  position: relative;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 254, 0.6);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Contact ---- */
.contact {
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
  background: linear-gradient(170deg, #f0ece4 0%, #e8efe8 50%, #f0f5f4 100%);
}

.contact > .container {
  background: var(--white);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(40px, 5vw, 72px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.03);
  max-width: 1280px;
}

.contact-page {
  padding: 80px clamp(16px, 4vw, 48px) 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-item a, .contact-item span {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--warm-bg);
  padding: 40px;
  border-radius: var(--radius-xl);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357534e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .nav-logo {
  width: fit-content;
}

.footer .logo-last {
  color: var(--white);
}

.footer-brand p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  line-height: 1.7;
}

.footer-realty-logo {
  display: inline-block;
  margin-top: 16px;
  position: relative;
}

.footer-realty-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.footer-realty-img--white {
  opacity: 1;
}

.footer-realty-img--red {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.footer-realty-logo:hover .footer-realty-img--white {
  opacity: 0;
}

.footer-realty-logo:hover .footer-realty-img--red {
  opacity: 1;
}

.footer-realty-text {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

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

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credits a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}

.footer-credits a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Animations ---- */
.anim-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.5s; }
.anim-delay-2 { animation-delay: 0.65s; }
.anim-delay-3 { animation-delay: 0.8s; }
.anim-delay-4 { animation-delay: 1s; }
.anim-delay-5 { animation-delay: 1.2s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.anim-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mobile menu overlay ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    height: 100dvh;
    background: #141414;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 28px 40px;
    gap: 0;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  /* Mobile close button */
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s, background 0.2s;
    z-index: 10;
  }

  .nav-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
  }

  /* Mobile nav items */
  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links > li > a {
    display: block;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: left;
    transition: color 0.25s ease;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a:hover {
    color: var(--primary-light, #14b8a6) !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile dropdown - collapsed by default */
  .nav-dropdown > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .nav-dropdown .dropdown-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.4;
  }

  .nav-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
    opacity: 0.8;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    margin-top: 0;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu li {
    padding-left: 0;
    border-left: none;
    margin-left: 16px;
  }

  .dropdown-menu a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45) !important;
    text-align: left;
    transition: color 0.25s ease;
  }

  .dropdown-menu a:hover {
    background: transparent;
    color: var(--primary-light, #14b8a6) !important;
  }

  /* Override solid header scrolled styles on mobile menu */
  .header--solid.scrolled .nav-links > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .header--solid.scrolled .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .header--solid.scrolled .dropdown-menu a {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  .header--solid.scrolled .dropdown-menu a:hover {
    color: var(--primary-light, #14b8a6) !important;
    background: transparent;
  }

  .hero {
    padding: 100px 12px 40px;
  }

  .hero-card-inner {
    flex-direction: column;
    padding: 36px 24px 24px;
    gap: 28px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-portrait {
    order: 2;
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-portrait-frame {
    border-radius: 20px;
    padding-top: 0;
    overflow: hidden;
  }

  .hero-portrait-accent {
    display: none;
  }

  .hero-portrait-img {
    margin-top: 0;
  }

  .hero-blob-1 { width: 200px; height: 200px; }
  .hero-blob-2 { width: 160px; height: 160px; }
  .hero-blob-3 { width: 120px; height: 120px; }

  .listings-iframe {
    padding: clamp(16px, 3vw, 28px);
    border-radius: 24px;
  }

  .listings-iframe iframe {
    min-height: 300px;
  }

  .about-image-accent {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
  }

  .services > .container,
  .about-unified > .container,
  .contact > .container {
    padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
    border-radius: 24px;
  }

  .cta-inner {
    padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 40px);
    border-radius: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card:first-child {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .service-card:first-child .service-card-number {
    font-size: 52px;
  }

  .service-card:first-child .service-card-icon {
    width: 48px;
    height: 48px;
  }

  .service-card:first-child h3 {
    font-size: 22px;
  }

  .service-card:first-child p {
    max-width: 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 8px 32px;
  }

  .hero-card-inner {
    padding: 28px 16px 20px;
  }

  .hero-portrait {
    max-width: 260px;
  }

  .hero-title .en,
  .hero-title .zh {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .testimonial-card blockquote {
    font-size: 16px;
  }
}
