/*
Theme Name: YingZhuo Redesign
Theme URI: https://yingzhuoco.com/
Author: YingZhuo
Description: A focused B2B corporate theme for YingZhuo custom sportswear and swimwear OEM/ODM services.
Version: 1.3.2
Text Domain: yingzhuo-redesign
*/

:root {
  --background: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #eeeee6;
  --foreground: #1f2623;
  --muted: #64716d;
  --ink: #102f2b;
  --sea: #0f655e;
  --sea-soft: #d7ece9;
  --coral: #e86e56;
  --gold: #b98a3d;
  --line: #ded8cb;
  --shadow: 0 24px 70px rgb(16 47 43 / 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(480px, 1.55fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px clamp(18px, 3.8vw, 56px);
  border-bottom: 1px solid rgb(31 38 35 / 0.1);
  background: rgb(247 245 240 / 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 53px;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: none !important;
}

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

.brand strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  color: #31423e;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
}

.nav-item {
  position: relative;
}

.has-dropdown > .nav-link::after,
.language-menu button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-panel,
.language-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  z-index: 80;
  display: block;
  visibility: hidden;
  min-width: 230px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgb(16 47 43 / 0.1);
  box-shadow: 0 22px 60px rgb(16 47 43 / 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.language-menu:hover .language-panel,
.language-menu:focus-within .language-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-panel a,
.language-panel a {
  display: block;
  padding: 11px 12px;
  color: #31423e;
  font-size: 13px;
  line-height: 1.35;
}

.dropdown-panel a:hover,
.language-panel a:hover,
.language-panel a.active {
  background: var(--sea-soft);
  color: var(--sea);
}

.mega-panel {
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(660px, 72vw);
  padding: 14px;
  transform: translate(0, 10px);
}

.products-dropdown:hover .mega-panel,
.products-dropdown:focus-within .mega-panel {
  transform: translate(0, 0);
}

.mega-panel strong,
.mega-panel span {
  display: block;
}

.mega-panel strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.mega-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.primary-nav a:hover,
.site-footer a:hover {
  color: var(--sea);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.language-menu {
  position: relative;
  width: 170px;
}

.language-menu button,
.header-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgb(16 47 43 / 0.12);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.language-menu button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 170px;
  min-width: 170px;
  justify-content: center;
  padding: 0 13px;
}

.language-menu img {
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgb(16 47 43 / 0.08);
}

.language-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-panel {
  right: 0;
  left: auto;
  width: 170px;
  min-width: 170px;
  transform: translate(0, 10px);
}

.language-menu:hover .language-panel,
.language-menu:focus-within .language-panel {
  transform: translate(0, 0);
}

.header-search {
  display: grid;
  grid-template-columns: minmax(82px, 120px) 42px;
  align-items: center;
}

.header-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgb(16 47 43 / 0.12);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}

.header-search button {
  width: 42px;
  padding: 0;
  border-radius: 0 4px 4px 0;
  background: var(--ink);
  color: #fff;
  font-size: 0;
}

.header-search button::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.header-search button::after {
  content: "";
  width: 7px;
  height: 2px;
  margin-left: -2px;
  margin-top: 14px;
  background: #fff;
  transform: rotate(45deg);
}

.header-cta,
.primary-button,
.secondary-button,
.footer-cta,
.quote-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.primary-button,
.quote-form button,
.footer-cta {
  background: var(--ink);
  color: #fff;
}

.secondary-button {
  border-color: rgb(16 47 43 / 0.18);
  background: #fff;
  color: var(--ink);
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px) 56px;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 68px);
}

.page-hero h1 {
  font-size: clamp(38px, 4.8vw, 62px);
}

.hero-lede,
.page-hero-copy p:not(.eyebrow) {
  max-width: 670px;
  font-size: clamp(17px, 1.45vw, 21px);
}

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

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-chips span {
  padding: 8px 11px;
  border: 1px solid rgb(16 47 43 / 0.12);
  border-radius: 4px;
  background: #fff;
  color: #31423e;
  font-size: 12px;
  font-weight: 800;
}

.hero-media,
.page-hero-media {
  position: relative;
  min-height: 500px;
}

.hero-main,
.page-hero-media img {
  width: 82%;
  height: 490px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
}

.hero-secondary {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 48%;
  height: 270px;
  border: 10px solid var(--background);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: 26px;
  top: 28px;
  max-width: 260px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.metrics article {
  min-height: 145px;
  padding: 28px;
  background: var(--ink);
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.metrics span {
  color: rgb(255 255 255 / 0.72);
  line-height: 1.55;
}

.content-section,
.process-section,
.faq-section,
.contact-layout,
.quote-band,
.split-section {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.muted-section {
  background: var(--surface-2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.quote-band h2,
.split-section h2,
.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 56px);
}

.category-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.category-card {
  display: grid;
  min-height: 370px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(16 47 43 / 0.08);
  overflow: hidden;
}

.category-card.large {
  grid-row: span 2;
}

.category-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.category-card.large img {
  height: 500px;
}

.category-card div {
  padding: 22px;
}

.category-card h3,
.info-card h3,
.process-row h3,
.faq-grid h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgb(16 47 43 / 0.1);
  background: var(--surface);
}

.info-card p {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  background: #fff;
}

.split-section.reverse {
  background: var(--background);
}

.split-section img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #354641;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--coral);
}

.process-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-row article {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.process-row span {
  display: block;
  margin-bottom: 42px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  min-height: 220px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgb(16 47 43 / 0.1);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  background: var(--sea);
}

.quote-band .eyebrow,
.quote-band h2,
.quote-band p {
  color: #fff;
}

.quote-band p {
  max-width: 760px;
  color: rgb(255 255 255 / 0.75);
}

.quote-band .primary-button {
  background: #fff;
  color: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.contact-panel {
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgb(16 47 43 / 0.1);
}

.contact-panel p {
  margin-bottom: 16px;
}

.contact-panel a {
  color: var(--sea);
  font-weight: 850;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfaf7;
  color: var(--foreground);
  font: inherit;
  min-height: 46px;
  padding: 12px;
}

.quote-form textarea,
.quote-form label:has(textarea),
.quote-form button,
.form-status {
  grid-column: 1 / -1;
}

.quote-form button {
  min-height: 52px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 800;
}

.form-status.success {
  background: #dff2e8;
  color: #19523c;
}

.form-status.error {
  background: #ffe2dc;
  color: #8f2d1d;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.75fr));
  gap: 32px;
  padding: 58px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.site-footer .brand strong,
.site-footer h3,
.site-footer a {
  color: #fff;
}

.site-footer small,
.site-footer p {
  color: rgb(255 255 255 / 0.64);
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
}

.footer-cta {
  width: fit-content;
  margin-top: 14px;
  background: #fff;
  color: var(--ink) !important;
}

.default-page {
  min-height: 60vh;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .dropdown-panel,
  .mega-panel {
    left: 0;
    transform: translate(0, 10px);
  }

  .has-dropdown:hover .dropdown-panel,
  .has-dropdown:focus-within .dropdown-panel {
    transform: translate(0, 0);
  }

  .hero,
  .page-hero,
  .split-section,
  .contact-layout,
  .quote-band {
    grid-template-columns: 1fr;
  }

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

  .process-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .category-card.large {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    gap: 14px;
  }

  .brand small,
  .header-search input {
    display: none;
  }

  .brand-logo {
    width: min(220px, 58vw);
    height: auto;
    aspect-ratio: 320 / 53;
  }

  .primary-nav {
    gap: 16px;
    font-size: 13px;
  }

  .dropdown-panel,
  .mega-panel {
    left: 0;
    width: min(88vw, 360px);
    min-width: 260px;
    transform: translate(0, 10px);
  }

  .mega-panel {
    grid-template-columns: 1fr;
  }

  .has-dropdown:hover .dropdown-panel,
  .has-dropdown:focus-within .dropdown-panel {
    transform: translate(0, 0);
  }

  .header-search {
    grid-template-columns: 42px;
  }

  .language-menu button {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    overflow: hidden;
  }

  .language-menu,
  .language-panel {
    width: 120px;
    min-width: 120px;
  }

  h1 {
    font-size: 42px;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-media,
  .page-hero-media {
    min-height: 380px;
  }

  .hero-main,
  .page-hero-media img,
  .split-section img {
    width: 100%;
    height: 360px;
  }

  .hero-secondary {
    width: 56%;
    height: 190px;
    border-width: 7px;
  }

  .hero-note {
    position: relative;
    right: auto;
    top: auto;
    max-width: none;
    margin-top: 14px;
  }

  .metrics,
  .card-grid,
  .category-grid,
  .process-row,
  .faq-grid,
  .quote-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card.large {
    min-height: auto;
  }

  .category-card img,
  .category-card.large img {
    height: 260px;
  }

  .content-section,
  .process-section,
  .faq-section,
  .contact-layout,
  .quote-band,
  .split-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}
