/*
Theme Name: Bestsky Tires Export
Theme URI: https://example.com/
Author: Bestsky Autos
Description: B2B tire export theme — product catalog (PCR, TBR, OTR), spec tables, request-a-quote form, WhatsApp contact. Edit company details under Appearance → Customize → Company Details.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bestsky-tires
*/

:root {
	--ink: #16181b;
	--ink-2: #24282d;
	--steel: #5b636d;
	--line: #e3e5e8;
	--paper: #f6f6f4;
	--white: #ffffff;
	--accent: #f2b705;
	--accent-ink: #1a1400;
	--ok: #1f7a4d;
	--radius: 6px;
	--wrap: 1180px;
	--font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: .01em;
	margin: 0 0 .5em;
	text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #e9eaec; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--steel);
	margin-bottom: 10px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--steel); font-size: 1.08rem; }
.section--dark .section-head p { color: #aab0b7; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 24px;
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 700; font-size: 1.05rem;
	letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; border: 2px solid transparent;
	cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffc81f; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--wa { background: #25d366; color: #06301a; }

/* Top bar + header */
.topbar { background: var(--ink); color: #b9bec4; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.brand-name small { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--steel); font-weight: 600; margin-top: 3px; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a {
	display: block; padding: 10px 14px;
	font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
	letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
	border-radius: var(--radius);
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--paper); }
.main-nav .nav-cta > a { background: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
}

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background: var(--ink); color: #fff;
	padding: 110px 0 120px;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: url("assets/tread.svg");
	background-size: 140px; opacity: .07;
}
.hero::after {
	content: ""; position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
	width: 620px; height: 620px; border-radius: 50%;
	background: radial-gradient(circle, transparent 38%, #2b3036 39%, #2b3036 62%, transparent 63%);
	opacity: .9;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: #c7ccd2; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.has-image::after { display: none; }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { background: linear-gradient(90deg, rgba(22,24,27,.92) 0%, rgba(22,24,27,.6) 100%); opacity: 1; }

/* Stats strip */
.stats { background: var(--accent); color: var(--accent-ink); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; border-right: 1px solid rgba(0,0,0,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.stat span { font-size: .9rem; font-weight: 500; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } }

/* Category cards */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	padding: 30px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { border-color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.cat-card .cat-code {
	font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1;
	color: var(--accent); -webkit-text-stroke: 1px var(--ink); margin-bottom: 14px;
}
.cat-card p { color: var(--steel); flex: 1; }
.cat-card .more { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.feature { border-top: 3px solid var(--accent); padding-top: 18px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: #aab0b7; margin: 0; }
.section:not(.section--dark) .feature p { color: var(--steel); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--accent); -webkit-text-stroke: 1px var(--ink); }
.step h4 { font-size: 1.15rem; margin: 6px 0; }
.step p { font-size: .92rem; color: var(--steel); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Product grid */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters a {
	padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
	text-decoration: none; font-weight: 600; font-size: .92rem; background: #fff;
}
.filters a.is-active, .filters a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 4/3; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb svg { width: 58%; height: auto; }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.product-card h3 { font-size: 1.35rem; margin: 4px 0 10px; }
.product-card h3 a { text-decoration: none; }
.product-card .sizes { font-size: .9rem; color: var(--steel); margin-bottom: 16px; flex: 1; }
.product-card .actions { display: flex; gap: 8px; }
.product-card .btn { padding: 10px 14px; font-size: .9rem; }

/* Single product */
.product-single { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.product-single .gallery { background: var(--paper); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.product-single .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-single .gallery svg { width: 60%; }
@media (max-width: 900px) { .product-single { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; background: var(--paper); font-weight: 600; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th { background: var(--ink); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.size-table th, .size-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.size-table tr:nth-child(even) td { background: var(--paper); }
.table-scroll { overflow-x: auto; }

/* Page header */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: url("assets/tread.svg"); background-size: 120px; opacity: .06; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.page-hero p { color: #b9bec4; margin: 10px 0 0; max-width: 640px; }
.crumbs { font-size: .85rem; color: #8f969e; margin-bottom: 8px; }
.crumbs a { text-decoration: none; }

.entry-content { max-width: 780px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content ul { padding-left: 1.2em; }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .quote-form { padding: 22px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: inherit;
	border: 1px solid #cfd3d8; border-radius: var(--radius); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { font-weight: 500; display: flex; gap: 8px; align-items: center; margin: 0; }
.field .checks input { width: auto; padding: 0; margin: 0; accent-color: var(--ink); }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.notice--ok { background: #e5f4ec; color: var(--ok); border: 1px solid #b8dfca; }
.notice--err { background: #fbeaea; color: #a12a2a; border: 1px solid #efc2c2; }

.contact-card { background: var(--ink); color: #dfe2e5; border-radius: 10px; padding: 30px; }
.contact-card h3 { color: #fff; }
.contact-card dl { margin: 0 0 22px; }
.contact-card dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 14px; }
.contact-card dd { margin: 2px 0 0; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: #fff; text-decoration: underline; }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: 10px; margin-top: 30px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; font-weight: 500; }

/* Footer */
.site-footer { background: #0f1113; color: #9aa1a9; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.1rem; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #23272b; margin-top: 48px; padding: 20px 0; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp float */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; display: grid; place-items: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Pagination */
.pagination { margin-top: 40px; display: flex; gap: 6px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.alignwide { max-width: var(--wrap); }
.wp-block-image img { border-radius: 8px; }
@media (max-width: 600px) {
	.topbar .wrap { justify-content: center; gap: 16px; font-size: .8rem; }
	.topbar a:first-child { display: none; }
}

.filters + .filters { margin-top: -16px; }
.filters .filters-label { align-self: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-right: 4px; }
