/*
Theme Name: SAQ Communication
Description: Editable block theme for the SAQ Communication home, shop, and contact pages.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saq-communication
*/

:root {
	--saq-red: #f90025;
	--saq-ink: #191923;
	--saq-muted: #585b60;
	--saq-gutter: clamp(18px, 2vw, 34px);
}

* { box-sizing: border-box; }
.wp-site-blocks { padding: 0; }
.saq-wrap { width: min(calc(100% - 2 * var(--saq-gutter)), 1240px); margin-inline: auto; }
.wp-block-image { margin: 0; }
.saq-bar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	padding: 18px var(--saq-gutter) 22px;
	background: #0c0c10;
}
.saq-bar img { width: 112px; height: auto; display: block; }
.saq-bar .wp-block-buttons { gap: clamp(10px, 4vw, 48px); margin-right: clamp(0px, 3vw, 36px); }
.saq-bar .wp-block-button__link, .saq-form button {
	background: var(--saq-red);
	color: white;
	border: 0;
	border-radius: 4px;
	padding: 15px clamp(13px, 3vw, 36px);
	font: inherit;
	text-transform: uppercase;
	cursor: pointer;
}
.saq-bar .wp-block-button__link { box-shadow: 0 0 15px #4aa4c598; }
.saq-bar .wp-block-button__link:hover, .saq-form button:hover { background: #c90020; }
:where(a, button, input, textarea):focus-visible { outline: 3px solid #247eb5; outline-offset: 4px; }
.saq-home-hero {
	background: linear-gradient(#0c0c10 0%, var(--saq-ink) 16%, var(--saq-ink) 90%, #19192333 100%), url("assets/warehouse.webp") center bottom / cover;
	color: white;
	font-family: Georgia, serif;
	padding: 75px 0 55px;
}
.saq-home-hero h1 { max-width: 700px; font-size: clamp(40px, 5vw, 64px); line-height: 1.18; margin: 0 0 40px; }
.saq-home-hero p { max-width: 575px; font-size: 18px; line-height: 1.8; }
.saq-promises { display: flex; flex-wrap: wrap; gap: 28px; margin-top: clamp(50px, 9vw, 110px); }
.saq-promise { padding-left: 16px; border-left: 3px solid var(--saq-red); }
.saq-promise h3, .saq-promise p { margin: 0; }
.saq-promise h3 { text-transform: uppercase; font-size: 18px; }
.saq-promise p { font-weight: bold; font-size: 15px; }
.saq-benefits { padding: clamp(60px, 9vw, 120px) 0; background: linear-gradient(#e8edf3 55%, white 55%); }
.saq-benefits-layout { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: clamp(24px, 5vw, 70px); }
.saq-benefits-copy h2 { color: #d41336; font-size: 32px; margin: 0; }
.saq-benefits-grid, .saq-service-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 34px; }
.saq-feature img { width: 50px; height: 48px; object-fit: contain; }
.saq-feature h3 { margin: 5px 0; font-size: 24px; }
.saq-feature p, .saq-benefits-copy p, .saq-service p { color: var(--saq-muted); margin: 8px 0 0; }
.saq-brands, .saq-services, .saq-catalog { padding-block: clamp(35px, 6vw, 84px); }
.saq-gradient {
	text-align: center;
	font-size: clamp(31px, 4vw, 52px);
	line-height: 1.15;
	margin: 0 auto 28px;
	width: fit-content;
	color: #ad2445;
	background: linear-gradient(90deg,#d63036,#136ca8);
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.saq-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.saq-brand { box-shadow: 0 10px 34px #0005; }
.saq-brand figure { position: relative; }
.saq-brand figure::after { content: ""; position: absolute; inset: 72% 0 0; background: linear-gradient(transparent,#0008); pointer-events: none; }
.saq-brand img { display: block; width: 100%; aspect-ratio: 1 / 1.04; object-fit: contain; }
.saq-service { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(22px, 8vw, 110px); max-width: 1040px; margin: 0 auto; padding: clamp(25px, 5vw, 70px) 0; }
.saq-service h3 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.saq-service figure img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.saq-service-labels { margin-top: 30px; gap: clamp(9px, 2vw, 28px); }
.saq-service-labels p { background: #e2e2e2; color: #161616; text-align: center; padding: 22px 8px; margin: 0; text-transform: uppercase; font-weight: bold; }
.saq-shop-hero { background: #161616 url("assets/shop-background.webp") center / cover; color: white; }
.saq-shop-intro { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 35px; min-height: 510px; padding-block: 36px; }
.saq-shop-copy { max-width: 430px; }
.saq-shop-copy h1, .saq-contact-hero h1 { margin: 0 0 18px; font-size: clamp(39px, 5vw, 62px); line-height: 1.13; }
.saq-shop-intro img { display: block; max-height: 440px; object-fit: contain; margin-inline: auto; }
.saq-product { display: flex; flex-direction: column; align-items: center; padding: 14px 14px 20px; border: 1px solid #e9e9ee; text-align: center; }
.saq-product img { width: 100%; height: clamp(135px, 25vw, 305px); object-fit: contain; }
.saq-product h3 { font-size: clamp(16px, 2vw, 23px); margin: 13px 0; line-height: 1.2; }
.saq-product .wp-block-buttons { margin-top: auto; }
.saq-product .wp-block-button__link { border-radius: 3px; background: var(--saq-red); color: white; padding: 10px 18px; }
.saq-product .wp-block-button__link:hover { background: #c90020; }
.saq-contact-hero { text-align: center; background: linear-gradient(#0004,#0004),url("assets/warehouse.webp") center / cover; color: white; padding: clamp(70px,11vw,140px) 0 132px; }
.saq-contact-hero p { max-width: 670px; margin: 0 auto; }
.saq-contact-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 8vw, 110px); margin-top: -48px; margin-bottom: 70px; background: white; padding: clamp(24px, 6vw, 82px); box-shadow: 0 8px 28px #0001; }
.saq-contact-card h2 { margin: 0 0 20px; line-height: 1.2; }
.saq-contact-card h2::before { content: ""; display: inline-block; width: 10px; height: 10px; vertical-align: middle; background: #d83138; margin-right: 12px; }
.saq-form { display: grid; gap: 18px; }
.saq-form fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.saq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.saq-form :is(input:not([type=hidden]), textarea) { width: 100%; display: block; border: 1px solid #a3a5ad; border-radius: 3px; padding: 9px; font: inherit; }
.saq-form button { justify-self: start; text-transform: none; }
.saq-footer { background: #0c0c10; color: white; padding: 30px var(--saq-gutter); }
.saq-footer .wp-block-buttons { justify-content: center; }
.saq-footer .wp-block-button__link, .saq-contact-social .wp-block-button__link { background: transparent; color: inherit; text-decoration: underline; padding: 6px 10px; }
.saq-archive { padding-block: 50px; }
@media (max-width: 760px) {
	.saq-benefits-layout, .saq-service, .saq-shop-intro, .saq-contact-card { grid-template-columns: 1fr; }
	.saq-brand { box-shadow: 0 4px 15px #0003; }
	.saq-catalog .saq-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.saq-shop-intro { min-height: 0; }
	.saq-shop-intro img { max-height: 340px; }
	.saq-contact-card { gap: 45px; }
}
@media (max-width: 380px) {
	.saq-bar img { width: 78px; }
	.saq-bar .wp-block-button__link { padding: 10px; font-size: 13px; }
	.saq-benefits-grid { grid-template-columns: 1fr; }
}
