:root {
  --ink: #2b2b2b;
  --gray-600: #4a4a4a;
  --gray-500: #6f6f6f;
  --gray-300: #c8c8c8;
  --gray-200: #e6e6e6;
  --gray-100: #f4f4f4;
  --accent: #8c6d4b;
  --accent-dark: #6f573c;
  --white: #ffffff;
  --container: 1200px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

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

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

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

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============ Section common ============ */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.3;
}

.section-head p {
  margin-top: 16px;
  color: var(--gray-500);
  font-size: 16px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 20, 20, 0.82) 0%,
    rgba(20, 20, 20, 0.55) 45%,
    rgba(20, 20, 20, 0.25) 100%
  );
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #d9c8b3;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: #d9c8b3;
}

.hero-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ============ Stats ============ */
.stats {
  background: var(--ink);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-num {
  font-size: 44px;
  font-weight: 800;
  color: #d9c8b3;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ============ Feature cards ============ */
.features {
  background: var(--gray-100);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--gray-500);
}

/* ============ Home cases preview ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.case-card:hover .case-media img {
  transform: scale(1.06);
}

.case-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 20, 20, 0.75);
  color: var(--white);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.case-body {
  padding: 24px;
}

.case-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-meta {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  color: var(--gray-500);
}

.case-meta span::before {
  content: "·";
  margin-right: 6px;
  color: var(--accent);
}

.case-meta span:first-child::before {
  content: "";
  margin: 0;
}

.section-actions {
  text-align: center;
  margin-top: 56px;
}

/* ============ Process ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process-item {
  text-align: center;
  padding: 0 12px;
}

.process-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 18px;
}

.process-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-item p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #3a3a3a 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  font-size: 16px;
}

/* ============ Footer ============ */
.footer {
  background: #1c1c1c;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #d9c8b3;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ Page hero (inner pages) ============ */
.page-hero {
  background: var(--gray-100);
  padding: 76px 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 18px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ============ Cases page ============ */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

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

/* ============ Services page ============ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--gray-200);
}

.service-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.service-block.reverse .service-media {
  order: 2;
}

.service-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-info p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.service-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-feats li {
  font-size: 14.5px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-feats li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.price-table {
  border-collapse: collapse;
  width: 100%;
}

.price-table th,
.price-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}

.price-table th {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
}

.price-table tr:hover td {
  background: var(--gray-100);
}

/* ============ About page ============ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-intro .about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-intro h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-intro p {
  color: var(--gray-500);
  margin-bottom: 16px;
}

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

.value-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray-500);
}

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

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gray-200);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.team-card h4 {
  font-size: 16px;
  font-weight: 700;
}

.team-card p {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============ Contact page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 14px;
  color: var(--gray-500);
}

.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 109, 75, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 12px;
}

.form-success {
  display: none;
  background: #eef5ee;
  border: 1px solid #cfe3cf;
  color: #3d6b3d;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-success.show {
  display: block;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--accent);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .feature-grid,
  .case-grid,
  .cases-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    background: var(--white);
    width: min(320px, 80vw);
    height: calc(100vh - 72px);
    flex-direction: column;
    gap: 0;
    padding: 24px 32px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--gray-200);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    height: auto;
    min-height: 560px;
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 15.5px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-block.reverse .service-media {
    order: 0;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

@media (max-width: 560px) {
  .feature-grid,
  .case-grid,
  .cases-page-grid,
  .process-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
