/* Public site shell. Keep these rules separate from provider/admin layouts. */
.site-header, .site-header *, .site-footer, .site-footer * { box-sizing: border-box; }
.site-header { position: relative; z-index: 100; background: #fff; border-bottom: 1px solid #eee6e9; }
.site-header-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; width: calc(100% - 72px); max-width: 1600px; min-height: 94px; margin: 0 auto; padding: 18px 0; }
.site-brand { grid-column: 1; grid-row: 1; min-width: 0; }
.site-brand img { display: block; width: 230px; max-width: 100%; height: auto; }
.site-header-actions { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 12px; }
.site-header .header-login-group { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid #d8d3c4; border-radius: 5px; }
.site-header .header-login-label { padding: 0 4px 0 8px; color: #665e62; font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-header .header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px 12px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.site-header .header-action-training { background: #a6144b; color: #fff; }
.site-header .header-action-training:hover { background: #870f3c; }
.site-header .header-action-agency { background: #025e73; color: #fff; }
.site-header .header-action-agency:hover { background: #014d5e; }
.site-header .header-login-divider { height: 20px; border-left: 1px solid #d8d3c4; }
.site-header .header-action-blog { border-color: #a6144b; background: #fff; color: #a6144b; }
.site-header .header-action-blog:hover { background: #fbf1f5; }
.site-header a:focus-visible, .site-header summary:focus-visible, .site-header button:focus-visible { outline: 3px solid #025e73; outline-offset: 4px; }
.site-header + .full-width { margin-top: 0; }

/* Native details provide keyboard and touch access to every category. */
.site-header .site-nav { grid-column: 2; grid-row: 1; margin: 0; background: transparent; }
.site-nav .site-nav-categories { display: flex; justify-content: center; align-items: center; gap: 26px; }
.site-nav .site-nav-group > summary { display: flex; align-items: center; gap: 9px; padding: 15px 0; color: #a6144b; list-style: none; cursor: pointer; font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-nav .site-nav-group > summary::-webkit-details-marker { display: none; }
.site-nav .site-nav-group > summary::after { content: ''; display: block; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-top: -3px; }
.site-nav .site-nav-group[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.site-nav .site-nav-group[open] > summary { color: #025e73; }
.site-nav .site-mega-menu { position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; width: min(980px, calc(100vw - 72px)); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 32px; border: 1px solid #eee3e8; border-top: 3px solid #a6144b; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 12px 28px rgba(65,28,47,.13); }
.site-nav .site-mega-menu-companies { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(740px, calc(100vw - 72px)); }
.site-nav .site-menu-column h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #ede5e8; color: #025e73; font: 19px/1.3 Georgia, serif; }
.site-nav .site-menu-column > a { display: block; margin: 0; padding: 8px 0; color: #67565e; font-size: 13px; line-height: 1.5; text-decoration: none; }
.site-nav .site-menu-column > a:hover { color: #a6144b; text-decoration: underline; }
.site-nav .site-menu-callout { margin-top: 20px; padding: 18px; border-radius: 6px; background: #faf1f5; }
.site-nav .site-menu-callout p { margin: 0 0 12px; color: #5c414d; font: 18px/1.4 Georgia, serif; }
.site-nav .site-menu-cta { display: inline-block; padding: 9px 12px; border-radius: 3px; background: #a6144b; color: #fff; font-size: 12px; }
.site-nav .site-menu-cta:hover { background: #870f3c; }
.site-nav .site-nav-toggle, .site-nav .site-mobile-actions { display: none; }

/* Footer matches the warm crimson palette in the homepage design. */
footer.site-footer { padding: 0; margin-top: 0; background: #651333; color: #f3dce5; }
.site-footer a { color: #f3dce5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible, .site-footer button:focus-visible, .site-footer input:focus-visible { outline: 3px solid #f1c5d7; outline-offset: 4px; }
.site-footer-main { display: grid; grid-template-columns: 1.25fr .7fr 1.2fr; gap: 80px; max-width: 1180px; width: calc(100% - 80px); margin: 0 auto; padding: 60px 0 50px; }
.site-footer .site-footer-name { display: inline-block; margin-bottom: 18px; color: #fff; font: italic 32px/1 Georgia, serif; }
.site-footer p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
.site-footer .site-footer-description { margin-top: 22px; font-size: 11px; line-height: 1.8; color: #dcadbf; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font: 700 11px/1.5 Arial, sans-serif; text-transform: uppercase; letter-spacing: .15em; }
.site-footer-links { display: flex; flex-direction: column; gap: 9px; }
.site-footer-links a { font-size: 12px; line-height: 1.4; }
.site-newsletter-form label { display: block; margin: 10px 0 7px; color: #fff; font-size: 11px; }
.site-newsletter-fields { display: flex; gap: 8px; }
.site-footer .site-newsletter-fields input { min-width: 0; flex: 1; height: 40px; margin: 0; padding: 10px; border: 1px solid #d8a8bb; border-radius: 3px; background: #fff; color: #44323a; font: 12px Arial, sans-serif; }
.site-footer .site-newsletter-fields button { flex-shrink: 0; height: 40px; min-width: 88px; margin: 0; padding: 0 12px; border: 1px solid #fff; border-radius: 3px; background: #fff; color: #a6144b; font: 700 10px Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.site-footer .site-newsletter-fields button:hover { background: #f8eaf0; }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 20px; max-width: 1180px; width: calc(100% - 80px); margin: 0 auto; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); color: #dbb1c1; font-size: 11px; }
.site-footer-bottom > div { display: flex; gap: 24px; }

@media (max-width: 1250px) {
    .site-header-inner { width: calc(100% - 48px); gap: 18px; }
    .site-brand img { width: 190px; }
    .site-nav .site-nav-categories { gap: 18px; }
    .site-nav .site-nav-group > summary { font-size: 10px; letter-spacing: .08em; }
    .site-header .header-action { padding: 8px 10px; font-size: 11px; }
    .site-header .header-login-label { font-size: 12px; padding-left: 5px; }
    .site-header-actions { gap: 8px; }
    .site-footer-main { gap: 44px; }
}
@media (max-width: 1050px) {
    .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 80px; padding: 18px 0; }
    .site-brand img { width: 215px; }
    .site-header-actions { display: none; }
    .site-nav .site-nav-toggle { display: flex; align-items: center; gap: 10px; width: auto; height: 42px; padding: 0 12px; border: 1px solid #e7c8d5; border-radius: 4px; background: #fff; color: #a6144b; font-size: 13px; line-height: 1; cursor: pointer; }
    .site-nav-toggle-icon { display: inline-block; width: 17px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
    .site-nav-toggle-icon::after { content: ''; position: absolute; top: 4px; left: 0; width: 17px; border-top: 2px solid currentColor; }
    .site-nav .site-nav-categories { display: none; position: absolute; top: 100%; left: -24px; right: -24px; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 12px 24px 24px; background: #fff; border-bottom: 1px solid #e7c8d5; box-shadow: 0 12px 20px rgba(65,28,47,.12); }
    .site-nav.is-open .site-nav-categories { display: block; }
    .site-nav .site-nav-group { border-bottom: 1px solid #eee3e8; }
    .site-nav .site-nav-group > summary { justify-content: space-between; padding: 18px 0; font-size: 12px; }
    .site-nav .site-mega-menu, .site-nav .site-mega-menu-companies { position: static; transform: none; width: 100%; max-height: none; overflow: visible; padding: 8px 0 24px; border: 0; box-shadow: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .site-nav .site-mobile-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
    .site-nav .site-mobile-actions a { display: inline-block; padding: 10px 12px; background: #faf1f5; border: 1px solid #eed4df; border-radius: 3px; color: #a6144b; font-size: 12px; }
    .site-footer-main, .site-footer-bottom { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
    .site-footer-main { grid-template-columns: 1fr 1fr; gap: 35px; padding: 44px 0; }
    .site-footer-newsletter { grid-column: 1 / -1; max-width: 440px; }
}
@media (max-width: 520px) {
    .site-header-inner { width: calc(100% - 36px); gap: 12px; }
    .site-brand img { width: 195px; }
    .site-nav .site-nav-categories { left: -18px; right: -18px; padding-right: 18px; padding-left: 18px; }
    .site-nav .site-mega-menu, .site-nav .site-mega-menu-companies { grid-template-columns: 1fr; }
    .site-footer-main, .site-footer-bottom { width: calc(100% - 36px); }
    .site-footer-bottom { flex-direction: column; gap: 12px; }
}
