/**
 * HairStyleMojo Footer Styles
 *
 * v3.0: Premium redesign — 4-column grid, stats bar, clean layout.
 * Uses existing design tokens only.
 *
 * @package HelloBizChild
 * @since   1.2.0
 */

/* ========================================
   PRE-FOOTER CTA
======================================== */
.hsh-prefooter {
    padding: 0 0 60px 0;
    background: var(--white);
}

.hsh-prefooter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.hsh-prefooter-box {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hsh-prefooter-content {
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.hsh-prefooter-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hsh-prefooter-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.hsh-prefooter-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hsh-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.hsh-footer-btn-white {
    background: var(--white);
    color: var(--charcoal);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.hsh-footer-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    color: var(--charcoal);
}

.hsh-footer-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ========================================
   STATS BAR
======================================== */
.hsh-footer-stats {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.hsh-footer-stats-inner {
    display: flex;
    justify-content: center;
}

.hsh-footer-stat {
    flex: 1;
    text-align: center;
    border-left: 1px solid var(--border);
    padding: 0 32px;
}

.hsh-footer-stat:first-child {
    border-left: none;
}

.hsh-footer-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsh-footer-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal-light);
    margin-top: 6px;
}

/* ========================================
   MAIN FOOTER
======================================== */
.hsh-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.hsh-footer-main {
    padding: 80px 0 64px;
}

.hsh-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.hsh-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

/* Brand Column */
.hsh-footer-brand {
    max-width: 300px;
}

.hsh-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.hsh-footer-logo:hover {
    opacity: 0.8;
}

.hsh-footer-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hsh-footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsh-footer-logo-text {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.hsh-footer-logo-text span {
    color: var(--blue);
}

.hsh-footer-tagline {
    font-size: 14px;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hsh-footer-contact {
    margin-bottom: 20px;
}

.hsh-footer-contact a {
    font-size: 13px;
    color: var(--blue);
    font-weight: 500;
}

.hsh-footer-contact a:hover {
    color: var(--blue-dark);
}

/* Social Links */
.hsh-footer-social {
    display: flex;
    gap: 8px;
}

.hsh-social-btn {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-light);
    transition: var(--transition);
}

.hsh-social-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hsh-social-btn svg {
    width: 16px;
    height: 16px;
}

/* Footer Columns */
.hsh-footer-col h3 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--charcoal-light);
    margin-bottom: 24px;
}

.hsh-footer-links {
    list-style: none;
}

.hsh-footer-links li {
    margin-bottom: 14px;
}

.hsh-footer-links li:last-child {
    margin-bottom: 0;
}

.hsh-footer-links a {
    display: inline-block;
    font-size: 14px;
    color: var(--charcoal-mid);
    padding: 2px 0;
    position: relative;
    transition: var(--transition);
}

.hsh-footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--charcoal);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.hsh-footer-links a:hover {
    color: var(--charcoal);
    transform: translateX(2px);
}

.hsh-footer-links a:hover::after {
    width: 100%;
}

/* App Promo Card */
.hsh-footer-app-promo {
    margin-top: 24px;
    padding: 16px;
    background: var(--blue-subtle);
    border-radius: 12px;
    border: 1px solid var(--blue-pale);
}

.hsh-footer-app-text {
    font-size: 13px;
    color: var(--charcoal-mid);
    line-height: 1.5;
    margin-bottom: 8px;
}

.hsh-footer-app-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.03em;
}

/* ========================================
   FOOTER BOTTOM BAR
======================================== */
.hsh-footer-bottom {
    background: var(--gray-100);
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.hsh-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hsh-copyright {
    font-size: 13px;
    color: var(--charcoal-light);
}

.hsh-copyright a {
    color: var(--charcoal-mid);
    font-weight: 500;
}

.hsh-copyright a:hover {
    color: var(--charcoal);
}

.hsh-footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hsh-footer-legal a {
    font-size: 13px;
    color: var(--charcoal-light);
}

.hsh-footer-legal a:hover {
    color: var(--charcoal);
}

.hsh-legal-dot {
    color: var(--charcoal-light);
    font-size: 13px;
    user-select: none;
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.hsh-back-to-top {
    display: none !important;
}

.hsh-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hsh-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(74,143,231,0.45);
}

.hsh-back-to-top svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    stroke-width: 2.5;
    fill: none;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
    .hsh-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .hsh-prefooter-box {
        flex-direction: column;
        text-align: center;
        padding: 48px 36px;
    }
    .hsh-prefooter-content {
        max-width: 100%;
    }
    .hsh-prefooter-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hsh-prefooter {
        padding: 0 0 48px 0;
    }
    .hsh-prefooter-container,
    .hsh-footer-container {
        padding: 0 24px;
    }
    .hsh-prefooter-box {
        padding: 40px 24px;
        border-radius: 20px;
    }
    .hsh-footer-main {
        padding: 56px 0 48px;
    }
    .hsh-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .hsh-footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .hsh-footer-social {
        justify-content: center;
    }
    .hsh-footer-col h3 {
        justify-content: center;
    }
    .hsh-footer-links a {
        display: inline-block;
    }
    .hsh-footer-links a:hover {
        transform: none;
    }
    .hsh-footer-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .hsh-footer-links a:hover::after {
        width: 100%;
    }
    .hsh-footer-app-promo {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .hsh-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .hsh-footer-legal {
        justify-content: center;
    }
    /* Stats bar: 2x2 grid */
    .hsh-footer-stats-inner {
        flex-wrap: wrap;
    }
    .hsh-footer-stat {
        flex: 0 0 50%;
        padding: 16px 0;
        border-left: none;
    }
    .hsh-footer-stat:nth-child(1),
    .hsh-footer-stat:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 480px) {
    .hsh-prefooter-container,
    .hsh-footer-container {
        padding: 0 20px;
    }
    .hsh-footer-btn {
        width: 100%;
        padding: 14px 24px;
    }
    .hsh-prefooter-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    .hsh-footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    .hsh-legal-dot {
        display: none;
    }
    /* Stats bar: stack */
    .hsh-footer-stat {
        flex: 0 0 100%;
        border-bottom: 1px solid var(--border);
    }
    .hsh-footer-stat:last-child {
        border-bottom: none;
    }
}
