/* ============================================================
   Supellex — design tokens
   ============================================================ */
:root {
  --blue: #4E67AF;
  --orange: #E17800;
  --cream: #FFECCE;
  --near-black: #1A1A1A;
  --peach: #FFC28C;
  --brick: #A73A2E;

  --cream-ink: #3a2f22;
  --on-dark: #FFECCE;

  --container-w: 1180px;
  --gutter: 24px;

  --ease: cubic-bezier(.4,0,.2,1);
  --dur: .5s;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Zain", "Noto Sans SC", sans-serif;
  font-weight: 400;
  color: var(--near-black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="zh"] body,
body:has([lang="zh"]) { font-family: "Noto Sans SC", "Zain", sans-serif; }

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

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

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 88px; position: relative; }
@media (max-width: 720px) {
  .section { padding-block: 56px; }
}

.section-label {
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 15px;
  opacity: .75;
  margin-block-end: 12px;
}

.section-title {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  margin-block-end: 28px;
  max-width: 20ch;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--near-black);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  inset-inline-start: 12px;
  top: 12px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
  padding-block: 22px;
}
.site-header.scrolled {
  background: rgba(26, 26, 26, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
  padding-block: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  height: 38px;
  width: auto;
  transition: height var(--dur) var(--ease);
}
.site-header.scrolled .brand-logo { height: 30px; }

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
  position: relative;
  padding-block: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255,236,206,.4);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--orange);
  color: var(--near-black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  display: block;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .lang-switch button { padding: 6px 9px; font-size: 12px; }
  .brand-logo { height: 30px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 100vh;
    background: rgba(26,26,26,.98);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { font-size: 22px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   1. Hero
   ============================================================ */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--orange);
  color: var(--near-black);
  padding-block: 0;
}
.hero-inner {
  padding-block-start: 120px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .9s var(--ease) .2s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  width: clamp(220px, 26vw, 380px);
  height: auto;
  margin-inline: auto;
}
.hero-subtitle {
  margin-block-start: 64px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  max-width: 36ch;
  color: var(--cream);
}

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

/* ============================================================
   2. About
   ============================================================ */
.about-section { background: var(--cream); color: var(--cream-ink); }
.about-intro {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.9;
  max-width: 72ch;
  margin-block-end: 56px;
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-col {
  border-inline-start: 3px solid var(--orange);
  padding-inline-start: 22px;
}
.about-col h3 {
  font-size: 22px;
  font-weight: 800;
  margin-block-end: 12px;
  color: var(--blue);
}
.about-col p { line-height: 1.85; font-size: 16px; }

@media (max-width: 720px) {
  .about-columns { grid-template-columns: 1fr; }
}

/* ============================================================
   3. Stats
   ============================================================ */
.stats-section {
  background: var(--blue);
  color: var(--cream);
  text-align: center;
}
.stats-section .section-title { max-width: none; margin-inline: auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-block: 48px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid rgba(255,236,206,.25);
}
.stat-value {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--peach);
}
.stat-label { font-size: 16px; opacity: .9; }
.stats-closing {
  max-width: 52ch;
  margin-inline: auto;
  font-size: 18px;
  opacity: .95;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   4. Challenges
   ============================================================ */
.challenges-section { background: var(--cream); color: var(--cream-ink); }
.challenges-intro {
  font-size: 18px;
  max-width: 68ch;
  margin-block-end: 28px;
  line-height: 1.8;
}
.challenges-list {
  counter-reset: challenge;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
  margin-block-end: 36px;
}
.challenges-list li {
  counter-increment: challenge;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.6;
}
.challenges-list li::before {
  content: counter(challenge);
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--near-black);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.challenges-closing {
  font-size: 17px;
  line-height: 1.8;
  max-width: 68ch;
  opacity: .85;
}

@media (max-width: 720px) {
  .challenges-list { grid-template-columns: 1fr; }
}

/* ============================================================
   5. Solutions
   ============================================================ */
.solutions-section { background: var(--brick); color: var(--cream); }
.solutions-section .section-title { max-width: 26ch; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,236,206,.2);
  margin-block-start: 40px;
}
.solution-card {
  background: var(--brick);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solution-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--peach);
}
.solution-card p {
  font-size: 15px;
  line-height: 1.65;
  opacity: .92;
}

@media (max-width: 980px) {
  .solutions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   6. Why Us
   ============================================================ */
.whyus-section { background: var(--blue); color: var(--cream); padding-block-end: 0; }
.whyus-section .section-title { max-width: none; }
.whyus-table-section { background: var(--cream); padding-block-start: 40px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.whyus-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 15px;
}
.whyus-table th, .whyus-table td {
  padding: 18px 20px;
  text-align: start;
  border-bottom: 1px solid rgba(26,26,26,.1);
  vertical-align: top;
}
.whyus-table thead th {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--cream-ink);
  opacity: .7;
  border-bottom: 2px solid var(--near-black);
}
.whyus-table td:first-child,
.whyus-table th:first-child { font-weight: 700; opacity: .8; }
.whyus-table .col-win {
  background: rgba(225,120,0,.1);
  font-weight: 700;
  color: var(--cream-ink);
}
.whyus-table thead th.col-win {
  background: var(--orange);
  color: var(--near-black);
}

/* ============================================================
   7. Services
   ============================================================ */
.services-section { background: var(--near-black); color: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-block-start: 24px;
}
.service-card { display: flex; flex-direction: column; gap: 18px; }
.service-image {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-image svg { width: 40%; height: 40%; opacity: .85; }
.service-card h3 { font-size: 19px; font-weight: 800; }
.service-card p { font-size: 15px; line-height: 1.7; opacity: .85; }

@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   8. Gallery
   ============================================================ */
.gallery-section {
  background:
    linear-gradient(180deg, rgba(58,47,34,.55), rgba(26,20,14,.75)),
    radial-gradient(ellipse at 30% 20%, #6b5236, #3a2f22 70%);
  color: var(--cream);
  position: relative;
}
.gallery-section .section-title { max-width: none; text-align: center; margin-inline: auto; }
.gallery-inner { position: relative; z-index: 1; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-block-start: 36px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
}
.gallery-item:nth-child(4n+1) { grid-row: span 2; aspect-ratio: 1/2; }

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   9. Contact
   ============================================================ */
.contact-section {
  background: var(--orange);
  color: var(--near-black);
  text-align: center;
}
.contact-section .section-title { margin-inline: auto; max-width: none; }
.contact-text {
  max-width: 56ch;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.8;
  margin-block-end: 40px;
}
.contact-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 13px; font-weight: 700; opacity: .7; }
.contact-item a {
  font-size: 20px;
  font-weight: 800;
  border-bottom: 2px solid var(--near-black);
  padding-block-end: 2px;
}

.contact-form {
  max-width: 640px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  text-align: start;
  background: rgba(26,26,26,.06);
  border: 1px solid rgba(26,26,26,.12);
  border-radius: 8px;
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-full { grid-column: 1 / -1; }
.form-row label {
  font-size: 14px;
  font-weight: 700;
  opacity: .85;
}
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(26,26,26,.25);
  border-radius: 4px;
  background: var(--cream);
  color: var(--near-black);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--near-black);
}
.form-submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-block-start: 8px;
  background: var(--near-black);
  color: var(--cream);
  border: none;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 44px;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.form-submit:hover { background: #000; transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: default; transform: none; }

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 700;
  color: #1a6b3a;
  background: rgba(26,107,58,.1);
  border: 1px solid rgba(26,107,58,.3);
  border-radius: 6px;
  padding: 12px 16px;
  margin-block-start: 4px;
}

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--near-black); color: var(--cream); padding-block: 40px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { height: 28px; opacity: .9; }
.footer-links { display: flex; gap: 24px; font-size: 14px; opacity: .85; }
.footer-cr { font-size: 13px; opacity: .6; width: 100%; text-align: center; order: 3; }
.footer-rights { font-size: 13px; opacity: .55; width: 100%; text-align: center; order: 4; margin-block-start: 4px; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
