:root {
  /* Palette, pulled from the logo */
  --paper: #F5F8FC;      /* cool white page background */
  --tint: #EAF0F8;       /* alternate section band */
  --line: #CBD7E8;       /* hairlines */
  --ink: #0E1B2E;        /* text, dark panels */
  --ink-soft: #4A5A72;   /* secondary text */
  --blue: #1257D6;       /* logo blue */
  --orange: #F26A1B;     /* logo orange, buttons */
  --cyan: #0FA3C4;       /* logo cyan, small details */

  --font-display: "Archivo", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Archivo", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans SC", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html:lang(zh) { --font-body: "Noto Sans SC", "Archivo", system-ui, sans-serif; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow-light { color: #8FC3FF; }

h1, h2 {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  white-space: pre-line;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3 {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
html:lang(zh) h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
html:lang(zh) h3 { font-weight: 700; }
html:lang(zh) .eyebrow { letter-spacing: 0.12em; }

.section-sub { color: var(--ink-soft); margin-top: 16px; font-size: 1.05rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #DC5A0E; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Both language labels share one grid cell; only the active one is visible.
   Each label carries its own font so the reserved width is right in either language. */
.i18n-stack { display: inline-grid; justify-items: start; }
.btn .i18n-stack, .lang-toggle .i18n-stack { justify-items: center; }
.i18n-stack > span { grid-area: 1 / 1; }
.i18n-stack > [aria-hidden="true"] { visibility: hidden; }
.btn .i18n-stack > :lang(en) { font-family: "Archivo", sans-serif; letter-spacing: 0; }
.btn .i18n-stack > :lang(zh) { font-family: "Noto Sans SC", sans-serif; letter-spacing: 0.04em; }
.nav .i18n-stack > :lang(en) { font-family: "Archivo", sans-serif; }
.nav .i18n-stack > :lang(zh) { font-family: "Noto Sans SC", sans-serif; }

/* Hero headline and intro: block-level stacks with per-language type */
.hero h1 > .i18n-stack,
.hero .lede > .i18n-stack { display: grid; }
.hero h1 :lang(en) {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.hero h1 :lang(zh) {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.hero .lede :lang(en) { font-family: "Archivo", sans-serif; }
.hero .lede :lang(zh) { font-family: "Noto Sans SC", sans-serif; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand img { height: 46px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-right: 4px;
}
.header-phone:hover { color: var(--blue); }

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  min-width: 52px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 27, 46, 0.86) 0%, rgba(14, 27, 46, 0.6) 50%, rgba(14, 27, 46, 0.2) 100%),
    linear-gradient(0deg, rgba(14, 27, 46, 0.55) 0%, transparent 45%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 48px;
  align-items: end;
  padding-block: 120px 64px;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  margin-top: 22px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Title block, as on a construction drawing set */
.title-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.tb-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  min-width: 0;
  border-top: 1px solid var(--ink);
}
.tb-cell:nth-child(odd):not(.tb-wide) { border-left: 1px solid var(--ink); }
.tb-wide { grid-column: 1 / -1; border-top: 0; }
.tb-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tb-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
a.tb-value:hover { color: var(--blue); text-decoration: underline; }
.tb-wide .tb-value {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-tint { background: var(--tint); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center { margin-inline: auto; text-align: center; }

/* Services: photo cards, new homes featured */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
}
.service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}
.service-feature { grid-row: span 2; }
.service img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 27, 46, 0.9) 0%, rgba(14, 27, 46, 0.35) 50%, rgba(14, 27, 46, 0) 75%);
}
.service:hover img { transform: scale(1.04); }
.service-body { padding: 24px; }
.service h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 6px; }
.service-feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.service p { color: rgba(255, 255, 255, 0.85); font-size: 15.5px; max-width: 30em; }

/* Process: an actual sequence, so numbered */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.step {
  grid-column: span 2;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step:nth-child(4) { grid-column: 2 / span 2; }
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
}
.step:last-child .step-n { background: var(--orange); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* Why us: dark panel + stacked photos */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.why-panel {
  background: var(--ink);
  color: #fff;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
}
.why-list { display: grid; gap: 22px; margin: 28px 0 34px; }
.why-list li { padding-left: 18px; border-left: 3px solid var(--cyan); }
.why-list li:first-child { border-left-color: var(--orange); }
.why-list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.why-list p { color: #B9C6D9; font-size: 15.5px; }
.why-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #fff;
  text-underline-offset: 4px;
}
.why-link:hover { color: var(--orange); }
.why-photos { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; min-height: 0; }
.why-photos img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Service area */
.area-band { padding-block: clamp(56px, 7vw, 88px); background: var(--tint); }
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.regions { display: flex; flex-wrap: wrap; gap: 10px; }
.regions li {
  padding: 12px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  background: #fff;
}

/* Contact: dark photo background */
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-block: var(--section-y);
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 27, 46, 0.82);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.contact-sub { color: rgba(255, 255, 255, 0.82); margin-top: 16px; font-size: 1.05rem; max-width: 32em; }

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.phone-card .eyebrow { margin-bottom: 0; }
.phone-number {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.phone-number:hover { color: var(--blue); }
.phone-note { color: var(--ink-soft); margin-bottom: 10px; }

/* Footer */
.site-footer { background: #fff; padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.site-footer li { font-size: 15px; margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 40px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-phone { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step:nth-child(4) { grid-column: auto; }
  .step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 96px 40px; }
  .title-block { max-width: 460px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .service-feature { grid-column: 1 / -1; grid-row: auto; }
  .why { grid-template-columns: 1fr; }
  .why-photos { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .area { grid-template-columns: 1fr; gap: 28px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand img { height: 36px; }
  .btn-sm { padding: 9px 12px; font-size: 14px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .services { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 20px; }
  .why-photos { grid-template-columns: 1fr; }
  .why-photos img { min-height: 200px; }
}

@media (max-width: 380px) {
  .brand img { height: 30px; }
  .lang-toggle { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
