/**
 * CFRO Layout — Footer (Figma v3)
 * @package CFRO
 * @since   4.2.0
 */

.cfro-footer {
    background: var(--cfro-forest-dark);
    color: var(--cfro-white);
    padding: 3rem 0;
    margin-bottom: var(--cfro-player-height);
}

/* ── Brand column ───────────────────────── */
.cfro-footer__brand {
    /* no extra bottom margin — grid gap handles spacing */
}
.cfro-footer__logo img {
    height: 4rem;             /* 64px = h-16 */
    width: auto;
    margin-bottom: 1rem;
}
.cfro-footer__tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75); /* raised from 0.6 — already passed but lifted for consistency */
    line-height: 1.625;       /* leading-relaxed */
    margin: 0;
    max-width: 320px;
}

/* ── 4-column grid ─────────────────────── */
.cfro-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 768px) {
    .cfro-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .cfro-footer-grid { grid-template-columns: 1fr; }
}

/* ── Section headings ─────────────────── */
.cfro-footer h3 {
    font-size: 0.875rem;      /* text-sm */
    text-transform: uppercase;
    letter-spacing: 0.05em;   /* tracking-wider */
    margin: 0 0 1rem;
    color: var(--cfro-sage);  /* sage green, not white/60 */
    font-weight: 600;
}

/* ── Paragraphs & links (base) ───────────── */
.cfro-footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75); /* raised from 0.6 for WCAG AA on forest-dark */
    margin: 0 0 0.25rem;
    line-height: 1.6;
}
.cfro-footer a {
    color: rgba(255, 255, 255, 0.75); /* raised from 0.6 for WCAG AA on forest-dark */
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--cfro-transition);
}
.cfro-footer a:hover {
    color: var(--cfro-white);
    text-decoration: none;
}

/* ── Footer menu lists ─────────────────── */
.cfro-footer ul,
.cfro-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cfro-footer__menu li {
    margin-bottom: 0.25rem;
}
.cfro-footer__menu li a {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0;      /* py-1.5 */
    min-height: 2.75rem;      /* 44px WCAG touch target */
}

/* Sub-menu indent */
.cfro-footer__menu .menu-item-has-children li a {
    padding: 0.375rem 0 0 0;      /* py-1.5 */
    min-height: 1.25rem;      /* 44px WCAG touch target */
}

.cfro-footer__menu .sub-menu {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0 0 0 0;
}
.cfro-footer__menu .sub-menu li {
    margin-bottom: 0;
}
.cfro-footer__menu .sub-menu a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65); /* raised from 0.5 for WCAG AA on forest-dark */
}
.cfro-footer__menu .sub-menu a:hover {
    color: var(--cfro-white);
}

/* ── Social icons ───────────────────────── */
.cfro-footer__social {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.cfro-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;       /* 44px touch target */
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--cfro-radius);
    color: rgba(255, 255, 255, 0.65); /* raised from 0.5 for WCAG AA on forest-dark */
    transition: color var(--cfro-transition), border-color var(--cfro-transition);
}
.cfro-footer__social a:hover {
    color: var(--cfro-sage);
    border-color: rgba(126, 203, 176, 0.4); /* sage/40 */
    text-decoration: none;
}

/* ── Contact info ───────────────────────── */
.cfro-footer__email a {
    color: rgba(255, 255, 255, 0.75); /* raised from 0.6 for WCAG AA on forest-dark */
}
.cfro-footer__email a:hover {
    color: var(--cfro-sage);
}
.cfro-footer__phone {
    color: rgba(255, 255, 255, 0.65) !important; /* raised from 0.4 for WCAG AA on forest-dark */
    margin-top: 0.25rem !important;
}

/* ── Bottom bar ─────────────────────────── */
.cfro-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65); /* raised from 0.4 for WCAG AA on forest-dark */
}
.cfro-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65); /* raised from 0.4 for WCAG AA on forest-dark */
}
.cfro-footer__treaty {
    font-size: 0.75rem !important; /* text-xs */
}

@media (max-width: 640px) {
    .cfro-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
