/* Modern Footer Design - Matching User's Image Exactly */
.footer-modern {
    background: #000814;
    position: relative;
    overflow: visible;
    padding: 150px 0 0;
    margin-top: -100px;
    margin-bottom: 0 !important;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    overflow: visible;
}

/* Email section: VERTEX name with mail button centred in the middle */
.footer-email-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    margin-bottom: 120px;
}

/* Large VERTEX Background Text - Behind mail button, watermark style */
.footer-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 240px;
    font-weight: 900;
    color: #334155;
    letter-spacing: 0.08em;
    line-height: 0.9;
    text-transform: uppercase;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.45;
    text-shadow: 0 0 40px rgba(30, 41, 59, 0.5), 0 2px 24px rgba(0, 0, 0, 0.3);
    font-family: var(--font-heading);
    -webkit-text-stroke: 2px #06b6d4;
    paint-order: stroke fill;
}

/* Email Badge - Between VERTEX name and 3 columns (mailto link) */
.footer-email-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    margin-top: 260px;
    text-decoration: none;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.footer-email-badge i {
    font-size: 20px;
}

.footer-email-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.6);
}

/* Three Column Section - clear separation from email and background */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-bottom: 80px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding: 0 60px;
    isolation: isolate;
}

.footer-column {
    text-align: center;
}

.footer-column .column-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.footer-column a {
    color: inherit;
    text-decoration: none;
}

.footer-column .column-title {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.footer-column .column-title:hover {
    color: #00ff97;
}

/* Social Media Links - With Arrows */
.footer-social {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 35px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-right: 1px solid #1e293b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:last-child {
    border-right: none;
}

.social-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #00b4d8 0%, #00ff97 100%);
    transition: width 0.4s ease;
    z-index: -1;
}

.social-link i:first-child {
    font-size: 22px;
}

.social-link span {
    flex: 1;
    margin-left: 15px;
    text-align: left;
}

.social-link i:last-child {
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #000814;
}

.social-link:hover::before {
    width: 100%;
}

.social-link:hover i:last-child {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* Bottom Contact Info */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 35px 40px;
    position: relative;
    z-index: 1;
    gap: 30px;
}

.footer-bottom-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
}

.footer-bottom-item i {
    font-size: 20px;
    color: #00ff97;
    flex-shrink: 0;
}

.footer-bottom-item span {
    font-weight: 500;
    line-height: 1.4;
}

.footer-copyright {
    justify-content: center;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

.footer-phone {
    justify-content: flex-end;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .footer-email-section {
        min-height: 260px;
    }

    .footer-bg-text {
        font-size: 200px;
        opacity: 0.45;
    }

    .footer-columns {
        gap: 60px;
        padding: 0 40px;
    }

    .footer-column .column-title {
        font-size: 44px;
    }
}

@media (max-width: 1200px) {
    .footer-email-section {
        min-height: 220px;
    }

    .footer-bg-text {
        font-size: 170px;
        opacity: 0.45;
    }

    .footer-column .column-title {
        font-size: 38px;
    }

    .footer-columns {
        gap: 50px;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .footer-email-section {
        min-height: 180px;
        margin-bottom: 70px;
    }

    .footer-bg-text {
        font-size: 140px;
        opacity: 0.45;
    }

    .footer-email-badge {
        font-size: 18px;
        padding: 16px 35px;
    }

    .footer-columns {
        gap: 40px;
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .footer-column .column-title {
        font-size: 32px;
    }

    .footer-social {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-link {
        border-bottom: 1px solid #1e293b;
        padding: 20px 25px;
    }

    .social-link:nth-child(2n) {
        border-right: none;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 30px 20px;
    }

    .footer-bottom-item {
        justify-content: center;
    }

    /* Mobile: Address first, Phone middle, Copyright last */
    .footer-bottom-item:first-child {
        order: 1;
    }

    .footer-phone {
        justify-content: center;
        text-align: center;
        order: 2;
    }

    .footer-copyright {
        order: 3;
    }
}

/* Mobile/tablet: remove line over VERTEX (accent line + text stroke) - applies 991px and below */
@media (max-width: 991px) {
    .testimonial-footer-accent-line {
        display: none !important;
    }
    .footer-modern {
        margin-top: 0 !important;
    }
    .footer-email-section .footer-bg-text,
    .footer-bg-text {
        -webkit-text-stroke: 0 transparent !important;
        -webkit-text-stroke-width: 0 !important;
        -webkit-text-stroke-color: transparent !important;
        paint-order: unset !important;
    }
}

@media (max-width: 768px) {
    /* Prevent accent line from overlapping VERTEX name on mobile */
    .testimonial-footer-accent-line {
        display: none !important;
    }

    .footer-modern {
        padding: 60px 0 0;
        margin-top: 0 !important;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-email-section {
        flex-direction: column;
        min-height: auto;
        padding: 40px 0 50px;
        margin-bottom: 90px;
    }

    .footer-bg-text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 90px;
        opacity: 0.45;
        color: #334155;
        letter-spacing: 0.05em;
        margin-bottom: 30px;
        -webkit-text-stroke: 0 transparent !important;
        -webkit-text-stroke-width: 0 !important;
        -webkit-text-stroke-color: transparent !important;
        paint-order: unset !important;
    }

    .footer-email-badge {
        font-size: 18px;
        padding: 16px 35px;
        margin-top: 0;
        gap: 12px;
    }

    .footer-email-badge i {
        font-size: 22px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 50px;
        padding: 0 15px;
    }

    .footer-column .column-title {
        font-size: 36px;
    }

    .footer-social {
        grid-template-columns: 1fr;
    }

    .social-link {
        border-right: none;
        border-bottom: 1px solid #1e293b;
        padding: 18px 20px;
    }

    .social-link:last-child {
        border-bottom: none;
    }

    .footer-bottom {
        padding: 25px 15px;
    }

    .footer-bottom-item {
        font-size: 14px;
    }

    .footer-bottom-item span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-email-section {
        min-height: auto;
        padding: 30px 0 40px;
        margin-bottom: 70px;
    }

    .footer-bg-text {
        font-size: 64px;
        opacity: 0.45;
        color: #334155;
        margin-bottom: 24px;
        -webkit-text-stroke: 0 transparent !important;
        -webkit-text-stroke-width: 0 !important;
        -webkit-text-stroke-color: transparent !important;
        paint-order: unset !important;
    }

    .footer-email-badge {
        font-size: 14px;
        padding: 12px 22px;
        margin-top: 0;
        gap: 10px;
    }

    .footer-email-badge i {
        font-size: 20px;
    }

    .footer-column .column-label {
        font-size: 10px;
    }

    .footer-column .column-title {
        font-size: 28px;
    }

    .social-link {
        padding: 16px 18px;
        font-size: 12px;
    }

    .social-link i:first-child {
        font-size: 20px;
    }

    .social-link span {
        margin-left: 12px;
    }
}

/* Thin green accent line before footer - matches steps/service cards (used on all pages) */
.testimonial-footer-accent-line {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 255, 200, 0.9), rgba(0, 200, 255, 0.9));
    border-radius: 2px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}