:root {
  --ink: #17201d;
  --muted: #66726d;
  --line: #e1e5df;
  --paper: #f6f2ea;
  --panel: #fffdf8;
  --green: #1f5a45;
  --green-dark: #11382c;
  --gold: #c59745;
  --gold-soft: #f1dfba;
  --blue: #2b6677;
  --rose: #a4444d;
  --shadow: 0 28px 80px rgba(20, 31, 27, 0.18);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

input,
select,
textarea,
button {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(246, 242, 234, 0) 0, var(--paper) 760px),
    radial-gradient(circle at 8% 54%, rgba(197, 151, 69, 0.12), transparent 24rem),
    radial-gradient(circle at 94% 76%, rgba(43, 102, 119, 0.12), transparent 26rem),
    var(--paper);
}

.hero {
  position: relative;
  display: grid;
  min-height: 930px;
  overflow: hidden;
  background: #eee9e1;
  color: #172124;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 252, 247, 0.68) 0%, rgba(255, 252, 247, 0.28) 35%, rgba(255, 252, 247, 0) 62%),
    url("assets/hero-toronto-luxury.png");
  background-position: center;
  background-size: cover;
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1450px, calc(100% - 72px));
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
}

.brand-mark {
  display: block;
  text-decoration: none;
  color: #11191b;
}

.brand-mark strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
}

.brand-mark small {
  display: block;
  margin-top: 6px;
  color: #263033;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.48em;
}

.brand-cn-name,
.brand-slogan {
  display: block;
  letter-spacing: 0;
}

.brand-cn-name {
  margin-top: 13px;
  color: #9b6b25;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 1.02rem;
  font-weight: 750;
}

.brand-slogan {
  margin-top: 5px;
  color: rgba(155, 107, 37, 0.78);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 0.78rem;
  font-weight: 750;
}

.brand-award {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
  color: #8b5b18;
  line-height: 1;
}

.brand-award::before {
  display: none;
}

.brand-award b::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 7px;
  background: #b88435;
}

.brand-award b {
  display: block;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.brand-award em {
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

.brand-award i {
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.hero-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 5vw, 82px);
  padding-top: 7px;
}

.hero-nav a {
  color: #11191b;
  text-decoration: none;
  font-size: 1.16rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  transition: color 160ms ease, transform 160ms ease;
}

.hero-nav a:hover {
  color: #a57429;
  transform: translateY(-1px);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1450px, calc(100% - 72px));
  margin: 0 auto;
  padding: 62px 0 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.admin-header h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(4.4rem, 6.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-family: Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  margin-top: 0.08em;
}

.hero__copy {
  width: min(470px, 100%);
  margin: 28px 0 0;
  color: #384347;
  font-size: 1.2rem;
  font-weight: 450;
  line-height: 1.55;
}

.agent-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 14px;
  color: #172124;
}

.agent-card__photo {
  display: block;
  width: 100%;
  height: 430px;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(51, 45, 37, 0.12));
}

.agent-card__body {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(64, 57, 48, 0.14);
  backdrop-filter: blur(14px);
}

.agent-name {
  margin: 0;
  font-family: Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 400;
}

.agent-card__body span {
  display: block;
  margin-top: 8px;
  color: #a67730;
  font-size: 0.95rem;
  font-weight: 700;
}

.agent-details {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.agent-details a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #8e601d;
  text-decoration: none;
}

.agent-details strong {
  font-size: 1.02rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.agent-details .contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1px solid rgba(155, 107, 37, 0.4);
  border-radius: 50%;
  color: #9b6b25;
  font-size: 0.8rem;
}

.wechat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.wechat-contact img {
  width: 76px;
  height: 76px;
  border: 5px solid #fff;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(41, 37, 31, 0.12);
}

.wechat-contact p {
  margin: 0;
  color: #50585a;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  align-items: center;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.primary-cta {
  gap: 22px;
  background: #c69749;
  color: #fff;
  box-shadow: 0 14px 34px rgba(136, 95, 32, 0.2);
}

.hero-phone {
  color: #8e601d;
  text-decoration: none;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-phone:hover {
  color: #55380f;
}

.secondary-cta {
  border: 1px solid #c69749;
  color: #a5752d;
  background: rgba(255, 255, 255, 0.44);
}

.hero__facts {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(1430px, calc(100% - 72px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(252, 250, 246, 0.88);
  box-shadow: 0 18px 60px rgba(70, 58, 44, 0.15);
  backdrop-filter: blur(18px);
}

.hero__facts article {
  min-height: 138px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px 38px;
}

.hero__facts article + article {
  border-left: 1px solid rgba(128, 113, 91, 0.22);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #c69749;
  border-radius: 50%;
  color: #b47d29;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.hero__facts strong {
  display: block;
  color: #172124;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.hero__facts p {
  margin: 8px 0 0;
  color: #515a5c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lead-section {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 86px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 28px;
  padding: 24px 4px;
}

.section-intro h2 {
  margin: 0;
  font-family: Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-intro > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
  max-width: 430px;
  font-size: 1.03rem;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.contact-strip span {
  border: 1px solid rgba(31, 90, 69, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--green-dark);
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.lead-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 253, 248, 0.98)),
    var(--panel);
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h3 {
  margin: 0;
  font-family: Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label,
fieldset {
  display: block;
  margin: 0 0 18px;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: #24342e;
  font-size: 0.92rem;
  font-weight: 780;
}

small {
  color: var(--muted);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 102, 119, 0.14);
}

fieldset {
  border: 0;
  padding: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-row label {
  margin: 0;
}

.choice-row input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-row span {
  display: grid;
  place-items: center;
  min-height: 50px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.choice-row input:checked + span {
  border-color: var(--green);
  background: #e8f2ee;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(31, 90, 69, 0.22);
}

.submit-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  cursor: pointer;
  font-weight: 880;
  box-shadow: 0 16px 36px rgba(31, 90, 69, 0.22);
  transition: transform 160ms ease, filter 160ms ease;
}

.submit-button:hover {
  filter: brightness(1.04);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-consent {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status--success {
  color: var(--green);
  font-weight: 780;
}

.form-status--error {
  color: var(--rose);
  font-weight: 780;
}

.deployment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f5f1e9;
}

.deployment-panel {
  width: min(560px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(31, 42, 37, 0.1);
}

.deployment-panel h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.deployment-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.deployment-panel .primary-cta {
  width: fit-content;
}

.admin-page {
  background: #f4f6f2;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: clamp(2.25rem, 7vw, 4.4rem);
}

.admin-header p:not(.eyebrow) {
  color: var(--muted);
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  font-weight: 760;
}

.admin-status {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead-cards {
  display: grid;
  gap: 16px;
}

.lead-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-card__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.lead-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.lead-card p {
  margin: 0;
  color: var(--muted);
}

.lead-card__top span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf2ee;
  color: var(--green-dark);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.lead-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.lead-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.lead-message {
  margin-top: 18px !important;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  line-height: 1.6;
}

.lead-listing {
  margin: 18px 0 0 !important;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .hero {
    min-height: 1080px;
  }

  .hero__image {
    background-image:
      linear-gradient(180deg, rgba(255, 252, 247, 0.78) 0%, rgba(255, 252, 247, 0.34) 48%, rgba(255, 252, 247, 0.18) 100%),
      url("assets/hero-toronto-luxury.png");
    background-position: 60% center;
  }

  .topbar {
    width: min(100% - 28px, 680px);
    padding: 18px 0;
    grid-template-columns: 1fr auto;
  }

  .brand-mark strong {
    font-size: 1.15rem;
    letter-spacing: 0.28em;
  }

  .brand-mark small {
    font-size: 0.68rem;
    letter-spacing: 0.38em;
  }

  .brand-cn-name {
    margin-top: 9px;
    font-size: 0.82rem;
  }

  .brand-slogan {
    font-size: 0.66rem;
  }

  .brand-award {
    gap: 5px;
    margin-top: 9px;
  }

  .brand-award b::after {
    width: 24px;
    height: 2px;
    margin-top: 5px;
  }

  .brand-award b,
  .brand-award i {
    font-size: 0.62rem;
  }

  .hero-nav {
    grid-column: 2;
    gap: 16px;
    padding-top: 4px;
  }

  .hero-nav a {
    font-size: 0.8rem;
  }

  .hero__content {
    width: min(100% - 28px, 680px);
    margin: 0 auto;
    padding: 34px 0 330px;
    gap: 28px;
    align-content: start;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 4.7rem);
  }

  .agent-card {
    display: block;
    width: min(100%, 430px);
    min-height: 0;
    margin-top: 28px;
    align-self: auto;
  }

  .agent-card__photo {
    width: 100%;
    height: 360px;
    object-position: center bottom;
  }

  .agent-card__body {
    padding: 16px;
  }

  .agent-name {
    font-size: 1.45rem;
  }

  .agent-details {
    gap: 6px;
    margin-top: 11px;
  }

  .agent-details strong {
    font-size: 0.82rem;
  }

  .agent-details .contact-icon {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  .wechat-contact {
    gap: 8px;
    margin-top: 10px;
  }

  .wechat-contact img {
    width: 56px;
    height: 56px;
    border-width: 3px;
  }

  .wechat-contact p {
    font-size: 0.7rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 380px);
  }

  .hero-phone {
    font-size: 1.45rem;
    text-align: center;
  }

  .hero__facts {
    width: min(100% - 28px, 680px);
    grid-template-columns: 1fr;
    bottom: 18px;
    border-radius: 12px;
  }

  .hero__facts article {
    min-height: 88px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 20px;
  }

  .hero__facts article + article {
    border-left: 0;
    border-top: 1px solid rgba(128, 113, 91, 0.22);
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .hero__facts p {
    margin-top: 4px;
  }

  .lead-section {
    width: min(100% - 24px, 680px);
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }

  .section-intro {
    position: static;
    padding: 0;
  }

  .section-intro > p:not(.eyebrow) {
    max-width: none;
  }

  .field-grid,
  .choice-row,
  .lead-card dl {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .lead-card__top {
    display: grid;
  }

  .admin-link {
    width: fit-content;
  }
}

@media (max-width: 440px) {
  .topbar {
    align-items: start;
  }

  .hero-nav {
    display: none;
  }

  .hero {
    min-height: 1020px;
  }

  .hero__content {
    padding-top: 34px;
    padding-bottom: 320px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .agent-card {
    min-height: 0;
  }

  .agent-card__photo {
    width: 100%;
    height: 340px;
  }
}
