/* Top-of-site holiday / relocation notice + footer opening-hours status. */

:root { --notice-height: 46px; }

.site-notice {
    /* Normal flow at the very top of the page, so it scrolls away with the
       page instead of staying pinned. */
    min-height: var(--notice-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.25rem;
    background-color: var(--brand-dark, #1E1D1B);
    background-image: var(--surface-dark-overlay-large);
    color: var(--brand-light, #f3f3f3);
    box-sizing: border-box;
}
.site-notice__text {
    margin: 0;
    text-align: center;
    font-family: var(--font-text, "Inter", sans-serif);
    font-size: 0.9rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

/* The notice is in normal flow, so the content already sits below it. The fixed
   header only needs to drop below the notice while at the top of the page; once
   scrolled it returns to the very top and the notice scrolls out of view. */
body.has-site-notice .header { top: var(--notice-height); }
body.has-site-notice .header.is-scrolled { top: 0; }

@media (max-width: 720px) {
    :root { --notice-height: 58px; }
    .site-notice__text { font-size: 0.82rem; }
}

/* Footer: aukioloajat samana rivityyppinä kuin puhelin ja sähköposti
   (otsikko + arvo). Tila on hillitty teksti pienellä tasaisella pisteellä,
   ei hehkuvaa vihreää/punaista pilleriä. */
.footer-hours {
    margin-top: 0.9rem;
}
.footer-hours__value {
    font-size: 0.95rem;
    line-height: 1.55;
    color: inherit;
    opacity: 0.7; /* sama kuin puhelin- ja sähköpostirivien arvot */
}
.footer-hours__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.55;
}
.footer-hours__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}
.footer-hours__status--open::before {
    background: #5FC98C;
}

/* "Not available during the holiday" note next to phone numbers. Inherits the
   surrounding text colour (light in the footer, dark on the contact cards). */
.phone-holiday-note {
    display: block;
    width: 100%;
    margin: 0.4rem 0 0;
    font-family: var(--font-text, "Inter", sans-serif);
    font-size: 0.8rem;
    line-height: 1.35;
    opacity: 0.72;
}
.footer-contact-row .phone-holiday-note { margin-top: 0.15rem; }

/* Live availability status on contact/team cards (portal-driven). */
.person-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-family: var(--font-text, "Inter", sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
}
.person-status__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.person-status--at_work { color: var(--brand-success, #2F6B47); }
.person-status--at_work .person-status__dot {
    background: var(--brand-success, #2F6B47);
    box-shadow: 0 0 0 3px rgba(47, 107, 71, 0.16);
}
.person-status--away { color: var(--brand-warning, #8A5A00); }
.person-status--away .person-status__dot {
    background: #C98A2E;
    box-shadow: 0 0 0 3px rgba(201, 138, 46, 0.16);
}
.person-status--on_holiday { color: rgba(30, 29, 27, 0.55); }
.person-status--on_holiday .person-status__dot { background: rgba(30, 29, 27, 0.4); }
