/*
Theme Name: Yuefeng Packaging
Theme URI: https://czyuefeng.com/
Author: Chaozhou Yuefeng Printing Co., Ltd.
Description: Custom WordPress theme for Chaozhou Yuefeng Printing Co., Ltd. flexible packaging website.
Version: 1.1.5
Text Domain: yuefeng-packaging
*/

:root {
  --ink: #17211f;
  --muted: #62706c;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #dfe4dd;
  --brand: #e60012;
  --brand-dark: #9f0914;
  --accent: #0f7b63;
  --soft: #f8e8e9;
  --shadow: 0 24px 70px rgba(26, 45, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(223, 228, 221, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.hero-actions,
.hero-stats,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 64px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.brand-text {
  max-width: 360px;
  line-height: 1.15;
}

.main-nav {
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.header-cta,
.primary-btn {
  color: #fff;
  background: var(--brand);
}

.secondary-btn {
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 40px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  font-size: 20px;
  line-height: 1.25;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.hero-bullets {
  display: grid;
  gap: 9px;
  padding-left: 22px;
  font-weight: 600;
}

.hero-bullets li::marker {
  color: var(--brand);
}

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

.hero-stats {
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
}

.hero-stats div {
  min-width: 136px;
}

.hero-stats strong {
  display: block;
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-media {
  display: grid;
  gap: 16px;
  border-radius: 8px;
}

.hero-product {
  width: 100%;
  object-fit: contain;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 33, 31, 0.16);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.product-grid,
.faq-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.strength-section {
  padding-top: clamp(82px, 10vw, 132px);
  background: #fff;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.strength-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.strength-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.strength-card.wide {
  grid-column: 1 / -1;
}

.strength-card.wide img {
  height: 500px;
  min-height: 0;
}

.strength-card:hover img {
  transform: scale(1.025);
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-showcase img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 6px;
}

.product-showcase h3 {
  max-width: 520px;
  font-size: clamp(24px, 3vw, 36px);
}

.product-showcase p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.product-card {
  overflow: hidden;
  min-height: 340px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  background: #f3f3f0;
}

.product-card .product-code,
.product-card h3,
.product-card p {
  margin-left: 20px;
  margin-right: 20px;
  text-align: center;
}

.product-code {
  display: inline-block;
  width: calc(100% - 40px);
  margin-top: 20px;
  margin-bottom: 22px;
  color: var(--accent);
  font-weight: 800;
}

.product-card p,
.about-copy p,
.about-points span,
.custom-list span,
.faq-grid p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.custom-section {
  background: var(--ink);
}

.process-section {
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(48px, 6vw, 78px);
}

.custom-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  color: #fff;
}

.custom-panel .eyebrow {
  color: #ffb8bd;
}

.custom-list {
  display: grid;
  gap: 10px;
}

.custom-list div,
.about-points div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.custom-list strong {
  font-size: 15px;
}

.custom-list span {
  color: #d4dfdc;
  font-size: 14px;
  line-height: 1.45;
}

.quote-form {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 0.7fr) minmax(280px, 1.1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quote-form h3 {
  margin-bottom: 6px;
}

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

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  background: #fbfbf8;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.wpforms-inquiry-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.18fr);
  gap: 22px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wpforms-inquiry-copy h3 {
  margin-bottom: 8px;
}

.wpforms-inquiry-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.inquiry-process {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.inquiry-process div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.inquiry-process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-process strong {
  line-height: 1.2;
}

.inquiry-process small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.wpforms-inquiry-form .wpforms-container {
  margin: 0;
}

.wpforms-inquiry-form .wpforms-field {
  padding: 0 0 14px;
}

.wpforms-inquiry-form input,
.wpforms-inquiry-form textarea,
.wpforms-inquiry-form select {
  border-radius: 6px !important;
  border-color: var(--line) !important;
  background: #fbfbf8 !important;
}

.wpforms-inquiry-form button[type="submit"],
.wpforms-inquiry-form .wpforms-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 6px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.factory-column {
  display: grid;
  gap: 16px;
}

.factory-gallery {
  column-count: 2;
  column-gap: 12px;
}

.factory-gallery img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(26, 45, 39, 0.1);
}

.factory-gallery img:first-child {
  object-position: center;
}

.about-copy p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
}

.about-factory-photo {
  width: 100%;
  margin-top: 22px;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #e6ebe4;
  box-shadow: 0 12px 36px rgba(26, 45, 39, 0.1);
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-points div {
  border-color: var(--line);
  background: #fff;
}

.about-points strong {
  font-size: 18px;
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-item h3 {
  margin-bottom: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 30px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px) clamp(44px, 6vw, 80px);
  padding: clamp(36px, 6vw, 64px);
  color: #fff;
  background: var(--brand-dark);
  border-radius: 8px;
}

.contact-section .eyebrow {
  color: #ffc6ca;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.contact-card a {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: #fff;
}

.contact-card p {
  margin: 0;
  color: #d8ebe6;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px;
}

.qr-placeholder,
.qr-item {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.qr-item {
  gap: 10px;
  padding: 12px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--brand-dark);
  color: #fff;
}

.qr-item img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mail-icon::before {
  content: "";
  width: 18px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 2px;
}

.mail-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.whatsapp-icon::before {
  content: "WA";
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.wechat-icon::before {
  content: "WX";
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .section-heading,
  .custom-panel,
  .product-showcase,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-product {
    height: auto;
  }

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

  .strength-card.wide {
    grid-row: auto;
  }

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

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

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

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand-text {
    max-width: min(280px, calc(100vw - 116px));
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-product {
    height: auto;
    border-width: 6px;
  }

  .strength-card img,
  .strength-card.wide img {
    height: 240px;
  }

  .product-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-showcase {
    padding: 12px;
  }

  .product-showcase img {
    height: 260px;
  }

  .factory-gallery {
    column-count: 1;
  }

  .product-code {
    margin-bottom: 22px;
  }

  .contact-section {
    padding: 28px;
  }
}
