/* BongKnot site chrome: header, nav, sticky mobile CTA, footer.
   Consumes the design tokens already defined in style.css (--maroon, --ivory-ground, etc). */

/* ---------- Header ---------- */
.bk-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory-ground);
  border-bottom: 1px solid var(--line);
}
.bk-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bk-logo {
  font-family: var(--font-heading), Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.bk-logo span {
  display: block;
  font-family: var(--font-body), sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.bk-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.bk-nav > li { position: relative; }
.bk-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bk-nav > li > a { padding: 8px 0; display: inline-block; }
.bk-nav a:hover { color: var(--maroon); }
.bk-nav .bk-caret { font-size: 0.6em; margin-left: 3px; color: var(--muted); }

.bk-dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease;
}
.bk-nav > li:hover > .bk-dropdown,
.bk-nav > li:focus-within > .bk-dropdown {
  opacity: 1;
  visibility: visible;
}
.bk-dropdown li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.bk-dropdown li a:hover { background: var(--ivory-ground); }
.bk-dropdown .bk-dropdown-all { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 10px; }
.bk-dropdown .bk-dropdown-all a { font-family: var(--font-body); font-weight: 600; color: var(--maroon); }

.bk-header-actions { display: flex; align-items: center; gap: 12px; }
.bk-header-quick { display: flex; align-items: center; gap: 8px; }
.bk-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--maroon);
  text-decoration: none;
  flex: none;
  font-size: 0.8125rem;
  font-family: var(--font-body), sans-serif;
  white-space: nowrap;
}
.bk-icon-link-label { font-weight: 500; }
.bk-icon-link:hover { border-color: var(--maroon); }
.bk-icon-link svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.bk-hamburger { display: none; }
#bk-nav-toggle { display: none; }
@media (max-width: 780px) {
  /* The sticky bottom bar already carries Call / WhatsApp / Get Quote here,
     so the header keeps only the wordmark and the menu toggle. */
  .bk-header-quick { display: none; }
}
@media (max-width: 980px) {
  .bk-icon-link { width: 38px; padding: 0; }
  .bk-icon-link-label { display: none; }
}
@media (max-width: 420px) {
  .bk-logo { font-size: 1.375rem; }
  .bk-logo span { font-size: 0.55rem; letter-spacing: 0.06em; }
}

@media (max-width: 980px) {
  .bk-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 78px;
    width: min(320px, 84vw);
    height: calc(100vh - 78px);
    background: var(--ivory-ground);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 200ms ease;
    overflow-y: auto;
    z-index: 55;
  }
  .bk-nav > li { width: 100%; }
  .bk-nav > li > a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .bk-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
    border: none;
    padding: 4px 0 8px 12px;
    min-width: 0;
  }
  #bk-nav-toggle:checked ~ .bk-site-header .bk-nav { transform: translateX(0); }
  .bk-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    flex: none;
  }
  .bk-hamburger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; }
  .bk-header-actions .bk-btn { display: none; }
  .bk-nav-scrim {
    display: none;
    position: fixed; inset: 0; background: rgba(36,21,18,0.35); z-index: 50;
  }
  #bk-nav-toggle:checked ~ .bk-nav-scrim { display: block; }
  #bk-nav-toggle:checked ~ .bk-site-header .bk-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  #bk-nav-toggle:checked ~ .bk-site-header .bk-hamburger span:nth-child(2) { opacity: 0; }
  #bk-nav-toggle:checked ~ .bk-site-header .bk-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Sticky mobile CTA bar ---------- */
.bk-mobile-cta {
  display: none;
}
@media (max-width: 780px) {
  .bk-mobile-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 65;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .bk-mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--ink);
    border-right: 1px solid var(--line);
  }
  .bk-mobile-cta a:last-child { border-right: none; background: var(--maroon); color: var(--ivory-ground); }
  body.bk-has-mobile-cta { padding-bottom: 54px; }
}

/* ---------- Footer ---------- */
.bk-footer {
  background: var(--maroon-deep);
  color: var(--ivory-ground);
  padding: var(--space-xl) 24px var(--space-lg);
}
.bk-footer a { color: var(--ivory-ground); text-decoration: none; }
.bk-footer a:hover { color: var(--gold); }
.bk-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.bk-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(250,246,239,0.18);
}
@media (max-width: 900px) {
  .bk-footer-grid { grid-template-columns: 1fr 1fr; }
  .bk-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bk-footer-grid { grid-template-columns: 1fr; }
  .bk-footer-brand { grid-column: auto; }
}
.bk-footer-brand .bk-logo { color: var(--ivory-ground); }
.bk-footer-brand p { color: rgba(250,246,239,0.75); margin-top: 8px; max-width: 32ch; }
.bk-footer-grid > div:not(.bk-footer-brand) { padding-top: 4px; }
.bk-footer h4 {
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}
.bk-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bk-footer ul li { font-size: 0.9rem; color: rgba(250,246,239,0.85); }
.bk-footer ul li a { font-size: 0.9rem; color: rgba(250,246,239,0.85); }
.bk-footer-social { display: flex; gap: 10px; margin-top: 14px; }
.bk-footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(250,246,239,0.3); border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
}
.bk-footer-social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.bk-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(250,246,239,0.65);
}
.bk-footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.bk-footer-legal a { color: rgba(250,246,239,0.65); font-size: 0.8125rem; }
