/*
 * Lombardo Lettering - component layer.
 *
 * Every rule here replaces a style="" string that appeared in the static
 * source. Layout, colour, spacing and typography that WordPress can express
 * through theme.json presets or block supports is NOT duplicated here, so the
 * block sidebar stays authoritative for those. What remains are the component
 * shapes core blocks have no control for.
 */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* --------------------------------------------------------------------------
 * Header shell.
 * ----------------------------------------------------------------------- */
.ll-header { position: sticky; top: 0; z-index: 60; box-shadow: var(--wp--preset--shadow--header, 0 1px 0 #2a2e34); }
.ll-header__bar { max-width: 1200px; margin: 0 auto; gap: 16px; }
.ll-announce .sep { opacity: .45; }
.ll-announce p { margin: 0; }
.ll-brand { gap: 12px; min-width: 0; }
.ll-brand__text { min-width: 0; }
.ll-brand__text .wp-block-site-title a { color: #fff; text-decoration: none; }
.ll-brand .wp-block-site-logo img { background: #fff; border-radius: 3px; display: block; }
.ll-header__actions { gap: 10px; }

/* --------------------------------------------------------------------------
 * Navigation. The design below is the original site.css look re-pointed at the
 * markup the core navigation block emits, so the menu itself stays editable in
 * the site editor while the appearance is unchanged.
 * ----------------------------------------------------------------------- */
.mainnav {
	font-family: var(--wp--preset--font-family--display);
	font-size: 14.5px; letter-spacing: .06em;
	text-transform: uppercase; font-weight: 500;
}
.mainnav .wp-block-navigation__container { gap: 6px; align-items: center; }
.mainnav .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding: 9px 11px; border-radius: 3px; display: block; text-decoration: none;
}
.mainnav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.mainnav .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--gold); background: var(--wp--preset--color--ink-raised);
}
.mainnav .wp-block-navigation__submenu-container {
	background: #15181c; border: 0; padding: 0; min-width: 270px; z-index: 70;
}
.mainnav .wp-block-navigation__submenu-container > li { border-bottom: 1px solid var(--wp--preset--color--ink-line); }
.mainnav .wp-block-navigation__submenu-container > li:first-child { background: var(--wp--preset--color--ink); }
.mainnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
	font-size: 13.5px; padding: 11px 14px; text-transform: none;
	letter-spacing: .02em; border-radius: 0;
}
.mainnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink);
}
/* Core renders the mobile overlay toggle; give it the original burger look. */
.mainnav .wp-block-navigation__responsive-container-open {
	width: 48px; height: 48px; background: var(--wp--preset--color--ink-raised);
	border: 1px solid var(--wp--preset--color--ink-border); border-radius: 3px;
	color: var(--wp--preset--color--accent); padding: 0 12px;
}
.mainnav .wp-block-navigation__responsive-container.is-menu-open { padding: 18px; }
.mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 15px; min-height: 48px; background: var(--wp--preset--color--ink-raised);
	padding: 14px 12px; letter-spacing: .05em;
}

/* Phone box and quote button beside the menu. */
.callbox { display: flex; flex-direction: column; background: var(--wp--preset--color--ink-raised); border: 1px solid var(--wp--preset--color--ink-border); color: #fff; padding: 7px 13px; line-height: 1.15; border-radius: 3px; text-decoration: none; font-family: var(--wp--preset--font-family--display); }
.callbox span { font-size: 10.5px; letter-spacing: .14em; color: var(--wp--preset--color--gold); text-transform: uppercase; }
.callbox strong { font-size: 16px; font-weight: 600; }
.callbox:hover { border-color: var(--wp--preset--color--accent); color: #fff; }
.ll-quote-button .wp-block-button__link { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; }
@media (max-width: 1100px) { .callbox { display: none; } }

/* Legacy burger markup, kept working for any part that still uses it. */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; background: var(--wp--preset--color--ink-raised); border: 1px solid var(--wp--preset--color--ink-border); border-radius: 3px; padding: 0 12px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--wp--preset--color--accent); }
.mobnav { background: #15181c; border-top: 1px solid var(--wp--preset--color--ink-line); max-height: 72vh; overflow: auto; padding: 12px 18px 22px; }
.mobnav > div { display: grid; gap: 2px; }
.mobnav a { display: block; color: var(--wp--preset--color--cream); padding: 14px 12px; border-radius: 3px; background: var(--wp--preset--color--ink-raised); font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .05em; font-size: 15px; min-height: 48px; }
@media (max-width: 1100px) { .burger { display: flex; } }

/* Footer shell. */
.ll-footer__legal .wp-block-group { max-width: 1200px; margin: 0 auto; }
.ll-footer__logo img { background: #fff; border-radius: 3px; display: block; margin-bottom: 14px; }
.ll-footer__links { gap: 7px; }
.ll-footer__links a { color: var(--wp--preset--color--text-invert-muted); font-size: inherit; padding: 0; }

.stickybar { display: none; }
@media (max-width: 820px) {
	.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--wp--preset--color--ink); border-top: 1px solid var(--wp--preset--color--ink-line); padding: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
	.stickybar a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 3px; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
	.stickybar .s1 { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
	.stickybar .s2 { background: var(--wp--preset--color--ink-raised); border: 1px solid #4a5058; color: #fff; }
}

/* --------------------------------------------------------------------------
 * Components. Registered as core block styles, so each is selectable from the
 * Styles panel instead of being hand-written markup.
 * ----------------------------------------------------------------------- */

/* Accent rule under a heading. */
.is-style-ll-rule { display: block; width: 34px; height: 3px; background: var(--wp--preset--color--accent); margin: 0 0 12px; }
.is-style-ll-rule-lg { display: block; width: 56px; height: 4px; background: var(--wp--preset--color--accent); margin-top: 14px; }

/* Small uppercase label above a heading. */
.is-style-ll-eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--gold); font-weight: 700; }
.is-style-ll-kicker { font-family: var(--wp--preset--font-family--display); font-size: 14px; letter-spacing: .14em; color: var(--wp--preset--color--text-faint); text-transform: uppercase; }

/* White card. */
.is-style-ll-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 4px; padding: 18px 20px; }
.is-style-ll-card > :last-child { margin-bottom: 0; }

/* Callout panel with an accent top edge. */
.is-style-ll-callout { background: var(--wp--preset--color--paper); border-top: 4px solid var(--wp--preset--color--accent); padding: 20px; border-radius: 0 0 4px 4px; }

/* Tile link - the bordered white row used across service and area lists. */
.is-style-ll-tile, .is-style-ll-tile .wp-block-button__link {
	display: flex; align-items: center; min-height: 48px; background: #fff;
	border: 1px solid var(--wp--preset--color--line); border-radius: 3px;
	padding: 12px 14px; color: var(--wp--preset--color--ink-text);
	font-weight: 600; font-size: 15.5px; text-decoration: none;
}
.is-style-ll-tile:hover, .is-style-ll-tile .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent); }

/* Town link - by far the most repeated element on the site. */
.is-style-ll-townlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.is-style-ll-townlist a, .is-style-ll-townlink {
	display: block; padding: 5px 0; color: var(--wp--preset--color--text-soft);
	font-size: 15.5px; text-decoration: none;
}
.is-style-ll-townlist a:hover, .is-style-ll-townlink:hover {
	color: var(--wp--preset--color--ink); text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent); text-underline-offset: 3px;
}

/* Checklist with square accent bullets. */
.is-style-ll-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.is-style-ll-checklist li { display: flex; gap: 11px; align-items: flex-start; color: #33363d; }
.is-style-ll-checklist li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--wp--preset--color--accent); margin-top: 9px; display: block; }

/* Specification rows on dark panels. */
.is-style-ll-specs { margin: 0; padding: 0; list-style: none; }
.is-style-ll-specs li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #23262b; color: var(--wp--preset--color--cream); font-size: 16.5px; }
.is-style-ll-specs li > strong { flex: none; color: var(--wp--preset--color--accent); font-weight: 700; font-size: 15px; }

/* Gallery thumbnail in a fixed 4:3 frame. The frame is on the figure; a link,
   when present, has to stretch to fill it. */
.is-style-ll-thumb {
	display: block; background: var(--wp--preset--color--line-alt);
	border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 3; margin: 0;
}
.is-style-ll-thumb > a { display: block; width: 100%; height: 100%; }
.is-style-ll-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-style-ll-thumb figcaption { margin-top: 7px; font-size: 13.5px; color: var(--wp--preset--color--text-muted); font-weight: 600; }

/* Large intro paragraph. */
.is-style-ll-lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.5; color: var(--wp--preset--color--ink-text); font-weight: 500; }

/* Statistic. */
.is-style-ll-stat { display: block; font-family: var(--wp--preset--font-family--display); font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; color: var(--wp--preset--color--accent); line-height: 1; }

/* Breadcrumb trail. */
.ll-breadcrumb { font-size: 13.5px; color: var(--wp--preset--color--text-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ll-breadcrumb [aria-current] { color: var(--wp--preset--color--ink); font-weight: 600; }
.ll-breadcrumb .sep { opacity: .5; }

/* Embedded Google Map. */
.ll-map { border: 1px solid var(--wp--preset--color--line); border-radius: 4px; overflow: hidden; background: var(--wp--preset--color--paper); }
.ll-map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* Hero with video or image behind a scrim. The core video block wraps its
   <video> in a <figure>, so both need positioning. */
.ll-hero { position: relative; overflow: hidden; }
.ll-hero__media { position: absolute; inset: 0; margin: 0; }
.ll-hero__media video, .ll-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .32; display: block; }
.ll-hero__scrim { position: absolute; inset: 0; }
.ll-hero > .ll-u-relative, .ll-hero__body { position: relative; z-index: 1; }

/* Quote form. */
.ll-form { background: var(--wp--preset--color--ink-soft); border: 1px solid var(--wp--preset--color--ink-line); border-radius: 4px; padding: 22px; display: grid; gap: 14px; }
.ll-form label { display: grid; gap: 6px; min-width: 0; color: var(--wp--preset--color--text-invert); font-size: 14px; font-weight: 600; }
.ll-form input, .ll-form select, .ll-form textarea {
	background: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--ink-border);
	color: #fff; border-radius: 3px; padding: 13px; font-size: 16px;
	min-height: 48px; min-width: 0; width: 100%; max-width: 100%;
}
.ll-form input[type="file"] { border-style: dashed; border-color: #4a5058; color: var(--wp--preset--color--text-invert-muted); font-size: 15px; }
.ll-form textarea { min-height: 0; }
.ll-form button {
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); border: none;
	border-radius: 3px; padding: 16px; font-weight: 700; font-size: 17px; min-height: 52px;
	cursor: pointer; font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase; letter-spacing: .06em;
}
.ll-form button:hover { background: #fff; }
.ll-form .note { color: #7d8189; font-size: 13px; }

/* Trust / logo strip. */
.ll-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.ll-logos img { height: 38px; width: auto; object-fit: contain; }
.ll-logos span { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: 15px; letter-spacing: .08em; color: var(--wp--preset--color--text-muted); }

/* Grid layout: opt into auto-fit so a short final row still stretches, which is
   what the source markup did. Core's grid layout emits auto-fill by default. */
.ll-autofit.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--ll-col, 240px), 100%), 1fr)); }

/* Footer link colours. */
.ll-footer a { color: var(--wp--preset--color--text-invert-muted); }
.ll-footer a:hover { color: var(--wp--preset--color--gold); }
.ll-footer .phone { color: var(--wp--preset--color--gold); font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 600; }

/* --------------------------------------------------------------------------
 * Utilities.
 *
 * The converter emits these for the handful of declarations that have no block
 * attribute equivalent. They are deliberately few and readable: an editor can
 * see "ll-u-clip" in the Advanced panel and remove it, which is not true of
 * machine-generated per-page CSS keyed to a post ID.
 * ----------------------------------------------------------------------- */
.ll-u-block { display: block; }
.ll-u-inline-block { display: inline-block; }
.ll-u-inline-flex { display: inline-flex; }
.ll-u-flex { display: flex; }
.ll-u-grid { display: grid; }
.ll-u-column { flex-direction: column; }
.ll-u-items-center { align-items: center; }
.ll-u-items-baseline { align-items: baseline; }
.ll-u-items-start { align-items: flex-start; }
.ll-u-flex-none { flex: none; }
.ll-u-flex-1 { flex: 1; }
.ll-u-full, .ll-u-full > img, .ll-u-full > a > img { width: 100%; }
.ll-u-w-auto, .ll-u-w-auto > img, .ll-u-w-auto > a > img { width: auto; }
.ll-u-h-full, .ll-u-h-full > img, .ll-u-h-full > a > img { height: 100%; }
.ll-u-h-auto, .ll-u-h-auto > img, .ll-u-h-auto > a > img { height: auto; }
.ll-u-minh-48 { min-height: 48px; }
.ll-u-minh-52 { min-height: 52px; }
.ll-u-minw-0 { min-width: 0; }
.ll-u-minw-560 { min-width: 560px; }
.ll-u-cover, .ll-u-cover > img, .ll-u-cover > a > img { object-fit: cover; }
.ll-u-contain, .ll-u-contain > img, .ll-u-contain > a > img { object-fit: contain; }
.ll-u-clip { overflow: hidden; }
.ll-u-scroll { overflow: auto; }
.ll-u-plain-list { list-style: none; }
.ll-u-relative { position: relative; }
/* Brand logo strip. Without reaching the <img>, these rendered at full size
   and covered the section beneath them. */
.ll-u-logo, .ll-u-logo > img, .ll-u-logo > a > img { height: 38px; width: auto; object-fit: contain; }

/* Content width steps taken from the source layout. A width utility only caps
   the width; centring is a separate, explicit class, because the source centres
   containers while leaving their contents left-aligned. */
.ll-w-620 { max-width: 620px; }
.ll-w-640 { max-width: 640px; }
.ll-w-680 { max-width: 680px; }
.ll-w-700 { max-width: 700px; }
.ll-w-760 { max-width: 760px; }
.ll-w-860 { max-width: 860px; }
.ll-w-1000 { max-width: 1000px; }
.ll-w-1200 { max-width: 1200px; }
.ll-center { margin-inline: auto; }

/* Converter-recognised component shells. */
.ll-check { display: flex; gap: 11px; align-items: flex-start; }
.ll-check::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--wp--preset--color--accent); margin-top: 9px; display: block; }
.ll-spec { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #23262b; }
.ll-table { width: 100%; border-collapse: collapse; }
.ll-table th, .ll-table td { text-align: left; }
.is-style-ll-townlink { display: block; padding: 5px 0; color: var(--wp--preset--color--text-soft); font-size: 15.5px; }
.is-style-ll-townlink:hover { color: var(--wp--preset--color--ink); text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-underline-offset: 3px; }

/* Marks a block whose source style could not be fully expressed. The build
   currently emits none of these; the rule exists so any future regression is
   visible in the editor rather than silent. */
.ll-has-residual-style { outline: 0; }
