/*
Theme Name: AOLEI B2B
Theme URI: https://ttch.ai/
Author: TTCH
Description: WordPress theme scaffold for AOLEI B2B apparel sourcing site.
Version: 0.1.0
Text Domain: aolei-b2b
*/

:root {
  --ink: #252121;
  --muted: #657174;
  --cloud: #f6f8f8;
  --porcelain: #eaf3f5;
  --pine: #1f5b4d;
  --brass: #b08a55;
  --line: #d8dee0;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(37, 33, 33, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.brand img {
  width: 148px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--pine);
  border-radius: 6px;
  background: var(--pine);
  color: var(--white);
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
  color: var(--pine);
}

.hero {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 52%, var(--porcelain) 52%, var(--porcelain) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 76px);
  padding: 58px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__image {
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
}

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

.proof {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.proof__item {
  min-height: 118px;
  padding: 28px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.proof__item:first-child {
  border-left: 0;
}

.proof strong {
  display: block;
  color: var(--brass);
  font-size: 28px;
}

.proof span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.section {
  padding: 78px 0;
}

.section--white {
  background: var(--white);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.section__head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.capability {
  min-height: 210px;
  padding: 28px;
  background: var(--white);
}

.capability b {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.capability p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.process-grid div {
  min-height: 190px;
  padding: 24px;
  background: var(--white);
}

.process-grid b {
  display: block;
  margin-bottom: 10px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rfq-band {
  background: var(--pine);
  color: var(--white);
}

.rfq-band .section__inner {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
  align-items: start;
}

.site-footer {
  padding: 42px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.site-footer strong {
  color: var(--white);
}

.aolei-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.category-grid a {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cloud);
}

.category-grid span {
  font-weight: 800;
}

.category-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.aolei-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.aolei-product-card__image {
  aspect-ratio: 4 / 5;
  background: var(--porcelain);
}

.aolei-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aolei-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.aolei-product-card h3 {
  margin: 0;
  font-size: 18px;
}

.aolei-product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.aolei-product-card .btn {
  width: 100%;
  margin-top: auto;
}

.aolei-rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aolei-rfq-note {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.aolei-rfq-note span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.aolei-rfq-form label {
  display: grid;
  gap: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.aolei-rfq-form input,
.aolei-rfq-form textarea,
.aolei-rfq-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
}

.aolei-rfq-form textarea,
.aolei-rfq-form .span-2 {
  grid-column: 1 / -1;
}

.aolei-rfq-form button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: var(--pine);
  font-weight: 800;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) 1fr;
  gap: 34px;
  align-items: start;
}

.product-detail__media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--porcelain);
}

.product-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: var(--white);
}

.product-gallery img {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: cover;
}

.product-detail__placeholder {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
}

.product-specs {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-specs div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 14px 16px;
  background: var(--white);
}

.product-specs dt {
  color: var(--muted);
  font-weight: 700;
}

.product-specs dd {
  margin: 0;
}

.entry-content {
  color: var(--ink);
  line-height: 1.7;
}

.entry-content h2,
.entry-content h3 {
  margin: 34px 0 12px;
  line-height: 1.15;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  max-width: 880px;
}

.entry-content li {
  margin: 7px 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--cloud);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    background: var(--white);
  }

  .hero__inner,
  .rfq-band .section__inner,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero__image {
    min-height: 420px;
  }

  .proof__grid,
  .capability-grid,
  .process-grid,
  .category-grid,
  .aolei-product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header__inner,
  .section__inner {
    width: min(var(--max), calc(100% - 22px));
  }

  .hero__inner {
    padding: 32px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 52px 0;
  }

  .section__head,
  .site-footer__inner {
    display: block;
  }

  .proof__grid,
  .capability-grid,
  .process-grid,
  .category-grid,
  .aolei-product-grid,
  .aolei-rfq-form {
    grid-template-columns: 1fr;
  }
}
