/* Header and footer for the moved Bookkeeping Brisbane site (replaces the WordPress theme's).
   Page content keeps its own bb- styles in site.css. Colours come from site.css (--bb-*). */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--bb-body, #4a5568); font-family: var(--bb-font-b, sans-serif); line-height: 1.6; }
img { max-width: 100%; height: auto; }
.site-main { display: block; }
.sh-skip { position: absolute; left: -9999px; }
.sh-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.sh-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--bb-border, #e2e8f0); }
.sh-header__inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sh-logo img { display: block; height: 64px; width: auto; }
.sh-nav { display: flex; align-items: center; gap: 28px; }
.sh-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.sh-menu > li { position: relative; }
.sh-menu > li > a { font-family: var(--bb-font-h); font-weight: 600; font-size: 15px; color: var(--bb-heading, #1a1f2e); text-decoration: none; padding: 22px 0; display: inline-block; }
.sh-menu > li > a:hover { color: var(--bb-teal, #2dbfa0); }
.sh-sub-toggle { display: none; }
.sh-call { font-family: var(--bb-font-h); font-weight: 700; font-size: 15px; background: var(--bb-teal, #2dbfa0); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 6px; white-space: nowrap; }
.sh-call:hover { background: var(--bb-teal-dark, #25a88c); }

/* Services panel */
.sh-mega { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 760px; background: #fff; border: 1px solid var(--bb-border, #e2e8f0); border-top: 3px solid var(--bb-teal, #2dbfa0); border-radius: 0 0 8px 8px; box-shadow: 0 12px 32px rgba(26, 31, 46, 0.12); padding: 24px 28px; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sh-has-sub:hover .sh-mega, .sh-has-sub:focus-within .sh-mega { display: grid; }
.sh-mega__head { font-family: var(--bb-font-h); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-teal-dark, #25a88c); margin: 0 0 8px; }
.sh-mega ul { list-style: none; margin: 0 0 16px; padding: 0; }
.sh-mega a { display: block; padding: 5px 0; font-size: 14px; color: var(--bb-heading, #1a1f2e); text-decoration: none; }
.sh-mega a:hover { color: var(--bb-teal-dark, #25a88c); }

.sh-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.sh-toggle span { display: block; width: 24px; height: 2px; background: var(--bb-heading, #1a1f2e); margin: 5px 0; }

@media (max-width: 1024px) {
  .sh-logo img { height: 52px; }
  .sh-toggle { display: block; }
  .sh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(26, 31, 46, 0.12); max-height: calc(100vh - 72px); overflow-y: auto; }
  .sh-nav.is-open { display: flex; }
  .sh-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .sh-menu > li { border-bottom: 1px solid var(--bb-border, #e2e8f0); }
  .sh-menu > li > a { padding: 14px 0; }
  .sh-sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
  .sh-sub-toggle::after { content: '+'; font-size: 22px; color: var(--bb-heading, #1a1f2e); }
  .sh-has-sub.is-open .sh-sub-toggle::after { content: '\2212'; }
  .sh-mega, .sh-has-sub:hover .sh-mega { display: none; position: static; transform: none; width: auto; border: 0; box-shadow: none; padding: 0 0 12px 12px; }
  .sh-has-sub.is-open .sh-mega { display: block; }
  .sh-call { margin-top: 16px; text-align: center; }
}

/* Footer */
.sh-footer { background: var(--bb-dark, #1a1f2e); color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.sh-footer__inner { max-width: 1240px; margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.sh-footer__head { font-family: var(--bb-font-h); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.sh-footer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.sh-footer li { margin: 0 0 8px; }
.sh-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.sh-footer a:hover { color: var(--bb-teal, #2dbfa0); }
.sh-footer__logo { width: 180px; height: auto; background: #fff; border-radius: 6px; padding: 8px; margin-bottom: 16px; }
.sh-social { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-footer__legal { max-width: 1240px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 900px) { .sh-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sh-footer__inner { grid-template-columns: 1fr; } }

/* Simple text pages (privacy, thank-you) */
.sh-page { max-width: 820px; margin: 0 auto; padding: 64px 20px 80px; }
.sh-page h1 { font-family: var(--bb-font-h); color: var(--bb-heading, #1a1f2e); font-size: 2.2rem; margin: 0 0 16px; }
.sh-page h2 { font-family: var(--bb-font-h); color: var(--bb-heading, #1a1f2e); font-size: 1.35rem; margin: 32px 0 8px; }
.sh-page a { color: var(--bb-teal-dark, #25a88c); }
.sh-page .sh-call { color: #fff; display: inline-block; margin-top: 12px; }
.sh-muted { color: #94a3b8; font-size: 0.9rem; margin-top: 32px; }

/* Heading base the WordPress theme applied under the page CSS (Kadence global styles, copied as they were):
   capitalised headings and the theme's sizes. Page classes in site.css still win where they set their own. */
h1 { font-weight: 700; font-size: 45px; line-height: 1.5; text-transform: capitalize; color: #222222; }
h2 { font-weight: 700; font-size: 32px; line-height: 1.5; text-transform: capitalize; color: #222222; }
h3 { font-weight: 700; font-size: 28px; line-height: 1.5; text-transform: capitalize; color: #222222; }
h4 { font-weight: 700; font-size: 26px; line-height: 1.5; text-transform: capitalize; color: #222222; }
h5 { font-weight: 700; font-size: 22px; line-height: 1.5; text-transform: capitalize; color: #222222; }
h6 { font-weight: 600; font-size: 19px; line-height: 1.5; font-family: Cabin, sans-serif; text-transform: capitalize; color: #222222; }
.sh-page h1, .sh-page h2 { text-transform: none; }
