/* =====================================================================
   PUFFIN SHARED SITE STYLES
   Used by index.html, privacy.html and complaints.html.
   Colour palette (original Puffin theme):
     Sage        #4A6B5D   Sage dark   #3B574B   Sage deep  #2C4239
     Sage tint   #EBF1EE   Sage border #D5E2DC
     Coral       #E07A5F   Coral dark  #B5523A   Coral tint #FDF1EE
     Cream       #FAF9F6   Slate dark  #1E293B   Slate body #475569
====================================================================== */

/* Thin brand colour strip across the very top of every page */
.brand-strip {
    height: 5px;
    background: linear-gradient(90deg, #4A6B5D 0%, #7FA08F 50%, #E07A5F 100%);
}

/* ---------- Live open / closed status pill ---------- */
.open-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: #475569;
}
.open-status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #94A3B8;
    flex-shrink: 0;
}
.open-status.is-open { color: #3B574B; }
.open-status.is-open::before { background: #22A06B; box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.2); }
.open-status.is-closed::before { background: #E07A5F; }
.site-footer .open-status { color: #B8CBC2; margin-top: 0.2rem; }
.site-footer .open-status.is-open { color: #CFE8DC; }

/* ---------- Header phone link (index page) ---------- */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #D5E2DC;
    background: #ffffff;
    color: #1E293B;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.header-phone:hover { border-color: #4A6B5D; background: #EBF1EE; }
.header-phone svg { color: #4A6B5D; flex-shrink: 0; }
.header-phone-text { display: none; flex-direction: column; line-height: 1.15; }
.header-phone-text strong { font-size: 0.85rem; }
/* Show the number as text on tablets (where the full menu is collapsed).
   On desktop the menu needs the space, so the button shows the phone icon only. */
@media (min-width: 640px) and (max-width: 1023px) {
    .header-phone-text { display: inline-flex; }
}

/* ---------- Shared footer ---------- */
.site-footer {
    background: #2C4239;
    color: #D5E2DC;
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 5px solid #E07A5F;
}
.site-footer a { color: #EBF1EE; text-decoration: none; }
.site-footer a:hover { color: #F4B6A5; text-decoration: underline; }
.site-footer .footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 0;
}
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 640px) {
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
}
.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}
.site-footer .footer-brand:hover { color: #ffffff; text-decoration: none; }
.site-footer .footer-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: #EBF1EE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-footer h3 {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F4B6A5;
}
.site-footer p { margin: 0 0 0.6rem; color: #D5E2DC; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer .company-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.site-footer .footer-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    background: #E07A5F;
    color: #1E293B;
    font-weight: 700;
}
.site-footer .footer-cta:hover { background: #F4B6A5; color: #1E293B; text-decoration: none; }
.site-footer .footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(213, 226, 220, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #B8CBC2;
}

/* =====================================================================
   PIP THE PUFFIN (mascot)
   Illustrations live in /pip/*.svg. Badge spots sit above section
   headings; the hero Pip perches on top of the quote card.
====================================================================== */
.pip-perch { position: relative; padding-top: 128px; }
.pip-perch-img {
    position: absolute; top: 0; right: 2rem; z-index: 2;
    width: 128px; height: auto;
    transform-origin: 50% 100%;
    animation: pip-bob 4s ease-in-out infinite;
}
.pip-perch-card { position: relative; z-index: 1; }
@keyframes pip-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}

.pip-spot {
    width: 112px; height: 112px;
    border-radius: 9999px;
    background: #EBF1EE;
    border: 1px solid #D5E2DC;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.pip-spot img { width: 96px; height: 96px; object-fit: contain; display: block; }
.pip-spot--center { margin-left: auto; margin-right: auto; }
.pip-spot--dark { background: #FAF9F6; border-color: rgba(255, 255, 255, 0.4); }
.pip-spot:hover img { animation: pip-bob 1.6s ease-in-out infinite; }

.pip-404 {
    display: block; width: 168px; height: 168px; box-sizing: border-box;
    padding: 14px; margin: 0 0 1.25rem;
    border-radius: 9999px; background: #FAF9F6; object-fit: contain;
}

@media (max-width: 639px) {
    .pip-perch { padding-top: 112px; }
    .pip-perch-img { width: 112px; right: 1.25rem; }
    .pip-spot { width: 96px; height: 96px; }
    .pip-spot img { width: 82px; height: 82px; }
}
@media (prefers-reduced-motion: reduce) {
    .pip-perch-img, .pip-spot:hover img { animation: none; }
}
