/* Energy Optimisation theme – small layer on top of theme.json. */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: #f5a52455; }

/* Header */
.eo-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); }
.eo-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.eo-logo:hover { color: var(--wp--preset--color--navy); }
.eo-logo svg { flex: none; }
.eo-logo span small { display: block; font-size: .7rem; font-weight: 600; color: var(--wp--preset--color--muted); letter-spacing: .02em; }
.eo-header .wp-block-navigation a { text-decoration: none; }
.eo-header .wp-block-navigation a:hover { color: var(--wp--preset--color--amber-dark); }
.eo-header .wp-block-button__link { padding: .6em 1.1em; }
@media (max-width: 781px) { .eo-header .eo-header__cta { display: none; } }

/* Hero */
.eo-hero { background: radial-gradient(1200px 500px at 85% -10%, #fff3d6 0, transparent 60%), linear-gradient(180deg, var(--wp--preset--color--sky) 0, #fff 100%); }
.eo-hero h1 { max-width: 16ch; }
.eo-eyebrow { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 99px; background: #fff3d6; color: #8a5300; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.eo-lead-text { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 52ch; }

/* Trust strip */
.eo-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--navy); }
.eo-trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--wp--preset--color--green); color: #fff; font-size: .75rem; }

/* Cards */
.wp-block-group.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: clamp(20px, 3vw, 28px); }
.eo-steps-grid .wp-block-group.is-style-card { height: 100%; }
.eo-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wp--preset--color--amber); color: var(--wp--preset--color--navy); font-weight: 800; margin: 0; }

/* Lists with ticks */
.wp-block-list.is-style-check { list-style: none; padding-left: 0; }
.wp-block-list.is-style-check li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.wp-block-list.is-style-check li::before { content: "✓"; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ee; color: var(--wp--preset--color--green); font-size: .75rem; font-weight: 800; }

/* FAQ */
.is-style-eo-faq .wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.is-style-eo-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.is-style-eo-faq .wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--amber-dark); }
.is-style-eo-faq .wp-block-details[open] summary::after { content: "–"; }
.is-style-eo-faq .wp-block-details > :not(summary) { color: var(--wp--preset--color--ink); }

/* Dark band */
.eo-band a:not(.wp-block-button__link) { color: #fff; }

/* Content pages */
.eo-prose > * + h2 { margin-top: 2.2em; }
.eo-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.eo-prose th, .eo-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--wp--preset--color--line); }
.eo-prose th { background: var(--wp--preset--color--sky); color: var(--wp--preset--color--navy); }
.wp-block-table { overflow-x: auto; }
.eo-callout { background: var(--wp--preset--color--sky); border-left: 4px solid var(--wp--preset--color--amber); border-radius: 0 12px 12px 0; padding: 18px 22px; }

/* Breadcrumb */
.eo-crumbs { font-size: .85rem; color: var(--wp--preset--color--muted); }
.eo-crumbs a { color: inherit; }

/* Post list */
.eo-post-grid .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: 22px; }
.eo-post-grid .wp-block-post-title { font-size: 1.2rem; }

/* Footer */
.eo-footer { font-size: .95rem; }
.eo-footer a { color: #cfd8e6; text-decoration: none; }
.eo-footer a:hover { color: #fff; text-decoration: underline; }
.eo-footer h3, .eo-footer h4 { color: #fff; }
.eo-footer .eo-logo { color: #fff; }
.eo-footer .eo-logo span small { color: #9fb0c8; }
.eo-footer .eo-suburbs h3 { color: #fff; font-size: .95rem; }

/* Mobile sticky quote button */
.eo-mobile-cta { display: none; }
@media (max-width: 781px) {
	.eo-mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
	.eo-mobile-cta a { display: block; text-align: center; padding: 14px; border-radius: 12px; background: var(--wp--preset--color--amber); color: var(--wp--preset--color--navy); font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 31, 61, .25); }
	body { padding-bottom: 80px; }
	.page-get-quotes .eo-mobile-cta, .page-installer-dashboard .eo-mobile-cta { display: none; }
}

.eo-footer .eo-suburbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.eo-footer .eo-plain-list li { margin-bottom: 6px; }

/* Mobile: "How it works" style card rows become a swipeable slider with dots. */
@media (max-width: 781px) {
	.eo-steps-grid.wp-block-columns { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; margin-left: calc(-1 * var(--wp--style--root--padding-left, 16px)); margin-right: calc(-1 * var(--wp--style--root--padding-right, 16px)); padding-left: var(--wp--style--root--padding-left, 16px); padding-right: var(--wp--style--root--padding-right, 16px); scroll-padding-left: var(--wp--style--root--padding-left, 16px); scrollbar-width: none; }
	.eo-steps-grid.wp-block-columns::-webkit-scrollbar { display: none; }
	.eo-steps-grid.wp-block-columns > .wp-block-column { flex: 0 0 82% !important; scroll-snap-align: start; }
	.eo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
	.eo-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--wp--preset--color--line); cursor: pointer; transition: width .2s, background .2s; }
	.eo-dots button.is-active { width: 22px; background: var(--wp--preset--color--amber); }
}
@media (min-width: 782px) { .eo-dots { display: none; } }

.wp-block-group.is-style-card h3 { font-size: 1.2rem !important; }

/* Header: "For installers" outline button on desktop; the same link sits in the mobile menu instead. */
.eo-header .eo-btn-installers .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--line); padding: calc(.6em - 2px) 1em; }
.eo-header .eo-btn-installers .wp-block-button__link:hover { border-color: var(--wp--preset--color--navy); background: transparent; }
@media (min-width: 782px) { .eo-header .eo-nav-mobile-only { display: none; } }
.eo-installer-strip a { color: var(--wp--preset--color--navy); }

/* ---------- Page header (all pages, guides, suburbs, archives) ---------- */
.eo-page-hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px);
	background: radial-gradient(900px 380px at 90% -20%, #fff3d6 0, transparent 60%), linear-gradient(180deg, var(--wp--preset--color--sky) 0, #fff 100%);
	border-bottom: 1px solid var(--wp--preset--color--line); }
.eo-page-hero .eo-crumbs { margin: 0 0 14px; }
.eo-page-hero .eo-crumbs a { text-decoration: none; }
.eo-page-hero .eo-crumbs a:hover { text-decoration: underline; }
.eo-page-hero .eo-crumbs span[aria-hidden] { margin: 0 4px; opacity: .6; }
.eo-page-title, .eo-page-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; max-width: 22ch; }
.eo-page-hero .eo-lead-text { margin: 0 0 18px; }
.eo-page-hero .eo-eyebrow { margin-bottom: 14px; }
.eo-art { display: block; width: 100%; max-width: 420px; height: auto; margin-left: auto; }
.eo-art-col:not(:has(img)) { display: none; }
.eo-cover img { box-shadow: 0 12px 32px rgba(15, 31, 61, .12); }
@media (max-width: 781px) {
	.eo-page-hero .eo-art { max-width: 240px; margin: 4px auto 0; }
	.eo-page-hero .eo-cover { max-width: 100%; }
}
/* The old in-content breadcrumbs are replaced by the header. */
main > .eo-crumbs { display: none; }

/* Guide cards with images */
.eo-post-grid .wp-block-post { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 20px; }
.eo-post-grid .wp-block-post-featured-image { margin: 0 0 6px; }
.eo-post-grid .wp-block-post-featured-image img { border-radius: 10px; }
.eo-post-grid .wp-block-post-title, .eo-post-grid .wp-block-post-excerpt, .eo-post-grid .wp-block-read-more { margin-left: 8px; margin-right: 8px; }
.eo-post-grid .wp-block-read-more { margin-top: auto; }

/* Related guides */
.eo-related__title { margin: 0 0 18px; font-size: 1.5rem; }
.eo-related__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.eo-related__card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 12px 12px 16px; text-decoration: none; color: var(--wp--preset--color--navy); font-weight: 700; transition: box-shadow .15s; }
.eo-related__card:hover { box-shadow: 0 8px 24px rgba(15, 31, 61, .1); color: var(--wp--preset--color--navy); }
.eo-related__card img { width: 100%; height: auto; border-radius: 10px; }
.eo-related__card span { padding: 0 6px; line-height: 1.35; }

/* Rebate notice bar */
.eo-notice { background: var(--wp--preset--color--navy); color: #fff; text-align: center; font-size: .9rem; padding: 9px 16px; line-height: 1.4; }
.eo-notice a { color: var(--wp--preset--color--amber); font-weight: 700; text-decoration: none; white-space: nowrap; }
.eo-notice a:hover { text-decoration: underline; }
@media (max-width: 599px) { .eo-page-hero .eo-art-col:has(.eo-art) { display: none; } }
.eo-page-hero + .wp-block-post-content { padding-top: var(--wp--preset--spacing--50); }

/* Menu button (hamburger) up to 1299px: the full menu needs about 1300px to fit on one line. */
@media (min-width: 600px) and (max-width: 1299px) {
	.eo-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.eo-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.eo-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
	.eo-header .wp-block-navigation__responsive-container.is-menu-open .eo-nav-mobile-only { display: block; }
}

/* The header's blur makes the open menu sit inside the header instead of covering the screen. Drop it while open. */
.eo-header:has(.is-menu-open) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.eo-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff; padding: 24px; }
.eo-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; font-size: 1.15rem; font-weight: 600; }
.eo-header:has(.is-menu-open) { z-index: 100000; }
.eo-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.eo-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; }
