/*
Theme Name: ZhujiTrade B2B
Theme URI: https://zhujitrade.com/
Author: Codex
Description: A custom WordPress theme for a foreign trade company focused on small-batch procurement.
Version: 1.0.0
Text Domain: zhujitrade-b2b
*/

:root {
    --navy: #14324a;
    --teal: #1f6b78;
    --gold: #c88a3d;
    --sand: #efe7dc;
    --mist: #f7f4ef;
    --stone: #d9d1c5;
    --ink: #18232d;
    --white: #fffdf9;
    --max: 1180px;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 24px 60px rgba(20, 50, 74, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(200, 138, 61, 0.18), transparent 26%),
        radial-gradient(circle at 85% 10%, rgba(31, 107, 120, 0.12), transparent 22%),
        linear-gradient(180deg, #f5f2ed 0%, #fcfbf8 40%, #f0ebe4 100%);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

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

.site-shell {
    overflow: hidden;
}

.wrap {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 249, 0.88);
    border-bottom: 1px solid rgba(20, 50, 74, 0.08);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(20, 50, 74, 0.64);
}

.brand__title,
.hero h1,
.section-title,
.content-title {
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.brand__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.nav a {
    color: rgba(24, 35, 45, 0.84);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.92rem 1.45rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 14px 32px rgba(20, 50, 74, 0.22);
}

.button--secondary {
    background: rgba(255, 255, 255, 0.78);
    color: var(--navy);
    border: 1px solid rgba(20, 50, 74, 0.12);
}

.eyebrow {
    display: inline-flex;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(200, 138, 61, 0.16);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero {
    padding: 4rem 0 3rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    margin: 0.9rem 0 1rem;
    font-size: clamp(2.8rem, 5.8vw, 5.2rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero p {
    max-width: 38rem;
    font-size: 1.08rem;
    color: rgba(24, 35, 45, 0.8);
}

.hero__actions,
.cta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.stat,
.card,
.process-step,
.review,
.faq,
.detail-panel {
    background: rgba(255, 253, 249, 0.82);
    border: 1px solid rgba(20, 50, 74, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(20, 50, 74, 0.05);
}

.stat {
    padding: 1rem;
}

.stat strong {
    display: block;
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.hero-panel {
    min-height: 580px;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at 18% 20%, rgba(200, 138, 61, 0.9), transparent 17%),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18), transparent 16%),
        linear-gradient(155deg, rgba(31, 107, 120, 0.96) 0%, rgba(20, 50, 74, 1) 48%, rgba(14, 33, 48, 1) 100%);
    color: var(--white);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

.hero-panel__badge,
.hero-panel__box {
    background: rgba(255, 253, 249, 0.92);
    color: var(--ink);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 40px rgba(10, 25, 36, 0.14);
}

.hero-panel__badge {
    justify-self: end;
    font-weight: 700;
}

.hero-panel__copy {
    align-self: center;
    max-width: 24rem;
}

.hero-panel__copy span {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-panel__copy strong {
    display: block;
    margin-top: 0.7rem;
    font-size: 2.2rem;
    line-height: 1.08;
}

.hero-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-panel__grid strong,
.kicker {
    display: block;
    color: var(--navy);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.home-nav-band {
    padding-bottom: 2rem;
}

.home-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-nav-link {
    padding: 1rem;
    text-align: center;
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.78);
    border: 1px solid rgba(20, 50, 74, 0.09);
    font-weight: 700;
}

.section {
    padding: 4.5rem 0;
}

.section--soft {
    background: rgba(255, 255, 255, 0.42);
}

.section-copy {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.section-title,
.content-title {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.cards,
.reviews,
.faq-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card,
.review,
.faq,
.post-card {
    padding: 1.5rem;
}

.feature-grid,
.process-grid,
.content-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: start;
}

.feature-image {
    min-height: 480px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(20, 50, 74, 0.94), rgba(31, 107, 120, 0.82)),
        linear-gradient(transparent, transparent);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-image::before,
.feature-image::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.feature-image::before {
    width: 240px;
    height: 240px;
    top: 60px;
    left: -40px;
}

.feature-image::after {
    width: 320px;
    height: 320px;
    bottom: -90px;
    right: -60px;
}

.features {
    display: grid;
    gap: 1rem;
}

.feature,
.process-step,
.detail-panel {
    padding: 1.4rem;
}

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

.process-step__number {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 138, 61, 0.16);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.detail-list,
.faq ul {
    margin: 0;
    padding-left: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.4rem;
    align-items: start;
}

.contact-card,
.contact-form {
    background: rgba(255, 253, 249, 0.88);
    border: 1px solid rgba(20, 50, 74, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: 0 14px 36px rgba(20, 50, 74, 0.06);
}

.contact-points {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
}

.contact-point strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--navy);
}

.contact-form__status {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.contact-form__status--success {
    background: rgba(38, 128, 92, 0.12);
    color: #1d5b41;
}

.contact-form__status--error {
    background: rgba(168, 64, 64, 0.12);
    color: #7b1f1f;
}

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

.form-field {
    display: grid;
    gap: 0.45rem;
}

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

.form-field label {
    font-weight: 700;
    color: var(--navy);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(20, 50, 74, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
}

.form-note {
    margin-top: 1rem;
    color: rgba(24, 35, 45, 0.72);
    font-size: 0.95rem;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(20, 50, 74, 0.98), rgba(31, 107, 120, 0.9));
    color: var(--white);
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 1.5rem 0 2.5rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 50, 74, 0.12);
    color: rgba(24, 35, 45, 0.74);
}

.content-shell {
    padding: 4rem 0;
}

.content-main {
    min-width: 0;
}

.content-main article {
    background: rgba(255, 253, 249, 0.85);
    border: 1px solid rgba(20, 50, 74, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
}

.content-main h1 {
    margin-top: 0;
}

.content-sidebar {
    display: grid;
    gap: 1rem;
}

.post-card h3,
.post-card h2 {
    margin-top: 0;
}

.post-card p {
    color: rgba(24, 35, 45, 0.8);
}

.post-meta {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(20, 50, 74, 0.08);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card__link {
    display: inline-flex;
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--navy);
}

@media (max-width: 980px) {
    .hero__grid,
    .feature-grid,
    .content-shell,
    .contact-grid,
    .cards,
    .reviews,
    .faq-grid,
    .process-grid,
    .home-nav-grid {
        grid-template-columns: 1fr;
    }

    .site-header__inner,
    .cta-panel,
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 2.5rem;
    }

    .hero__stats,
    .form-grid,
    .hero-panel__grid {
        grid-template-columns: 1fr;
    }

    .button,
    .home-nav-link {
        width: 100%;
    }
}
