:root {
  --ink: #1b2420;
  --muted: #66716c;
  --paper: #fbfaf7;
  --cream: #f1e7d8;
  --linen: #f7f0e8;
  --green: #24594f;
  --green-dark: #173b34;
  --rust: #9a3c22;
  --coral: #d87a5c;
  --blue: #315578;
  --gold: #c89a3c;
  --white: #ffffff;
  --border: #e5ded4;
  --shadow: 0 22px 60px rgba(35, 42, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

.site-icons {
  display: none;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 0 44px;
  color: var(--white);
  background: rgba(23, 59, 52, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(10, 24, 21, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--cream);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: var(--white);
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 128px);
  display: grid;
  align-items: center;
  padding: 96px 0 70px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(16, 37, 32, 0.92) 0%, rgba(16, 37, 32, 0.72) 43%, rgba(16, 37, 32, 0.2) 100%),
    url("assets/aidemi-home-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  content: "";
  background: linear-gradient(90deg, var(--rust), var(--gold), var(--green));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
}

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

.hero .eyebrow {
  color: #f1c66b;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: 3.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.25rem;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--rust);
  box-shadow: 0 14px 30px rgba(154, 60, 34, 0.28);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: #82311d;
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.section {
  padding: 86px 0;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.quote-copy p,
.contact-layout p {
  color: var(--muted);
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.category-grid,
.advantage-grid,
.featured-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.advantage-card,
.product-card,
.news-list article,
.process-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(42, 39, 34, 0.06);
}

.category-card {
  position: relative;
  min-height: 202px;
  overflow: hidden;
  padding: 26px 24px 24px;
  --card-accent: var(--green);
  --card-accent-bg: rgba(36, 89, 79, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-card:nth-child(2),
.category-card:nth-child(8) {
  --card-accent: var(--blue);
  --card-accent-bg: rgba(49, 85, 120, 0.12);
}

.category-card:nth-child(3),
.category-card:nth-child(7) {
  --card-accent: var(--rust);
  --card-accent-bg: rgba(154, 60, 34, 0.12);
}

.category-card:nth-child(4),
.category-card:nth-child(6),
.category-card:nth-child(10) {
  --card-accent: var(--gold);
  --card-accent-bg: rgba(200, 154, 60, 0.14);
}

.category-card:nth-child(5),
.category-card:nth-child(9) {
  --card-accent: var(--coral);
  --card-accent-bg: rgba(216, 122, 92, 0.13);
}

.category-card::after {
  position: absolute;
  top: 20px;
  right: 20px;
  content: attr(data-number);
  color: var(--card-accent);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.category-card:hover {
  border-color: rgba(154, 60, 34, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid rgba(36, 89, 79, 0.14);
  border-radius: 8px;
  color: var(--card-accent);
  background: var(--card-accent-bg);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.category-icon .icon {
  width: 31px;
  height: 31px;
}

.category-card:hover .category-icon {
  color: var(--white);
  background: var(--card-accent);
  transform: translateY(-2px);
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.category-card p,
.advantage-card p,
.product-card p,
.news-list p,
.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.advantages,
.process,
.contact {
  background: var(--linen);
}

.advantage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.advantage-card {
  min-height: 236px;
  padding: 28px;
}

.advantage-symbol {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
}

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

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

.about-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.about-capabilities article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(36, 89, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.about-capabilities span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(36, 89, 79, 0.1);
}

.about-capabilities article:nth-child(2) span,
.about-capabilities article:nth-child(4) span {
  color: var(--blue);
  background: rgba(49, 85, 120, 0.12);
}

.about-capabilities article:nth-child(3) span,
.about-capabilities article:nth-child(6) span {
  color: var(--rust);
  background: rgba(154, 60, 34, 0.12);
}

.about-capabilities article:nth-child(5) span {
  color: var(--gold);
  background: rgba(200, 154, 60, 0.14);
}

.about-capabilities .icon {
  width: 24px;
  height: 24px;
}

.about-capabilities h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.28;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(36, 89, 79, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(36, 89, 79, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--linen);
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.035);
}

.product-body {
  padding: 22px;
}

.product-body a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--rust);
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  min-height: 210px;
  padding: 26px;
}

.process-list span {
  background: var(--rust);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-list article {
  padding: 24px 26px;
}

.news-list time {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--rust);
  font-size: 0.88rem;
  font-weight: 800;
}

.quote {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 59, 52, 0.98), rgba(35, 83, 75, 0.94)),
    url("assets/aidemi-home-hero.png");
  background-position: center;
  background-size: cover;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
  gap: 50px;
  align-items: center;
}

.quote .eyebrow,
.quote-copy p {
  color: #f1c66b;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.quote-form .full {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d0c5;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.quote-form textarea {
  min-height: 126px;
  padding-top: 12px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 89, 79, 0.12);
}

.quote-form .error {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(154, 60, 34, 0.12);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--rust);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  font-style: normal;
}

.contact-list p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.contact-list strong {
  color: var(--green);
}

.contact-list a {
  color: var(--blue);
  font-weight: 700;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #14241f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: #f1c66b;
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0 24px;
  }

  .site-nav {
    gap: 18px;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  .category-grid,
  .advantage-grid,
  .featured-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .news-layout,
  .quote-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand span:last-child {
    max-width: 12em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 12px 24px 22px;
    background: rgba(23, 59, 52, 0.98);
    box-shadow: 0 18px 32px rgba(10, 24, 21, 0.18);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 116px);
    padding: 74px 0 52px;
    background-position: 62% center;
  }

  h1 {
    font-size: 2.28rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .section {
    padding: 64px 0;
  }

  .category-grid,
  .advantage-grid,
  .featured-grid,
  .process-list,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .about-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .advantage-card,
  .process-list li {
    min-height: auto;
  }

  .quote-form {
    padding: 22px;
  }

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

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

@media (max-width: 420px) {
  .site-header {
    padding: 0 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 2.04rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-capabilities {
    grid-template-columns: 1fr;
  }
}
