/*
Theme Name: Hybrilux Corporate
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hybrilux-corporate
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--hyb-primary: var(--wp--preset--color--primary);
	--hyb-accent: var(--wp--preset--color--accent);
	--hyb-surface: var(--wp--preset--color--surface);
	--hyb-border: var(--wp--preset--color--border);
	--hyb-muted: var(--wp--preset--color--muted);
	--hyb-shadow: 0 1px 3px rgb(16 24 40 / 0.06);
	--hyb-gutter: clamp(1.25rem, 5vw, 3rem);
}

/* === reset === */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; }
.is-flush > .wp-block-post-content > * + * { margin-block-start: 0; }
.wp-site-blocks main { padding-block: 4rem; }
.wp-site-blocks main.is-flush { padding-block: 0; }
.wp-element-button { transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, transform .18s ease-out; }
.wp-element-button:hover { transform: translateY(-1px); }
.is-style-outline .wp-element-button { background: transparent; border: 1px solid currentColor; color: var(--hyb-primary); padding: 16px 29px; }
.is-style-outline .wp-element-button:hover { background: var(--hyb-primary); border-color: var(--hyb-primary); color: var(--wp--preset--color--background); }
/* === typography === */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.eyebrow { color: var(--hyb-accent); font-family: var(--wp--preset--font-family--figtree); font-size: var(--wp--preset--font-size--label); font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.section-intro { color: var(--hyb-muted); font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 42rem; }
.text-link { font-family: var(--wp--preset--font-family--figtree); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link a { color: var(--hyb-accent); text-decoration: none; transition: color .18s ease-out; }
.text-link a:hover { color: var(--hyb-primary); }
.stat-number { color: var(--hyb-accent); font-family: var(--wp--preset--font-family--figtree); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 700; line-height: 1; }
.stat-label { font-size: .86rem; line-height: 1.35; }
/* === header === */
.site-header { left: 0; position: absolute; right: 0; top: 0; z-index: 20; }
.site-header__inner { border-bottom: 1px solid rgb(255 255 255 / .24); min-height: 82px; padding-block: 0; }
.site-header .wp-block-site-logo img { width: 156px; }
.site-header .wp-block-navigation-item__content { color: #fff !important; font-family: var(--wp--preset--font-family--figtree); font-size: .78rem; font-weight: 650; text-decoration: none; }
.site-header .wp-block-navigation-item__content:hover { color: #68d9bf !important; }
/* Header CTA keeps its own compact scale, independent of the larger page CTAs. */
.site-header .header-cta .wp-element-button { background: var(--hyb-accent); color: #fff; font-size: .78rem; letter-spacing: .06em; padding: 12px 20px; white-space: nowrap; }
.header-hybrilink { margin: 0 .4rem 0 0; }
.header-hybrilink a { color: #fff; font-family: var(--wp--preset--font-family--figtree); font-size: .78rem; font-weight: 650; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.header-hybrilink a:hover { color: #68d9bf; }
.site-header .wp-block-navigation-item.wp-block-navigation-submenu > .wp-block-navigation-item__content { padding-right: 1.1rem; position: relative; }
.site-header .wp-block-navigation-submenu .wp-block-navigation__submenu-icon { height: 9px; inset-inline-end: 0; position: absolute; top: 50%; transform: translateY(-50%); width: 9px; }
.site-header .wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg { fill: currentColor; }
.site-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--background); border: 1px solid var(--hyb-border); border-radius: 8px; box-shadow: 0 10px 28px rgb(0 20 25 / .16); min-width: 270px; padding: .5rem; }
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--wp--preset--color--text) !important; font-size: .82rem; font-weight: 500; padding: .62rem .85rem; }
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--hyb-surface); color: var(--hyb-primary) !important; }
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--hyb-primary); padding: 2rem var(--hyb-gutter); }
.admin-bar .site-header { top: 32px; }
body:not(.home) .site-header { background: var(--hyb-primary); position: relative; }
body:not(.home).admin-bar .site-header { top: 0; }
body:not(.home) .site-header__inner { border-bottom-color: rgb(255 255 255 / .15); }
body:not(.home) .wp-site-blocks main { padding-block: clamp(3.5rem, 7vw, 6rem); }
body:not(.home) .wp-site-blocks main.is-flush { padding-block: 0; }
/* Full-bleed navy page intros use WordPress palette utility classes whose
   generated order can otherwise make nominal “background” text dark. Keep
   these authored intro bands legible without changing light sections. */
body:not(.home) .section-band.has-primary-background-color h1 {
	color: #fff !important;
}
/* Descendant, not direct-child: intros also sit inside columns on application
   and audience pages, where a `>` chain would miss them and leave muted gray
   body text on navy. */
body:not(.home) .section-band.has-primary-background-color .section-intro,
.process-band p,
.process-band li {
	color: rgb(255 255 255 / .82) !important;
}
/* === hero === */
.home-hero { min-height: 760px; padding: 0; position: relative; }
.home-hero .wp-block-cover__background { background: linear-gradient(90deg, rgb(0 43 53 / .96) 0%, rgb(0 59 73 / .79) 44%, rgb(0 20 25 / .08) 78%) !important; opacity: 1 !important; }
.home-hero .wp-block-cover__inner-container { box-sizing: border-box; padding: 10.5rem var(--hyb-gutter) 6rem; }
.hero-copy { margin-left: 0 !important; margin-right: auto !important; max-width: 760px !important; }
.hero-kicker { color: #69d8be; }
.hero-title { color: #fff; font-size: var(--wp--preset--font-size--display); line-height: .98; margin-block: 1rem 1.35rem; max-width: 12ch; }
.page-title { font-size: var(--wp--preset--font-size--headline); margin-block: .75rem 1.1rem; max-width: 20ch; }
.hero-lede { color: rgb(255 255 255 / .88); font-size: clamp(1.15rem, 1.8vw, 1.38rem); max-width: 35rem; }
.home-hero .is-style-outline .wp-element-button { border-color: rgb(255 255 255 / .75); color: #fff; }
.home-hero .is-style-outline .wp-element-button:hover { background: #fff; border-color: #fff; color: var(--hyb-primary); }
.hero-hybrilink { margin-top: 1.75rem; }
.hero-hybrilink a { color: #fff; }
.hero-hybrilink a:hover { color: #69d8be; }
.hero-proof { border-top: 1px solid rgb(255 255 255 / .28); margin-top: 1.75rem; padding-top: 1.35rem; }
.hero-proof p { color: rgb(255 255 255 / .8); font-family: var(--wp--preset--font-family--figtree); font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
/* === sections === */
.section-band { padding-block: clamp(4.5rem, 8vw, 7rem); }
.section-band--compact { padding-block: clamp(3.5rem, 6vw, 5rem); }
.section-heading-row { align-items: end; margin-bottom: 2rem; }
.section-heading-row h2 { margin-bottom: 0; max-width: 14ch; }
.application-grid, .audience-grid, .product-grid { align-items: stretch !important; }
.comparison-band { overflow: hidden; }
.comparison-lead { padding-right: clamp(1rem, 4vw, 4rem); }
.comparison-track { border-left: 1px solid var(--hyb-border); }
.compare-column { min-height: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); }
.compare-column--solar { background: var(--hyb-primary); color: #fff; }
.compare-column--solar h3 { color: #fff !important; }
.compare-column--grid { background: var(--wp--preset--color--background); }
.compare-column ul { padding-left: 1.2rem; }
.compare-column li { margin-bottom: .65rem; }
.process-band { color: #fff; }
.process-band h2, .process-band h3, .process-band .text-link a { color: #fff !important; }
.process-steps { counter-reset: step; }
.process-step { border-left: 1px solid rgb(255 255 255 / .25); padding-left: 1.5rem; }
.process-step:first-child { border-left-color: #69d8be; }
.process-step h3:before { color: #69d8be; content: "0" counter(step) " "; counter-increment: step; display: block; font-size: .75rem; letter-spacing: .1em; margin-bottom: .85rem; }
.process-step p { color: rgb(255 255 255 / .72); font-size: .95rem; }
.product-feature { color: #fff; min-height: 430px; overflow: hidden; }
.product-grid-secondary { display: flex; flex-direction: column; gap: 1.5rem; }
.product-grid-secondary > .is-style-evidence-card { flex: 1 1 0; height: auto; }
.product-feature h3, .product-feature li, .product-feature .text-link a { color: #fff !important; }
.product-feature .section-intro { color: rgb(255 255 255 / .78) !important; }
/* Evidence cards keep their own white background + dark text even inside navy bands. */
.product-feature .is-style-evidence-card, .process-band .is-style-evidence-card { color: var(--wp--preset--color--text); }
.product-feature .is-style-evidence-card h3, .product-feature .is-style-evidence-card li, .process-band .is-style-evidence-card h3, .process-band .is-style-evidence-card li { color: var(--wp--preset--color--text) !important; }
.product-feature .is-style-evidence-card .text-link a, .process-band .is-style-evidence-card .text-link a { color: var(--hyb-accent) !important; }
.product-feature .is-style-evidence-card .text-link a:hover, .process-band .is-style-evidence-card .text-link a:hover { color: var(--hyb-primary) !important; }
.project-proof-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.cta-band { color: #fff; }
.cta-band .wp-block-button:not(.is-style-outline) .wp-element-button, .process-band .wp-block-button:not(.is-style-outline) .wp-element-button, .product-feature .wp-block-button:not(.is-style-outline) .wp-element-button { background: #fff; color: var(--hyb-primary); }
.cta-band .wp-block-button:not(.is-style-outline) .wp-element-button:hover, .process-band .wp-block-button:not(.is-style-outline) .wp-element-button:hover, .product-feature .wp-block-button:not(.is-style-outline) .wp-element-button:hover { background: var(--hyb-accent); color: #fff; }
.cta-band h2 { color: #fff !important; max-width: 14ch; }
.cta-band p { color: rgb(255 255 255 / .76) !important; }
.cta-band .text-link a { color: #fff !important; }
/* === project strip === */
.project-strip-row { align-items: stretch; }
.project-strip-item { border: 1px solid var(--hyb-border); border-radius: var(--wp--custom--rounded--md); box-shadow: var(--hyb-shadow); overflow: hidden; }
.project-strip-item figure.wp-block-image { margin: 0; }
.project-strip-item figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project-strip-item .project-strip-body { padding: 1.25rem 1.4rem 1.5rem; }
.project-strip .eyebrow { color: var(--hyb-accent); }

/* === cards === */
.is-style-application-card, .is-style-evidence-card { border: 1px solid var(--hyb-border); border-radius: var(--wp--custom--rounded--md); box-shadow: var(--hyb-shadow); overflow: hidden; transition: box-shadow .18s ease-out, transform .18s ease-out; }
/* Equal-height rows: only stretch a card when it is the sole card in its column.
   Stacked cards in one column must keep their natural height, or each would fill
   the whole stretched column (see /start-a-project/ sidebar). */
.wp-block-column > .is-style-application-card:only-child, .wp-block-column > .is-style-evidence-card:only-child { height: 100%; }
.is-style-application-card:hover, .is-style-evidence-card:hover { box-shadow: 0 10px 26px rgb(16 24 40 / .09); transform: translateY(-2px); }
.is-style-application-card .wp-block-image { margin: 0; }
.is-style-application-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.is-style-application-card > :not(.wp-block-image) { margin-inline: 1.5rem !important; }
.is-style-application-card > :last-child { margin-bottom: 1.5rem !important; }
.is-style-application-card h3 { font-size: 1.35rem; margin-top: 1.35rem; }
.is-style-application-card p { color: var(--hyb-muted); font-size: .95rem; }
.is-style-evidence-card { background: var(--wp--preset--color--background); border-top: 3px solid var(--hyb-accent); padding: 1.5rem !important; }
.is-style-evidence-card > * { margin-inline: 0 !important; }
.is-style-evidence-card > :last-child { margin-bottom: 0 !important; }
.is-style-evidence-card h3 { font-size: 1.25rem; }
.audience-card { border-top: 1px solid var(--hyb-border); padding-top: 1.3rem; }
.audience-card p { color: var(--hyb-muted); font-size: .95rem; }
/* === faq disclosure === */
.is-style-faq-item { border-top: 1px solid var(--hyb-border); margin-block: 0 !important; padding-block: .35rem; }
.is-style-faq-item:first-of-type { margin-top: 2rem !important; }
.is-style-faq-item:last-of-type { border-bottom: 1px solid var(--hyb-border); }
.is-style-faq-item > summary { align-items: flex-start; color: var(--hyb-primary); cursor: pointer; display: flex; font-family: var(--wp--preset--font-family--figtree); font-size: 1.1rem; font-weight: 650; gap: 1rem; justify-content: space-between; line-height: 1.4; list-style: none; padding-block: 1.1rem; transition: color .18s ease-out; }
.is-style-faq-item > summary::-webkit-details-marker { display: none; }
.is-style-faq-item > summary::marker { content: ""; }
.is-style-faq-item > summary::after { border: 1px solid var(--hyb-border); border-radius: 50%; color: var(--hyb-accent); content: "+"; flex: 0 0 auto; font-size: 1.15rem; font-weight: 400; height: 1.75rem; line-height: 1.6rem; text-align: center; transition: background .18s ease-out, color .18s ease-out; width: 1.75rem; }
.is-style-faq-item[open] > summary::after { background: var(--hyb-accent); border-color: var(--hyb-accent); color: #fff; content: "\2013"; }
.is-style-faq-item > summary:hover { color: var(--hyb-accent); }
.is-style-faq-item > p { color: var(--hyb-muted); margin-block: 0 !important; max-width: 56ch; padding-bottom: 1.35rem; }
/* === forms === */
.wp-block-jetpack-contact-form { gap: 1rem; }
.wp-block-jetpack-contact-form label { color: var(--hyb-primary); font-family: var(--wp--preset--font-family--figtree); font-size: .82rem; font-weight: 650; }
.wp-block-jetpack-contact-form input:not([type=submit]), .wp-block-jetpack-contact-form textarea, .wp-block-jetpack-contact-form select { background: #fff; border: 1px solid var(--hyb-border); border-radius: 4px; min-height: 50px; padding: .8rem 1rem; width: 100%; }
.wp-block-jetpack-contact-form textarea { min-height: 140px; }
.wp-block-jetpack-contact-form input:focus, .wp-block-jetpack-contact-form textarea:focus, .wp-block-jetpack-contact-form select:focus { border-color: var(--hyb-accent); outline: 2px solid rgb(0 154 124 / .16); }
/* === footer === */
.site-footer { background: #002d37; color: #fff; padding-block: 4.5rem 2rem; }
.site-footer .wp-block-site-logo img { width: 170px; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: rgb(255 255 255 / .78); text-decoration: none; }
.site-footer a:hover { color: #69d8be; }
.site-footer .wp-block-list { list-style: none; padding-left: 0; }
.site-footer .wp-block-list li { margin-bottom: .55rem; }
.footer-meta { border-top: 1px solid rgb(255 255 255 / .18); color: rgb(255 255 255 / .6); font-size: .78rem; margin-top: 3rem; padding-top: 1.5rem; }
/* === responsive === */
@media (max-width: 900px) {
	.site-header__inner { min-height: 72px; }
	.home-hero { min-height: 700px; }
	.process-step { border-left: 0; border-top: 1px solid rgb(255 255 255 / .25); padding-left: 0; padding-top: 1.25rem; }
}
@media (max-width: 781px) {
	.admin-bar .site-header { top: 46px; }
	.home-hero { min-height: 680px; }
	.home-hero .wp-block-cover__inner-container { padding-block: 8rem 3.5rem; }
	.home-hero .wp-block-cover__background { background: linear-gradient(90deg, rgb(0 43 53 / .94), rgb(0 59 73 / .66)) !important; }
	.hero-proof { gap: .65rem !important; }
	.section-band { padding-block: 4rem; }
	.comparison-track { border-left: 0; }
	.section-heading-row { align-items: flex-start; }
	.cta-band .wp-block-buttons { justify-content: flex-start; }
	.cta-band .has-text-align-right { text-align: left; }
	.site-footer { padding-top: 3.5rem; }
}
@media (max-width: 480px) {
	.site-header .wp-block-site-logo img { width: 132px; }
	.site-header .header-cta { display: none; }
	.header-hybrilink { display: none; }
	.hero-title { font-size: clamp(2.8rem, 14vw, 4.2rem); }
	.hero-proof { display: none; }
}
/* Document downloads --------------------------------------------------
   .doc-list turns a core/list into a file manifest: one row per document,
   title on the left, a muted <em> meta note (format, pages, size) on the
   right. Stays a plain editable list block; the <em> is optional per row. */
.doc-list { list-style: none; margin-top: 1.75rem !important; padding-left: 0 !important; }
.doc-list li { align-items: baseline; border-bottom: 1px solid var(--hyb-border); display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: space-between; padding: .85rem 0; }
.doc-list li::marker { content: none; }
.doc-list a { color: var(--hyb-primary); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: color .18s ease-out, border-color .18s ease-out; }
.doc-list a:hover { color: var(--hyb-accent); border-bottom-color: currentColor; }
.doc-list em { color: var(--hyb-muted); font-size: .85rem; font-style: normal; letter-spacing: .04em; white-space: nowrap; }

/* Dense variant for long photometric manifests (IES codes). */
.doc-list.is-codes li { padding: .55rem 0; }
.doc-list.is-codes a { font-size: .9rem; font-variant-numeric: tabular-nums; }

.product-feature .doc-list a, .process-band .doc-list a { color: #fff !important; }
.product-feature .doc-list a:hover, .process-band .doc-list a:hover { color: var(--hyb-accent) !important; }
.product-feature .doc-list li, .process-band .doc-list li { border-bottom-color: rgb(255 255 255 / .22); }
.product-feature .doc-list em, .process-band .doc-list em { color: rgb(255 255 255 / .7); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.wp-element-button:hover, .is-style-application-card:hover, .is-style-evidence-card:hover { transform: none; }
}
