:root {
  color-scheme: light;
  --ink: #241b16;
  --muted: #73645c;
  --paper: #fffaf1;
  --cream: #f7ead2;
  --gold: #b78736;
  --red: #9b2f27;
  --green: #0e5d54;
  --line: rgba(65, 42, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff7dc;
  font-weight: 800;
  font-size: 15px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 22px;
  color: #554139;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 54px clamp(18px, 5vw, 72px) 64px;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96) 0%, rgba(255, 250, 241, 0.74) 55%, rgba(255, 250, 241, 0.9) 100%),
    url("./assets/pattern.png") center / cover;
  gap: clamp(28px, 5vw, 70px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: #514138;
  font-size: 20px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 24px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.56);
}

.hero-media {
  position: relative;
  margin: 0;
  max-width: 430px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(52, 24, 12, 0.28);
}

.hero-media img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(30, 18, 10, 0.74);
  color: white;
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats div {
  padding: 28px clamp(18px, 3vw, 42px);
  background: #fff6e7;
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: clamp(28px, 4vw, 46px);
}

.stats span {
  color: var(--muted);
}

.section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading p,
.about-copy,
.contact p {
  color: var(--muted);
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.service-card {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.service-card img {
  height: 215px;
  object-fit: cover;
}

.service-card h3,
.service-card p {
  padding-inline: 22px;
}

.service-card h3 {
  margin-top: 22px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.75;
}

.service-card.featured {
  display: grid;
  grid-row: span 2;
}

.service-card.featured img {
  height: 100%;
  min-height: 420px;
}

.service-card.featured div {
  padding-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(28px, 7vw, 110px);
  background: var(--green);
  color: white;
}

.split .eyebrow,
.split .about-copy {
  color: #f6dfb8;
}

.about-copy {
  font-size: 17px;
}

.about-copy ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-copy li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 0;
}

.gallery {
  background: #fffdf8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 16px;
}

.gallery-grid img {
  height: 360px;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-grid img:first-child {
  grid-row: span 2;
  height: 736px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 62px clamp(18px, 5vw, 72px);
  background: #241b16;
  color: white;
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  margin-bottom: 6px;
  color: #e8d9bf;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: #15100d;
  color: #c9b89d;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-media {
    max-width: 360px;
  }

  .stats,
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured img,
  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 320px;
  }

  .contact,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  nav {
    gap: 10px;
    font-size: 14px;
  }

  h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }
}
