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

.h-footer {
    margin-top: 80px;
    background: var(--hlife-color-navy, #1A2B49);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .h-footer {
    background: #0e1a2f;
}

/* === Main footer ======================================================== */
.h-footer__main {
    padding: 64px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.h-footer__inner {
    max-width: var(--hlife-container-max, 1200px);
    margin-inline: auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}

@media (max-width: 900px) {
    .h-footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .h-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.h-footer__brand {
    grid-column: span 1;
}

@media (max-width: 900px) {
    .h-footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 540px) {
    .h-footer__brand {
        grid-column: span 1;
    }
}

.h-footer__logo {
    display: inline-block;
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 12px;
}

.h-footer__tagline {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.75;
    max-width: 320px;
}

/* Newsletter */
.h-footer__newsletter {
    max-width: 360px;
}

.h-footer__newsletter-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    opacity: 0.7;
    font-weight: 500;
}

.h-footer__newsletter-input {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.h-footer__newsletter-input:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
}

.h-footer__newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    min-width: 0;
}

.h-footer__newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.h-footer__newsletter-input input:focus {
    outline: none;
}

.h-footer__newsletter-btn {
    background: var(--hlife-color-emerald, #2E7D32);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.h-footer__newsletter-btn:hover {
    background: #246728;
}

.h-footer__newsletter-note {
    margin: 8px 0 0;
    font-size: 12px;
    opacity: 0.6;
}

/* Columns */
.h-footer__col-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: #fff;
    margin: 0 0 16px;
    opacity: 0.75;
}

.h-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h-footer__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s, padding 0.15s;
    padding-left: 0;
    display: inline-block;
}

.h-footer__link:hover {
    color: #fff;
    padding-left: 4px;
}

.h-footer__link--all {
    color: var(--hlife-color-gold, #C5A059);
    font-weight: 500;
    margin-top: 8px;
}

/* === Bottom bar ========================================================= */
.h-footer__bottom {
    padding: 20px 0;
}

.h-footer__bottom-inner {
    max-width: var(--hlife-container-max, 1200px);
    margin-inline: auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.h-footer__copy {
    margin: 0;
    opacity: 0.6;
}

.h-footer__legal {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-footer__legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.h-footer__legal a:hover {
    opacity: 1;
}

.h-footer__socials {
    display: flex;
    gap: 8px;
}

.h-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.15s, border-color 0.15s;
}

.h-footer__social:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
    .h-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
