/* ==========================================================================
   FlowFix Footer - Wave Design
   ========================================================================== */

/* Footer Variables */
.flow-footer {
    --footer-dark: #0a1628;
    --footer-medium: #132337;
    --footer-light: #1a2e45;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
    --footer-accent: #F97316;
    --footer-primary: #14B8A6;
    --footer-glow: rgba(20, 184, 166, 0.15);
}

/* Wave Top Decoration */
.flow-footer::before {
    content: '';
    display: block;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--footer-dark) 100%);
    clip-path: polygon(
        0% 100%,
        0% 60%,
        5% 55%,
        10% 60%,
        15% 55%,
        20% 60%,
        25% 55%,
        30% 60%,
        35% 55%,
        40% 60%,
        45% 55%,
        50% 60%,
        55% 55%,
        60% 60%,
        65% 55%,
        70% 60%,
        75% 55%,
        80% 60%,
        85% 55%,
        90% 60%,
        95% 55%,
        100% 60%,
        100% 100%
    );
}

/* Emergency Banner - Floating Card */
.flow-footer__emergency {
    background: var(--footer-dark);
    padding: 3rem 1.5rem 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.flow-footer__emergency-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--footer-accent) 0%, #dc5a0d 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.25);
}

/* Animated background pattern */
.flow-footer__emergency-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.flow-footer__emergency-pulse {
    display: none;
}

.flow-footer__emergency-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.flow-footer__emergency-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.flow-footer__emergency-icon img {
    filter: brightness(0) invert(1);
    width: 28px;
    height: 28px;
}

.flow-footer__emergency-text strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.flow-footer__emergency-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.flow-footer__emergency-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    position: relative;
    z-index: 1;
}

.flow-footer__emergency-badges span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
}

.flow-footer__emergency-badges span:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.flow-footer__emergency-badges img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    width: 16px;
    height: 16px;
}

.flow-footer__emergency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: #fff;
    color: var(--footer-accent);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.flow-footer__emergency-btn img {
    filter: brightness(0) saturate(100%) invert(52%) sepia(91%) saturate(1339%) hue-rotate(346deg) brightness(99%) contrast(97%);
    width: 20px;
    height: 20px;
}

.flow-footer__emergency-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Footer Body - Layered Design */
.flow-footer__body {
    background: var(--footer-dark);
    padding: 4rem 1.5rem 3.5rem;
    position: relative;
}

/* Subtle grid pattern */
.flow-footer__body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.flow-footer__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 2.2fr 0.9fr;
    gap: 3.5rem;
    position: relative;
    z-index: 1;
}

/* Brand Column */
.flow-footer__brand {
    padding-right: 1.5rem;
}

.flow-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.flow-footer__logo img {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.flow-footer__logo-text strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--footer-heading);
    letter-spacing: -0.02em;
}

.flow-footer__logo-text strong span {
    color: var(--footer-accent);
}

.flow-footer__logo-text > span {
    font-size: 0.85rem;
    color: var(--footer-text);
    font-weight: 500;
}

.flow-footer__desc {
    font-size: 0.925rem;
    color: var(--footer-text);
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* Contact Cards - Glassmorphism */
.flow-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ff-contact {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    background: var(--footer-medium);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ff-contact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--footer-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ff-contact:hover {
    background: var(--footer-light);
    transform: translateX(6px);
    border-color: rgba(20, 184, 166, 0.2);
}

.ff-contact:hover::before {
    opacity: 1;
}

.ff-contact__icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--footer-primary) 0%, #0D9488 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.25);
}

.ff-contact__icon img {
    filter: brightness(0) invert(1);
    width: 20px;
    height: 20px;
}

.ff-contact__data em {
    display: block;
    font-size: 0.75rem;
    font-style: normal;
    color: var(--footer-text);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ff-contact__data strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--footer-heading);
}

/* Navigation - Modern Grid */
.flow-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.ff-nav-col h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.ff-nav-col h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--footer-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--footer-primary);
}

.ff-nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ff-nav-col a {
    font-size: 0.9rem;
    color: var(--footer-text);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.ff-nav-col a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.ff-nav-col a:hover {
    color: var(--footer-heading);
    padding-left: 0.5rem;
}

.ff-nav-col a:hover::before {
    width: 12px;
}

/* Stats Column - Compact Inline Design */
.flow-footer__stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: fit-content;
}

.ff-stat-row {
    display: flex;
    gap: 0.75rem;
}

.ff-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--footer-medium);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--footer-text);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ff-stat-item:hover {
    background: var(--footer-light);
    border-color: rgba(20, 184, 166, 0.2);
    transform: translateY(-2px);
}

.ff-stat-item strong {
    color: var(--footer-accent);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Areas Strip - Tag Cloud */
.flow-footer__areas {
    background: var(--footer-medium);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-footer__areas-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.125rem;
}

.flow-footer__areas-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--footer-heading);
    white-space: nowrap;
}

.flow-footer__areas-title img {
    filter: brightness(0) saturate(100%) invert(62%) sepia(78%) saturate(426%) hue-rotate(127deg) brightness(92%) contrast(88%);
    width: 18px;
    height: 18px;
}

.flow-footer__areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flow-footer__areas-tags a {
    padding: 0.4rem 0.875rem;
    background: var(--footer-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: 0.825rem;
    color: var(--footer-text);
    transition: all 0.3s ease;
}

.flow-footer__areas-tags a:hover {
    background: var(--footer-primary);
    border-color: var(--footer-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.25);
}

/* Bottom Bar - Minimal */
.flow-footer__bottom {
    background: var(--footer-dark);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-footer__bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-footer__copy {
    font-size: 0.875rem;
    color: var(--footer-text);
}

.flow-footer__legal {
    display: flex;
    gap: 2rem;
}

.flow-footer__legal a {
    font-size: 0.825rem;
    color: var(--footer-text);
    transition: all 0.3s ease;
    position: relative;
}

.flow-footer__legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.flow-footer__legal a:hover {
    color: var(--footer-heading);
}

.flow-footer__legal a:hover::after {
    width: 100%;
}

/* Fixed Call Button - Pulse Effect */
.call-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--color-accent, #F97316) 0%, #dc5a0d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow:
        0 8px 32px rgba(249, 115, 22, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.call-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5);
}

.call-float img {
    filter: brightness(0) invert(1);
    width: 26px;
    height: 26px;
}

.call-float__ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(249, 115, 22, 0.6);
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .flow-footer::before {
        height: 60px;
    }

    .flow-footer__emergency {
        margin-top: -30px;
    }

    .flow-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .flow-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .flow-footer__brand > .flow-footer__logo,
    .flow-footer__brand > .flow-footer__desc {
        grid-column: 1 / -1;
    }

    .flow-footer__nav {
        grid-column: 1 / 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .ff-nav-col:last-child {
        grid-column: 1 / -1;
    }

    .flow-footer__stats {
        align-self: start;
    }
}

@media (max-width: 768px) {
    .flow-footer::before {
        height: 50px;
    }

    .flow-footer__emergency {
        padding: 2rem 1rem 0;
        margin-top: -25px;
    }

    .flow-footer__emergency-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.5rem;
        border-radius: 16px;
        gap: 1rem;
    }

    .flow-footer__emergency-content {
        justify-content: center;
        text-align: center;
    }

    .flow-footer__emergency-badges {
        justify-content: center;
    }

    .flow-footer__emergency-btn {
        width: 100%;
        justify-content: center;
    }

    .flow-footer__body {
        padding: 3rem 1rem 2.5rem;
    }

    .flow-footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flow-footer__brand {
        display: block;
    }

 

    .flow-footer__stats {
        grid-column: 1;
    }

    .ff-stat-row {
        flex-direction: row;
    }

    .ff-stat-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }

    .ff-stat-item strong {
        font-size: 0.9rem;
    }

    .flow-footer__areas {
        padding: 1rem;
    }

    .flow-footer__areas-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    .flow-footer__bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .call-float {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
    }

    .call-float img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .flow-footer::before {
        height: 40px;
    }

    .flow-footer__emergency {
        margin-top: -20px;
    }

    .flow-footer__emergency-inner {
        padding: 1rem 1.125rem;
    }

    .flow-footer__emergency-icon {
        width: 48px;
        height: 48px;
    }

    .flow-footer__emergency-text strong {
        font-size: 1.0625rem;
    }

    .flow-footer__emergency-badges {
        gap: 0.375rem;
    }

    .flow-footer__emergency-badges span {
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
    }



    .ff-nav-col:last-child {
        grid-column: 1;
    }

    .ff-stat-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .ff-stat-item strong {
        font-size: 0.85rem;
    }

    .flow-footer__areas-tags {
        gap: 0.375rem;
    }

    .flow-footer__areas-tags a {
        padding: 0.35rem 0.625rem;
        font-size: 0.75rem;
    }

    .flow-footer__legal {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .call-float {
        width: 52px;
        height: 52px;
    }

    .call-float img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 375px) {
    .flow-footer__emergency-badges {
        flex-direction: column;
        width: 100%;
    }

    .flow-footer__emergency-badges span {
        justify-content: center;
    }

    .ff-contact {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .ff-contact::before {
        display: none;
    }

    .ff-contact:hover {
        transform: translateY(-4px);
    }
}
