/*
Theme Name: Powerayz
Description: Solar equipment catalogue and WooCommerce storefront for Powerayz.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: powerayz
*/
:root {
	--night: #0a0a0b;
	--ink: #17181c;
	--soft-ink: #4f525a;
	--sun: #ffcb08;
	--line: #e2e3e6;
	--paper: #fff;
	--wash: #f4f4f3;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2 { line-height: 1.06; margin: 0 0 .65em; letter-spacing: -.045em; }
p { margin: 0 0 1.05em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1878da; outline-offset: 4px; }
.wrap { width: min(100% - 7rem, 87rem); margin-inline: auto; }
.screen-reader-text, .trap, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 2.5rem; left: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--sun); color: var(--night); }
.site-header { background: var(--night); color: #fff; }
.header-main { min-height: 5.3rem; display: grid; grid-template-columns: 14rem minmax(0, 1fr) auto; gap: clamp(1.2rem, 5vw, 6rem); align-items: center; }
.brand { display: block; width: 100%; max-width: 14rem; }
.brand img { width: 100%; }
.site-search { display: flex; min-width: 0; border-radius: .5rem; overflow: hidden; background: #fff; }
.site-search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); padding: .72rem .9rem; }
.site-search input:focus-visible { outline-offset: -3px; }
.site-search button { border: 0; background: var(--sun); color: var(--night); font-weight: 750; padding: .6rem 1.1rem; }
.site-search button:focus-visible { outline-offset: -4px; }
.header-actions { display: flex; gap: 1rem; font-size: .92rem; font-weight: 750; }
.header-actions a { white-space: nowrap; text-decoration: none; }
.header-actions a:hover, .navigation a:hover:not(.category-link) { color: var(--sun); }
.nav-band { border-top: 1px solid #343437; }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.1rem; min-height: 3.5rem; }
.navigation a { text-decoration: none; font-size: .92rem; font-weight: 730; white-space: nowrap; }
.navigation .category-link { color: #101010; background: var(--sun); border-radius: .4rem; padding: .52rem .9rem; }
.hero { position: relative; color: var(--paper); background: #101113; isolation: isolate; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 34%; background: url(assets/british-home-solar.webp) center 45% / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #101113 0%, #101113b8 14%, #10111313 33%, transparent 54%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(24rem, 34vw, 35rem); padding-block: 3rem; }
.hero-copy { width: min(100%, 40rem); }
.eyebrow { text-transform: uppercase; font-weight: 800; font-size: .875rem; letter-spacing: .16em; margin-bottom: .9rem; }
.hero .eyebrow, .project-panel .eyebrow { color: var(--sun); }
.hero h1 { font-size: clamp(3.25rem, 6vw, 5.65rem); letter-spacing: -.065em; margin-bottom: .3em; }
.hero-description { font-size: clamp(1.08rem, 1.6vw, 1.35rem); max-width: 31rem; color: #eeeef0; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .62rem 1.18rem; border: 1px solid transparent; border-radius: .45rem; background: var(--sun); color: #101010; font-weight: 790; text-align: center; text-decoration: none; }
.button:hover, .site-search button:hover, .navigation .category-link:hover { background: #ffd741; }
.button-outline { color: #fff; background: #10111355; border-color: #eee; }
.button-outline:hover { background: #fff; color: var(--night); }
.button-dark { color: #fff; background: var(--night); }
.button-dark:hover { color: var(--night); background: var(--sun); }
.section { padding-block: 2.6rem; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 1.25rem; font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 1.2rem; text-align: center; }
.section-title::before, .section-title::after { content: ""; height: 2px; width: min(11vw, 10rem); background: var(--sun); }
.category-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .9rem; }
.category-card { display: grid; grid-template-rows: 8rem 1fr; align-items: stretch; border: 1px solid var(--line); background: #f4f4f4; border-radius: .75rem; overflow: hidden; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.category-card:hover { border-color: #bc9300; box-shadow: 0 .45rem 1.2rem #10111311; }
.category-image { display: grid; place-items: center; padding: .45rem .55rem 0; }
.category-image img { width: auto; max-height: 7rem; object-fit: contain; mix-blend-mode: multiply; }
.category-name { padding: .6rem .4rem .8rem; text-align: center; font-weight: 800; font-size: clamp(.95rem, 1.35vw, 1.13rem); }
.project-section { padding-top: .3rem; }
.project-panel { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; background: #17191d; border-radius: .8rem; color: #fff; padding: clamp(1.45rem, 4vw, 3.1rem); }
.project-panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .35em; }
.project-panel p:last-child { color: #dcdde0; margin-bottom: 0; }
.project-panel .button { flex-shrink: 0; }
.site-footer { color: #f3f3f4; background: var(--night); padding-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem 2rem; }
.footer-brand { max-width: 11rem; margin-bottom: .8rem; }
.footer-grid p, .footer-end { color: #c2c3c7; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; }
.footer-grid nav a { display: block; width: fit-content; margin-block: .35rem; color: #d7d7d9; text-decoration: none; }
.footer-grid nav a:hover { color: var(--sun); text-decoration: underline; }
.footer-end { margin-top: 1.6rem; border-top: 1px solid #35363a; padding-block: 1rem; font-size: .88rem; }
.inner { min-height: 24rem; padding-block: clamp(2rem, 5vw, 4.5rem); }
.inner h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.inner p { color: var(--soft-ink); }
.inner .lead { font-size: 1.25rem; color: var(--ink); }
.inner .category-grid { margin-block: 1.25rem; }
.breadcrumb { font-size: .9rem; color: var(--soft-ink); margin-bottom: 1.65rem; }
.range-panel, .quote-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.range-panel { align-items: center; }
.range-image { background: var(--wash); border: 1px solid var(--line); border-radius: .8rem; min-height: 15rem; display: grid; place-items: center; padding: 1.4rem; }
.range-image img { width: auto; max-height: 12rem; object-fit: contain; mix-blend-mode: multiply; }
.prose { max-width: 53rem; }
.prose details { border-block-end: 1px solid var(--line); padding: .8rem 0; }
.prose details summary { font-weight: 750; cursor: pointer; }
.prose details p { margin: .75rem 0 .25rem; }
.prose .button { margin-top: 1rem; }
.quote-card { background: var(--wash); border: 1px solid var(--line); border-radius: .8rem; padding: clamp(1rem, 3vw, 2rem); }
.quote-form { display: grid; gap: .8rem; }
.quote-form label { display: grid; font-weight: 750; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; border: 1px solid #999ba2; border-radius: .35rem; padding: .56rem .7rem; background: #fff; color: var(--ink); }
.quote-form select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg,transparent 50%,#272830 50%),linear-gradient(135deg,#272830 50%,transparent 50%); background-size: 6px 6px; background-position: right 1.1rem center,right .75rem center; background-repeat: no-repeat; }
.quote-form .button { justify-self: start; }
.optional, .form-note { font-weight: 400; font-size: .9rem; }
.form-note { margin: 0; }
.form-message { border-left: 3px solid #a62a19; padding-left: .75rem; }
@media (max-width: 69rem) {
	.wrap { width: min(100% - 3.5rem, 87rem); }
	.header-main { grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.35rem; }
	.hero-photo { left: 29%; }
}
@media (max-width: 53rem) {
	.navigation { flex-wrap: wrap; justify-content: flex-start; padding-block: .6rem; }
	.hero-photo { left: 24%; }
	.hero-photo::after { background: linear-gradient(90deg, #101113 0%, #101113d5 25%, #10111350 65%, transparent); }
	.category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 39rem) {
	.wrap { width: calc(100% - 2rem); }
	.header-main { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding-block: .85rem; }
	.header-main .brand { width: min(10.2rem, 100%); }
	.site-search { grid-column: 1 / -1; grid-row: 2; }
	.site-search input { padding: .55rem .65rem; }
	.site-search button { padding: .45rem .7rem; }
	.header-actions { justify-content: end; gap: .6rem; }
	.navigation { gap: .65rem .85rem; }
	.navigation a { font-size: .875rem; }
	.navigation .category-link { padding: .38rem .55rem; }
	.hero { display: flex; flex-direction: column; }
	.hero-photo { position: relative; inset: auto; order: 2; width: 100%; height: clamp(12rem, 48vw, 18rem); background-position: 70% 41%; }
	.hero-photo::after { background: linear-gradient(180deg,#101113 0%,transparent 23%); }
	.hero-inner { min-height: auto; padding-block: 2rem 1.35rem; }
	.hero h1 { font-size: clamp(2.85rem, 11vw, 4.45rem); }
	.hero .eyebrow { font-size: .79rem; letter-spacing: .105em; }
	.hero-description { margin-bottom: .9rem; }
	.buttons { gap: .55rem; margin-top: 1rem; }
	.button { padding-inline: .9rem; }
	.section { padding-block: 1.7rem; }
	.section-title { gap: .65rem; }
	.category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
	.category-card { grid-template-rows: 6.3rem 1fr; }
	.category-image img { max-height: 5.45rem; }
	.project-section { padding-top: 0; }
	.project-panel { align-items: flex-start; flex-direction: column; }
	.footer-grid, .range-panel, .quote-layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
