/*
Theme Name: CYA Protect
Theme URI: https://cyaprotect.com
Author: CYA Protect
Description: Single-page WooCommerce storefront for CYA Protect pack cases. Home page lists your case packs with add-to-cart, plus testimonials, video and a wholesale inquiry form, all editable under Appearance > Customize > CYA Home Page.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.0
License: GPL-2.0-or-later
Text Domain: cya-protect
*/

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Permanent Marker";
	src: url("assets/fonts/permanent-marker.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--black: #070707;
	--ink: #0e0e0e;
	--ink-2: #161616;
	--ink-3: #222;
	--line: #2e2e2e;
	--white: #ffffff;
	--chalk: #e9e9e6;
	--muted: #a2a29d;
	--red: #e3121b;
	--red-dark: #b00d14;
	--radius: 6px;
	--wrap: 1180px;
	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--brush: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
	--body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--grit: url("assets/img/grit.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--black);
	color: var(--chalk);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
::selection { background: var(--red); color: #fff; }

/* Grit overlay helper */
.gritty { position: relative; isolation: isolate; }
.gritty::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: var(--grit); background-size: 400px; opacity: .09; mix-blend-mode: screen;
}

/* Type */
h1, h2, h3, .eyebrow, .btn, .site-nav a, .pack-count, .pack-unit, .big-number, .stamp {
	font-family: var(--display);
	font-variation-settings: "wdth" 125;
}
h1, h2, h3 { color: var(--white); line-height: 1.02; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h3 { font-size: 1rem; font-weight: 800; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .76rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
	color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); transform: skewX(-30deg); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.marker { font-family: var(--brush); color: var(--red); text-transform: uppercase; line-height: 1.05; }
.red { color: var(--red); }

/* Brush heading: "Cover your ASSETS" */
.brush-title {
	font-family: var(--brush); font-weight: 400; text-transform: uppercase;
	font-size: clamp(3.2rem, 10vw, 7.4rem); line-height: .92; letter-spacing: -.01em;
	color: var(--white); margin: 0 0 .25em; transform: rotate(-3deg); transform-origin: left center;
	text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.brush-title .hot { display: inline-block; position: relative; color: var(--red); font-size: 1.12em; }
.brush-title .hot::after {
	content: ""; position: absolute; left: -4%; right: -6%; bottom: -.08em; height: .14em;
	background: var(--red); border-radius: 50% 10% 40% 10%; transform: rotate(-2deg);
	clip-path: polygon(0 40%, 100% 0, 98% 100%, 3% 80%);
}
.brush-title sup { font-family: var(--display); font-size: .14em; vertical-align: top; color: var(--white); margin-left: .2em; }

/* Buttons */
.btn, .button, button.button, a.button, .add_to_cart_button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px;
	border: 2px solid var(--red); border-radius: 0;
	background: var(--red); color: #fff;
	font-family: var(--display); font-variation-settings: "wdth" 125;
	font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	transform: skewX(-12deg);
	cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover, .button:hover, .add_to_cart_button:hover { background: #fff; border-color: #fff; color: var(--black); }
.btn:active, .button:active { transform: skewX(-12deg) translateY(1px); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--black); }
.button.loading { opacity: .6; pointer-events: none; }
.button.added::after { content: " ✓"; }
a.added_to_cart { display: block; margin-top: 10px; font-size: .82rem; font-weight: 700; text-align: center; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7,7,7,.92); backdrop-filter: blur(8px);
	border-bottom: 2px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: #fff; }
.site-nav a:hover { color: var(--red); }
.nav-link { display: none; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cya-cart-count {
	display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
	background: var(--red); color: #fff; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
	font-family: var(--body); font-size: .74rem; font-weight: 800; letter-spacing: 0;
}
@media (min-width: 760px) { .nav-link { display: inline; } }

/* Corner slashes like the poster */
.slash { position: absolute; pointer-events: none; background: var(--red); z-index: 0; }
.slash--tl { top: 0; left: 0; width: 120px; height: 120px; clip-path: polygon(0 0, 100% 0, 0 100%); opacity: .9; }
.slash--tl::after { content: ""; position: absolute; inset: 0; background: var(--black); clip-path: polygon(0 0, 78% 0, 0 78%); }
.slash--br { right: 0; bottom: 0; width: 200px; height: 200px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(ellipse 60% 55% at 50% 30%, rgba(255,255,255,.16), transparent 70%),
		linear-gradient(180deg, #1a1a1a 0%, var(--black) 85%);
	border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; gap: 44px; padding-top: 64px; padding-bottom: 80px; align-items: center; z-index: 1; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-side {
	font-family: var(--brush); color: var(--red); text-transform: uppercase;
	font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.05; transform: rotate(-8deg);
	display: inline-block; margin: 0 0 30px 6px;
}
.hero-side span { display: block; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-tags li {
	font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800;
	font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #fff;
	border: 1px solid #444; padding: 7px 12px;
}
.hero-media { position: relative; display: grid; place-items: center; padding: 70px 0 30px; }
.hero-photo {
	position: relative; width: min(380px, 78%); transform: rotate(3deg);
	border: 3px solid #fff; box-shadow: 14px 14px 0 var(--red), 0 40px 80px rgba(0,0,0,.6);
}
.hero-photo img { width: 100%; filter: contrast(1.08) grayscale(.2); }
.hero-photo::before, .hero-photo::after {
	content: ""; position: absolute; width: 90px; height: 26px; background: rgba(227,18,27,.9); z-index: 2;
}
.hero-photo::before { top: -12px; left: -26px; transform: rotate(-32deg); }
.hero-photo::after { bottom: -12px; right: -26px; transform: rotate(-32deg); }
.stamp {
	position: absolute; left: 0; bottom: 8%; z-index: 3;
	background: var(--white); color: var(--black);
	font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25;
	padding: 12px 16px; transform: rotate(-6deg); border-left: 6px solid var(--red);
}
.hero-callout {
	position: absolute; right: -4px; top: -26px; z-index: 3; text-align: right;
	font-family: var(--brush); text-transform: uppercase; color: #fff; font-size: 1.15rem; line-height: 1.05; transform: rotate(-8deg);
}
.hero-callout::after { content: ""; display: block; height: 4px; width: 70%; margin: 6px 0 0 auto; background: var(--red); transform: skewX(-30deg); }
@media (min-width: 900px) {
	.hero .wrap { grid-template-columns: 1.15fr .85fr; padding-top: 96px; padding-bottom: 110px; }
}

/* Threat strip: 4 red-ring icons */
.threats { background: var(--ink); border-bottom: 1px solid var(--line); }
.threats ul { list-style: none; margin: 0; padding: 40px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
.threats li { text-align: center; }
.ring {
	width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%;
	display: grid; place-items: center; background: var(--black); color: #fff;
	border: 3px solid var(--red); box-shadow: 0 0 0 4px var(--black), 0 0 0 5px #333;
}
.ring svg { width: 34px; height: 34px; }
.threats span {
	display: block; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900;
	font-size: .78rem; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; color: #fff;
}
@media (min-width: 760px) { .threats ul { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section { position: relative; padding: 84px 0; overflow: hidden; }
.section--ink { background: var(--ink); }
.section--light { background: var(--chalk); color: var(--black); }
.section--light h2, .section--light h3 { color: var(--black); }
.section--light .lede { color: #4a4a47; }
.section-head { margin-bottom: 44px; max-width: 48rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Why */
.why-grid { display: grid; gap: 44px; align-items: start; }
.why-quote {
	font-family: var(--brush); text-transform: uppercase; color: #fff;
	font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; margin: 0 0 26px; transform: rotate(-2deg);
}
.why-quote .red { display: inline-block; position: relative; }
.why-quote .red::after { content: ""; position: absolute; left: 0; right: -4%; bottom: -.1em; height: .12em; background: var(--red); transform: rotate(-1.5deg); clip-path: polygon(0 30%, 100% 0, 97% 100%, 2% 70%); }
.features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature {
	display: flex; gap: 18px; align-items: center; padding: 16px 18px;
	background: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid var(--red);
}
.feature .ring { width: 52px; height: 52px; margin: 0; flex: 0 0 52px; border-width: 2px; box-shadow: none; }
.feature .ring svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Products */
.products-grid { display: grid; gap: 22px 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.pack {
	position: relative; display: flex; flex-direction: column; text-align: center;
	background: linear-gradient(180deg, #1b1b1b, #0d0d0d);
	border: 1px solid #333; padding: 30px 20px 22px;
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
	transition: transform .2s, border-color .2s;
}
.pack::after { content: ""; position: absolute; top: 0; right: 0; width: 37px; height: 2px; background: var(--red); transform-origin: right top; transform: translateX(0) rotate(45deg) translate(-6px, -1px); }
.pack:hover { transform: translateY(-4px); border-color: #555; }
.pack--featured { background: linear-gradient(180deg, #2a0a0c, #0d0d0d); border-color: var(--red); padding-top: 42px; }
.pack-flag {
	position: absolute; top: 0; left: 0; right: 0;
	background: var(--red); color: #fff; text-align: center;
	font-family: var(--display); font-variation-settings: "wdth" 125;
	font-size: .62rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; padding: 5px 0;
}
.pack-img { display: grid; place-items: center; margin: 0 auto 16px; width: 110px; height: 120px; }
.pack-img img { max-height: 120px; width: auto; object-fit: contain; border: 2px solid #fff; transform: rotate(-3deg); }
.pack-count { font-size: 3.4rem; font-weight: 900; line-height: .95; color: #fff; }
.pack-unit { font-size: .74rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.pack-price { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.pack-price del { font-size: .9rem; color: var(--muted); font-weight: 500; margin-right: 6px; }
.pack-price ins { text-decoration: none; }
.pack-each { font-size: .82rem; color: var(--muted); margin-bottom: 18px; min-height: 1.4em; }
.pack-actions { margin-top: auto; display: grid; gap: 10px; }
.pack-actions .button { width: 100%; }
.pack-buy { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.pack-buy:hover { color: #fff; }
.pack .out-of-stock { color: var(--red); font-weight: 800; font-size: .85rem; text-transform: uppercase; }
.shop-note { margin-top: 30px; font-size: .9rem; color: var(--muted); text-align: center; }
.shop-note a { color: #fff; font-weight: 700; }
@media (max-width: 599px) {
	.pack { padding: 26px 10px 16px; }
	.pack-img { width: 76px; height: 86px; }
	.pack-img img { max-height: 86px; }
	.pack-count { font-size: 2.5rem; }
	.pack-price { font-size: 1.25rem; }
	.pack-actions .button { padding: 0 12px; font-size: .7rem; letter-spacing: .08em; min-height: 44px; }
}

/* Benefits bar */
.benefits { background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits ul { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefits li { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; line-height: 1.2; }
.benefits svg { width: 34px; height: 34px; flex: 0 0 34px; }
@media (min-width: 900px) {
	.benefits ul { grid-template-columns: repeat(4, 1fr); }
	.benefits li + li { border-left: 2px solid var(--red); padding-left: 24px; }
}

/* Video */
.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; border: 2px solid #fff; box-shadow: 12px 12px 0 var(--red); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonials */
.testimonials { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testimonial { margin: 0; padding: 30px 28px; background: var(--white); color: var(--black); position: relative; border-left: 6px solid var(--red); }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.55; font-weight: 500; }
.testimonial blockquote::before { content: "“"; display: block; font-family: var(--brush); font-size: 3.6rem; line-height: .6; color: var(--red); margin-bottom: 10px; }
.testimonial figcaption { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.testimonial figcaption span { display: block; font-family: var(--body); font-variation-settings: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: #555; font-size: .85rem; }

/* Admin-only placeholders */
.admin-slot { border: 2px dashed #444; padding: 30px; text-align: center; color: var(--muted); font-size: .92rem; }
.admin-slot strong { display: block; color: #fff; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* Wholesale */
.wholesale-grid { display: grid; gap: 44px; }
.wholesale-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.wholesale-points li { padding-left: 28px; position: relative; color: var(--chalk); }
.wholesale-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 10px; background: var(--red); transform: skewX(-25deg); }
.big-number { font-size: clamp(3.4rem, 9vw, 5.4rem); font-weight: 900; line-height: .9; margin: 10px 0 6px; color: #fff; }
.big-number .red { font-family: var(--brush); }
.cya-form {
	display: grid; gap: 14px; padding: 28px; background: var(--ink-2); border: 1px solid #333; border-top: 4px solid var(--red);
}
.cya-form .row { display: grid; gap: 14px; }
.cya-form label { display: grid; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.cya-form input, .cya-form textarea {
	width: 100%; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400;
	padding: 13px 14px; border: 1px solid #3a3a3a; border-radius: 0; background: var(--black); color: #fff;
}
.cya-form input::placeholder, .cya-form textarea::placeholder { color: #6d6d68; }
.cya-form textarea { min-height: 110px; resize: vertical; }
.cya-form input:focus, .cya-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,18,27,.25); }
.cya-form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; font-weight: 700; font-size: .95rem; }
.form-msg--ok { background: #0f2e17; color: #7ee39a; }
.form-msg--err { background: #3a0b0d; color: #ff8a8f; }
@media (min-width: 640px) { .cya-form .row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .wholesale-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--black); color: var(--muted); padding: 60px 0 36px; font-size: .9rem; border-top: 2px solid var(--red); }
.site-footer .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; z-index: 1; }
.site-footer img { width: 170px; }
.footer-tag { font-family: var(--brush); font-size: 1.6rem; text-transform: uppercase; color: #fff; transform: rotate(-3deg); }
.footer-tag .red { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; text-transform: uppercase; font-size: .76rem; letter-spacing: .16em; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.corner-ribbon {
	position: absolute; right: -70px; bottom: 62px; width: 300px; transform: rotate(-45deg);
	background: var(--red); color: #fff; text-align: center; padding: 6px 0;
	font-family: var(--brush); font-size: .95rem; line-height: 1.05; text-transform: uppercase;
}
@media (max-width: 599px) { .corner-ribbon { display: none; } }

/* Inner pages (cart, checkout, account) */
.page-content { padding: 52px 0 90px; background: var(--chalk); color: var(--black); }
.page-content h1 { color: var(--black); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.page-content h2, .page-content h3 { color: var(--black); }
.page-content .wc-block-components-button:not(.is-link) { width: auto; }

/* Small screens */
@media (max-width: 599px) {
	.slash--tl { width: 70px; height: 70px; }
	.hero .wrap { padding-top: 48px; }
	.hero-actions .btn { padding: 0 20px; font-size: .74rem; letter-spacing: .1em; }
	.hero-media { padding-top: 64px; }
}
