/* Shelbourne Building Services identity layer — precise and approachable.
   Solid green bar, compact intro + featured building, service directory, compact green contact strip. */
:root { --sx-soft: #e4efe9; --sx-mint: #cfe3d9; --sx-r: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-cc-panel][hidden], [data-nav-panel][hidden] { display: none !important; }
.sx-skip { position: absolute; left: 1rem; top: -5rem; z-index: 300; background: var(--amber); color: #111; padding: .6rem 1rem; font-weight: 700; }
.sx-skip:focus { top: .5rem; }
.sx-shell { width: min(100%, var(--width)); margin-inline: auto; padding-inline: var(--pad); }
.sx-eyebrow { margin: 0 0 .7rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: .5rem; }
.sx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.sx-more { margin: 0; }
.sx-more a { color: var(--green); font-weight: 700; }

/* ---------- Lockup (Concept A) ---------- */
.sx-lockup { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; flex: none; }
.sx-mark { display: block; flex: none; }
.sx-word { display: grid; line-height: 1; }
.sx-name { font-size: 1.22rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.sx-cap { font-size: .66rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; margin-top: .3rem; display: flex; align-items: center; gap: .45rem; }
.sx-cap::before { content: ""; width: 10px; height: 2px; background: var(--amber); }
.sx-lockup-green { color: var(--green); }

/* ---------- Header: compact solid green bar ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 60; }
.admin-bar header.wp-block-template-part { top: 32px; }
.sx-bar { background: var(--green); color: #fff; }
.sx-bar-row { width: min(100%, var(--width)); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: 68px; }
.sx-menu-btn { display: none; }
.sx-nav { justify-self: center; }
.sx-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.sx-nav li { position: relative; display: flex; align-items: center; }
.sx-nav > ul > li > a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; padding: .55rem .8rem; border-radius: 6px; }
.sx-nav > ul > li > a:hover { background: #ffffff1a; }
.sx-nav > ul > li > a[aria-current], .sx-nav > ul > li.is-current > a { background: #fff; color: var(--green); }
.sx-sub-btn { width: 26px; height: 32px; margin-left: -.35rem; border: 0; background: none; color: #fff; cursor: pointer; border-radius: 6px; position: relative; }
.sx-sub-btn::before { content: ""; position: absolute; left: 50%; top: 45%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.sx-sub-btn[aria-expanded="true"] { background: #ffffff26; }
.sx-sub { position: absolute; top: calc(100% + 10px); left: 0; list-style: none; margin: 0; padding: .4rem; min-width: 260px; background: #fff; border-radius: var(--sx-r); box-shadow: 0 20px 40px -20px #07382b88; }
.sx-sub a { display: block; padding: .62rem .8rem; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; border-radius: 6px; }
.sx-sub a:hover, .sx-sub a[aria-current] { background: var(--sx-soft); color: var(--green); }
.sx-contact { display: flex; align-items: center; gap: 1rem; }
.sx-tel { color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.sx-enquire { background: var(--amber); color: #1d1d1d; text-decoration: none; font-weight: 800; font-size: .9rem; padding: .7rem 1.1rem; border-radius: 6px; white-space: nowrap; }
.sx-enquire:hover { background: #f3a65c; }
@media (max-width: 1180px) { .sx-tel { display: none; } }
@media (max-width: 1000px) {
  .sx-nav { display: none; }
  .sx-bar-row { grid-template-columns: auto 1fr auto; gap: .8rem; min-height: 62px; }
  .sx-menu-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; padding: 0 .85rem; border: 1px solid #ffffff66; background: transparent; color: #fff; border-radius: 6px; font: 700 .88rem inherit; cursor: pointer; }
  .sx-burger { width: 16px; height: 2px; background: currentColor; position: relative; }
  .sx-burger::before, .sx-burger::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
  .sx-burger::before { top: -5px; } .sx-burger::after { top: 5px; }
  .sx-lockup { justify-self: start; }
}
@media (max-width: 560px) {
  .sx-bar-row .sx-word { display: none; }
  .sx-bar-row .sx-lockup { justify-self: center; }
  .sx-enquire { padding: .6rem .8rem; font-size: .84rem; }
}
/* Left-hand panel */
.sx-panel { position: fixed; inset: 0; z-index: 220; }
.sx-panel-scrim { position: absolute; inset: 0; background: #07382bb3; opacity: 0; transition: opacity .2s; }
.sx-panel-sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 88%); background: #fff; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(-100%); transition: transform .24s ease; border-radius: 0 16px 16px 0; }
.sx-panel.is-open .sx-panel-scrim { opacity: 1; }
.sx-panel.is-open .sx-panel-sheet { transform: none; }
.sx-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.sx-panel-head .sx-name { font-size: 1.05rem; }
.sx-panel-close { min-height: 42px; padding: 0 .9rem; border-radius: 6px; border: 1px solid var(--green); background: #fff; color: var(--green); font-weight: 700; cursor: pointer; }
.sx-panel-enquire { margin: 1rem 1.1rem .4rem; background: var(--amber); color: #1d1d1d; text-align: center; font-weight: 800; padding: .85rem; border-radius: 8px; text-decoration: none; }
.sx-panel-links { list-style: none; margin: 0; padding: .4rem 1.1rem; }
.sx-panel-links > li { border-bottom: 1px solid var(--line); }
.sx-panel-links a { display: block; padding: .8rem 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.sx-panel-links a[aria-current] { color: var(--green); box-shadow: inset 4px 0 0 var(--green); padding-left: .8rem; }
.sx-panel-links ul { list-style: none; margin: -.3rem 0 .6rem; padding: 0 0 0 .9rem; border-left: 2px solid var(--sx-mint); }
.sx-panel-links ul a { font-weight: 500; padding: .5rem 0; color: var(--muted); }
.sx-panel-foot { margin: auto 0 0; padding: 1rem 1.1rem 1.4rem; display: grid; gap: .4rem; background: var(--sx-soft); }
.sx-panel-foot a { color: var(--green); font-weight: 700; }
html.nav-lock { overflow: hidden; }

/* Old utility bar no longer used */
.sb-utility { display: none !important; }

/* ---------- Home: compact intro + featured building ---------- */
.sx-intro { background: var(--paper); padding-top: clamp(2.2rem, 4.5vw, 3.6rem); }
.sx-intro-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: end; padding-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.sx-intro h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; margin: 0; color: var(--ink); }
.sx-intro h1 strong { color: var(--green); font-weight: inherit; }
.sx-intro .sb-lead { font-size: 1rem; color: var(--muted); margin: 0 0 1.2rem; }
.sx-buttons { gap: .6rem; }
.sx-btn-solid .wp-block-button__link { background: var(--green); color: #fff; border-radius: 6px; padding: .8rem 1.2rem; font-weight: 800; font-size: .92rem; }
.sx-btn-line .wp-block-button__link { background: transparent; color: var(--green); border: 1.5px solid var(--green); border-radius: 6px; padding: .74rem 1.1rem; font-weight: 700; font-size: .92rem; }
.sx-feature { position: relative; }
.sx-feature-img { margin: 0 !important; }
.sx-feature-img img { display: block; width: 100%; height: clamp(260px, 36vw, 470px); object-fit: cover; object-position: 50% 40%; border-radius: var(--sx-r) var(--sx-r) 0 0; }
.sx-feature-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--green); color: #fff; border-radius: 0 0 var(--sx-r) var(--sx-r); }
.sx-feature-facts li { padding: .95rem 1.2rem; font-size: .88rem; font-weight: 650; }
.sx-feature-facts li + li { border-left: 1px solid #ffffff2e; }
.sx-feature-facts a { color: #fff; }

/* ---------- Home: service directory ---------- */
.sx-directory { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.sx-directory .sx-shell { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 4vw, 4rem); }
.sx-dir-head { align-self: start; position: sticky; top: 90px; }
.sx-dir-head h2, .sx-approach h2, .sx-types h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 .8rem; color: var(--ink); }
.sx-dir-head p:not(.sx-eyebrow):not(.sx-more) { color: var(--muted); }
.sx-dir { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sx-dir-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--sx-r); transition: border-color .15s, box-shadow .15s; }
.sx-dir-item:hover, .sx-dir-item:focus-within { border-color: var(--green); box-shadow: 0 10px 24px -18px #004b3599; }
.sx-dir-thumb { margin: 0 !important; }
.sx-dir-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 7px; display: block; }
.sx-dir-text h3 { font-size: 1.08rem; letter-spacing: -.02em; margin: 0 0 .25rem; }
.sx-dir-text h3 a { color: var(--ink); text-decoration: none; }
.sx-dir-text h3 a::after { content: ""; position: absolute; inset: 0; }
.sx-dir-text h3 a::before { content: "→"; float: right; color: var(--green); margin-left: .4rem; }
.sx-dir-text p { margin: 0; font-size: .9rem; color: var(--muted); }
.sx-dir-consult { grid-column: 2; background: var(--sx-soft); border-radius: var(--sx-r); padding: 1.3rem 1.4rem; }
.sx-dir-consult h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.sx-dir-consult h3 a { color: var(--green); }
.sx-dir-consult p { color: var(--muted); }

/* ---------- Home: approach, types, ask ---------- */
.sx-approach { background: #fff; border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.sx-approach-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sx-approach-copy p:not(.sx-eyebrow):not(.sx-more) { color: var(--muted); font-size: 1.05rem; }
.sx-why { background: var(--green); color: #fff; border-radius: var(--sx-r); padding: 1.5rem; }
.sx-why h3 { font-size: 1.15rem; margin: 0 0 .8rem; }
.sx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sx-checks li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid #ffffff26; font-weight: 600; }
.sx-checks li::before { content: ""; width: 14px; height: 8px; border-left: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(-45deg) translateY(-2px); flex: none; }
.sx-types { padding-block: clamp(3rem, 6vw, 5rem); background: var(--paper); }
.sx-types-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.sx-types-head p:not(.sx-eyebrow) { color: var(--muted); margin: 0; }
.sx-type { position: relative; border-top: 3px solid var(--green); padding-top: 1rem; }
.sx-type h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.sx-type h3 a { color: var(--ink); text-decoration: none; }
.sx-type h3 a::after { content: ""; position: absolute; inset: 0; }
.sx-type:hover h3 a { color: var(--green); text-decoration: underline; }
.sx-type p { color: var(--muted); margin: 0; }
.sx-ask { background: var(--sx-soft); }
.sx-ask-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: center; padding-block: 1.8rem; }
.sx-ask h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; color: var(--green); letter-spacing: -.03em; }
.sx-ask p { margin: 0; color: var(--muted); }

/* ---------- Inner pages ---------- */
.sb-inner-hero { background: var(--paper) !important; color: var(--ink) !important; }
.sb-inner-hero h1 { color: var(--ink) !important; letter-spacing: -.045em; }
.sb-breadcrumb { color: var(--green) !important; }
.sb-capability { border-radius: var(--sx-r); }
.sb-main .sb-cta { background: var(--sx-soft); color: var(--ink); }
.sb-main .sb-cta h2 { color: var(--green); }
.page-contact .sb-contact-grid, .sb-contact-grid { gap: clamp(1.5rem, 4vw, 3rem); }
.sb-contact-details { background: var(--green); color: #fff; border-radius: var(--sx-r); padding: 1.5rem; }
.sb-contact-details a, .sb-contact-details h2, .sb-contact-details h3 { color: #fff; }
.sb-settings { background: var(--sx-soft); border-radius: var(--sx-r); padding: 1.4rem; }
.sb-settings-open { min-height: 46px; padding: 0 1.2rem; border-radius: 6px; border: 0; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }

/* ---------- Footer: compact green contact strip ---------- */
footer.wp-block-template-part { background: var(--deep); }
.sx-strip { background: var(--deep); color: #dbe9e2; }
.sx-strip-inner { width: min(100%, var(--width)); margin-inline: auto; padding: 1.8rem var(--pad) 1.4rem; display: grid; gap: 1.2rem; }
.sx-strip-brand { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid #ffffff22; flex-wrap: wrap; }
.sx-strip-logo { margin: 0 !important; }
.sx-strip-logo img { width: 34px; height: 34px; display: block; }
.sx-strip-word { margin: 0; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; display: grid; line-height: 1.05; }
.sx-strip-word span { font-size: .64rem; letter-spacing: .2em; font-weight: 650; color: var(--sx-mint); }
.sx-strip-line { margin: 0 0 0 auto; font-size: .88rem; max-width: 46ch; color: #b8cfc4; }
.sx-strip-grid { display: grid; grid-template-columns: auto 1fr; gap: .8rem 2rem; align-items: center; }
.sx-strip-contact, .sx-strip-links, .sx-strip-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; align-items: center; }
.sx-strip-contact a { color: #fff; font-weight: 700; }
.sx-strip-cta { background: var(--amber); color: #1d1d1d !important; text-decoration: none; padding: .5rem .9rem; border-radius: 6px; }
.sx-strip-links { justify-content: flex-end; font-size: .9rem; }
.sx-strip-links a { color: #dbe9e2; text-decoration: none; }
.sx-strip-links a:hover, .sx-strip-legal a:hover { color: #fff; text-decoration: underline; }
.sx-strip-company { margin: 0; font-size: .74rem; color: #9fbcae; }
.sx-strip-legal { justify-content: flex-end; font-size: .78rem; }
.sx-strip-legal a { color: #dbe9e2; }

/* ---------- Consent: inset bottom sheet, soft green ---------- */
.sx-cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; padding: 0 1rem 1rem; pointer-events: none; }
.sx-cc[hidden] { display: none; }
.sx-cc-sheet { pointer-events: auto; width: min(100%, 980px); margin: 0 auto; background: var(--sx-soft); color: var(--ink); border: 1px solid #b7d3c5; border-radius: 16px 16px 12px 12px; box-shadow: 0 -10px 40px -20px #07382b99; padding: 1.1rem 1.3rem; display: grid; grid-template-columns: 1fr auto; gap: .8rem 1.6rem; align-items: center; max-height: 80vh; overflow-y: auto; }
.sx-cc-sheet::before { content: ""; grid-column: 1 / -1; justify-self: center; width: 44px; height: 4px; border-radius: 4px; background: #9ec2b1; margin: -.4rem 0 -.2rem; }
.sx-cc-copy h2 { font-size: 1.05rem; margin: 0 0 .25rem; color: var(--green); letter-spacing: -.02em; }
.sx-cc-copy h2:focus { outline: none; }
.sx-cc-copy p { margin: 0; font-size: .9rem; color: #33413d; }
.sx-cc a { color: var(--green); font-weight: 700; }
.sx-cc-groups { display: flex; gap: .7rem; align-items: center; }
.sx-cc-choice { display: flex; gap: 3px; background: #fff; padding: 3px; border-radius: 9px; border: 1px solid #b7d3c5; }
.sx-cc-choice button { min-height: 42px; padding: 0 1rem; border: 0; border-radius: 6px; background: var(--green); color: #fff; font-weight: 800; font-size: .88rem; cursor: pointer; }
.sx-cc-choice button:hover { background: var(--deep); }
.sx-cc-settings { min-height: 42px; padding: 0 .9rem; border-radius: 8px; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.sx-cc-panel { grid-column: 1 / -1; border-top: 1px solid #b7d3c5; padding-top: .9rem; }
.sx-cc .cc-cats { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.sx-cc .cc-cats legend { font-weight: 800; font-size: .8rem; color: var(--green); margin-bottom: .5rem; }
.sx-cc .cc-cat { display: grid; grid-template-columns: 1.3rem 1fr; gap: .5rem; font-size: .82rem; background: #fff; border-radius: 8px; padding: .7rem; }
.sx-cc .cc-cat strong { display: block; }
.sx-cc .cc-cat input { accent-color: var(--green); width: 1.05rem; height: 1.05rem; }
.sx-cc-save { min-height: 40px; padding: 0 1rem; border-radius: 8px; border: 0; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.sx-cc-status:empty { display: none; }
.sx-cc-status { grid-column: 1 / -1; margin: 0; font-size: .85rem; }

@media (max-width: 900px) {
  .sx-intro-row, .sx-directory .sx-shell, .sx-approach-grid, .sx-types-grid { grid-template-columns: 1fr; }
  .sx-dir-head { position: static; }
  .sx-dir-consult { grid-column: 1; }
  .sx-feature-facts { grid-template-columns: 1fr; }
  .sx-feature-facts li + li { border-left: 0; border-top: 1px solid #ffffff2e; }
  .sx-ask-row { grid-template-columns: 1fr; }
  .sx-strip-grid { grid-template-columns: 1fr; }
  .sx-strip-links, .sx-strip-legal { justify-content: flex-start; }
  .sx-strip-line { margin-left: 0; }
  .sx-cc-sheet { grid-template-columns: 1fr; }
  .sx-cc .cc-cats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sx-dir { grid-template-columns: 1fr; }
  .sx-dir-item { grid-template-columns: 72px 1fr; }
  .sx-dir-thumb img { width: 72px; height: 72px; }
  .sx-cc { padding: 0 .5rem .5rem; }
  .sx-cc-sheet { padding: .9rem 1rem; gap: .6rem; }
  .sx-cc-copy p { font-size: .84rem; }
  .sx-cc-groups { flex-direction: row; flex-wrap: wrap; }
  .sx-cc-choice { flex: 1 1 100%; }
  .sx-cc-choice button { flex: 1; padding: 0 .6rem; }
  .sx-cc-settings { flex: 1 1 100%; min-height: 38px; }
}
@media (max-width: 560px) {
  .sx-bar-row .sx-word { display: grid; }
  .sx-bar-row .sx-lockup { gap: .45rem; }
  .sx-bar-row .sx-mark { width: 28px; height: 28px; }
  .sx-bar-row .sx-name { font-size: .92rem; }
  .sx-bar-row .sx-cap { font-size: .54rem; letter-spacing: .14em; }
  .sx-bar-row .sx-cap::before { display: none; }
  .sx-menu-btn span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sx-menu-btn { padding: 0 .7rem; }
}

/* While a modal menu is open the consent notice steps aside (it returns on close) */
html.nav-lock [data-cc] { visibility: hidden; }

/* Inner pages: compact heading row, wide banner image beneath */
.sb-inner-hero { background: var(--paper) !important; }
@media (min-width: 901px) {
  .sb-inner-hero-inner { grid-template-columns: 1fr !important; gap: 0 !important; }
  .sb-inner-hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; padding-block: 2.4rem 1.8rem !important; }
  .sb-inner-hero-copy > .sb-breadcrumb { grid-column: 1 / -1; }
  .sb-inner-hero-copy h1 { grid-column: 1; margin: 0 !important; }
  .sb-inner-hero-copy > :not(h1):not(.sb-breadcrumb) { grid-column: 2; }
  .sb-inner-hero-inner > figure { margin: 0 0 2rem !important; }
  .sb-inner-hero-inner > figure img { width: 100%; height: clamp(200px, 22vw, 300px) !important; object-fit: cover; border-radius: var(--sx-r); }
}
.sb-inner-hero .sb-lead { color: var(--muted) !important; }
