/* ==========================================================================
   Boldorg — Layout (container, header, footer, page hero)
   ========================================================================== */

.bo-container { width: 100%; max-width: var(--bo-container); margin-inline: auto; padding-inline: var(--bo-gutter); }
.bo-container--wide { max-width: var(--bo-container-wide); }
.bo-container--narrow { max-width: 820px; }

.bo-section { padding-block: var(--bo-space-section); position: relative; }
.bo-section--soft { background: var(--bo-bg-soft); }
.bo-section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bo-main { display: block; }

/* ---------- Header ---------- */
.bo-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.72);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--bo-ease), background .3s var(--bo-ease), box-shadow .3s var(--bo-ease);
}
.bo-header.is-scrolled { border-bottom-color: var(--bo-border); box-shadow: 0 6px 24px rgba(14,17,22,.05); }
.bo-header__inner {
	max-width: var(--bo-container-wide); margin-inline: auto;
	padding: .85rem var(--bo-gutter);
	display: flex; align-items: center; gap: 1.5rem;
}
.bo-header__brand { flex: 0 0 auto; display: flex; align-items: center; }
.bo-logo, .custom-logo-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.bo-logo img, .custom-logo-link img { height: 38px; width: auto; }
.bo-logo__mark { display: block; width: 34px; height: 34px; flex: none; }
.bo-logo__word { font-family: var(--bo-font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--bo-ink); line-height: 1; }
.bo-logo__word-accent { color: var(--bo-blue); }
.bo-logo__word--white { color: #fff; }
.bo-logo__word--white .bo-logo__word-accent { color: var(--bo-blue-300); }
.bo-header__nav { flex: 1; display: flex; justify-content: center; }

.bo-menu { display: flex; align-items: center; gap: .35rem; }
.bo-menu li { position: relative; }
.bo-menu a {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .55rem .9rem; border-radius: var(--bo-r-pill);
	color: var(--bo-ink); font-weight: 500; font-size: .98rem;
	transition: background .2s var(--bo-ease), color .2s var(--bo-ease);
}
.bo-menu a:hover, .bo-menu .current-menu-item > a, .bo-menu .current_page_item > a { background: var(--bo-blue-100); color: var(--bo-blue); }
.bo-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--bo-border); border-radius: var(--bo-r-md);
	box-shadow: var(--bo-shadow-md); padding: .5rem; margin-top: .5rem;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s var(--bo-ease), transform .2s var(--bo-ease), visibility .2s;
}
.bo-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bo-menu .sub-menu a { display: block; }

.bo-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; }
.bo-header__wa { display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1.05rem; border-radius: var(--bo-r-pill); background: #25D366; color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 8px 20px rgba(37,211,102,.28); transition: background .2s, transform .2s, box-shadow .2s; }
.bo-header__wa:hover { background: #1EBE5A; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.36); }
.bo-header__wa-icon { display: inline-grid; place-items: center; }
.bo-wa-glyph { display: block; }
@media (max-width: 1040px) { .bo-header__wa-text { display: none; } .bo-header__wa { width: 44px; padding: 0; justify-content: center; } }
.bo-header__actions .bo-btn { display: inline-flex; }

.bo-burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.bo-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bo-ink); border-radius: 2px; transition: transform .3s var(--bo-ease), opacity .2s; }
.bo-burger span:nth-child(1) { top: 15px; } .bo-burger span:nth-child(2) { top: 21px; } .bo-burger span:nth-child(3) { top: 27px; }
body.bo-nav-open .bo-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.bo-nav-open .bo-burger span:nth-child(2) { opacity: 0; }
body.bo-nav-open .bo-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.bo-nav-open { overflow: hidden; touch-action: none; }

/* ---------- Mobile nav ---------- */
.bo-mobile-nav {
	position: fixed; inset: 0; top: 0; z-index: 99;
	background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
	transform: translateX(100%); transition: transform .4s var(--bo-ease-out);
	display: flex; align-items: center; padding: 5rem 1.5rem 2rem; overflow-y: auto;
}
body.bo-nav-open .bo-mobile-nav { transform: translateX(0); }
.bo-mobile-nav__inner { width: 100%; max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; gap: .5rem; }
.bo-mobile-menu { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.bo-mobile-menu a { display: block; padding: 1rem .25rem; font-family: var(--bo-font-display); font-size: 1.5rem; font-weight: 600; color: var(--bo-ink); border-bottom: 1px solid var(--bo-border); }
.bo-mobile-menu a:hover { color: var(--bo-blue); }

@media (max-width: 980px) {
	.bo-header__nav { display: none; }
	.bo-header__actions { margin-left: auto; }
	.bo-header__actions .bo-btn--primary { display: none; }
	.bo-burger { display: block; }
	.bo-header__wa { box-shadow: 0 4px 12px rgba(37,211,102,.2); }
	.bo-header__wa:hover { box-shadow: 0 6px 14px rgba(37,211,102,.26); transform: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.bo-page-hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); overflow: hidden; text-align: center; }
.bo-page-hero .bo-eyebrow { justify-content: center; }
.bo-page-hero__title { font-size: var(--bo-fs-h1); max-width: 16ch; margin-inline: auto; }
.bo-page-hero__lead { max-width: 60ch; margin: 1rem auto 0; font-size: var(--bo-fs-lead); }

/* ---------- Footer ---------- */
.bo-footer { position: relative; background: var(--bo-ink); color: #C7CDD6; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; overflow: hidden; }
.bo-footer__glow { display: none; }
.bo-footer .bo-container { position: relative; z-index: 1; }
.bo-footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.bo-footer__brand img { height: 38px; }
.bo-footer__note { margin-top: 1.1rem; color: #9AA3AF; max-width: 34ch; }
.bo-footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.bo-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #C7CDD6; transition: background .25s var(--bo-ease), color .25s, border-color .25s, transform .25s; }
.bo-footer__social a:hover { background: var(--bo-blue); border-color: var(--bo-blue); color: #fff; transform: translateY(-3px); }
.bo-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.bo-footer-widget__title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.bo-footer-menu li, .bo-footer-contact li { margin-bottom: .65rem; }
.bo-footer-menu a, .bo-footer-contact a { color: #C7CDD6; }
.bo-footer-menu a:hover, .bo-footer-contact a:hover { color: #fff; }
.bo-footer-contact li { display: flex; align-items: center; gap: .6rem; }
.bo-footer-contact .bo-icon { color: var(--bo-blue-400); }
.bo-footer__col--cta p { margin-bottom: 1rem; color: #9AA3AF; }
.bo-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .85rem; color: #8A929E; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 860px) {
	.bo-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
	.bo-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .bo-footer__cols { grid-template-columns: 1fr; } }
