/*
Theme Name: Glazen Solutions
Theme URI: https://glazen.co.ke
Author: Glazen Solutions Limited
Author URI: https://glazen.co.ke
Description: Corporate theme for Glazen Solutions Limited, glass and aluminium installers. Dark theme. Includes home, about, services and contact templates and a quote request form.
Version: 1.0.0
Requires at least: 6.0
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: glazen
*/

:root {
	color-scheme: dark;
	--ink: #0A141A;
	--ink-deep: #060E13;
	--paper: #0F1C25;
	--mill: #142530;
	--head: #F1F5F6;
	--text: #C5D1D8;
	--muted: #93A5AF;
	--line: #2B3E49;
	--alu: #4F616B;
	--glass: #2A7F78;
	--glass-deep: #14504B;
	--glass-pale: #CFE6E3;
	--link: #7FD0C7;
	--champagne: #D3B47A;
	--mull: 6px;
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid #5FB3AB; outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--head); margin: 0 0 .6em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1.1em; max-width: 66ch; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 0; color: #0A141A; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar and header */
.topbar { background: var(--ink-deep); color: #C3CFD6; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 22px; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: -0.01em; }
.brand-text small { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.brand--footer { color: #fff; }
.brand--footer .brand-text small { color: #9FB0BA; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav .menu, .site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--head); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav .current-menu-item > a { border-bottom-color: var(--glass); }
.nav-toggle { display: none; background: none; border: 1px solid var(--alu); color: var(--head); padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--glass); color: #fff; padding: 14px 26px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid var(--glass); cursor: pointer; font-family: var(--sans); line-height: 1.2; transition: background .15s, color .15s; }
.btn:hover { background: var(--glass-deep); border-color: var(--glass-deep); color: #fff; }
.btn--small { padding: 10px 18px; font-size: .9rem; }
.btn--light { background: #fff; color: #0A141A; border-color: #fff; }
.btn--light:hover { background: var(--glass-pale); border-color: var(--glass-pale); color: #0A141A; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--line:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.link { font-weight: 600; color: var(--link); }

/* Hero */
.hero { background: linear-gradient(180deg, #0A141A, #0F1C25); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 12ch; }
.hero .lead { font-size: 1.2rem; color: #C3CFD6; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-facade { position: relative; max-width: 440px; margin-left: auto; width: 100%; overflow: hidden; border: var(--mull) solid var(--alu); }
.hero-facade::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.34) 50%, transparent 62%);
	transform: translateX(-120%);
	animation: sweep 2.4s .5s ease-out 1 forwards;
	pointer-events: none;
}
@keyframes sweep { to { transform: translateX(120%); } }

.hero-photo { width: 100%; aspect-ratio: 400 / 520; object-fit: cover; }
.photo { margin: 0 0 28px; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: var(--mull) solid var(--alu); }
.band--photo { background-image: linear-gradient(rgba(14,64,60,.9), rgba(14,64,60,.9)), var(--band-img); background-size: cover; background-position: center; }

/* Mullion grid motif */
.panes { display: grid; gap: var(--mull); background: var(--alu); border: var(--mull) solid var(--alu); }
.panes--4 { grid-template-columns: repeat(4, 1fr); }
.panes--5 { grid-template-columns: repeat(5, 1fr); }
.pane { background: var(--paper); padding: 30px 28px 34px; }
.pane h3 { margin-bottom: .45em; }
.pane p { margin: 0; color: var(--muted); font-size: .98rem; }
.section--tint .pane { background: var(--paper); }
.panes--4 .pane:not(.stat):hover { background: #173A3D; }

.stats { background: var(--ink); padding: 0; }
.stats .wrap { padding-top: 0; padding-bottom: 0; transform: translateY(0); }
.stats .panes { border-left: 0; border-right: 0; }
.stat { text-align: left; }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 3rem; line-height: 1; color: var(--head); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .98rem; }

/* Sections */
.section { padding: 100px 0; }
.section--tint { background: var(--mill); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-foot { margin-top: 28px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.split > h2 { max-width: 16ch; }

.band { background: var(--glass-deep); color: #fff; padding: 100px 0; }
.band h2, .band h3 { color: #fff; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cap { border-top: 1px solid rgba(255,255,255,.3); padding: 22px 0 30px; }
.cap p { color: #CFE3E0; margin: 0; font-size: .98rem; }

.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.sectors li { border-top: 1px solid var(--line); padding: 16px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--head); }

.step-n { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--champagne); margin-bottom: 14px; }
.panes--5 .pane { padding: 28px 22px 32px; }

/* CTA */
.cta { background: var(--mill); color: #fff; padding: 84px 0; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #C3CFD6; margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Inner pages */
.page-hero { background: linear-gradient(180deg, #0A141A, #0F1C25); color: #fff; padding: 76px 0 70px; border-bottom: var(--mull) solid var(--alu); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw, 3.6rem); margin-bottom: .3em; }
.page-hero .lead { color: #C3CFD6; font-size: 1.15rem; margin: 0; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { margin-top: 1.6em; }
.entry a { font-weight: 500; }
.entry img { height: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.contact-details h2 { font-size: 1.9rem; }
.quote label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 18px; color: var(--head); }
.quote input, .quote select, .quote textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--ink); border: 1px solid #4A5C66; border-radius: 0; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 3px solid #5FB3AB; outline-offset: 0; border-color: var(--glass); }
.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; margin-bottom: 24px; max-width: none; border-left: 5px solid; }
.notice--ok { background: #12332F; border-color: var(--glass); color: #BFE8E2; }
.notice--err { background: #3A1B18; border-color: #D4584A; color: #F5C7C1; }

/* Footer */
.site-footer { background: var(--ink-deep); color: #B3C0C8; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.2fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.site-footer h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #B3C0C8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer p { margin-top: 18px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .88rem; }

/* Responsive */
@media (max-width: 1040px) {
	.panes--4 { grid-template-columns: repeat(2, 1fr); }
	.panes--5 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 20px 28px 28px; gap: 18px; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu, .site-nav ul { flex-direction: column; gap: 14px; }
	.hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
	.hero-grid { padding-top: 56px; padding-bottom: 64px; }
	.hero-facade { margin: 0; max-width: 360px; }
	.section, .band { padding: 72px 0; }
}
@media (max-width: 620px) {
	.wrap { padding: 0 20px; }
	.panes--4, .panes--5, .caps, .sectors, .quote .row, .footer-grid { grid-template-columns: 1fr; }
	.topbar-links a:first-child { margin-left: 0; }
	.topbar-inner { flex-direction: column; gap: 4px; }
	.stat strong { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-facade::after { animation: none; display: none; }
	.btn { transition: none; }
}
