/*
Theme Name: Bright Spark Electrical
Theme URI: https://fiftysite.com/
Author: Fifty Site
Description: Bold, high-contrast block theme for a Melbourne electrician. Sample site by Fifty Site.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.8
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: bright-spark
*/
:root {
	--bs-radius: 14px;
	--bs-pill: 6px;
	--bs-on-primary: #111827;
	--bs-field: #D1D5DB;
	--bs-cta-btn-bg: #FFC21A;
	--bs-cta-btn-ink: #111827;
	--bs-cta-btn-hover: #F0AD00;
	--bs-footer-link: #CBD5E1;
	--fq-field: #D1D5DB;
	--fq-tint: #FFF8E1;
	--fq-radius: 8px;
	--fq-btn-radius: 8px;
	--fq-on-primary: #111827;
}

/* Layout helpers used by the patterns. Colours, fonts and sizes live in theme.json. */

.bs-header { border-bottom: 1px solid var(--wp--preset--color--line); }

.bs-eyebrow {
	display: inline-block;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--tint-ink);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.5rem 0.875rem;
	border-radius: var(--bs-pill);
}

.bs-lead { color: var(--wp--preset--color--muted); font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; }
.wp-block-group > .bs-lead { margin-left: 0 !important; margin-right: auto !important; }

.bs-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 0.9375rem; }
.bs-checks li { display: flex; align-items: center; gap: 0.5rem; }
.bs-checks li::before {
	content: "";
	width: 18px; height: 18px; flex: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0AD00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.bs-card {
	border-radius: var(--bs-radius);
	padding: 2.25rem;
	height: 100%;
	box-sizing: border-box;
}
.bs-card ul { padding-left: 1.25rem; }

.bs-icon {
	width: 56px; height: 56px;
	border-radius: calc(var(--bs-radius) * 0.66);
	background: #fff;
	display: flex; align-items: center; justify-content: center;
}

.bs-step-num {
	width: 48px; height: 48px;
	border-radius: var(--bs-pill);
	background: var(--wp--preset--color--primary);
	color: var(--bs-on-primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	margin: 0;
}

.bs-panel { border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--bs-radius) * 1.15); padding: 3rem; }

.bs-review {
	background: #fff;
	border-radius: calc(var(--bs-radius) * 0.85);
	padding: 1.75rem;
	height: 100%;
	box-sizing: border-box;
}
.bs-tag {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--tint-ink);
	background: var(--wp--preset--color--tint);
	padding: 0.25rem 0.625rem;
	border-radius: var(--bs-pill);
}

.bs-chips .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--bs-field);
	font-weight: 500;
	padding: 0.65rem 1.25rem;
}
.bs-chips .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-dark); background: transparent; }

.bs-cta { border-radius: calc(var(--bs-radius) * 1.3); }
.bs-cta .wp-block-button__link { background: var(--bs-cta-btn-bg); color: var(--bs-cta-btn-ink); font-weight: 700; }
.bs-cta .wp-block-button__link:hover { background: var(--bs-cta-btn-hover); color: var(--bs-cta-btn-ink); }
.bs-cta a:not(.wp-block-button__link) { color: inherit; }

.bs-footer a { color: var(--bs-footer-link); }
.bs-footer a:hover, .bs-footer a:focus-visible { color: #fff; }
.bs-sample-note { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem !important; padding-top: 1.5rem; font-size: 0.8125rem; opacity: 0.85; }

.is-style-outline > .wp-block-button__link { border: 1.5px solid var(--bs-field); color: var(--wp--preset--color--ink); background: #fff; }
.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); background: #fff; color: var(--wp--preset--color--ink); }

.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

/* Links: one hover style everywhere. Underline, 2px. */
a:where(:not(.wp-element-button)) { text-decoration: none; }
a:where(:not(.wp-element-button)):hover,
a:where(:not(.wp-element-button)):focus-visible,
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.wp-block-site-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.wp-element-button, .wp-block-button__link { text-decoration: none !important; }

@media (max-width: 781px) {
	.bs-panel { padding: 1.75rem; }
}

/* Photos */
.bs-hero-img { margin: 0; }
.bs-hero-img img { width: 100%; height: 460px; object-fit: cover; border-radius: calc(var(--bs-radius) * 1.15); display: block; }
.bs-photo-inline img { width: 100%; max-height: 420px; object-fit: cover; border-radius: calc(var(--bs-radius) * 0.85); display: block; }
.bs-card-img img { width: 100%; height: 200px; object-fit: cover; border-radius: calc(var(--bs-radius) * 0.7); display: block; }
.bs-card-img { margin: 0 0 0.5rem; }
.wp-site-blocks .bs-header a[href^="tel:"]:not(.wp-element-button) { color: var(--wp--preset--color--ink); }
@media (max-width: 781px) { .bs-hero-img img { height: 280px; } }

/* Intro paragraph on standard pages: full content width */
.wp-block-post-content > .bs-lead { max-width: var(--wp--style--global--content-size); }

/* Standard pages: same 1200px frame as the hub pages; text keeps a readable line length, aligned to the left edge */
.bs-page .wp-block-post-content > :is(p, ul, ol, h2, h3, .wp-block-details, .wp-block-buttons, .fq-form, .fq-done, .fq-error, .bs-note) { max-width: 800px; margin-left: 0 !important; }
.bs-page .wp-block-post-content > .bs-photo-inline img { max-height: 460px; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.9rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Placeholder note for things the owner must supply */
.bs-note { background: var(--wp--preset--color--soft); border-left: 4px solid var(--wp--preset--color--primary); padding: 0.9rem 1.1rem; border-radius: 0 calc(var(--bs-radius) * 0.5) calc(var(--bs-radius) * 0.5) 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* ---- Bright Spark Electrical ---- */

/* Dark hero */
.bs-dark .bs-lead { color: #CBD5E1; }
.bs-dark .bs-eyebrow { background: rgba(255,194,26,0.16); color: #FFC21A; }
.bs-dark .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.bs-dark .is-style-outline > .wp-block-button__link:hover { border-color: #FFC21A; color: #fff; background: transparent; }
.bs-dark .bs-checks { color: #E5E7EB; }

/* Header call button: dark, always visible so mobile visitors can tap to call */
.bs-call > .wp-block-button__link { background: #111827; color: #fff; }
.bs-call > .wp-block-button__link:hover { background: #1F2937; color: #fff; }
.bs-dark .bs-call > .wp-block-button__link { background: #FFC21A; color: #111827; }
.bs-dark .bs-call > .wp-block-button__link:hover { background: #F0AD00; color: #111827; }
.bs-header .wp-block-buttons { gap: 0.6rem; }
.bs-header .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }
@media (max-width: 600px) {
	.bs-header .bs-quote-btn { display: none; }
	.bs-header .bs-call-num { display: none; }
	.bs-header .bs-call > .wp-block-button__link { padding: 0.55rem 0.95rem; }
	.bs-header > .wp-block-group { flex-wrap: nowrap; gap: 0.6rem; }
	.bs-header > .wp-block-group > .wp-block-group:first-child { gap: 0.45rem; min-width: 0; }
	.bs-header .wp-block-site-title { font-size: 0.95rem; white-space: nowrap; }
	.bs-header .wp-block-site-title + * { display: none; }
	.bs-header svg[width="34"] { width: 30px; height: 30px; }
	.bs-header .bs-call .wp-block-button__link { white-space: nowrap; font-size: 0.875rem; }
}

/* Emergency strip */
.bs-strip p { margin: 0; font-size: 1rem; }
.bs-strip a { color: #111827; font-weight: 700; }

/* Job photo gallery */
.bs-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bs-gallery figure { margin: 0; }
.bs-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bs-radius); display: block; }
.bs-gallery figcaption { font-size: 0.9375rem; font-weight: 600; margin-top: 0.6rem; }
@media (max-width: 781px) { .bs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; } }
@media (max-width: 480px) { .bs-gallery { grid-template-columns: minmax(0, 1fr); } }

/* Squarer cards for a trade look */
.bs-card { border: 1px solid var(--wp--preset--color--line); }
.bs-icon { background: #FFC21A; }
