/* ==========================================================================
   Fine Stripes — Bluebird layout + sitewide chrome layer (2026-09-13)

   Loaded after main.css. Copies Bluebird Roofing's LAYOUT (alternating
   photo | dark-card rows, dark how-it-works band with white step cards, pale
   FAQ, dark service-areas band, centered closing CTA) and never its branding:
   every colour here is an existing Fine Stripes token — asphalt/black, the
   badge yellow #f0e018, the gold text shade #8a6f00, white and the alt grey.
   ========================================================================== */

/* ---------- header: dropdown toggles (desktop) ---------- */
.nav-toggle { display: none; }
.nav-list > li { display: flex; align-items: center; gap: .15rem; }
.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.6rem; height: 1.6rem; padding: 0; margin: 0;
	background: transparent; border: 0; border-radius: 6px;
	color: #c7cbd2; cursor: pointer;
}
.sub-toggle:hover, .sub-toggle:focus-visible { color: var(--fs-yellow); }
.sub-toggle:focus-visible { outline: 2px solid var(--fs-yellow); outline-offset: 1px; }
.sub-toggle svg { transition: transform .15s; }
.nav-list > li.is-open > .sub-toggle svg,
.nav-list > li:hover > .sub-toggle svg { transform: rotate(180deg); }

@media (min-width: 861px) {
	.nav-list .sub-menu {
		top: calc(100% + .35rem);
		box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
		border-top: 3px solid var(--fs-yellow);
	}
	/* hover bridge so the pointer can travel from the link into the menu */
	.nav-list > li.menu-item-has-children::after {
		content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem;
	}
	.nav-list li.is-open > .sub-menu { display: block; }
	.nav-list > li.menu-areas > .sub-menu {
		min-width: 27rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: .25rem;
	}
	.nav-list > li.menu-areas:hover > .sub-menu,
	.nav-list > li.menu-areas:focus-within > .sub-menu,
	.nav-list > li.menu-areas.is-open > .sub-menu { display: grid; }
	.nav-list .sub-menu a { white-space: nowrap; }
}

/* ---------- header: mobile menu (only when the script can open it) ---------- */
@media (max-width: 860px) {
	.fs-js .header-inner { flex-wrap: wrap; }
	.fs-js .brand { order: 1; }
	.fs-js .header-cta { order: 3; flex: 1 0 100%; }
	.fs-js .header-cta .btn { flex: 1 1 0; justify-content: center; }
	.fs-js .nav-toggle {
		order: 2; display: inline-flex; align-items: center; gap: .45rem;
		padding: .5rem .7rem; min-height: 40px;
		background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .88rem;
		border: 2px solid #3a3d43; border-radius: var(--fs-radius); cursor: pointer;
	}
	.fs-js .nav-toggle[aria-expanded="true"] { border-color: var(--fs-yellow); color: var(--fs-yellow); }
	.nav-toggle-bars { display: inline-grid; gap: 3px; }
	.nav-toggle-bars span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; }
	.fs-js .site-nav { order: 4; display: none; flex: 1 0 100%; }
	.fs-js .site-nav.is-open { display: block; max-height: calc(100vh - 120px); overflow-y: auto; }
	.fs-js .nav-list {
		display: block; overflow: visible; padding: .25rem 0 .75rem;
		border-top: 1px solid #2a2d33;
	}
	.fs-js .nav-list > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #1f2126; }
	.fs-js .nav-list > li > a { flex: 1 1 auto; padding: .8rem 0; font-size: 1rem; }
	.fs-js .sub-toggle { width: 44px; height: 44px; color: #fff; }
	.fs-js .nav-list .sub-menu {
		position: static; display: none; flex: 1 0 100%;
		min-width: 0; margin: 0 0 .6rem; padding: .35rem 0;
		background: var(--fs-asphalt-2); border: 0; border-radius: 8px; box-shadow: none;
	}
	.fs-js .nav-list > li.is-open > .sub-menu { display: block; }
	.fs-js .nav-list > li.menu-areas.is-open > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fs-js .nav-list .sub-menu a { padding: .6rem .9rem; font-size: .93rem; }
}

/* ---------- footer: five columns that fill the width ---------- */
@media (min-width: 1100px) {
	.footer-grid.footer-grid-full {
		grid-template-columns: 1.1fr .92fr 1.5fr .62fr 1.08fr;
		gap: 2rem;
	}
}
@media (min-width: 640px) and (max-width: 1099px) {
	.footer-grid.footer-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid.footer-grid-full .footer-col-find { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
	.footer-grid.footer-grid-full { grid-template-columns: 1fr; gap: 1.75rem; }
}
.footer-list-areas { columns: 2; column-gap: 1rem; }
.footer-list-areas li { break-inside: avoid; white-space: nowrap; }
@media (min-width: 1100px) {
	.footer-grid-full .footer-list a, .footer-grid-full .footer-social a { font-size: .95rem; }
}
.footer-col-find .map-embed {
	border-radius: 10px; overflow: hidden; background: #1a1c20;
	border: 1px solid #2a2d33; min-height: 220px;
}
.footer-col-find .map-embed iframe { display: block; }
.footer-grid-full .footer-badge { height: 84px; }

/* ==========================================================================
   Bluebird page bands
   ========================================================================== */
.bb-page .section.bb-band { padding: clamp(3rem, 6.5vw, 5.5rem) 0; }
.bb-white { background: #fff; }
.bb-pale { background: var(--fs-bg-alt); }
.bb-dark {
	background: linear-gradient(155deg, var(--fs-asphalt) 0%, var(--fs-black) 100%);
	color: #c7cbd2;
}
.bb-dark h2, .bb-dark h3 { color: #fff; }
.bb-dark .lede, .bb-dark p { color: #c7cbd2; }
.bb-dark a:not(.btn):not(.bb-pill) { color: var(--fs-yellow); }
.bb-dark .kicker { color: var(--fs-yellow); }
.bb-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; margin-top: 0; }
.bb-center-head > .wrap > .kicker,
.bb-center-head > .wrap > h2,
.bb-center-head > .wrap > .lede { display: block; text-align: center; margin-left: auto; margin-right: auto; }
.bb-center-head > .wrap > .kicker::before { display: none; }
.bb-center-head > .wrap > h2 { max-width: 30ch; }
.bb-center-head > .wrap > .lede { max-width: 62ch; margin-bottom: 2.2rem; }

/* ---------- hero over a photograph ---------- */
.bb-hero.bb-hero-has-photo { background: var(--fs-asphalt); }
.bb-hero-photo {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.bb-hero.bb-hero-has-photo::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(100deg, rgba(12, 13, 15, .93) 0%, rgba(12, 13, 15, .86) 48%, rgba(12, 13, 15, .66) 100%);
}
.bb-hero.page-hero::before { z-index: 1; }
.bb-hero .wrap { z-index: 2; }
.bb-hero .bb-trust-chips { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.bb-hero .bb-trust-chips li {
	background: rgba(12, 13, 15, .6); border: 1px solid rgba(240, 224, 24, .28);
	border-radius: 999px; padding: .38rem .9rem .38rem .75rem; line-height: 1.35;
}
.bb-hero .bb-trust-chips li::before { width: .9rem; height: 3px; margin-top: .6rem; }

/* ---------- 2-column photo | card rows ---------- */
.bb-row { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 3vw, 2.4rem); align-items: stretch; }
.bb-row-rev { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.bb-row-rev > .bb-media { order: 2; }
.bb-row-solo { grid-template-columns: minmax(0, 1fr); }
.bb-media {
	position: relative; border-radius: var(--fs-radius); overflow: hidden;
	min-height: 420px; background: var(--fs-asphalt);
	box-shadow: 0 14px 34px rgba(12, 13, 15, .12);
}
.bb-media > img {
	position: absolute; inset: 0; display: block;
	width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
}
.bb-media > img.bb-contain { object-fit: contain; }
.bb-media-note {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	padding: 2.2rem 1.3rem 1rem; font-size: .9rem; line-height: 1.45; color: #fff;
	background: linear-gradient(180deg, rgba(12, 13, 15, 0) 0%, rgba(12, 13, 15, .88) 45%);
}
.bb-card { border-radius: var(--fs-radius); padding: clamp(1.6rem, 3.2vw, 2.75rem); align-self: center; min-width: 0; }
.bb-card-dark {
	align-self: stretch;
	background: linear-gradient(150deg, var(--fs-asphalt-2) 0%, var(--fs-black) 100%);
	border-top: 4px solid var(--fs-yellow);
	color: #c7cbd2;
	display: flex; flex-direction: column; justify-content: center;
}
.bb-card-dark h2, .bb-card-dark h3, .bb-card-dark strong, .bb-card-dark b { color: #fff; }
.bb-card-dark p, .bb-card-dark li { color: #d3d6dc; }
.bb-card-dark a:not(.btn) { color: var(--fs-yellow); }
.bb-card-dark .kicker { color: var(--fs-yellow); }
.bb-card-plain { padding: clamp(.5rem, 1.5vw, 1rem) .25rem; }
.bb-card > .kicker { margin-bottom: .6rem; }
.bb-card h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: .9rem; }
.bb-prose > p, .bb-more-body p { max-width: 68ch; }
.bb-prose > *:last-child { margin-bottom: 0; }
.bb-card ul:not(.bb-chips):not(.bb-pills):not(.seg-list):not(.tick-list) { padding-left: 1.2rem; }
.bb-card ul:not(.bb-chips):not(.bb-pills):not(.seg-list):not(.tick-list) li { margin: .35rem 0; }

/* inline figures and tables inside disclosures */
.bb-inline-figure { margin: 1.25rem 0; float: none !important; width: auto !important; max-width: 100%; }
.bb-inline-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.bb-inline-figure figcaption { font-size: .88rem; color: var(--fs-mute); margin-top: .4rem; }
.bb-card-dark .bb-inline-figure figcaption { color: #aeb3bb; }
.bb-card .table-scroll { max-width: 100%; margin: 1rem 0; }
.bb-card-dark table { color: #d3d6dc; }

/* ---------- "More about …" ---------- */
.bb-more-about { margin-top: 1.4rem; }
.bb-more-about > summary {
	display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; list-style: none;
	font-weight: 800; font-size: .92rem; padding: .6rem 1.1rem;
	border-radius: 999px; border: 2px solid currentColor;
}
.bb-more-about > summary::-webkit-details-marker { display: none; }
.bb-more-about > summary::after { content: "+"; font-size: 1.15em; line-height: 1; }
.bb-more-about[open] > summary::after { content: "\2013"; }
.bb-card-plain .bb-more-about > summary, .bb-white .bb-more-about > summary, .bb-pale .bb-more-about > summary { color: var(--fs-black); }
.bb-card-dark .bb-more-about > summary, .bb-dark .bb-more-about > summary { color: var(--fs-yellow); }
.bb-more-body { margin-top: 1.1rem; }
.bb-more-body h3 { margin: 1.4rem 0 .5rem; font-size: 1.15rem; }
.bb-more-body h3:first-child { margin-top: .4rem; }

/* ---------- how it works: dark band, white step cards ---------- */
.bb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-steps > li.bb-step {
	background: #fff; border-radius: var(--fs-radius);
	padding: 1.6rem 1.35rem 1.5rem; text-align: center;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.bb-step-pill {
	display: inline-block; margin-bottom: .9rem; padding: .32rem .95rem;
	background: var(--fs-yellow); color: var(--fs-black);
	font-weight: 800; font-size: .78rem; letter-spacing: .04em; border-radius: 999px;
}
.bb-steps .bb-step h3 { color: var(--fs-black); font-size: 1.08rem; margin: 0 0 .5rem; }
.bb-steps .bb-step p { color: var(--fs-slate); font-size: .95rem; margin: 0; }
.bb-steps-band .steps-foot { color: #c7cbd2; text-align: center; margin: 1.8rem auto 0; max-width: 70ch; }

/* ---------- reviews on a white band ---------- */
.bb-page .proof-band { background: #fff; }

/* ---------- FAQ: pale band, dark rows, first open ---------- */
.bb-faq .faq details {
	background: #fff; border: 1px solid var(--fs-line); border-radius: 12px; padding: 0; overflow: hidden;
	text-align: left; box-shadow: 0 6px 18px rgba(12, 13, 15, .05);
}
.bb-faq .faq summary {
	background: var(--fs-asphalt); color: #fff; padding: .95rem 1.2rem; list-style: none;
	display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.bb-faq .faq summary::-webkit-details-marker { display: none; }
.bb-faq .faq summary::before { display: none; }
.bb-faq .faq summary { text-align: left; }
.bb-faq .faq summary::after { content: "+"; color: var(--fs-yellow); font-size: 1.3rem; line-height: 1; flex: none; }
.bb-faq .faq details[open] summary { margin-bottom: 0; }
.bb-faq .faq details[open] summary::after { content: "\2013"; }
.bb-faq .faq details > p { padding: 1rem 1.2rem 1.15rem; }

/* ---------- service areas: dark band, pills left | map right ---------- */
.bb-areas-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.bb-pills { list-style: none; margin: 1.3rem 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.bb-pills li { margin: 0; }
a.bb-pill {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 44px; padding: .5rem .8rem; border-radius: 999px;
	background: var(--fs-yellow); color: var(--fs-black); font-weight: 800; font-size: .9rem;
	text-decoration: none; line-height: 1.2;
}
a.bb-pill:hover, a.bb-pill:focus-visible { background: #fff; }
.bb-areas-map .proof-embed, .bb-area-map { height: 100%; min-height: 360px; border-radius: var(--fs-radius); overflow: hidden; background: #1a1c20; border: 1px solid #2a2d33; }
.bb-area-map iframe, .bb-areas-map .proof-embed iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.bb-areas-map .map-gbp-note { margin: .7rem 0 0; font-size: .9rem; color: #aeb3bb; }
.bb-areas-map:has(.map-gbp-note) .proof-embed { height: auto; }

/* ---------- town: service chips ---------- */
.bb-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.bb-chip { background: var(--fs-asphalt); border-radius: 10px; padding: .85rem 1rem; border-left: 4px solid var(--fs-yellow); }
.bb-chip a { color: #fff; font-weight: 800; text-decoration: none; line-height: 1.3; display: block; }
.bb-chip a:hover { color: var(--fs-yellow); }
.bb-chip p { color: #aeb3bb; font-size: .86rem; line-height: 1.45; margin: .35rem 0 0; }
.bb-town-panel {
	max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--fs-line);
	border-radius: var(--fs-radius); padding: 1.6rem 2rem; text-align: center; font-size: 1.08rem;
	box-shadow: 0 6px 18px rgba(12, 13, 15, .05);
}
.bb-town-panel p { margin: 0; }

/* ---------- driving directions ---------- */
.bb-directions .map-grid { margin-top: 1.75rem; }
.bb-directions .map-card { background: var(--fs-asphalt); border: 0; color: #c7cbd2; border-radius: var(--fs-radius); overflow: hidden; }
.bb-directions .map-card h3 { color: #fff; }
.bb-directions .map-card-dist { color: #aeb3bb; }
.bb-directions .map-card .card-link { color: var(--fs-yellow); }
.bb-directions .map-card-dir {
	display: inline-flex; align-self: flex-start; margin-top: .45rem; padding: .55rem 1rem;
	border: 2px solid var(--fs-yellow); border-radius: var(--fs-radius); color: #fff; font-weight: 800; text-decoration: none;
}
.bb-directions .map-card-dir:hover { background: var(--fs-yellow); color: var(--fs-black); }
p.bb-dir-from {
	align-self: flex-start; margin: 0 0 .25rem; padding: .25rem .8rem; border-radius: 999px;
	background: var(--fs-yellow); color: var(--fs-black); font-weight: 800; font-size: .82rem;
}
p.bb-dir-roads { margin: .2rem 0 0; font-size: .92rem; line-height: 1.5; color: #d3d6dc; }
p.bb-dir-roads b { color: #fff; }
.bb-directions .map-gbp-lead { max-width: 780px; margin: 0 auto 1.5rem; }

/* ---------- hubs ---------- */
.bb-svc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-svc-card { background: var(--fs-asphalt); border-color: var(--fs-asphalt); }
.bb-svc-card h3 { color: #fff; }
.bb-svc-card p { color: #c7cbd2; }
.bb-svc-card .card-link { color: var(--fs-yellow); }
.bb-areas-hub .area-cards a { background: var(--fs-asphalt); border-color: var(--fs-asphalt); }
.bb-areas-hub .area-card-name { color: #fff; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.bb-areas-hub .wrap > p:last-child { text-align: center; margin-top: 1.6rem; }

/* ---------- closing CTA ---------- */
.bb-cta {
	background: linear-gradient(160deg, var(--fs-asphalt-2) 0%, var(--fs-black) 100%);
	color: #c7cbd2; border-top: 4px solid var(--fs-yellow);
}
.bb-cta-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.bb-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.bb-cta .kicker { color: var(--fs-yellow); }
.bb-cta .lede, .bb-cta p { color: #c7cbd2; }
.bb-cta a:not(.btn) { color: var(--fs-yellow); }
.bb-cta-micro { font-weight: 700; color: #fff !important; }
.bb-cta-form { background: #fff; border-radius: var(--fs-radius); padding: clamp(1.25rem, 2.2vw, 1.75rem); border-top: 5px solid var(--fs-yellow); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.bb-cta-form .lead-form { max-width: none; border: 0; box-shadow: none; padding: 0; background: transparent; }
.bb-cta-form p, .bb-cta-form label { color: var(--fs-ink); }
.bb-cta-form a:not(.btn) { color: var(--fs-blue-dk); }

/* ---------- responsive: one column, IMAGE FIRST ---------- */
@media (max-width: 1020px) {
	.bb-steps, .bb-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.bb-row, .bb-row-rev, .bb-areas-grid, .bb-cta-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.bb-row > .bb-media, .bb-row-rev > .bb-media { order: -1; min-height: 240px; border-radius: var(--fs-radius) var(--fs-radius) 0 0; }
	.bb-row .bb-card-dark { border-radius: 0 0 var(--fs-radius) var(--fs-radius); border-top-width: 0; }
	.bb-row .bb-card-plain { padding: 1.4rem .15rem 0; }
	.bb-areas-map { margin-top: 1.5rem; }
	.bb-areas-map .proof-embed, .bb-area-map, .bb-area-map iframe, .bb-areas-map .proof-embed iframe { min-height: 280px; }
	.bb-cta-in { gap: 1.5rem; }
	.bb-chips { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.bb-steps, .bb-svc-grid { grid-template-columns: minmax(0, 1fr); }
	.bb-media-note { position: static; background: var(--fs-asphalt); padding: .8rem 1rem; }
	.bb-media:has(.bb-media-note) { display: flex; flex-direction: column; min-height: 0; }
	.bb-media:has(.bb-media-note) > img { position: static; height: 240px; }
	.bb-town-panel { padding: 1.2rem 1.1rem; }
}

/* ---------- home: figures that fill a row's media box ---------- */
.bb-media > .bb-fill-figure { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.bb-media > .bb-fill-figure img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.bb-home-why .tick-list li, .bb-home-why .tick-list { color: #d3d6dc; }
.bb-home-areas .bb-areas-text .card-link { color: var(--fs-yellow); }
@media (max-width: 860px) {
	.bb-media:has(> .bb-fill-figure) { min-height: 260px; }
}

/* ---------- band rhythm fixes (no two adjacent bands share a fill) ---------- */
.home .proof-band { background: var(--fs-bg-alt); }
.bb-traffic + .section-alt { background: #fff; }
.bb-home-areas + .cta-band { border-top: 4px solid var(--fs-yellow); }
.bb-card ul.seg-list, .bb-card ul.tick-list { padding-left: 0; }
/* thirteen town cards: centre the last row instead of leaving one orphan at the left */
@media (min-width: 620px) {
	.bb-areas-hub .area-cards.bb-place-grid { display: flex; flex-wrap: wrap; justify-content: center; }
	.bb-areas-hub .area-cards.bb-place-grid > li { flex: 0 0 calc((100% - 2 * var(--bb-gap, 1rem)) / 3); }
}
@media (min-width: 940px) {
	.bb-areas-hub .area-cards.bb-place-grid > li { flex-basis: calc((100% - 3 * var(--bb-gap, 1rem)) / 4); }
}
.bb-town-facts { margin-top: 1.2rem !important; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
