/*
Theme Name: Lenco Utilities
Theme URI: https://www.lencoutilities.com
Author: Lenco Utilities
Description: Block theme for Lenco Utilities. Fibre, mobile and wireless, power and EV charging infrastructure across the UK and Ireland. Every page is built from editable blocks, with a News section for updates.
Version: 1.0.0
Requires at least: 6.6
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: lenco
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull + .alignfull,
.lenco-main > .alignfull + .alignfull { margin-block-start: 0; }
.wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 3px; }
.has-navy-background-color a:not(.wp-element-button),
.has-navy-deep-background-color a:not(.wp-element-button),
.has-magenta-background-color a:not(.wp-element-button) { color: #fff; }
.lenco-section { padding-block: var(--wp--preset--spacing--60); }
.lenco-section--tight { padding-block: var(--wp--preset--spacing--50); }
.lenco-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; max-width: 44rem; }
.has-navy-background-color .lenco-lead, .lenco-on-dark { color: #D5DAE6; }
.lenco-kicker { font-size: 1rem; font-weight: 600; color: var(--wp--preset--color--magenta); margin: 0; }
.lenco-muted { color: var(--wp--preset--color--slate); }
.lenco-link { font-weight: 600; text-underline-offset: 5px; }

/* Narrow text blocks inside full-width sections line up with the headings (left), not centred */
.is-layout-constrained > .lenco-lead,
.is-layout-constrained > .lenco-hero__content,
.lenco-page-hero.is-layout-constrained > h1 {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* ---------- Header ---------- */
.lenco-header { padding: 18px var(--wp--style--root--padding-right) 18px var(--wp--style--root--padding-left); gap: 24px; border-bottom: 1px solid #25366A; position: relative; z-index: 20; }
.lenco-header .wp-block-site-logo img { display: block; height: auto; }
.lenco-header__nav { gap: 36px; }
.lenco-header .wp-block-navigation a { color: #fff; text-decoration: none; padding-block: 10px; }
.lenco-header .wp-block-navigation a:hover,
.lenco-header .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--orange); }
.lenco-header .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.lenco-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.375rem; }
.lenco-header__cta .wp-block-button__link { padding: 0.8rem 1.35rem; font-size: 1rem; }
@media (max-width: 700px) { .lenco-header .wp-block-buttons.lenco-header__cta { display: none !important; } .lenco-header .wp-block-site-logo img { width: 140px !important; } }

/* ---------- Hero (home) and page heroes ---------- */
.lenco-hero, .lenco-page-hero { position: relative; overflow: hidden; background-repeat: no-repeat; background-image: url("assets/images/mark.svg"); }
.lenco-hero { padding-block: clamp(4rem, 9vw, 6.5rem) clamp(4.5rem, 9vw, 7rem); min-height: 700px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; background-size: 700px 700px; background-position: right -250px top -20px; }
.lenco-hero__content { max-width: 44rem; position: relative; }
.lenco-hero h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.lenco-page-hero .lenco-lead, .lenco-page-hero h1 { position: relative; }
.lenco-hero__content > * + * { margin-block-start: 2rem; }
.lenco-hero__content > ul.lenco-tags { margin-top: 1.75rem; }
.lenco-hero h1 { color: #fff; margin: 0; }
.lenco-page-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(4rem, 7vw, 6rem); background-size: 520px 520px; background-position: right -150px top -60px; }
.lenco-page-hero h1 { max-width: 56rem; margin: 0; font-size: clamp(2.375rem, 4.4vw, 3.75rem); line-height: 1.06; }
.lenco-page-hero .lenco-lead { margin-block-start: 1.5rem; }
.lenco-page-hero .taxonomy-category a, .lenco-page-hero .wp-block-post-date { color: var(--wp--preset--color--light); }
@media (max-width: 1400px) {
	.lenco-hero { background-size: 560px 560px; background-position: right -250px top 20px; }
	.lenco-page-hero { background-size: 440px 440px; background-position: right -190px top -70px; }
	.lenco-page-hero h1 { max-width: 46rem; }
}
@media (max-width: 900px) {
	.lenco-hero { min-height: 0; background-size: 380px 380px; background-position: right -170px top -90px; }
	.lenco-page-hero { background-size: 300px 300px; background-position: right -150px top -90px; }
}
@media (max-width: 600px) {
	.lenco-hero { background-size: 260px 260px; background-position: right -110px top -70px; padding-top: 12.5rem; }
	.lenco-page-hero { background-size: 200px 200px; background-position: right -90px top -70px; padding-top: 8rem; }
}

/* Coloured service tags: Fibre, Mobile & Wireless, Power, EV Charging */
ul.lenco-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; font-family: var(--wp--preset--font-family--archivo); font-weight: 600; font-size: 1.1875rem; color: #fff; }
ul.lenco-tags li { display: flex; align-items: center; gap: 12px; margin: 0; }
ul.lenco-tags li::before { content: ""; width: 12px; height: 12px; background: var(--wp--preset--color--sky); flex-shrink: 0; }
ul.lenco-tags li:nth-child(2)::before { background: var(--wp--preset--color--purple); }
ul.lenco-tags li:nth-child(3)::before { background: var(--wp--preset--color--orange); }
ul.lenco-tags li:nth-child(4)::before { background: var(--wp--preset--color--magenta); }
ul.lenco-tags li:nth-child(5)::before { background: var(--wp--preset--color--light); }

/* Outline button on dark backgrounds */
.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border: 2px solid #fff; background: transparent; }
.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
/* White button on magenta bands */
.lenco-band .wp-block-button__link { background: #fff; color: var(--wp--preset--color--navy); }
.lenco-band .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }

/* ---------- Clients strip ---------- */
.lenco-clients { padding-block: 2.25rem; border-bottom: 1px solid var(--wp--preset--color--rule); }
.lenco-clients__row { gap: 1.25rem 3.5rem; align-items: center; }
.lenco-clients__row p { margin: 0; }
.lenco-clients__name { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 1.375rem; color: var(--wp--preset--color--slate); }

/* ---------- Lists ---------- */
ul.lenco-squares { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
ul.lenco-squares li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
ul.lenco-squares li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; background: var(--wp--preset--color--orange); transform: translateY(-2px); }
ul.lenco-rules { list-style: none; padding: 0; margin: 0; }
ul.lenco-rules li { padding: 14px 0; border-bottom: 1px solid #E4E7EE; line-height: 1.5; }
ul.lenco-rules li:last-child { border-bottom: 0; }
@media (max-width: 600px) { ul.lenco-squares { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.lenco-feature { padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--wp--custom--radius); }
.lenco-feature h3 { margin-top: 0; }
.lenco-stack > .wp-block-group { padding-block: 2rem; border-bottom: 1px solid var(--wp--preset--color--rule); }
.lenco-stack > .wp-block-group:first-child { padding-top: 0; }
.lenco-stack > .wp-block-group h3 { margin: 0 0 0.6rem; font-size: 1.625rem; }
.lenco-stack > .wp-block-group p { margin: 0; }
.lenco-office { padding-top: 1.5rem; border-top: 3px solid currentColor; }
.lenco-office h3 { margin: 0; }
.lenco-office p { margin: 0.75rem 0 0; }
.lenco-stat { padding: 1.75rem; border: 2px solid var(--wp--preset--color--navy); border-radius: var(--wp--custom--radius); }
.lenco-stat.is-placeholder { border-style: dashed; border-color: #B7BECD; }
.lenco-stat p { margin: 0; }
.lenco-stat__num { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 2.5rem; line-height: 1.1; }
.lenco-badge { padding: 1.25rem 1.5rem; border: 1px solid #4E5F90; border-radius: var(--wp--custom--radius); }
.lenco-badge--light { border-color: var(--wp--preset--color--rule); }
.lenco-badge p { margin: 0; }
.lenco-badge__title { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 1.1875rem; line-height: 1.2; }
.lenco-values > .wp-block-column { padding-top: 1.5rem; border-top: 3px solid var(--wp--preset--color--orange); }
.lenco-service-card { padding: 2rem; border: 1px solid var(--wp--preset--color--rule); border-top: 6px solid var(--wp--preset--color--sky); border-radius: var(--wp--custom--radius); }

/* Photo placeholders: select the group and replace with an Image block */
.lenco-photo { min-height: 260px; display: flex; align-items: center; justify-content: center; background: #E4E7EE; border-radius: var(--wp--custom--radius); color: #4A5570; font-size: 0.9375rem; text-align: center; padding: 1rem; }
.lenco-photo p { margin: 0; }
.lenco-rounded img, .wp-block-image.lenco-rounded img { border-radius: var(--wp--custom--radius); }

/* ---------- Steps / history strip (a route line with chambers) ---------- */
.lenco-steps { position: relative; gap: 2.5rem; }
.lenco-steps::before { content: ""; position: absolute; top: 11px; left: 12px; right: 0; height: 4px; background: var(--wp--preset--color--orange); }
.lenco-steps > .wp-block-column { position: relative; padding-top: 44px; }
.lenco-steps > .wp-block-column::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 26px; box-sizing: border-box; border: 4px solid var(--wp--preset--color--navy); background: var(--wp--preset--color--paper); }
.lenco-steps > .wp-block-column:last-child::before { background: var(--wp--preset--color--orange); }
.has-navy-background-color .lenco-steps > .wp-block-column::before { border-color: var(--wp--preset--color--orange); background: var(--wp--preset--color--navy); }
.has-navy-background-color .lenco-steps > .wp-block-column:first-child::before,
.has-navy-background-color .lenco-steps > .wp-block-column:last-child::before { background: var(--wp--preset--color--orange); border-color: var(--wp--preset--color--navy); outline: 2px solid var(--wp--preset--color--orange); }
.lenco-steps h3 { margin: 0.4rem 0 0.6rem; font-size: 1.625rem; }
.lenco-steps p { margin: 0; }
.lenco-year { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 2.125rem; line-height: 1; color: var(--wp--preset--color--orange); }
.lenco-steps .lenco-year + p { margin-top: 0.75rem; }
.lenco-step-label { font-size: 0.9375rem; font-weight: 600; color: #4A5570; }
@media (max-width: 781px) {
	.lenco-steps::before { top: 0; bottom: 0; left: 11px; right: auto; width: 4px; height: auto; }
	.lenco-steps > .wp-block-column { padding-top: 0; padding-left: 52px; }
}

/* ---------- Timeline (About page) ---------- */
.lenco-timeline { position: relative; }
.lenco-timeline > .wp-block-group { position: relative; padding: 0 0 3.5rem 54px; margin: 0; }
.lenco-timeline > .wp-block-group::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 0; width: 4px; background: var(--wp--preset--color--orange); }
.lenco-timeline > .wp-block-group:last-child { padding-bottom: 0; }
.lenco-timeline > .wp-block-group:last-child::before { bottom: auto; height: 20px; }
.lenco-timeline > .wp-block-group::after { content: ""; position: absolute; left: 0; top: 8px; width: 26px; height: 26px; box-sizing: border-box; border: 4px solid var(--wp--preset--color--orange); background: var(--wp--preset--color--navy); }
.lenco-timeline > .wp-block-group:first-child::after,
.lenco-timeline > .wp-block-group:last-child::after { background: var(--wp--preset--color--orange); border-color: var(--wp--preset--color--navy); outline: 2px solid var(--wp--preset--color--orange); }
.lenco-timeline h3 { margin: 0.6rem 0; font-size: 1.625rem; }
.lenco-timeline p { margin: 0; }
.lenco-timeline .lenco-year { font-size: 2.5rem; }
.lenco-timeline p:not(.lenco-year) { color: #D5DAE6; }

/* ---------- Roles list (Careers) ---------- */
ul.lenco-roles { list-style: none; padding: 0; margin: 0; }
ul.lenco-roles li { padding: 18px 0; border-bottom: 1px solid #33447A; font-size: 1.125rem; color: var(--wp--preset--color--light); }
ul.lenco-roles li:last-child { border-bottom: 0; }
ul.lenco-roles li strong { color: #fff; font-weight: 600; margin-right: 0.75rem; }

/* ---------- Service sections ---------- */
.lenco-service { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--wp--preset--color--rule); }
.lenco-service:last-of-type { border-bottom: 0; }
.lenco-service h2 { font-size: clamp(2rem, 3.2vw, 2.625rem); line-height: 1.1; margin: 0 0 1.25rem; }
.lenco-service h3 { font-size: 1.375rem; margin: 0 0 0.5rem; }
.lenco-service .lenco-photo { margin-top: 1.5rem; }

/* ---------- News ---------- */
.lenco-news-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--wp--preset--color--rule); border-radius: var(--wp--custom--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.lenco-news-card:hover { box-shadow: 0 10px 30px rgba(19, 34, 74, 0.12); transform: translateY(-2px); }
.lenco-news-card .wp-block-post-featured-image { margin: 0; }
.lenco-news-card .wp-block-post-featured-image img { display: block; width: 100%; }
.lenco-news-card .wp-block-post-featured-image:empty { display: none; }
.lenco-news-card__body { padding: 1.5rem 1.5rem 1.75rem; }
.lenco-news-card__body > * { margin: 0; }
.lenco-news-card__body > * + * { margin-top: 0.75rem; }
.lenco-news-card .wp-block-post-title { font-size: 1.375rem; line-height: 1.2; }
.lenco-news-card .wp-block-post-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.lenco-news-card .wp-block-post-title a:hover { color: var(--wp--preset--color--magenta); }
.lenco-news-card .wp-block-post-terms a { color: var(--wp--preset--color--magenta); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.lenco-news-head { justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.lenco-article { padding-block: clamp(3rem, 6vw, 5rem); }
.lenco-article .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius); }
.lenco-article .wp-block-post-content { font-size: 1.1875rem; line-height: 1.7; color: var(--wp--preset--color--slate); }
.lenco-article .wp-block-post-content h2 { font-size: 2rem; color: var(--wp--preset--color--navy); }
.lenco-article .wp-block-post-content h3 { color: var(--wp--preset--color--navy); }
.lenco-post-nav { border-top: 1px solid var(--wp--preset--color--rule); padding-top: 2rem; margin-top: 3rem; justify-content: space-between; }
.wp-block-query-pagination { margin-top: 3rem; gap: 0.75rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 0.5rem 0.9rem; border: 1px solid var(--wp--preset--color--rule); border-radius: 4px; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }

/* ---------- Contact form ---------- */
.lenco-form { background: var(--wp--preset--color--paper); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--wp--custom--radius); }
.lenco-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lenco-form__field { display: flex; flex-direction: column; gap: 8px; }
.lenco-form__field--full { grid-column: 1 / -1; }
.lenco-form label { font-weight: 600; font-size: 1rem; }
.lenco-form label .req { color: var(--wp--preset--color--magenta); }
.lenco-form input, .lenco-form select, .lenco-form textarea { font: inherit; font-size: 1.0625rem; color: var(--wp--preset--color--navy); background: #fff; border: 1px solid #8C95AA; border-radius: 4px; padding: 0 14px; min-height: 52px; box-sizing: border-box; width: 100%; }
.lenco-form textarea { padding: 14px; min-height: 160px; resize: vertical; line-height: 1.5; }
.lenco-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lenco-form__note { font-size: 0.9375rem; color: var(--wp--preset--color--slate); margin: 0; }
.lenco-form__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lenco-form button { font: inherit; font-weight: 600; font-size: 1.0625rem; background: var(--wp--preset--color--magenta); color: #fff; border: 0; border-radius: 4px; padding: 0 1.9rem; min-height: 56px; cursor: pointer; }
.lenco-form button:hover { background: var(--wp--preset--color--magenta-dark); }
.lenco-form__notice { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; }
.lenco-form__notice--ok { background: #E3F2EA; color: #1C5B3A; }
.lenco-form__notice--error { background: #FBE7EE; color: #8E1149; }
@media (max-width: 600px) { .lenco-form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.lenco-footer { padding-block: 4.5rem 3rem; }
.lenco-footer h4, .lenco-footer .lenco-footer__title { color: #fff; font-family: var(--wp--preset--font-family--public-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.5rem; }
.lenco-footer p { font-size: 0.9375rem; line-height: 1.55; margin: 0 0 0.35rem; }
.lenco-footer .wp-block-site-logo img { height: auto; }
.lenco-footer ul { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; }
.lenco-footer ul li { margin-bottom: 0.6rem; }
.lenco-footer__legal { margin-top: 3.5rem !important; padding-top: 1.5rem; border-top: 1px solid #25366A; font-size: 0.875rem !important; }
