/* ================================================
   AgileTech Footer Block
   ================================================ */
.agiletech-footer {
    --f-bg: #0b1226;
    --f-accent: #ec4056;
    --f-card: #ffffff;
    --f-label: #8b93a3;
    --f-value: #1e2a44;
    --f-text: #c4cad6;
    --f-heading: #ffffff;
    --f-radius: 16px;

    background: var(--f-bg);
    color: var(--f-text);
    font-family: 'Roboto', sans-serif;
    padding: 40px 0 60px;
    box-sizing: border-box;
    width: 100%;
}

.agiletech-footer *,
.agiletech-footer *::before,
.agiletech-footer *::after {
    box-sizing: border-box;
}

.agiletech-footer__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Contact card ---------- */
.agiletech-footer__card {
    background: var(--f-card);
    border-radius: var(--f-radius);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    padding: 34px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.agiletech-footer__card-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 4px 34px;
}

.agiletech-footer__card-item:first-child {
    padding-left: 0;
}

.agiletech-footer__card-item + .agiletech-footer__card-item {
    border-left: 1px solid #e7e9f0;
}

.agiletech-footer__card-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border: 1px dashed var(--f-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f-accent);
}

.agiletech-footer__card-label {
    display: block;
    color: var(--f-label);
    font-size: 15px;
    margin-bottom: 8px;
}

.agiletech-footer__card-value {
    margin: 0;
    color: var(--f-value);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.agiletech-footer__card-value a {
    color: inherit;
    text-decoration: none;
}

.agiletech-footer__card-value a:hover {
    color: var(--f-accent);
}

/* ---------- Main columns ---------- */
.agiletech-footer__main {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.1fr;
    gap: 40px;
    margin-top: 70px;
}

/* Brand */
.agiletech-footer__logo {
    margin-bottom: 22px;
}

.agiletech-footer__logo img {
    max-height: 44px;
    width: auto;
    display: block;
}

.agiletech-footer__logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.agiletech-footer__logo-text span {
    color: var(--f-accent);
}

.agiletech-footer__tagline {
    margin: 0 0 26px;
    color: var(--f-text);
    font-size: 16px;
    line-height: 1.6;
    max-width: 260px;
}

.agiletech-footer__socials {
    display: flex;
    gap: 14px;
}

.agiletech-footer__social {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.agiletech-footer__social:hover {
    background: var(--f-accent);
    border-color: var(--f-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Headings with accent underline */
.agiletech-footer__heading {
    position: relative;
    color: var(--f-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 34px;
    padding-bottom: 14px;
}

.agiletech-footer__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: var(--f-accent);
}

/* Quick links */
.agiletech-footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}

.agiletech-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agiletech-footer__link-item {
    margin: 0 0 22px;
}

.agiletech-footer__link {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: var(--f-text);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.agiletech-footer__link:hover {
    color: #fff;
    transform: translateX(3px);
}

.agiletech-footer__chev {
    color: var(--f-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* Contact lines */
.agiletech-footer__contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--f-text);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}

.agiletech-footer__contact-line svg {
    color: #fff;
    flex-shrink: 0;
}

.agiletech-footer__contact-line:hover {
    color: var(--f-accent);
}

/* Subscribe */
.agiletech-footer__subscribe {
    margin-top: 6px;
}

.agiletech-footer__subscribe-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    max-width: 320px;
}

.agiletech-footer__subscribe-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 15px;
    color: #1e2a44;
    min-width: 0;
}

.agiletech-footer__subscribe-input::placeholder {
    color: #9aa1af;
}

.agiletech-footer__subscribe-btn {
    flex-shrink: 0;
    border: 0;
    cursor: pointer;
    background: var(--f-accent);
    color: #fff;
    width: 46px;
    height: 40px;
    border-radius: 7px;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

.agiletech-footer__subscribe-btn:hover {
    filter: brightness(0.92);
}

.agiletech-footer__privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--f-text);
}

.agiletech-footer__privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--f-accent);
    cursor: pointer;
}

.agiletech-footer__privacy-text a {
    color: var(--f-text);
    text-decoration: underline;
}

.agiletech-footer__privacy-text a:hover {
    color: #fff;
}

/* ---------- Success popup ---------- */
.agiletech-footer-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.agiletech-footer-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.agiletech-footer-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    font-family: 'Roboto', sans-serif;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
}

.agiletech-footer-popup-overlay.is-visible .agiletech-footer-popup {
    transform: translateY(0) scale(1);
}

.agiletech-footer-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #ec4056;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.agiletech-footer-popup__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid #ec4056;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4056;
    font-size: 34px;
    font-weight: 700;
}

.agiletech-footer-popup__title {
    margin: 0 0 12px;
    color: #ec4056;
    font-size: 26px;
    font-weight: 700;
}

.agiletech-footer-popup__text {
    margin: 0 0 26px;
    color: #1a1a2e;
    font-size: 15px;
    line-height: 1.6;
}

.agiletech-footer-popup__btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    background: #ec4056;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 46px;
    border-radius: 8px;
    transition: filter 0.2s ease;
}

.agiletech-footer-popup__btn:hover {
    filter: brightness(0.92);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .agiletech-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }

    .agiletech-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 782px) {
    .agiletech-footer__card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }

    .agiletech-footer__card-item {
        padding: 0;
    }

    .agiletech-footer__card-item + .agiletech-footer__card-item {
        border-left: 0;
        border-top: 1px solid #e7e9f0;
        padding-top: 24px;
    }

    .agiletech-footer__main {
        grid-template-columns: 1fr;
        gap: 44px;
        margin-top: 50px;
    }

    .agiletech-footer__tagline {
        max-width: none;
    }
}
