/* Public navigation and footer. Kept separate from the control panel. */
.topline { padding: 5px 16px; font-size: 11px; letter-spacing: 0; }
.header-shell { background: #fffefaed; transition: background .25s, box-shadow .25s; }
.header { min-height: 0; height: 98px; padding-block: 5px; gap: 26px; transition: height .3s ease; }
.header .brand { flex: 0 0 auto; }
.header .brand img { width: 100px; height: 88px; object-fit: contain; transition: width .3s ease, height .3s ease; }
.header nav { margin-inline: auto; gap: 18px; }
.header nav a { position: relative; padding: 12px 0; border-radius: 0; font-size: 14px; font-weight: 500; color: var(--ink); background: none; box-shadow: none; }
.header nav a:hover, .header nav a.is-active { background: none; box-shadow: none; color: var(--accent); }
.header nav a::after { content: ''; display: block; position: absolute; inset-inline: 0; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.header nav a:hover::after, .header nav a.is-active::after { transform: scaleX(1); }
.header-cta { min-height: 40px; padding: 9px 15px; font-size: 13px; border-radius: 8px; white-space: nowrap; }
.header-shell.scrolled { background: #fffefaf7; box-shadow: 0 4px 22px #193c520d; }
.header-shell.scrolled .header { height: 74px; }
.header-shell.scrolled .brand img { width: 76px; height: 64px; }
.header a:focus-visible, .site-footer a:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.menu-toggle[aria-expanded="true"] .icon path { d: path('M6 6L18 18M6 18L18 6'); }
.site-footer { display: block; padding: 0; background: #f0f4f1; border-top: 1px solid #dce5df; color: var(--ink); }
.site-footer .footer-main { display: grid; grid-template-columns: 1.15fr .8fr 1fr 1.1fr; gap: 36px; align-items: center; padding-block: 30px; }
.site-footer .footer-brand .brand img { width: 100px; height: 90px; object-fit: contain; }
.site-footer .footer-brand p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { width: fit-content; display: inline-flex; gap: 7px; align-items: center; font-size: 13px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.footer-contact > a { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 9px; font-size: 17px; font-weight: 700; }
.footer-contact > a:nth-of-type(2) { padding-inline-start: 28px; }
.footer-link-note { font-size: 11px; font-weight: 400; display: flex; align-items: center; gap: 4px; }
.site-footer .icon { width: 18px; height: 18px; }
.footer-link-note .icon { width: 12px; height: 12px; }
.site-footer .footer-locations p { font-size: 12px; margin: 8px 0; color: var(--ink); }
.footer-locations p span { display: block; color: var(--muted); margin-top: 2px; }
.site-footer .footer-bottom { border-top: 1px solid #d6e0d9; padding-block: 15px; padding-inline-end: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .footer-bottom p { margin: 0; font-size: 11px; }
.footer-bottom > a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
@media (max-width: 1100px) { .header { gap: 18px; } .header nav { gap: 13px; } .header nav a { font-size: 13px; } }
@media (max-width: 1000px) {
 .header, .header-shell.scrolled .header { height: auto; min-height: 78px; gap: 12px; }
 .header .brand img, .header-shell.scrolled .brand img { width: 80px; height: 68px; }
 .header-cta { margin-inline-start: auto; }
 .header nav { margin: 0; padding: 12px 0 18px; }
 .header nav.open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; animation: menu-enter .2s ease; }
 .header nav a { font-size: 14px; padding: 10px 4px; text-align: start; }
 .header nav a::after { inset-inline-end: auto; width: 24px; }
 .menu-toggle { width: 40px; height: 40px; padding: 8px; }
 .site-footer .footer-main { gap: 24px; grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (max-width: 600px) {
 .topline { font-size: 10px; padding-block: 4px; }
 .header, .header-shell.scrolled .header { min-height: 72px; padding-block: 4px; }
 .header .brand img, .header-shell.scrolled .brand img { width: 74px; height: 64px; }
 .header-cta { min-height: 38px; font-size: 12px; padding: 8px 11px; }
 .header nav.open { grid-template-columns: repeat(2, 1fr); }
 .site-footer .footer-main { padding-block: 24px; gap: 25px 18px; }
 .site-footer .footer-brand .brand img { width: 82px; height: 74px; }
 .site-footer .footer-brand p { font-size: 12px; }
 .footer-contact > a { font-size: 15px; }
 .footer-contact > a:nth-of-type(2) { padding-inline-start: 0; }
 .site-footer .footer-bottom { padding-block: 14px; padding-inline-end: 60px; }
 .footer-bottom > a { font-size: 11px; }
}
@keyframes menu-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .header, .header .brand img, .header nav a::after { transition: none; } .header nav.open { animation: none; } }

/* Paired floating actions use icons with accessible names. */
.back-to-top { position: fixed; left: 25px; bottom: 93px; z-index: 20; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #d9e2dd; border-radius: 50%; background: #fffefa; color: var(--ink); box-shadow: 0 6px 20px #15394a18; transition: transform .2s, background .2s; }
.back-to-top[hidden] { display: none; }
.back-to-top .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { transform: translateY(-3px); background: #eaf2f2; }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.footer-link-note .icon { width: 16px; height: 16px; }
.site-footer .footer-bottom { padding-inline-end: 0; }
@media(max-width:700px) { .back-to-top { width: 50px; height: 50px; left: 18px; bottom: 80px; } }
