/* bluebird-layout.css — Broadway Tree Care, Bluebird layout + sitewide nav/footer chrome (2026-09-13).
   Ported from the Clear Exteriors v2 pilot Dylan approved (via the Diakite port), re-pointed at Broadway's
   OWN :root tokens in style.css: --green-dk #0b3a1f / --green #14532d / --green-2 #166534 canopy greens,
   --amber #d97706 CTA accent, --sky #ecfdf5 pale tint. Montserrat + Inter unchanged.
   Broadway has ZERO real photos (licensed-and-insured shirt/logo ruling open) and NO stock is allowed, so
   every Bluebird photo slot is a dark text card carrying content MOVED from the same page, or one of the
   page's own existing Google Maps embeds. Loads AFTER style.css; a page with no bb-* classes only picks up
   the nav/footer chrome rules at the bottom. Band fills use !important because style.css's same-tint
   repeat chain ([data-tint-repeat], .section-tint) out-specifies a single class. */

/* ---------- bands ---------- */
section.bb-band { padding: 80px 0 !important; border-top: 0 !important; }
section.bb-white { background: var(--white) !important; color: var(--body); }
section.bb-pale { background: var(--sky) !important; color: var(--body); }
section.bb-dark { background: linear-gradient(155deg, var(--green-dk) 0%, var(--green) 100%) !important; color: rgba(255, 255, 255, .9); }
.bb-dark h2, .bb-dark h3 { color: var(--white); }
.bb-dark p:not(.kicker), .bb-dark li, .bb-dark dd, .bb-dark figcaption { color: rgba(255, 255, 255, .9); }
.bb-dark .muted { color: rgba(255, 255, 255, .7) !important; }
.bb-dark a:not(.btn):not(.area-card):not(.svc-card) { color: #fcd34d; }
.bb-dark .kicker { color: #a7f3d0; }
.bb-band h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); line-height: 1.18; }
.bb-center-head > .wrap > .kicker, .bb-center-head > .wrap > h2, .bb-center-head > .wrap > .dir-note { text-align: center; margin-left: auto; margin-right: auto; }
.bb-center-head > .wrap > h2 { max-width: 860px; margin-bottom: 26px; }
.bb-band > .wrap.wrap-narrow { width: min(100% - 2.5rem, var(--wrap)); }

/* ---------- 2-column rows (Bluebird reference §8): media | card, alternating ---------- */
.bb-row { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; align-items: stretch; }
.bb-row-rev { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.bb-row-rev > .bb-media { order: 2; }
.bb-media { position: relative; border-radius: var(--radius); overflow: hidden; min-width: 0; }
/* photo slot with no real photo: a clean dark text card (no stock, no invented imagery) */
.bb-media-text { background: linear-gradient(155deg, var(--green-dk) 0%, var(--green) 100%); color: rgba(255, 255, 255, .92); padding: 40px 40px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; }
.bb-media-text h2, .bb-media-text h3, .bb-media-text strong, .bb-media-text b { color: var(--white) !important; }
.bb-media-text p, .bb-media-text li, .bb-media-text dd, .bb-media-text span { color: rgba(255, 255, 255, .92); }
.bb-media-text a:not(.btn) { color: #fcd34d !important; }
.bb-media-text .ic { color: #fbbf24 !important; }
.bb-media-text h3 { font-size: 1.25rem; margin-bottom: .6em; }
/* the answer block as a media card */
.bb-media-text .answer-card { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.bb-media-text .answer-lead { font-size: 1.05rem; color: var(--white) !important; }
.bb-media-text .answer-facts div { border-top-color: rgba(255, 255, 255, .22); }
.bb-media-text .answer-facts dt { color: #a7f3d0 !important; }
.bb-media-text .answer-qs li { background: rgba(255, 255, 255, .1); color: var(--white) !important; }
.bb-media-text .entity-facts { border-top-color: rgba(255, 255, 255, .22); }
.bb-media-text .entity-facts p { color: rgba(255, 255, 255, .82) !important; font-size: .9rem; }
/* the access / roads block as a media card */
.bb-media-text .access-block { border: 0; background: transparent; box-shadow: none; padding: 0; width: auto; margin: 0; }
.bb-media-text .access-note { background: rgba(255, 255, 255, .08); color: var(--white); }
.bb-media-text .landmarks { color: rgba(255, 255, 255, .88) !important; }
/* a real map (the page's own existing embed) in the photo slot */
.bb-media-map { display: flex; flex-direction: column; gap: 14px; }
.bb-media-map .map-fig { margin: 0; flex: 1; display: flex; flex-direction: column; }
.bb-media-map .map-embed { flex: 1; min-height: 360px; }
.bb-media-map .map-embed iframe { height: 100%; min-height: 360px; }
.bb-card { border-radius: var(--radius); padding: 36px 40px; align-self: center; min-width: 0; }
.bb-card-light { align-self: center; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; }
.bb-card-plain { padding: 12px 6px; }
.bb-card h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); }
.bb-card p { max-width: 68ch; }
.bb-card .check-list { margin-bottom: 1rem; }
.bb-media-text .inline-cta { display: block; margin-top: 1.2rem; }

/* icon rows (service why-us benefit cards folded into one card) */
.bb-icon-rows { list-style: none; display: grid; gap: 16px; margin: 18px 0 4px; padding: 0; }
.bb-icon-rows li { display: flex; gap: 14px; align-items: flex-start; }
.bb-icon-rows .ic { flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 10px; background: var(--sky); color: var(--green-2); margin: 0; }
.bb-icon-rows h3 { font-size: 1.04rem; margin: 2px 0 4px; }
.bb-icon-rows p { font-size: .94rem; margin: 0; }

/* ---------- "More about …" disclosure ---------- */
.bb-more-about { margin-top: 16px; }
.bb-more-about > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid currentColor; color: var(--green); }
.bb-more-about > summary::-webkit-details-marker { display: none; }
.bb-more-about > summary::after { content: "+"; font-size: 1.1em; line-height: 1; }
.bb-more-about[open] > summary::after { content: "\2013"; }
.bb-more-body { margin-top: 18px; text-align: left; }
.bb-more-body > p, .bb-more-body > .lead { margin-bottom: .95em; }
.bb-more-body .table-scroll, .bb-more-body .cmp-wrap { margin: .6rem 0 1rem; }
.bb-dark .bb-more-about > summary, .bb-media-text .bb-more-about > summary { color: #fcd34d; }
.bb-dark .bb-more-body { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px 24px; }
.bb-dark .bb-more-body .prose-2col { columns: 1; }

/* ---------- how-it-works journey (reference §6): white "Step : 0N" cards on a dark band ---------- */
.bb-how .step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.bb-how.bb-steps-6 .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-how .step-list li { flex-direction: column; align-items: center; text-align: center; background: var(--white); border: 0; border-radius: var(--radius); padding: 28px 22px 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.bb-how .step-n { width: auto; height: auto; display: inline-block; background: var(--amber); color: var(--white); font-family: Montserrat, system-ui, sans-serif; font-weight: 800; font-size: .8rem; letter-spacing: .03em; padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.bb-how .step-n::before { content: "Step : 0"; }
.bb-how .step-list h3 { color: var(--green) !important; font-size: 1.06rem; line-height: 1.3; margin-bottom: 8px; }
.bb-how .step-list p { color: var(--body) !important; font-size: .93rem; line-height: 1.6; }

/* ---------- reviews on a white band ---------- */
.bb-reviews > .wrap > .kicker, .bb-reviews > .wrap > h2 { text-align: center; }

/* ---------- FAQ: pale band, dark pill rows, row 1 open ---------- */
.bb-faq .faq, .bb-faq > .wrap > .bb-more-about { max-width: 896px; margin-left: auto; margin-right: auto; }
.bb-faq > .wrap > h2 { text-align: center; }
.bb-faq .faq details { border: 0; background: var(--white); box-shadow: var(--shadow); border-radius: 12px; }
.bb-faq .faq summary { background: var(--green-dk); color: var(--white); border-radius: 12px; }
.bb-faq .faq details[open] summary { border-radius: 12px 12px 0 0; margin-bottom: 14px; }
.bb-faq .faq summary::after { color: #fcd34d; }
.bb-faq > .wrap > .bb-more-about { display: block; margin-top: 26px; text-align: center; }

/* ---------- service areas: dark band, text + pills LEFT | map RIGHT ---------- */
.bb-areas-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 46px; align-items: stretch; }
.bb-areas-text > h3 { margin-top: 22px; }
.bb-pills { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; margin: 18px 0; }
.bb-dark .bb-pills .area-card, .bb-dark .bb-pills .svc-card { flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; color: var(--white); }
.bb-dark .bb-pills a.area-card:hover { background: rgba(255, 255, 255, .16) !important; transform: none; }
.bb-dark .bb-pills .ic { width: 18px; height: 18px; color: #fcd34d !important; }
.bb-dark .bb-pills h3 { font-size: .9rem; margin: 2px 0 0; color: var(--white) !important; }
.bb-dark .bb-pills .link-more { padding-top: 2px; font-size: .8rem; color: #fcd34d !important; }
.bb-dark .bb-pills .muted { font-size: .78rem; }
.bb-areas-map { display: flex; flex-direction: column; gap: 16px; min-height: 400px; }
.bb-areas-map .map-fig { margin: 0; flex: 1; display: flex; flex-direction: column; }
.bb-areas-map .map-embed { flex: 1; border-color: rgba(255, 255, 255, .2); }
.bb-areas-map .map-embed iframe { height: 100%; min-height: 200px; }
.bb-areas-map.bb-maps-1 .map-embed iframe { min-height: 400px; }
.bb-dark .inline-cta a:not(.btn) { color: #fcd34d; }
.bb-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* ---------- city: service chips "<Service> in <City>" (reference §5.2) ---------- */
.bb-chips { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 16px 0 6px; }
.bb-chips .svc-card, .bb-chips .area-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: 10px; background: var(--green-dk); border: 0; box-shadow: none; color: var(--white); }
.bb-chips .svc-card:hover, .bb-chips .area-card:hover { background: var(--green); transform: none; }
.bb-chips .ic { width: 22px; height: 22px; color: #fbbf24 !important; }
.bb-chips .bb-chip-name { flex: 1; font-family: Montserrat, system-ui, sans-serif; line-height: 1.25; }
.bb-chips h3 { font-size: .8rem; font-weight: 600; margin: 0; color: #a7f3d0 !important; flex: 1; }
.bb-chips .bb-chip-name, .bb-chips .area-card:not(:has(.link-more)) h3 { font-size: .9rem; font-weight: 700; color: var(--white) !important; }
.bb-chips .link-more, .bb-chips .muted { flex-basis: 100%; margin: 0; padding: 0; font-size: .9rem; font-weight: 700; color: var(--white) !important; }

/* ---------- about <City> panel / hub area band ---------- */
.bb-town-panel { max-width: 940px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 42px; box-shadow: var(--shadow); text-align: left; }
.bb-about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 34px; align-items: stretch; }
.bb-about-grid .map-embed { height: 100%; }
.bb-about-grid .map-embed iframe { height: 100%; min-height: 340px; }

/* ---------- directions (reference §5.9): 3 cards "From <town>" ---------- */
.bb-directions .dir-grid { max-width: 1120px; margin-left: auto; margin-right: auto; }
.bb-directions .dir-card { background: var(--green-dk); border: 0; color: var(--white); box-shadow: var(--shadow); }
.bb-directions .dir-card h3 { color: var(--white) !important; }
.bb-directions .dir-card p { color: rgba(255, 255, 255, .9); }
.bb-directions .dir-label { color: #a7f3d0 !important; }
.bb-directions .dir-more a { color: #fcd34d !important; }
p.bb-dir-from { display: inline-flex; align-items: center; font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: .84rem; color: var(--white) !important; background: var(--amber); border-radius: var(--radius-pill); padding: 5px 14px; margin: 0 0 12px; }

/* ---------- home services grid ---------- */
.bb-home-services .svc-card .link-more { font-size: .86rem; }
.bb-home-services > .wrap > .bb-more-about { display: block; max-width: 1000px; margin: 30px auto 0; text-align: center; }

/* ---------- service-areas hub: centered hero band + 4-column town card grid (no photos) ---------- */
.page-head.bb-hub-head { background: linear-gradient(155deg, var(--green-dk) 0%, var(--green) 100%); border-bottom: 0; padding: 76px 0 70px; text-align: center; }
.bb-hub-head h1, .bb-hub-head .hero-sub { color: var(--white); margin-left: auto; margin-right: auto; }
.bb-hub-head .hero-sub { color: #d1fae5; max-width: 62ch; }
.bb-hub-head .kicker { color: #a7f3d0; }
.bb-hub-head .inline-cta { display: block; text-align: center; color: #d1fae5; margin-top: 22px; line-height: 3; }
.bb-hub-head .inline-cta .btn { margin: 0 .45rem; line-height: 1.2; }
.bb-areas-text .inline-cta { display: block; }
.bb-hub-head .inline-cta a:not(.btn) { color: #fcd34d; }
.bb-towns .card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bb-towns .area-card { background: var(--green-dk); border: 0; text-align: center; align-items: center; color: var(--white); padding: 26px 18px; }
.bb-towns .area-card .ic { color: #fbbf24; }
.bb-towns .area-card h3 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; }
.bb-towns .area-card .muted { color: #a7f3d0; }
.bb-towns .area-card .link-more { color: #fcd34d; }
.bb-towns .bb-sub { margin-top: 54px; }
.bb-towns .bb-sub > h3 { text-align: center; font-size: clamp(1.25rem, 2.1vw, 1.6rem); margin-bottom: 18px; }
.bb-towns .bb-sub .area-card { background: var(--white); border: 1px solid var(--line); color: var(--body); }
.bb-towns .bb-sub .area-card h3 { color: var(--ink); }
.bb-towns .bb-sub .area-card .link-more { color: var(--green-2); }
.bb-towns .bb-sub .area-card .ic { color: var(--green); }

/* ---------- closing CTA (reference §2.8): centered, call + estimate ---------- */
.cta-band.bb-cta { padding: 76px 0 68px; text-align: center; }
.bb-cta .cta-in { display: block; max-width: 900px; }
.bb-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 22px; }
.bb-cta .cta-actions { justify-content: center; }
.bb-cta .cta-in > p { margin: 20px auto 0; }

/* ---------- mobile: one column, IMAGE (media) FIRST, no horizontal overflow ---------- */
@media (max-width: 1020px) {
  .bb-how .step-list, .bb-how.bb-steps-6 .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-towns .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  section.bb-band { padding: 54px 0 !important; }
  .bb-row, .bb-row-rev, .bb-areas-grid, .bb-about-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bb-row > .bb-media, .bb-row-rev > .bb-media { order: -1; border-radius: var(--radius) var(--radius) 0 0; }
  .bb-media-text { padding: 28px 22px; }
  .bb-media-map .map-embed, .bb-media-map .map-embed iframe { min-height: 260px; }
  .bb-card { padding: 26px 22px; border-radius: 0 0 var(--radius) var(--radius); }
  .bb-card-plain { padding: 22px 2px 0; }
  .bb-areas-map { margin-top: 26px; min-height: 0; }
  .bb-areas-map .map-embed iframe, .bb-areas-map.bb-maps-1 .map-embed iframe { min-height: 260px; }
  .bb-about-grid .map-embed { margin-top: 22px; }
  .bb-pills { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bb-town-panel { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .bb-how .step-list, .bb-how.bb-steps-6 .step-list, .bb-chips, .bb-towns .card-grid.cols-4 { grid-template-columns: minmax(0, 1fr) !important; }
  .bb-pills { grid-template-columns: minmax(0, 1fr) !important; }
  .bb-dark .bb-more-body { padding: 14px 14px; }
  .bb-media-text { padding: 24px 18px; }
}

/* =====================================================================================================
   SITEWIDE CHROME (every page) — Dylan 2026-09-13: "Where the footer of them and dropdowns make sure this
   is all set for all the sites". Header dropdowns already listed every service + town page; this adds a
   real tap-to-expand toggle (aria-expanded) for the mobile menu and keyboard users. Footer Services /
   Service areas columns are links again (Dylan override of the 09-01 footer link budget).
   ===================================================================================================== */
.has-sub { display: flex; align-items: center; gap: 2px; }
.sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; margin: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.sub-toggle:hover { background: var(--sky); color: var(--green-2); }
.has-sub.sub-open > .sub { display: block; }
.site-footer .footer-grid > div > ul a { display: inline-block; }
@media (max-width: 999px) {
  .nav > ul > li.has-sub { flex-wrap: wrap; align-items: stretch; gap: 0; }
  .nav > ul > li.has-sub > a { flex: 1; }
  .nav > ul > li.has-sub > .sub-toggle { width: 48px; height: auto; min-height: 44px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > ul > li.has-sub > .sub { display: none; flex-basis: 100%; }
  .nav > ul > li.has-sub.sub-open > .sub { display: block; }
}
@media (max-width: 1000px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
/* the fixed mobile call bar (style.css .sticky-call, <=760px) sat over the last menu items; give the open menu room */
@media (max-width: 760px) { .nav { padding-bottom: 6rem; } }

/* HEADER FIT (measured 2026-09-13): logo 235 + nav 652 (8 items incl. dropdown toggles) + call pill 203 + 2x24 gaps
   = 1138px of content, so the full row only fits a viewport >= 1180px. 1000-1179: phone collapses to its icon and the
   nav gap tightens (content ~935px). <= 999: the hamburger menu (style.css's own <=860 rules, extended up to 999). */
@media (min-width: 1000px) and (max-width: 1179px) {
  .btn-call span { display: none; }
  .btn-call { padding: .6rem; }
  .nav > ul { gap: 1.1rem; }
  .has-sub { gap: 0; }
}
@media (min-width: 861px) and (max-width: 999px) {
  .site-header { backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: flex; order: 3; }
  .nav { position: fixed; inset: 86px 0 auto; background: var(--white); border-bottom: 1px solid var(--line); display: none; margin: 0; padding: 1rem 1.25rem 1.5rem; max-height: calc(100vh - 86px); overflow: auto; z-index: 70; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav > ul > li > a { display: block; padding: .7rem .25rem; border-bottom: 1px solid var(--line); }
  .sub { position: static; box-shadow: none; border: 0; padding: .25rem 0 .5rem 1rem; margin: 0; }
  .btn-call { margin-left: auto; }
}
/* the overlay started at 64px under a header measured at 73px (<=860) and 86px (861-999), covering its bottom edge */
@media (max-width: 860px) { .nav { inset: 73px 0 auto; max-height: calc(100vh - 73px); } }
