/*
Theme Name: Wuxi Yuandu Sourcing
Theme URI: https://wuxiyuandutrading.com/
Author: Wuxi Yuandu Trading
Description: A focused global sourcing website with a built-in product inquiry workflow.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wuxi-yuandu-sourcing
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --ink: #092433;
  --deep: #061a25;
  --sand: #e6bc68;
  --cream: #f5f2ea;
  --paper: #fff;
  --muted: #65757d;
  --line: #dce4e5;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", "Avenir Next", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
figure { margin: 0; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 92px 0; }

::selection { color: var(--deep); background: var(--sand); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sand); outline-offset: 4px; }

.topline { color: #c6d4d8; background: var(--deep); }
.topline-inner { min-height: 31px; display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(9,36,51,.1); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: 41px; height: 41px; position: relative; flex: 0 0 41px; overflow: hidden; border: 1px solid rgba(9,36,51,.12); background: #fff; }
.brand-logo img { position: absolute; width: 66px; max-width: none; height: 66px; left: -12.5px; top: -12.5px; object-fit: cover; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.brand-copy small { margin-top: 6px; color: #728188; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 30px; margin-left: auto; }
.desktop-nav a { padding: 28px 0; font-size: 11px; font-weight: 800; }
.desktop-nav a:hover { color: #a66f13; }
.header-cta { display: inline-flex; align-items: center; gap: 14px; padding: 13px 17px; border: 0; color: #fff; background: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.header-cta:hover { background: #0e394c; transform: translateY(-2px); }
.header-cta span { color: var(--sand); font-size: 17px; }
.mobile-menu { display: none; margin-left: auto; }

.hero { overflow: hidden; background: var(--cream); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 72px; padding-top: 66px; padding-bottom: 72px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: #9b6817; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 29px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: var(--sans); font-size: clamp(58px, 5.8vw, 80px); font-weight: 800; letter-spacing: -.06em; line-height: .94; }
.hero h1 em { color: #a66f13; font-style: normal; font-weight: 800; }
.hero-lede { margin: 28px 0 0; color: var(--muted); font-size: 17px; font-weight: 700; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 0 23px; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 18px; }
.button-primary { color: var(--deep); background: var(--sand); }
.button-primary:hover { background: #f0cb80; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 0 0 4px; border: 0; border-bottom: 1px solid rgba(9,36,51,.3); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.text-link span { font-size: 16px; }
.start-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.start-list span { padding: 8px 10px; border: 1px solid #d5dcda; color: #596a71; background: rgba(255,255,255,.48); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.hero-photo { position: relative; height: 500px; overflow: hidden; box-shadow: 0 28px 70px rgba(6,26,37,.15); }
.hero-photo img { height: 100%; object-fit: cover; object-position: center; transition: transform .7s ease; }
.hero-photo:hover img { transform: scale(1.02); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,26,37,.55), transparent 45%); }
.hero-photo figcaption { position: absolute; z-index: 1; right: 25px; bottom: 23px; left: 25px; display: grid; color: #fff; }
.hero-photo figcaption strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.hero-photo figcaption span { margin-top: 4px; color: #d5e0e3; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.trust-strip { color: #fff; background: var(--ink); }
.trust-grid { min-height: 100px; display: grid; grid-template-columns: repeat(3,1fr); }
.trust-grid div { display: grid; align-content: center; border-right: 1px solid rgba(255,255,255,.12); padding: 19px 32px; }
.trust-grid div:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.trust-grid strong { font-size: 22px; font-weight: 800; }
.trust-grid span { margin-top: 4px; color: #9eb0b7; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 43px; }
.section-heading h2 { margin: 0; font-family: var(--sans); font-size: clamp(43px, 4.7vw, 60px); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.product-card { position: relative; min-height: 285px; overflow: hidden; color: #fff; background: var(--ink); }
.product-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.03); transition: transform .6s ease, filter .4s ease; }
.product-card:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.03); }
.product-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,20,28,.02) 30%, rgba(4,20,28,.88)); }
.product-copy { position: absolute; right: 22px; bottom: 21px; left: 22px; }
.product-copy h3 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.product-copy p { margin: 7px 0 0; color: #d6e0e3; font-size: 9px; font-weight: 800; letter-spacing: .04em; }

.site-footer { color: #fff; background: var(--deep); }
.footer-main { min-height: 126px; display: flex; align-items: center; gap: 40px; }
.brand-light .brand-logo { border-color: rgba(255,255,255,.2); }
.brand-light .brand-copy small { color: #8198a0; }
.footer-main > p { margin: 0 auto 0 0; color: #8ca1a9; font-size: 10px; }
.footer-main nav { display: flex; gap: 22px; }
.footer-main nav a, .footer-main nav button { border: 0; padding: 0; color: #b2c2c7; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.footer-main nav a:hover, .footer-main nav button:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.11); padding: 19px 0 23px; color: #708993; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.mobile-cta { display: none; }

.inquiry-dialog {
  width: min(1180px, calc(100% - 38px));
  max-width: none;
  height: min(820px, calc(100dvh - 38px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 34px 100px rgba(2, 18, 27, .42);
}
.inquiry-dialog::backdrop { background: rgba(2, 18, 27, .72); backdrop-filter: blur(8px); }
.inquiry-modal { width: 100%; min-height: 100%; display: grid; grid-template-columns: .72fr 1.28fr; position: relative; background: #fff; }
.modal-close { width: 42px; height: 42px; position: absolute; z-index: 3; top: 16px; right: 16px; display: grid; place-items: center; border: 1px solid rgba(9,36,51,.12); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); cursor: pointer; font-size: 24px; line-height: 1; }
.modal-close:hover { background: var(--sand); }
.modal-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 72px); color: #fff; background: var(--deep); }
.modal-intro::before, .modal-intro::after { content: ""; position: absolute; border: 1px solid rgba(230,188,104,.16); border-radius: 50%; }
.modal-intro::before { width: 400px; height: 400px; right: -250px; top: -170px; }
.modal-intro::after { width: 240px; height: 240px; right: -120px; top: -75px; }
.modal-logo { width: 62px; height: 62px; position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: #fff; }
.modal-logo img { height: 100%; object-fit: cover; }
.modal-eyebrow { position: relative; z-index: 1; margin: 32px 0 16px; color: var(--sand); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.modal-intro h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(48px, 5vw, 72px); font-weight: 800; letter-spacing: -.06em; line-height: .95; }
.modal-intro > p:not(.modal-eyebrow) { position: relative; z-index: 1; max-width: 360px; margin: 24px 0 0; color: #b9c8cd; font-size: 13px; font-weight: 600; line-height: 1.7; }
.modal-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 29px; }
.modal-tags span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.16); color: #d6e0e3; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.modal-form-panel { display: flex; align-items: center; justify-content: center; overflow: auto; padding: 56px clamp(35px, 5vw, 70px); }
.inquiry-form { width: min(700px, 100%); }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-heading strong { font-size: 23px; letter-spacing: -.035em; }
.form-heading span, .email-note { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid label > span { font-size: 9px; font-weight: 800; letter-spacing: .035em; }
.form-grid input, .form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 12px 13px; color: var(--ink); background: #fbfcfb; font-size: 12px; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-grid input { min-height: 45px; }
.form-grid textarea { min-height: 88px; resize: vertical; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #9aa5a9; }
.form-grid input:focus, .form-grid textarea:focus { border-color: #af7b24; background: #fff; box-shadow: 0 0 0 3px rgba(230,188,104,.18); }
.full-field { grid-column: 1 / -1; }
.submit-inquiry { width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; border: 0; color: var(--deep); background: var(--sand); cursor: pointer; font-size: 10px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.submit-inquiry:hover { transform: translateY(-2px); background: #f0cb80; }
.submit-inquiry span { font-size: 17px; }
.email-note { margin: 11px 0 0; text-align: center; }
.form-status { min-height: 20px; margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 10px; font-weight: 700; }
.form-status.is-success { color: #176b45; }
.form-status.is-error { color: #b3261e; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.submit-inquiry[disabled] { opacity: .65; cursor: wait; transform: none; }

.content-page { min-height: 100vh; background: var(--cream); }
.content-header { border-bottom: 1px solid var(--line); background: #fff; }
.content-header .header-inner { justify-content: space-between; }
.content-back { font-size: 10px; font-weight: 800; }
.content-main { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.content-main h1 { margin: 0 0 28px; font-size: clamp(42px, 6vw, 68px); letter-spacing: -.05em; }
.content-main .entry-content { color: #445860; font-size: 16px; line-height: 1.8; }
.content-main .entry-content img { height: auto; }

#wpadminbar { position: fixed; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-photo { animation: rise .7s ease-out both; }
  .hero-photo { animation-delay: .08s; }
  .product-card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 7% cover 25%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: .4; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

@media (max-width: 1080px) {
  .hero-grid { gap: 46px; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .inquiry-modal { grid-template-columns: .65fr 1.35fr; }
  .modal-intro { padding: 38px; }
  .modal-form-panel { padding: 48px 38px; }
}

@media (max-width: 790px) {
  .shell { width: min(680px, calc(100% - 34px)); }
  .section { padding: 74px 0; }
  .topline-inner span:last-child, .desktop-nav, .header-cta { display: none; }
  .topline-inner { justify-content: center; }
  .header-inner { min-height: 68px; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { padding: 10px 0; cursor: pointer; list-style: none; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: 47px; right: 0; width: 225px; display: grid; background: #fff; box-shadow: 0 20px 50px rgba(4,24,35,.18); }
  .mobile-menu nav a, .mobile-menu nav button { border: 0; border-bottom: 1px solid var(--line); padding: 15px 18px; background: #fff; text-align: left; cursor: pointer; font-size: 11px; font-weight: 800; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; padding-top: 58px; padding-bottom: 74px; }
  .hero-copy { max-width: 650px; }
  .hero-photo { height: 480px; }
  .trust-grid { grid-template-columns: repeat(3,1fr); }
  .trust-grid div { padding: 18px; }
  .trust-grid strong { font-size: 22px; }
  .section-heading { align-items: start; flex-direction: column; gap: 22px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { align-items: flex-start; flex-wrap: wrap; padding: 43px 0; }
  .footer-main > p { width: calc(100% - 210px); margin: 10px 0 0 auto; text-align: right; }
  .footer-main nav { width: 100%; }
  .inquiry-dialog { width: calc(100% - 22px); height: calc(100dvh - 22px); }
  .inquiry-modal { grid-template-columns: 1fr; }
  .modal-intro { min-height: 260px; justify-content: flex-end; padding: 34px; }
  .modal-logo { width: 50px; height: 50px; }
  .modal-eyebrow { margin: 20px 0 11px; }
  .modal-intro h2 { font-size: 45px; }
  .modal-intro > p:not(.modal-eyebrow) { margin-top: 13px; }
  .modal-tags { display: none; }
  .modal-form-panel { align-items: flex-start; overflow: visible; padding: 38px 30px 46px; }
}

@media (max-width: 540px) {
  body { padding-bottom: 61px; }
  .shell { width: calc(100% - 30px); }
  .brand-copy strong { font-size: 19px; }
  .hero-grid { min-height: auto; padding-top: 51px; }
  .hero h1 { font-size: 55px; }
  .hero-lede { max-width: 340px; font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .button { width: 100%; }
  .hero-actions .text-link { align-self: center; }
  .start-list { justify-content: center; }
  .hero-photo { height: 390px; }
  .hero-photo figcaption strong { font-size: 26px; }
  .trust-grid { width: 100%; grid-template-columns: 1fr; }
  .trust-grid div, .trust-grid div:first-child { min-height: 80px; border: 0; border-bottom: 1px solid rgba(255,255,255,.11); padding: 14px 24px; }
  .trust-grid div:last-child { border-bottom: 0; }
  .section-heading h2 { font-size: 44px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { min-height: 315px; }
  .footer-main > p { width: 100%; margin: 0; text-align: left; }
  .footer-main nav { flex-wrap: wrap; gap: 15px 21px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mobile-cta { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; min-height: 61px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; color: var(--deep); background: var(--sand); box-shadow: 0 -8px 30px rgba(6,26,37,.16); cursor: pointer; font-size: 11px; font-weight: 800; }
  .mobile-cta span { font-size: 17px; }
  .inquiry-dialog { width: 100%; height: 100dvh; }
  .modal-close { position: fixed; top: 12px; right: 12px; }
  .modal-intro { min-height: 245px; padding: 28px 22px; }
  .modal-intro h2 { font-size: 40px; }
  .modal-form-panel { padding: 32px 20px 42px; }
  .form-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .full-field { grid-column: auto; }
}
