/*
Theme Name: HJJEANS B2B
Author: TTCH / Codex
Description: English-first B2B WordPress theme for HJJEANS denim wholesale catalogs and inquiry capture.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hjjeans-b2b
*/

:root {
    --ink: #0a1727;
    --denim: #174b82;
    --steel: #d8e3ee;
    --red: #b91f2d;
    --paper: #f7f8f6;
    --white: #ffffff;
    --muted: #647083;
    --line: rgba(10, 23, 39, .13);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(247, 248, 246, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.brand {
    font-weight: 900;
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 0;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.brand-logo img {
    width: clamp(154px, 18vw, 210px);
    height: auto;
    display: block;
}
.site-nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
    font-size: 14px;
}
.site-nav a {
    text-decoration: none;
    color: var(--muted);
}
.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    text-decoration: none;
    font-weight: 800;
}
.header-cta,
.button.primary {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.button.secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
}

.hero {
    min-height: 82vh;
    display: flex;
    align-items: end;
    background-position: center;
    background-size: cover;
    color: var(--white);
}
.hero-inner {
    width: min(980px, 100%);
    padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 70px) clamp(42px, 7vw, 80px);
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}
.hero .eyebrow { color: #ffccd0; }
.hero h1 {
    margin: 0;
    font-size: clamp(56px, 12vw, 132px);
    line-height: .9;
    letter-spacing: 0;
}
.hero p {
    max-width: 720px;
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.28;
}
.hero-actions,
.proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.proof-strip {
    margin-top: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.section {
    padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 58px);
}
.intro-grid,
.capability-band,
.inquiry-band {
    display: grid;
    grid-template-columns: minmax(260px, 480px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: start;
}
.section h2,
.page-content h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}
.section p,
.page-content p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--steel);
}
.product-card div {
    padding: 18px;
}
.product-card h2,
.product-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}
.product-card p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
}
.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.capability-band {
    background: var(--ink);
    color: var(--white);
}
.capability-band p,
.capability-band .eyebrow {
    color: #c7d5e8;
}
.capability-band ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.capability-band li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-weight: 800;
}

.inquiry-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.inquiry-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    font-size: 13px;
}
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 10px 12px;
    font: inherit;
}
.inquiry-form textarea,
.inquiry-form .wide,
.inquiry-form .full {
    grid-column: 1 / -1;
}
.inquiry-form button {
    justify-self: start;
    cursor: pointer;
}
.success-note {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #e7f5ed;
    border: 1px solid #a8dabb;
    color: #155d33;
}

.page-main {
    padding: clamp(42px, 8vw, 90px) clamp(18px, 4vw, 58px);
}
.page-content {
    width: min(980px, 100%);
}
.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding: 34px clamp(18px, 4vw, 58px);
    background: var(--white);
    border-top: 1px solid var(--line);
}
.site-footer p {
    margin: 6px 0;
    color: var(--muted);
}
.legal-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .site-header { align-items: flex-start; flex-wrap: wrap; }
    .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
    .intro-grid,
    .capability-band,
    .inquiry-band,
    .site-footer { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inquiry-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .product-grid { grid-template-columns: 1fr; }
    .header-cta { display: none; }
}


/* BKZ TTCH plugin compatibility */
.entry-content .product-grid,
.page-content .product-grid {
    width: min(1180px, 100%);
    margin-top: 30px;
}
.product-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.product-card b,
.product-card span,
.product-card em {
    display: inline-block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}
.product-card em {
    color: var(--red);
}
.inquiry-success,
.inquiry-form .form-note {
    grid-column: 1 / -1;
}
.inquiry-form .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--muted);
}
.inquiry-form .consent input {
    width: auto;
    min-height: 0;
    margin-top: 4px;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}
.button-primary {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.button-secondary {
    background: var(--white);
    color: var(--ink);
}
.inquiry-success {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #e7f5ed;
    border: 1px solid #a8dabb;
    color: #155d33;
}

/* UI review pass: product-card information hierarchy */
.product-card {
    box-shadow: 0 14px 34px rgba(10, 23, 39, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(23, 75, 130, .28);
    box-shadow: 0 20px 46px rgba(10, 23, 39, .12);
}
.product-card .product-body,
.product-card > a > div {
    display: grid;
    gap: 10px;
    padding: 20px;
}
.product-card .product-body > span,
.product-card > a > div > span {
    color: #4f6683;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}
.product-card .product-body h3,
.product-card > a > div h3,
.product-card > a > div h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.08;
}
.product-card .product-body p,
.product-card > a > div p {
    margin: 0;
    color: #52647c;
    font-size: 15px;
    line-height: 1.5;
}
.product-card dl {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
}
.product-card dl div {
    display: grid;
    grid-template-columns: minmax(74px, 92px) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}
.product-card dt,
.product-card dd {
    margin: 0;
}
.product-card dt {
    color: #6b778a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}
.product-card dd {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}
@media (max-width: 520px) {
    .product-card dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}


/* Product detail page fallback for index.php route */
.product-detail {
    width: min(1180px, 100%);
}
.product-back {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 900;
    text-decoration: none;
}
.product-detail__grid {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.product-detail__media {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(10, 23, 39, .08);
}
.product-detail__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.product-detail__sku {
    margin: 0 0 8px;
    color: #4f6683;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
}
.product-detail__body h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .96;
}
.product-detail__summary {
    max-width: 720px;
    margin: 0 0 26px;
    color: #52647c;
    font-size: 19px;
    line-height: 1.6;
}
.product-detail__specs {
    display: grid;
    gap: 0;
    margin: 0 0 28px;
    border-top: 1px solid var(--line);
}
.product-detail__specs div {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.product-detail__specs dt,
.product-detail__specs dd {
    margin: 0;
}
.product-detail__specs dt {
    color: #6b778a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.product-detail__specs dd {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.45;
}
.product-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 800px) {
    .product-detail__grid,
    .product-detail__specs div {
        grid-template-columns: 1fr;
    }
    .product-detail__specs div {
        gap: 5px;
    }
}
