/* ==========================================================================
   Tradecraft Elementor — base theme styles
   ========================================================================== */

/* Self-hosted fonts (drop files into assets/fonts/ — see README). Falls back
   to system fonts until present. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
	--tc-ink: #1B2229;
	--tc-slate: #2C3742;
	--tc-paper: #EFF1F2;
	--tc-copper: #B15A34;
	--tc-copper-deep: #8F4526;
	--tc-blueprint: #22617D;
	--tc-line: #D3D8DB;
	--tc-muted: #5C6771;
	--tc-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--tc-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tc-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--tc-wrap: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--tc-body); color: var(--tc-ink); line-height: 1.6; background: #fff; }
h1,h2,h3,h4 { font-family: var(--tc-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
a { color: var(--tc-blueprint); text-decoration: underline; }
a:hover { color: var(--tc-copper); }
img { max-width: 100%; height: auto; }

.tc-container { max-width: var(--tc-wrap); margin: 0 auto; padding-left: clamp(1rem,4vw,2rem); padding-right: clamp(1rem,4vw,2rem); }
.tc-main { padding-top: clamp(2.5rem,6vw,4rem); padding-bottom: clamp(3rem,8vw,6rem); }
.tc-content > * + * { margin-top: 1.2rem; }

.tc-spec-label { font-family: var(--tc-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-copper); display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .6rem; }
.tc-spec-label::before { content: ""; width: 1.6em; height: 2px; background: var(--tc-copper); }

/* Buttons */
.tc-btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--tc-mono); font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: .85em 1.5em; border-radius: 4px; cursor: pointer; transition: all .15s ease; }
.tc-btn--primary { background: var(--tc-copper); color: #fff; border: none; }
.tc-btn--primary:hover { background: var(--tc-copper-deep); color: #fff; }

/* --- Skip link --- */
.tc-skip-link { position: absolute; left: -9999px; }
.tc-skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100000; background: var(--tc-ink); color: #fff; padding: .7rem 1rem; font-family: var(--tc-mono); }

/* ==========================================================================
   Header
   ========================================================================== */
.tc-topbar { background: var(--tc-ink); color: var(--tc-paper); font-family: var(--tc-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.tc-topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; flex-wrap: wrap; gap: .5rem; }
.tc-topbar a { color: var(--tc-paper); text-decoration: none; }

.tc-header__bar { background: #fff; border-bottom: 1px solid var(--tc-line); position: sticky; top: 0; z-index: 999; }
.tc-header__inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }

.tc-logo__lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.tc-logo__mark { display: block; }
.tc-logo__text { font-family: var(--tc-display); font-weight: 700; font-size: 1.35rem; font-stretch: 112%; letter-spacing: -.01em; color: var(--tc-ink); }
.tc-logo__text--lg { font-size: 1.7rem; }
.custom-logo-link { display: inline-flex; }

.tc-nav { display: flex; align-items: center; gap: 1.6rem; }
.tc-menu { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; }
.tc-menu a { font-family: var(--tc-body); font-weight: 500; font-size: .95rem; color: var(--tc-ink); text-decoration: none; }
.tc-menu a:hover { color: var(--tc-copper); }
.tc-menu .current-menu-item > a { color: var(--tc-copper); }

.tc-nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--tc-line); background: #fff; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center; }
.tc-nav-toggle span { width: 20px; height: 2px; background: var(--tc-ink); display: block; }

@media (max-width: 900px) {
	.tc-nav-toggle { display: flex; }
	.tc-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff; flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem; gap: 1.2rem; transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 60px rgba(0,0,0,.15); z-index: 1000; }
	.tc-nav.is-open { transform: translateX(0); }
	.tc-menu { flex-direction: column; align-items: flex-start; gap: 1rem; }
	.tc-header__cta { margin-top: .5rem; }
}

/* ==========================================================================
   Page head + blog
   ========================================================================== */
.tc-page-head { background: var(--tc-paper); padding: clamp(2.5rem,6vw,4.5rem) 0 clamp(1.5rem,3vw,2.5rem); }
.tc-page-title { font-size: clamp(2rem,4vw,3rem); margin: .2rem 0 0; }
.tc-post-meta { font-family: var(--tc-mono); font-size: .8rem; color: var(--tc-muted); }

.tc-posts { display: grid; gap: clamp(2rem,4vw,3rem); }
.tc-posts--grid { grid-template-columns: repeat(3,1fr); }
@media (max-width:1024px){ .tc-posts--grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .tc-posts--grid{ grid-template-columns:1fr;} }
.tc-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.tc-card__title { font-size: 1.4rem; margin: .5rem 0; }
.tc-card__title a { color: var(--tc-ink); text-decoration: none; }
.tc-card__meta { font-family: var(--tc-mono); font-size: .72rem; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .06em; }
.tc-post-hero img { width: 100%; border-radius: 6px; margin-bottom: 1.5rem; }

.pagination, .navigation.pagination { margin-top: 3rem; font-family: var(--tc-mono); }
.pagination .page-numbers { padding: .4em .8em; border: 1px solid var(--tc-line); margin-right: .3rem; text-decoration: none; border-radius: 3px; color: var(--tc-ink); }
.pagination .current { background: var(--tc-copper); color: #fff; border-color: var(--tc-copper); }

/* ==========================================================================
   Footer
   ========================================================================== */
.tc-footer { background: var(--tc-ink); color: var(--tc-paper); }
.tc-footer a { color: var(--tc-paper); }
.tc-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: clamp(3rem,6vw,5rem) 0 2.5rem; }
@media (max-width:800px){ .tc-footer__top{ grid-template-columns:1fr; gap:2rem;} }
.tc-footer__desc { color: #B9C1C8; font-size: .9rem; max-width: 42ch; }
.tc-footer__phone { font-family: var(--tc-mono); font-size: 1.3rem; }
.tc-footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tc-footer__menu a { text-decoration: none; font-size: .95rem; }
.tc-footer__bottom { border-top: 1px solid #3A454F; font-family: var(--tc-mono); font-size: .72rem; color: #8A939B; }
.tc-footer__bottom .tc-container { display: flex; justify-content: space-between; padding-top: 1.4rem; padding-bottom: 1.4rem; flex-wrap: wrap; gap: .5rem; }

/* ==========================================================================
   WooCommerce (light touches; theme provides container)
   ========================================================================== */
.tc-woo .woocommerce-result-count, .tc-woo .woocommerce-ordering { font-family: var(--tc-mono); font-size: .85rem; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--tc-ink); font-family: var(--tc-mono); }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce a.button.alt {
	background: var(--tc-copper); color: #fff; font-family: var(--tc-mono); text-transform: uppercase; letter-spacing: .05em; border-radius: 3px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover { background: var(--tc-copper-deep); }
.woocommerce span.onsale { background: var(--tc-copper); border-radius: 2px; }

/* Focus + reduced motion */
:where(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--tc-copper); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms!important; transition-duration:.001ms!important; } }
