/*
Theme Name: Astra JOMAC
Theme URI: http://localhost/jomac/wordpress/
Description: Child theme of Astra for JOMAC FABRICATION. Styling only: teal accent, near-black header and footer, Barlow type.
Author: JOMAC FABRICATION
Template: astra
Version: 0.1.0
Text Domain: astra-jomac
*/

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
	--jm-teal: #2bbfab;
	--jm-teal-dark: #0f7f70;
	--jm-black: #0b0d0e;
	--jm-soft: #f3f6f6;
	--jm-line: #dfe6e6;
	--jm-muted: #5b6a6a;
	--jm-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--jm-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- base type ---------- */
body,
button,
input,
select,
textarea {
	font-family: var(--jm-body);
	color: var(--jm-black);
}
body { background: #fff; font-size: 16.5px; line-height: 1.5; }
h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.product_title,
.ast-woo-product-category {
	font-family: var(--jm-display);
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.02;
	color: var(--jm-black);
}
a { color: var(--jm-teal-dark); }
a:hover { color: var(--jm-black); }
:focus-visible { outline: 2px solid var(--jm-teal); outline-offset: 3px; }

/* ---------- announcement bar + header ---------- */
.jm-ann {
	background: var(--jm-teal);
	color: #04201b;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .03em;
	padding: 8px 16px;
}
@media (max-width: 640px) { .jm-ann-sep, .jm-ann-tag { display: none; } }
.site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .main-header-bar,
.site-header .ast-primary-header-bar,
.site-header .ast-main-header-wrap,
.ast-header-break-point .main-header-bar {
	background: var(--jm-black);
	border: 0;
}
.site-header .custom-logo-link img { width: 150px; height: auto; }
.site-header .main-header-menu > .menu-item > a,
.site-header .ast-builder-menu .menu-link {
	color: #d7e2e1;
	font-weight: 500;
	font-size: 15px;
}
.site-header .main-header-menu > .menu-item:hover > a,
.site-header .main-header-menu > .current-menu-item > a {
	color: #fff;
	box-shadow: inset 0 -2px 0 var(--jm-teal);
}
.site-header .ast-site-header-cart a,
.site-header .ast-site-header-cart .ast-cart-menu-wrap,
.site-header .ast-menu-toggle,
.site-header .menu-toggle .ast-mobile-svg { color: #fff; fill: #fff; }
.site-header .ast-cart-menu-wrap .count { color: #fff; }
.ast-header-break-point .ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--jm-black); }
.ast-mobile-popup-drawer .menu-link { color: #d7e2e1; }

/* ---------- buttons ---------- */
.wp-block-button__link,
.button,
button.button,
input[type="submit"],
.ast-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--jm-black);
	color: #fff;
	border: 2px solid var(--jm-black);
	border-radius: 2px;
	padding: 13px 26px;
	font-weight: 600;
	letter-spacing: .03em;
	transition: background .15s, border-color .15s, color .15s;
}
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--jm-teal-dark);
	border-color: var(--jm-teal-dark);
	color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--jm-black);
	border: 2px solid var(--jm-black);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--jm-black);
	color: #fff;
}

/* ---------- home page: layout helpers ---------- */
.jm-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; box-sizing: border-box; }
.jm-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jm-teal-dark); margin: 0 0 14px; }
.jm-sec { padding-top: 64px; }
.jm-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.jm-sec-head h2 { font-size: clamp(32px, 4.6vw, 48px); margin: 0; }
.jm-sec-head p { margin: 0; }
.jm-sec-head a { font-weight: 600; color: var(--jm-black); border-bottom: 2px solid var(--jm-teal); padding-bottom: 2px; }

/* hero */
.jm-hero { background: var(--jm-soft); }
.jm-hero .wp-block-columns { max-width: 1200px; margin: 0 auto; padding: 48px 16px; gap: 40px; align-items: center; box-sizing: border-box; }
.jm-hero h1 { font-size: clamp(46px, 7vw, 84px); font-weight: 700; margin: 0 0 18px; }
.jm-hero .jm-lede { font-size: 19px; color: var(--jm-muted); max-width: 46ch; margin: 0 0 26px; }
.jm-hero figure { margin: 0; }
.jm-hero img { width: 100%; aspect-ratio: 4 / 5; max-height: 620px; object-fit: cover; border-radius: 2px; }

/* trust strip under the hero */
.jm-trust { max-width: 1200px; margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; box-sizing: border-box; border-bottom: 1px solid var(--jm-line); }
.jm-trust p { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.jm-trust p::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--jm-teal); margin-right: 10px; vertical-align: middle; }
.jm-price-suffix { font-size: 14px; font-weight: 500; color: var(--jm-muted); }

/* collection tiles */
.jm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.jm-tile { position: relative; overflow: hidden; background: var(--jm-black); color: #fff; aspect-ratio: 4 / 3; border-radius: 2px; margin: 0; }
.jm-tile figure { position: absolute; inset: 0; margin: 0; }
.jm-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .35s, opacity .2s; }
.jm-tile:hover img { transform: scale(1.04); opacity: .95; }
.jm-tile .jm-tile-name { position: absolute; left: 16px; bottom: 14px; right: 16px; margin: 0; font-family: var(--jm-display); font-weight: 700; text-transform: uppercase; font-size: 28px; line-height: 1; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.jm-tile .jm-tile-name a { color: #fff; }
.jm-tile .jm-tile-name a::after { content: ""; position: absolute; inset: 0 0 0 0; }
.jm-tile.jm-plain { background: linear-gradient(135deg, #12373a, #0b0d0e 70%); }
.jm-tile.jm-plain::before { content: ""; position: absolute; right: -30px; top: -30px; width: 180px; height: 180px; border: 22px solid rgba(43, 191, 171, .35); border-radius: 50%; }

/* spotlight */
.jm-spot .wp-block-columns { gap: 48px; align-items: flex-start; }
.jm-spot-main figure { margin: 0; }
.jm-spot-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--jm-soft); }
.jm-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.jm-thumbs figure { margin: 0; }
.jm-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--jm-soft); }
.jm-spot h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 0 0 12px; }
.jm-price { font-weight: 700; font-size: 30px; margin: 0 0 4px; }
.jm-per { color: var(--jm-muted); margin: 0 0 20px; }
.jm-chips { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.jm-chips li { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.jm-chips li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--jm-teal); transform: translateY(-4px); }
.jm-note { font-size: 14px; color: var(--jm-muted); border-top: 1px solid var(--jm-line); padding-top: 14px; margin-top: 18px; }

/* feature strip */
.jm-strip { margin-top: 64px; background: var(--jm-soft); }
.jm-strip .wp-block-columns { max-width: 1200px; margin: 0 auto; padding: 34px 16px; gap: 24px; box-sizing: border-box; }
.jm-strip h3 { font-size: 24px; margin: 0 0 6px; }
.jm-strip p { margin: 0; color: var(--jm-muted); font-size: 15px; }

/* custom band */
.jm-custom { margin-top: 64px; background: var(--jm-black); color: #fff; }
.jm-custom .wp-block-columns { max-width: 1200px; margin: 0 auto; padding: 56px 16px; gap: 40px; align-items: center; box-sizing: border-box; }
.jm-custom h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 0 0 14px; }
.jm-custom p { color: #b8c7c6; max-width: 52ch; margin: 0 0 22px; }
.jm-custom ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jm-custom li { border: 1px solid #263133; padding: 14px 16px; border-radius: 2px; font-weight: 500; color: #fff; }
.jm-custom .wp-block-button__link { background: var(--jm-teal); border-color: var(--jm-teal); color: #04201b; }
.jm-custom .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--jm-black); }

/* page background stays white; Astra's palette would otherwise tint it */
body,
.ast-separate-container,
.ast-separate-container .site-content,
.ast-separate-container #primary,
.ast-page-builder-template .site-content,
.site-content { background-color: #fff; }
.jm-tile .jm-tile-name a { text-decoration: none; }
.jm-sec-head a { text-decoration: none; }
.jm-hero { background: var(--jm-soft); }
.jm-strip { background: var(--jm-soft); }

/* ---------- WooCommerce: shop grid ---------- */
.woocommerce ul.products,
.woocommerce-page ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { width: auto; float: none; margin: 0; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .button { margin-top: auto; }
@media (max-width: 900px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; } }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 24px; font-weight: 700; line-height: 1.05; padding: 10px 0 4px; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--jm-black); font-weight: 600; font-size: 18px; }
.woocommerce ul.products li.product a img { border-radius: 2px; background: var(--jm-soft); margin-bottom: 8px; }
.woocommerce ul.products li.product .button { width: 100%; text-align: center; padding-block: 11px; margin-top: 8px; }
.woocommerce span.onsale { background: var(--jm-black); color: #fff; border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.woocommerce .woocommerce-breadcrumb { color: var(--jm-muted); font-size: 14px; }
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select { font-size: 14.5px; }

/* single product */
.woocommerce div.product .product_title { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; margin-bottom: 12px; }
.woocommerce div.product p.price { font-size: 30px; font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--jm-black); }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: 2px; background: var(--jm-soft); }
.woocommerce div.product .flex-control-thumbs li { padding: 0 5px 10px; }
.woocommerce div.product form.cart .button { padding: 13px 28px; }
.woocommerce .quantity .qty { border: 2px solid var(--jm-line); border-radius: 2px; min-height: 48px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--jm-black); box-shadow: inset 0 -2px 0 var(--jm-teal); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--jm-line); }
.woocommerce div.product .woocommerce-tabs .panel ul { list-style: none; padding: 0; }
.woocommerce div.product .woocommerce-tabs .panel ul li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.woocommerce div.product .woocommerce-tabs .panel ul li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--jm-teal); transform: translateY(-4px); }

/* gallery video slide */
.jomac-video-slide { cursor: pointer; }
.jomac-video-slide video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #0b0d0e; border-radius: 2px; }

/* cart + checkout */
.woocommerce table.shop_table { border-color: var(--jm-line); border-radius: 2px; }
.woocommerce table.shop_table th { font-family: var(--jm-display); text-transform: uppercase; font-size: 18px; }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { font-size: 30px; }
.woocommerce a.button.alt.checkout-button,
.woocommerce #payment #place_order { background: var(--jm-teal-dark); border-color: var(--jm-teal-dark); color: #fff; }
.woocommerce a.button.alt.checkout-button:hover,
.woocommerce #payment #place_order:hover { background: var(--jm-black); border-color: var(--jm-black); }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--jm-teal); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--jm-teal-dark); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { border-radius: 2px; border-color: var(--jm-line); }

/* 3D roller viewer: below ~820px the viewer stacks its controls under the model, so it needs more height */
@media (max-width: 920px) {
	iframe[src*="jomac-3d/tubing-roller"] { height: calc(100vw + 740px) !important; }
}

/* contact form (Jetpack) */
.jomac-contact { max-width: 640px; }
.jomac-contact label { display: block; font-weight: 600; margin-bottom: 6px; }
.jomac-contact input[type="text"],
.jomac-contact input[type="email"],
.jomac-contact textarea { border: 1px solid var(--jm-line); border-radius: 2px; padding: 12px; width: 100%; }

/* ---------- footer ---------- */
.site-footer,
.site-footer .ast-builder-grid-row,
.site-footer .site-above-footer-wrap,
.site-footer .site-below-footer-wrap { background: var(--jm-black); color: #b8c7c6; }
.site-footer .site-above-footer-wrap { padding-block: 44px; border: 0; }
.site-footer .site-below-footer-wrap { border-top: 1px solid #1d2628; font-size: 13px; color: #7c8c8b; }
.site-footer .site-above-footer-wrap [class*="ast-builder-footer-grid-columns"] { text-align: left; justify-items: start; }
.site-footer .footer-widget-area,
.site-footer .ast-builder-layout-element { justify-content: flex-start; text-align: left; }
.site-footer .ast-builder-html-element,
.site-footer .ast-builder-html-element * { text-align: left; }
.site-footer .ast-builder-html-element ul { justify-items: start; }
.site-footer h4 { font-family: var(--jm-display); text-transform: uppercase; color: #fff; font-size: 20px; letter-spacing: .03em; margin: 0 0 10px; }
.site-footer p { margin: 0; font-size: 15px; max-width: 38ch; color: #b8c7c6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.site-footer a { color: #b8c7c6; }
.site-footer a:hover { color: var(--jm-teal); }
.site-footer img { width: 170px; height: auto; margin-bottom: 14px; }
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p { color: #7c8c8b; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.jm-hero .wp-block-columns { padding-block: 32px; gap: 28px; }
	.jm-hero img { aspect-ratio: 4 / 3; }
	.jm-tiles { grid-template-columns: 1fr 1fr; }
	.jm-spot .wp-block-columns { gap: 28px; }
}
@media (max-width: 781px) {
	.jm-strip .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; }
	.jm-strip .wp-block-column { flex-basis: auto !important; }
}
@media (max-width: 520px) {
	.jm-tiles { grid-template-columns: 1fr; }
	.jm-tile { aspect-ratio: 16 / 10; }
	.jm-thumbs { grid-template-columns: repeat(4, 1fr); }
	.jm-thumbs figure:nth-child(5) { display: none; }
	.jm-strip .wp-block-columns { grid-template-columns: 1fr; }
	.site-header .custom-logo-link img { width: 128px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
