/*
Theme Name: Astra Archer
Theme URI: https://archermeng.com/
Description: Archer Machinery Parts child theme for Astra. Dark navy + amber brand palette, language switcher and quote-driven WooCommerce styling for a Komatsu / Caterpillar / Shantui spare parts catalogue.
Author: Archer Web Team
Template: astra
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-archer
*/

/* ---------- Brand palette ---------- */
:root {
	--ast-global-color-0: #0a1d2d;
	--ast-global-color-1: #051a2a;
	--ast-global-color-2: #1b2f42;
	--ast-global-color-3: #4a5a6a;
	--ast-global-color-4: #ffffff;
	--ast-global-color-5: #f4f6f9;
	--ast-global-color-6: #e3e8ee;
	--ast-global-color-7: #ffb430;
	--ast-global-color-8: #00457a;

	--archer-navy: #0a1d2d;
	--archer-navy-dark: #051a2a;
	--archer-amber: #ffb430;
	--archer-amber-dark: #e59a10;
	--archer-blue: #00457a;
	--archer-ink: #0a1d2d;
	--archer-slate: #4a5a6a;
	--archer-line: #e3e8ee;
	--archer-bg-soft: #f4f6f9;
}

/* ---------- Typography ---------- */
body, .ast-separate-container, .entry-content, p, li {
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #33404d;
}
h1, h2, h3, h4, h5, .entry-title, .site-title {
	font-family: Oswald, "Arial Narrow", Impact, sans-serif;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--archer-navy);
}
h1 { font-size: 40px; line-height: 1.2; }
h2 { font-size: 30px; line-height: 1.25; }
h3 { font-size: 21px; }
a { color: var(--archer-blue); }
a:hover { color: var(--archer-amber-dark); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--archer-line); }
.ast-site-identity .site-logo-img img { max-height: 54px; width: auto; }
.site-header .ast-builder-menu .menu-item > .menu-link {
	font-family: Oswald, "Arial Narrow", sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--archer-navy);
}
.site-header .main-header-menu > .menu-item > .menu-link { padding-left: 15px; padding-right: 15px; }
.site-header .main-header-menu > .menu-item.current-menu-item > .menu-link,
.site-header .main-header-menu > .menu-item > .menu-link:hover { color: var(--archer-amber-dark); }
.site-header .ast-button, .site-header .main-header-menu .menu-item > .menu-link.ast-menu-btn { border-radius: 4px; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .ast-button, .button, input[type="submit"] {
	border-radius: 4px;
	font-family: Oswald, "Arial Narrow", sans-serif;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: 15px;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.wp-block-button__link, .ast-button, .button, input[type="submit"] {
	background-color: var(--archer-amber);
	color: var(--archer-navy);
	border: 1px solid var(--archer-amber);
}
.wp-block-button__link:hover, .ast-button:hover, .button:hover, input[type="submit"]:hover {
	background-color: var(--archer-amber-dark);
	border-color: var(--archer-amber-dark);
	color: var(--archer-navy);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(10,29,45,.18);
}
.wp-block-button.is-style-archer-outline .wp-block-button__link {
	background: transparent; color: var(--archer-navy); border: 2px solid var(--archer-navy);
}
.wp-block-button.is-style-archer-outline .wp-block-button__link:hover { background: var(--archer-navy); color: #fff; }
.wp-block-button.is-style-archer-ghost .wp-block-button__link {
	background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65);
}
.wp-block-button.is-style-archer-ghost .wp-block-button__link:hover { background: #fff; color: var(--archer-navy); }
.wp-block-button.is-style-archer-link .wp-block-button__link {
	background: transparent; color: var(--archer-amber); border: 0; padding-left: 0; padding-right: 0;
}
.wp-block-button.is-style-archer-link .wp-block-button__link:hover { color: #fff; box-shadow: none; transform: none; }

/* ---------- Sections & blocks ---------- */
.archer-hero {
	background: linear-gradient(120deg, var(--archer-navy-dark) 0%, var(--archer-navy) 48%, var(--archer-blue) 100%);
	color: #fff;
}
.archer-hero h1, .archer-hero h2, .archer-hero h3, .archer-hero p, .archer-hero li { color: #fff; }
.archer-hero .archer-eyebrow {
	font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .18em;
	font-size: 13px; color: var(--archer-amber); margin-bottom: 14px;
}
.archer-section-dark { background: var(--archer-navy); color: #fff; }
.archer-section-dark h1, .archer-section-dark h2, .archer-section-dark h3 { color: #fff; }
.archer-section-soft { background: var(--archer-bg-soft); }
.archer-section-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.archer-section-head h2 { margin-bottom: 10px; }
.archer-section-head p { color: var(--archer-slate); margin: 0; }
.archer-rule { width: 60px; height: 4px; background: var(--archer-amber); margin: 0 auto 18px; }
.archer-rule-left { margin-left: 0; }

.wp-block-columns.archer-cards .wp-block-column {
	background: #fff; border: 1px solid var(--archer-line); border-radius: 8px;
	padding: 28px 26px; box-shadow: 0 1px 2px rgba(10,29,45,.05);
}
.wp-block-columns.archer-cards h3 { margin-top: 0; margin-bottom: 10px; }

.archer-stat { text-align: center; }
.archer-stat .archer-stat__num {
	display: block; font-family: Oswald, sans-serif; font-size: 42px; font-weight: 600;
	color: var(--archer-amber); line-height: 1.1;
}
.archer-stat .archer-stat__label { display: block; font-size: 14px; color: #cbd5e1; margin-top: 6px; }
.archer-stat--light .archer-stat__num { color: var(--archer-navy); }
.archer-stat--light .archer-stat__label { color: var(--archer-slate); }

.archer-cat-card {
	background: #fff; border: 1px solid var(--archer-line); border-radius: 8px; overflow: hidden;
	text-align: center; transition: box-shadow .18s ease, transform .18s ease;
}
.archer-cat-card:hover { box-shadow: 0 14px 30px rgba(10,29,45,.12); transform: translateY(-3px); }
.archer-cat-card .archer-cat-card__body { padding: 20px 18px 24px; }
.archer-cat-card h3 { margin: 0 0 8px; font-size: 19px; }
.archer-cat-card ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.archer-cat-card ul li { border-top: 1px solid var(--archer-line); padding: 7px 0; }
.archer-cat-card ul li a { color: var(--archer-slate); }
.archer-cat-card ul li a:hover { color: var(--archer-amber-dark); }

.archer-cta {
	background: linear-gradient(120deg, var(--archer-navy) 0%, var(--archer-blue) 100%);
	color: #fff; border-radius: 10px;
}
.archer-cta h2, .archer-cta h3, .archer-cta p { color: #fff; }

.archer-contact-card { background: #fff; border: 1px solid var(--archer-line); border-radius: 8px; padding: 24px; }
.archer-contact-card h3 { margin-top: 0; }
.archer-contact-list { list-style: none; margin: 0; padding: 0; }
.archer-contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--archer-line); font-size: 15px; }
.archer-contact-list li:last-child { border-bottom: 0; }
.archer-contact-list .archer-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--archer-slate); }
.archer-qr { display: flex; gap: 26px; flex-wrap: wrap; }
.archer-qr figure { margin: 0; text-align: center; }
.archer-qr img { width: 148px; height: 148px; border: 1px solid var(--archer-line); border-radius: 8px; background: #fff; padding: 6px; }
.archer-qr figcaption { font-size: 13px; color: var(--archer-slate); margin-top: 8px; }

.wp-block-details { border: 1px solid var(--archer-line); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.wp-block-details summary { font-family: Oswald, sans-serif; font-weight: 500; font-size: 17px; cursor: pointer; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
	border: 1px solid var(--archer-line); border-radius: 4px; padding: 11px 13px; background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--archer-amber); outline: none; box-shadow: 0 0 0 3px rgba(255,180,48,.22); }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product {
	border: 1px solid var(--archer-line); border-radius: 8px; padding: 0 0 18px; overflow: hidden;
	background: #fff; transition: box-shadow .18s ease, transform .18s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 14px 30px rgba(10,29,45,.12); transform: translateY(-3px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: Oswald, sans-serif; font-size: 16px; font-weight: 500; padding: 14px 16px 4px; min-height: 62px;
}
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--archer-navy); font-weight: 700; }
.archer-price-note {
	display: inline-block; font-family: Oswald, sans-serif; font-size: 13px; font-weight: 500;
	color: var(--archer-amber-dark); letter-spacing: .06em; text-transform: uppercase;
}
.woocommerce ul.products li.product .button { margin: 10px 16px 0; }
.woocommerce ul.products li.product .archer-sku {
	display: block; font-size: 12px; letter-spacing: .06em; color: var(--archer-slate); padding: 0 16px;
}
.archer-product-cats { font-size: 13px; color: var(--archer-slate); padding: 0 16px; }

/* ---------- Language switcher in menu ---------- */
.archer-lang > a {
	font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: .08em; font-size: 12px;
	text-transform: uppercase;
}
.archer-lang.is-current > a { color: var(--archer-amber-dark); }

/* ---------- Footer ---------- */
.site-footer, .ast-footer-copyright { font-size: 14px; }
.site-footer { background: var(--archer-navy-dark); color: #b9c4cf; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #d5dde5; }
.site-footer a:hover { color: var(--archer-amber); }

/* ---------- Responsive ---------- */
@media (max-width: 921px) {
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
	.archer-stat .archer-stat__num { font-size: 32px; }
}

/* ---------- Notices & enquiry form ---------- */
.archer-notice {
	border-radius: 6px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; border: 1px solid transparent;
}
.archer-notice--ok { background: #eaf7ee; border-color: #bfe3c8; color: #1c6b36; }
.archer-notice--error { background: #fdeceb; border-color: #f3c3c0; color: #a3201b; }

.archer-inquiry-form { background: #fff; border: 1px solid var(--archer-line); border-radius: 8px; padding: 26px 24px; }
.archer-inquiry-form .archer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.archer-inquiry-form .archer-field { margin: 0 0 16px; }
.archer-inquiry-form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--archer-slate); margin-bottom: 6px; }
.archer-inquiry-form label .req { color: #d63638; }
.archer-inquiry-form input[type="text"],
.archer-inquiry-form input[type="email"],
.archer-inquiry-form input[type="tel"],
.archer-inquiry-form textarea { width: 100%; box-sizing: border-box; }
.archer-inquiry-form textarea { resize: vertical; }
.archer-inquiry-form .archer-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.archer-inquiry-form button { margin-top: 4px; }

@media (max-width: 600px) {
	.archer-inquiry-form .archer-grid { grid-template-columns: 1fr; }
}
/* ---------- Utility bar ---------- */
.archer-utility { background: var(--archer-navy-dark); color: #b9c4cf; font-size: 13px; }
.archer-utility__inner {
	max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
}
.archer-utility__item { display: inline-flex; gap: 6px; align-items: center; }
.archer-utility__label { color: #8fa0b0; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.archer-utility a { color: #e8eef4; text-decoration: none; }
.archer-utility a:hover { color: var(--archer-amber); }
.archer-utility__hours { margin-left: auto; color: #8fa0b0; }

/* ---------- Header CTA menu item ---------- */
.site-header .main-header-menu > .menu-item.archer-cta-btn > .menu-link {
	background: var(--archer-amber); color: var(--archer-navy); border-radius: 4px;
	margin-left: 10px; padding: 9px 18px; font-weight: 600;
}
.site-header .main-header-menu > .menu-item.archer-cta-btn > .menu-link:hover {
	background: var(--archer-amber-dark); color: var(--archer-navy);
}

@media (max-width: 921px) {
	.archer-utility__inner { padding: 8px 16px; gap: 14px; }
	.archer-utility__hours { display: none; }
}
/* ---------- Text wordmark ---------- */
.ast-site-identity { padding-top: 14px; padding-bottom: 14px; }
.site-title a, .ast-site-identity .site-title a {
	font-family: Oswald, "Arial Narrow", sans-serif;
	font-weight: 600;
	font-size: 31px;
	line-height: 1;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--archer-navy);
	display: inline-block;
	padding-left: 16px;
	border-left: 6px solid var(--archer-amber);
}
.site-title a::after {
	content: "Machinery Parts";
	display: block;
	font-family: Lato, Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--archer-slate);
	margin-top: 4px;
}
.site-description { display: none; }
@media (max-width: 544px) {
	.site-title a, .ast-site-identity .site-title a { font-size: 24px; }
	.site-title a::after { font-size: 9px; letter-spacing: .22em; }
}
/* ---------- Brand category grid ---------- */
.archer-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.archer-cat-card__media { display: block; background: var(--archer-navy); }
.archer-cat-card__media img { display: block; width: 100%; height: auto; }
.archer-cat-card h3 a { color: var(--archer-navy); text-decoration: none; }
.archer-cat-card h3 a:hover { color: var(--archer-amber-dark); }
.archer-cat-card__all { font-family: Oswald, sans-serif; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 921px) { .archer-cat-grid { grid-template-columns: 1fr; } }