/*
Theme Name: Southpaw
Description: A custom theme for fightwear and sportswear manufacturers. Product catalog, custom-order quote form and contact details, built in.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: southpaw
*/

:root {
  --ink: #0f1b2d;
  --ink-2: #1a2a42;
  --tape: #f3f5f7;
  --white: #ffffff;
  --rope: #d1242f;
  --rope-dark: #a81b24;
  --steel: #8e9bab;
  --line: #d5dbe2;
  --text: #1c2736;
  --muted: #566475;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rope-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rope); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .01em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tape { background: var(--tape); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink a { color: var(--white); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--ink .section-head p { color: #c3ccd8; }

/* Signature: the seam. A running stitch used as a divider and as an inset border. */
.seam { height: 2px; border: 0; margin: 0; color: var(--rope);
  background-image: repeating-linear-gradient(90deg, currentColor 0 12px, transparent 12px 20px); }
.stitched { outline: 2px dashed var(--rope); outline-offset: -12px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 14px 30px; border: 2px solid var(--rope); background: var(--rope); color: var(--white); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--rope-dark); border-color: var(--rope-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { font-family: var(--display); font-weight: 900; font-size: 1.9rem; letter-spacing: .03em; text-transform: uppercase; color: var(--white); text-decoration: none; line-height: 1; }
.brand img { max-height: 44px; width: auto; }
.nav-toggle { display: none; background: none; border: 2px solid var(--white); color: var(--white); font: 700 .95rem var(--body); padding: 8px 14px; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 14px; display: block; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { border-bottom-color: var(--rope); }
.header-cta { padding: 10px 22px; font-size: 1.1rem; }

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 88px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-lead { font-size: 1.2rem; color: #c3ccd8; max-width: 52ch; }
.order-sheet { background: var(--tape); color: var(--ink); padding: 40px 36px; }
.order-sheet h2 { font-size: 1.9rem; margin-bottom: 20px; }
.order-sheet dl { margin: 0; }
.order-sheet div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.order-sheet dt { font-weight: 700; }
.order-sheet dd { margin: 0; }

/* Product lines */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line-card { display: flex; flex-direction: column; background: var(--white); padding: 36px 32px 32px; text-decoration: none; color: var(--text); min-height: 230px; border-top: 6px solid var(--ink); transition: border-color .15s, transform .15s; }
.line-card:hover { border-top-color: var(--rope); color: var(--text); }
.line-card h3 { color: var(--ink); margin-bottom: 12px; }
.line-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.line-card .count { font-weight: 600; font-size: .92rem; color: var(--rope-dark); }

/* Capabilities */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.caps { margin: 0; }
.caps div { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.18); }
.caps div:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.caps dt { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.caps dd { margin: 0; color: #c3ccd8; max-width: 56ch; }

/* Process: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; position: relative; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--rope); margin-bottom: 14px; }
.steps li::after { content: ""; position: absolute; top: 26px; left: 44px; right: 14px; height: 2px; color: var(--steel); background-image: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps p { font-size: .95rem; color: var(--muted); }

/* Products grid */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { text-decoration: none; color: var(--text); display: block; }
.product-card:hover h3 { color: var(--rope-dark); }
.product-card .thumb { aspect-ratio: 4 / 5; background: var(--tape); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb span { font-family: var(--display); font-weight: 900; font-size: 5rem; color: var(--steel); }
.product-card h3 { font-size: 1.45rem; margin-bottom: 4px; color: var(--ink); }
.product-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.empty-note { padding: 40px; background: var(--tape); max-width: 640px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters a { text-decoration: none; padding: 8px 18px; border: 2px solid var(--ink); color: var(--ink); font-weight: 600; font-size: .95rem; }
.filters a:hover, .filters a.is-active { background: var(--ink); color: var(--white); }

/* CTA band */
.cta-band { background: var(--rope); color: var(--white); padding: 72px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin: 0; max-width: 18ch; }

/* Page header (inner pages) */
.page-hero { background: var(--ink); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; }
.page-hero p { color: #c3ccd8; margin: 16px 0 0; font-size: 1.1rem; }
.content { padding: 72px 0; }
.content .wrap > * { max-width: 760px; }
.content .wrap > .products, .content .wrap > .filters, .content .wrap > .quote-layout, .content .wrap > .product-single { max-width: none; }
.content h2 { font-size: 2.2rem; margin-top: 1.4em; }

/* Single product */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-single .photo { background: var(--tape); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.product-single .photo img { width: 100%; height: 100%; object-fit: cover; }
.specs { margin: 28px 0; }
.specs div { display: grid; grid-template-columns: 150px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--line); background: var(--white); color: var(--text); border-radius: 0; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(209,36,47,.35); }
.field small { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 18px 22px; margin-bottom: 28px; border-left: 6px solid var(--ink); background: var(--tape); }
.notice--ok { border-left-color: #1f7a4a; }
.notice--error { border-left-color: var(--rope); }
.side-box { background: var(--tape); padding: 32px; }
.side-box h2 { font-size: 1.8rem; margin-top: 0; }
.side-box ul { padding-left: 20px; margin: 0 0 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list strong { display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #c3ccd8; padding: 72px 0 32px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin: 40px 0 48px; }
.site-footer h3 { color: var(--white); font-size: 1.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { font-size: .9rem; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }

.pagination { margin-top: 48px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); text-decoration: none; margin-right: 6px; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--ink); color: var(--white); }

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero .wrap, .split, .quote-layout, .product-single { grid-template-columns: 1fr; gap: 40px; }
  .lines { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 8px 24px 24px; border-top: 1px solid rgba(255,255,255,.15); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .lines, .products, .form-grid { grid-template-columns: 1fr; }
  .order-sheet div, .specs div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
