/* Premium site footer */
.cd-footer {
    --cd-footer-ink: #16171d;
    --cd-footer-muted: #667085;
    --cd-footer-line: #e6e8ee;
    --cd-footer-accent: #EC008C;
    --cd-footer-accent-start: #00aeef;
    background: #fff;
    color: var(--cd-footer-ink);
}

.cd-footer__main { padding: clamp(4.5rem, 9vw, 5rem) 0 clamp(4rem, 7vw, 5rem); background: var(--cd-bg); }
.cd-footer__grid { display: grid; grid-template-columns:minmax(19rem, 1fr) minmax(20rem, 1.65fr) minmax(19rem, 1fr); align-items: center; gap: 30px; padding:0 30px;}
.cd-footer__office { padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: 1.25rem; background: #fff;  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.cd-footer__office:hover { transform: translateY(-.4rem); border-color: rgba(139, 61, 255, .24); box-shadow: 0 1.2rem 2.8rem rgba(24, 31, 56, .11); }
.cd-footer__office-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.cd-footer__flag { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 50%; background: #f5f6f8; font-size: 1.1rem; }
.cd-footer__office h2 { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; }
.cd-footer__details { display: grid; gap: 1rem; margin: 0; font-style: normal; }
.cd-footer__details p { display: flex; align-items: flex-start; gap: .75rem; margin: 0; color: #414754; font-size: .9rem; line-height: 1.55; }
.cd-footer__details svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .15rem; fill: none; stroke: currentColor; stroke-width: 1.75; }
.cd-footer__details a:hover { color: var(--cd-footer-accent-start); }
.cd-footer__directions { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.75rem; color: var(--cd-footer-ink); font-size: .88rem; font-weight: 600; }
.cd-footer__directions span { color: var(--cd-footer-accent); font-size: 1.25rem; transition: transform .25s ease; }
.cd-footer__directions:hover span { transform: translateX(.3rem); }

.cd-footer__cta { text-align: center; }
.cd-footer__eyebrow { position: relative; display: inline-block; margin: 0 0 1.1rem; color: var(--cd-footer-accent); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cd-footer__eyebrow::after { position: absolute; width: 2rem; height: 2px; bottom: -.55rem; left: 50%; background: var(--cd-footer-accent); content: ''; transform: translateX(-50%); }
.cd-footer__cta h2 { max-width: 14ch; margin: 0 auto 1.1rem; font-size: clamp(2.35rem, 4.2vw, 4.35rem); letter-spacing: -.065em; line-height: .98; }
.cd-footer__intro { max-width: 29rem; margin: 0 auto 1.65rem; color: var(--cd-footer-muted); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.45; }
.cd-footer__email { position: relative; display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: linear-gradient(100deg, var(--cd-footer-accent), var(--cd-footer-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(1.7rem, 3.2vw, 3.35rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.3; }
.cd-footer__email::after { position: absolute; right: 0; bottom: -.35rem; left: 0; height: 2px; background: linear-gradient(90deg, var(--cd-footer-accent-start), var(--cd-footer-accent)); content: ''; transform: scaleX(.28); transform-origin: center; transition: transform .35s ease; }
.cd-footer__email:hover::after, .cd-footer__email:focus-visible::after { transform: scaleX(1); }

.cd-footer__bottom { border-top: 1px solid var(--cd-footer-line); }
.cd-footer__bottom-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(1rem, 2.2vw, 2.5rem); min-height: 7.5rem; }
.cd-footer__brand img { width: auto; height: 2.85rem; }
.cd-footer__copyright { margin: 0; color: var(--cd-footer-muted); font-size: .78rem; }
.cd-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; color: #333845; font-size: .76rem; font-weight: 500; }
.cd-footer__legal a:hover { color: var(--cd-footer-accent-start); }
.cd-footer__social { display: flex; align-items: center; gap: .55rem; }
.cd-footer__social a { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: #f5f6f8; color: #252936; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.cd-footer__social a:hover { background: var(--cd-footer-ink); color: #fff; transform: translateY(-.18rem); }
.cd-footer__social svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.cd-footer__social a:last-child svg { fill: currentColor; stroke: none; }

/* Keep the desktop composition fluid between tablet and wide desktop sizes. */
@media (min-width: 1025px) and (max-width: 1280px) {
    .cd-footer__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr) minmax(0, .85fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
    .cd-footer__office { padding: clamp(1.25rem, 2vw, 1.75rem); }
    .cd-footer__details p { font-size: .82rem; }
}

/* At true tablet widths, lead with the CTA and retain two balanced office cards. */
@media (max-width: 1024px) {
    .cd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-footer__cta { grid-column: 1 / -1; grid-row: 1; order: -1; }
    .cd-footer__office { min-height: 100%; }
    .cd-footer__bottom-inner { grid-template-columns: auto 1fr auto; padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .cd-footer__legal { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

@media (max-width: 640px) {
    .cd-footer__main { padding-top: 1.25rem; }
    .cd-footer__grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .cd-footer__cta { grid-column: auto; grid-row: auto; padding: 1rem 0 2rem; }
    .cd-footer__office--india { order: 2; }
    .cd-footer__office--canada { order: 3; }
    .cd-footer__bottom-inner { grid-template-columns: 1fr auto; gap: 1.25rem; min-height: 0; }
    .cd-footer__copyright { grid-column: 1 / -1; grid-row: 2; }
    .cd-footer__legal { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
    .cd-footer__social { justify-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
    [data-footer-reveal] > * { opacity: 0; transform: translateY(1.25rem); transition: opacity .6s ease, transform .6s ease; }
    [data-footer-reveal] > :nth-child(2) { transition-delay: .1s; }
    [data-footer-reveal] > :nth-child(3) { transition-delay: .2s; }
    [data-footer-reveal].is-visible > * { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) { .cd-footer *, .cd-footer *::before, .cd-footer *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
