/* ==========================================================================
   Footer
   ========================================================================== */

/* --- Main Footer Section — white background sandwiched between green wave SVGs --- */
.site-footer__main {
    position: relative;
    background-color: #ffffff;
    padding: 50px 0;
    overflow: hidden;  /* clips the wave SVGs that extend beyond bounds */
}

/* --- Wave SVGs — decorative green curves that blend footer into adjacent sections --- */
/* Top wave: green flowing down from the team section above */
.site-footer__wave-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    /* Base64-encoded SVG with layered wave paths at varying opacities */
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiMwMDNhMjUiPjxwYXRoIGQ9Ik0wIDUxLjc2YzM2LjIxLTIuMjUgNzcuNTctMy41OCAxMjYuNDItMy41OCAzMjAgMCAzMjAgNTcgNjQwIDU3IDI3MS4xNSAwIDMxMi41OC00MC45MSA1MTMuNTgtNTMuNFYwSDB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMjQuMzFjNDMuNDYtNS42OSA5NC41Ni05LjI1IDE1OC40Mi05LjI1IDMyMCAwIDMyMCA4OS4yNCA2NDAgODkuMjQgMjU2LjEzIDAgMzA3LjI4LTU3LjE2IDQ4MS41OC04MFYwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgMHYzLjRDMjguMiAxLjYgNTkuNC41OSA5NC40Mi41OWMzMjAgMCAzMjAgODQuMyA2NDAgODQuMyAyODUgMCAzMTYuMTctNjYuODUgNTQ1LjU4LTgxLjQ5VjB6Ii8+PC9nPjwvc3ZnPg==");
    background-size: 100% 100px;
    z-index: 1;
}

/* Bottom wave: green flowing up from the bottom bar below */
.site-footer__wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiMwMDNhMjUiPjxwYXRoIGQ9Ik03MjUuMjkgMTAxLjJDMzI1LjIyIDEyMi40OCAwIDAgMCAwdjE0MGgxMjgwVjBzLTE1NC42NCA3OS45Mi01NTQuNzEgMTAxLjJ6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTU1Ni40NSAxMTkuNzRDOTUzLjQxIDE0MCAxMjgwIDE0IDEyODAgMTR2MTI2SDBWMHMxNTkuNSA5OS40OCA1NTYuNDUgMTE5Ljc0eiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik02NDAgMTQwYzM1My40NiAwIDY0MC0xNDAgNjQwLTEzOXYxNDBIMFYwczI4Ni41NCAxNDAgNjQwIDE0MHoiLz48L2c+PC9zdmc+");
    background-size: 100% 100px;
    background-position: bottom;
    z-index: 1;
}

/* --- Contact Content — sits above the wave layers --- */
.site-footer__main-inner {
    position: relative;
    z-index: 2;  /* above wave SVGs */
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Left side: phone and email; right side: NCHMA seal */
.site-footer__contact-left { flex: 3; }
.site-footer__contact-right { flex: 2; text-align: right; }

/* Section label above contact info */
.site-footer__contact-heading {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #005337;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}
/* Each contact row: icon circle + link text */
.site-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
/* Circular bordered icon container */
.site-footer__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    flex-shrink: 0;
}
/* Large contact link text (phone/email) */
.site-footer__contact-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 31px;
    color: var(--color-primary) !important;  /* !important overrides base link color */
    line-height: 1.1;
}
a.site-footer__contact-link:hover { color: var(--color-primary) !important; }
.site-footer__nchma-seal { max-width: 250px; height: auto; }


/* --- Bottom Bar — dark green-to-navy gradient with company info --- */
.site-footer__bottom {
    background: linear-gradient(180deg, #003a25 0%, #003658 100%);
    padding: 10px 0;
}
.site-footer__bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px var(--space-lg) 0;
    display: flex;
    gap: var(--space-xl);
}
.site-footer__bottom-col { flex: 1; }
/* Muted uppercase labels (e.g. "Office", "Hours") */
.site-footer__bottom-heading {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 0;
}
/* Info text beneath each label */
.site-footer__bottom-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.9;
}

/* --- Social Icons — row of bordered icon buttons --- */
.site-footer__social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
}
/* Rounded-square icon buttons with hover color swap */
.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    border: 3px solid var(--color-white);
    border-radius: 10px;
    color: var(--color-white);
    transition: background-color var(--transition-fast);
}
.site-footer__social-link:hover {
    background-color: var(--color-secondary);  /* green to navy on hover */
    color: var(--color-white);
}

/* --- Footer Responsive — stack layout on mobile --- */
@media (max-width: 768px) {
    .site-footer__main-inner { flex-direction: column; text-align: center; }
    .site-footer__contact-left { margin-bottom: var(--space-lg); }
    .site-footer__contact-right { text-align: center; }
    .site-footer__contact-item { justify-content: center; }
    .site-footer__contact-link { font-size: 24px; }
    .site-footer__bottom-inner { flex-direction: column; text-align: center; gap: var(--space-md); }
    .site-footer__nchma-seal { max-width: 180px; margin: 0 auto; }
}

/* --- Bottom-bar text link (Terms) --- */
.site-footer__bottom-link {
    color: inherit;
    text-decoration: underline;
}

.site-footer__bottom-link:hover {
    opacity: 0.85;
}
