/*
 * Public footer refinement
 * This file is intentionally scoped to the public footer. It resolves the
 * competing legacy theme rules without altering the public header or pages.
 */
.rh-public-footer {
    --rhf-deep: #213e42;
    --rhf-deeper: #193338;
    --rhf-text: #d9e4e3;
    --rhf-muted: #aebfbe;
    --rhf-dim: #849998;
    --rhf-line: rgba(236, 243, 239, .16);
    --rhf-gold: #efbd62;
    --rhf-cta: #c96f49;
    position: relative;
    color: var(--rhf-text);
    background: linear-gradient(135deg, var(--rhf-deeper) 0%, var(--rhf-deep) 55%, #294a4e 100%);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.rh-public-footer .rh-container { width: min(1280px, calc(100% - 56px)); }
.rh-public-footer a { text-decoration: none; }

.rh-public-footer .rh-footer-lead {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    padding: 40px 0 33px;
    border-bottom: 1px solid var(--rhf-line);
}

.rh-public-footer .rh-footer-lead > div { max-width: 760px; }
.rh-public-footer .rh-footer-lead span {
    display: block;
    color: var(--rhf-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rh-public-footer .rh-footer-lead h2 {
    margin: 8px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.16;
}

.rh-public-footer .rh-footer-lead > a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    color: #fff !important;
    background: var(--rhf-cta);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease;
}

.rh-public-footer .rh-footer-lead > a:hover,
.rh-public-footer .rh-footer-lead > a:focus-visible {
    color: #fff !important;
    background: #b95c38;
    transform: translateY(-2px);
}

.rh-public-footer .rh-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(135px, .62fr) minmax(155px, .78fr) minmax(245px, 1.08fr);
    align-items: start;
    gap: clamp(28px, 3.4vw, 52px);
    padding: 45px 0 36px;
}

.rh-public-footer .rh-footer-brand { max-width: 370px; }
.rh-public-footer .rh-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.rh-public-footer .rh-footer-logo img {
    display: block;
    width: 112px;
    height: 70px;
    object-fit: contain;
}

.rh-public-footer .rh-footer-brand h2 {
    margin: 16px 0 9px;
    color: #fff;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.01em;
    line-height: 1.35;
}

.rh-public-footer .rh-footer-brand p {
    max-width: 350px;
    margin: 0;
    color: var(--rhf-muted);
    font-size: 13px;
    line-height: 1.7;
}

.rh-public-footer .rh-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.rh-public-footer .rh-footer-column h3 {
    margin: 3px 0 9px;
    color: #fff;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rh-public-footer .rh-footer-column > a,
.rh-public-footer .rh-footer-contact p,
.rh-public-footer .rh-footer-contact a {
    color: var(--rhf-muted);
    font-size: 13px;
    line-height: 1.55;
}

.rh-public-footer .rh-footer-column > a {
    position: relative;
    padding: 1px 0;
    transition: color .18s ease, transform .18s ease;
}

.rh-public-footer .rh-footer-column > a::before {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rhf-gold);
    content: "";
    transition: width .18s ease;
}

.rh-public-footer .rh-footer-column > a:hover,
.rh-public-footer .rh-footer-column > a:focus-visible,
.rh-public-footer .rh-footer-contact a:hover,
.rh-public-footer .rh-footer-contact a:focus-visible { color: #fff; }
.rh-public-footer .rh-footer-column > a:hover::before,
.rh-public-footer .rh-footer-column > a:focus-visible::before { width: 100%; }

.rh-public-footer .rh-footer-contact { gap: 10px; }
.rh-public-footer .rh-footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.rh-public-footer .rh-footer-contact svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    fill: none;
    stroke: var(--rhf-gold);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rh-public-footer .rh-footer-disclaimer {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 0;
    padding: 16px 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--rhf-line);
    border-radius: 9px;
}

.rh-public-footer .rh-footer-disclaimer strong {
    color: var(--rhf-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.45;
    text-transform: uppercase;
}

.rh-public-footer .rh-footer-disclaimer p {
    margin: 0;
    color: #b7c7c6;
    font-size: 11px;
    line-height: 1.65;
}

.rh-public-footer .rh-footer-bottom {
    min-height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 21px;
    border-top: 1px solid var(--rhf-line);
}

.rh-public-footer .rh-footer-bottom p {
    margin: 0;
    color: var(--rhf-dim);
    font-size: 11px;
    line-height: 1.45;
}

.rh-public-footer .rh-floating-whatsapp {
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-width: 3px;
}

@media (max-width: 1100px) {
    .rh-public-footer .rh-footer-main {
        grid-template-columns: minmax(235px, 1.25fr) minmax(145px, .75fr) minmax(210px, 1fr);
    }
    .rh-public-footer .rh-footer-brand { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 760px) {
    .rh-public-footer .rh-container { width: calc(100% - 36px); }
    .rh-public-footer .rh-footer-lead { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 29px; }
    .rh-public-footer .rh-footer-lead > a { width: 100%; justify-content: space-between; }
    .rh-public-footer .rh-footer-main { grid-template-columns: 1fr 1fr; gap: 31px 24px; padding: 36px 0 30px; }
    .rh-public-footer .rh-footer-brand { grid-column: 1 / -1; }
    .rh-public-footer .rh-footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .rh-public-footer .rh-container { width: calc(100% - 28px); }
    .rh-public-footer .rh-footer-lead h2 { font-size: 29px; }
    .rh-public-footer .rh-footer-main { grid-template-columns: 1fr; gap: 28px; }
    .rh-public-footer .rh-footer-brand,
    .rh-public-footer .rh-footer-contact { grid-column: auto; }
    .rh-public-footer .rh-footer-disclaimer { grid-template-columns: 1fr; gap: 7px; padding: 15px; }
    .rh-public-footer .rh-footer-bottom { min-height: 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 17px 0; }
    .rh-public-footer .rh-floating-whatsapp { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .rh-public-footer .rh-footer-lead > a,
    .rh-public-footer .rh-footer-column > a,
    .rh-public-footer .rh-footer-column > a::before { transition: none; }
}
