/*
Theme Name: Elite Screen Printing
Theme URI: https://www.wearelite.com/
Author: Steadfast & Faithful
Author URI: https://steadfastandfaithful.com/
Description: Custom block theme for Elite Screen Printing & Embroidery, Ventura CA. Fully editable in the WordPress Site Editor — colors, type and spacing live in theme.json; every section is a block pattern.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elite
Tags: block-patterns, full-site-editing, custom-colors, editor-style
*/

/* Small additions theme.json can't express. Everything else is in theme.json. */

/* Red/white flag stripe divider (block style "Flag stripe" on Separator) */
.wp-block-separator.is-style-flag-stripe {
	border: 0;
	width: 100% !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	height: 10px;
	max-width: none;
	opacity: 1;
	background: repeating-linear-gradient(90deg, var(--wp--preset--color--red) 0 48px, var(--wp--preset--color--white) 48px 96px);
}

/* Images with a set aspect ratio fill their column */
.wp-block-image img[style*="aspect-ratio"] { width: 100%; }

/* Card hover (Group block style "Card") */
.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.is-style-card:hover,
.is-style-card:focus-within {
	border-color: var(--wp--preset--color--blue);
	box-shadow: 0 10px 28px rgba(17, 17, 17, .08);
}

/* Quote form card (Group block style "Form card") */
.is-style-form-card {
	background: var(--wp--preset--color--white);
	border-top: 8px solid var(--wp--preset--color--red);
	border-radius: 12px;
	box-shadow: 0 18px 48px rgba(17, 17, 17, .14);
}

/* Pill links (Buttons block style "Chips") */
.wp-block-buttons.is-style-chips .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1.5px solid #d4d7dc;
	border-radius: 999px;
	padding: .55em 1.1em;
	font-weight: 600;
	font-size: 1rem;
}
.wp-block-buttons.is-style-chips .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--red);
}

/* FAQ accordions (core/details) */
.wp-block-details {
	border-bottom: 1.5px solid var(--wp--preset--color--line);
	padding: 1.1rem 0;
}
.wp-block-details summary {
	font-weight: 700;
	font-size: 1.15rem;
	cursor: pointer;
}
.wp-block-details[open] summary { margin-bottom: .6rem; }

/* Quote form */
.elite-quote-form { display: grid; gap: 14px; }
.elite-quote-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.elite-quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.elite-quote-form input,
.elite-quote-form select,
.elite-quote-form textarea {
	min-height: 46px;
	border: 1.5px solid #c9cdd4;
	border-radius: 6px;
	padding: 0 12px;
	font: inherit;
	font-size: 16px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	box-sizing: border-box;
	width: 100%;
}
.elite-quote-form textarea { padding: 12px; min-height: 110px; }
.elite-quote-form input:focus-visible,
.elite-quote-form select:focus-visible,
.elite-quote-form textarea:focus-visible { outline: 3px solid var(--wp--preset--color--blue); outline-offset: 1px; }
.elite-quote-form button {
	min-height: 56px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--red);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 1.1rem;
	cursor: pointer;
}
.elite-quote-form button:hover { background: var(--wp--preset--color--red-dark); }
.elite-quote-form .hp { position: absolute; left: -9999px; }
.elite-quote-form .note { margin: 0; font-size: .85rem; color: #555; text-align: center; }
.elite-form-msg { padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.elite-form-msg.ok { background: #e7f6ec; color: #145c2c; }
.elite-form-msg.err { background: #fde8eb; color: #8a0d22; }

/* Breadcrumbs */
.elite-crumbs { font-size: .875rem; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.elite-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* Sticky mobile call bar */
.elite-callbar { display: none; }
@media (max-width: 781px) {
	.elite-callbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 50;
		box-shadow: 0 -4px 16px rgba(0,0,0,.15);
	}
	.elite-callbar a {
		display: flex; align-items: center; justify-content: center;
		min-height: 56px; font-weight: 700; text-decoration: none;
	}
	.elite-callbar .call { background: var(--wp--preset--color--ink); color: #fff; }
	.elite-callbar .quote { background: var(--wp--preset--color--red); color: #fff; }
	body { padding-bottom: 56px; }
	.elite-quote-form .row { grid-template-columns: 1fr; }
}

/* Plain list (List block style "Plain") */
.wp-block-list.is-style-plain { list-style: none; }
.wp-block-list.is-style-plain li { margin-bottom: .35rem; }

/* Skip link */
.skip-link.screen-reader-text:focus { z-index: 100000; }
