/* ============================================================================
   Site footer — brand block, link columns, newsletter, contact card and the
   legal strip. Dark ink to bookend the header's top bar, so the page closes on
   the same surface it opened with.
   ========================================================================== */

.site-footer {
    position: relative;
    margin-top: var(--pt-section-y);
    background: var(--pt-ink-900);
    color: rgba(255, 255, 255, .68);
    font-size: var(--pt-text-base);
    overflow: hidden;
}

/* The same chartreuse-to-blue rule that tops the stats panel, closing the
   page's visual bracket. */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--pt-lime-500), var(--pt-blue-500) 45%, transparent 85%);
}

/* Very large, very faint wordmark bled off the bottom edge — the kind of
   detail that reads as designed rather than assembled. */
.site-footer::after {
    content: "POLO";
    position: absolute;
    left: 50%;
    bottom: -3.5rem;
    transform: translateX(-50%);
    font-family: var(--pt-font-display);
    font-size: clamp(7rem, 22vw, 18rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    color: rgba(255, 255, 255, .022);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.footer-top { position: relative; z-index: 1; padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.footer-grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: 1fr;
}

@media (min-width: 620px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.5fr; }
}

/* ------------------------------------------------------------- brand ----- */

.footer-brand .footer-logo { display: inline-block; margin-bottom: var(--pt-gap); }

.footer-brand .brand-logo {
    height: 52px;
    width: auto;
    filter: none;
    /* The logo mark is dark blue; on ink it needs lifting to white-ish without
       losing the chartreuse in the swoosh. */
    filter: brightness(0) invert(1) opacity(.92);
}

.footer-tagline {
    max-width: 30rem;
    color: rgba(255, 255, 255, .62);
    margin-bottom: var(--pt-gap-lg);
}

.footer-address {
    display: flex;
    gap: .65rem;
    margin-bottom: var(--pt-gap);
    color: rgba(255, 255, 255, .62);
    font-size: var(--pt-text-sm);
    line-height: 1.6;
}

.footer-address svg { width: 17px; height: 17px; flex: none; margin-top: .15rem; color: var(--pt-lime-500); }
.footer-address address { font-style: normal; margin: 0; }

.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }

.social-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .8);
    transition: transform .25s var(--pt-ease), background .25s var(--pt-ease), border-color .25s var(--pt-ease), color .25s var(--pt-ease);
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--pt-blue-600);
    border-color: var(--pt-blue-500);
    color: #fff;
}

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

/* ------------------------------------------------------------ columns ---- */

.footer-col { min-width: 0; }

.footer-col summary,
.footer-col > h3 {
    font-family: var(--pt-font-display);
    font-size: var(--pt-text-base);
    font-weight: 600;
    color: #fff;
    margin: 0 0 var(--pt-gap);
    letter-spacing: .01em;
    list-style: none;
    cursor: default;
}

.footer-col summary::-webkit-details-marker { display: none; }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.footer-col a {
    color: rgba(255, 255, 255, .62);
    font-size: var(--pt-text-base);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: color .18s var(--pt-ease), transform .18s var(--pt-ease);
}

.footer-col a::before {
    content: "";
    width: 0;
    height: 1px;
    background: var(--pt-lime-500);
    transition: width .25s var(--pt-ease-out);
}

.footer-col a:hover { color: #fff; }
.footer-col a:hover::before { width: 12px; }

/* On phones the columns collapse into accordions so the footer does not become
   a three-screen scroll. <details> gives that for free with no script. */
@media (max-width: 619.98px) {
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding-bottom: .85rem;
    }

    .footer-col summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        margin-bottom: 0;
        padding-block: .5rem;
        min-height: 44px;
    }

    .footer-col summary::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255, 255, 255, .5);
        border-bottom: 2px solid rgba(255, 255, 255, .5);
        transform: rotate(45deg) translateY(-2px);
        transition: transform .25s var(--pt-ease);
    }

    .footer-col[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
    .footer-col[open] ul { padding-top: .75rem; }
}

/* -------------------------------------------------------- newsletter ----- */

.footer-newsletter h3 {
    font-family: var(--pt-font-display);
    font-size: var(--pt-text-base);
    font-weight: 600;
    color: #fff;
    margin: 0 0 .4rem;
}

.footer-newsletter p { color: rgba(255, 255, 255, .6); font-size: var(--pt-text-sm); margin-bottom: var(--pt-gap); }

.newsletter-input-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .35rem .35rem 1rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--pt-radius-pill);
    background: rgba(255, 255, 255, .06);
    transition: border-color .2s var(--pt-ease), background .2s var(--pt-ease);
}

.newsletter-input-row:focus-within { border-color: var(--pt-lime-500); background: rgba(255, 255, 255, .1); }

.newsletter-input-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: var(--pt-text-base);
    padding-block: .5rem;
}

.newsletter-input-row input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-input-row input:focus { outline: none; }

.newsletter-input-row button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pt-lime-500), var(--pt-lime-600));
    color: var(--pt-ink-800);
    cursor: pointer;
    transition: transform .2s var(--pt-ease);
}

.newsletter-input-row button:hover { transform: scale(1.06); }
.newsletter-input-row button svg { width: 18px; height: 18px; }

.newsletter-feedback {
    margin: .6rem 0 0;
    font-size: var(--pt-text-xs);
    min-height: 1.1em;
    color: var(--pt-lime-300);
}

.newsletter-feedback.is-error { color: #F5A9A2; }

.footer-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--pt-gap-lg); }

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--pt-radius-pill);
    font-size: var(--pt-text-xs);
    color: rgba(255, 255, 255, .7);
}

.footer-badge svg { width: 13px; height: 13px; color: var(--pt-lime-500); }

/* ------------------------------------------------------------- bottom ---- */

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-block: 1.25rem;
    font-size: var(--pt-text-xs);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    color: rgba(255, 255, 255, .5);
}

.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal-links a { color: rgba(255, 255, 255, .5); }
.footer-legal-links a:hover { color: #fff; }

.made-in-bharat { display: inline-flex; align-items: center; gap: .4rem; }
.made-in-flag { width: 18px; height: 12px; border-radius: 2px; flex: none; }

/* -------------------------------------------------------- back to top ---- */

.back-to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 400;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--pt-line);
    border-radius: 50%;
    background: var(--pt-paper);
    color: var(--pt-blue-700);
    box-shadow: var(--pt-shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--pt-ease), transform .3s var(--pt-ease-out), visibility .3s;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--pt-blue-600); color: #fff; border-color: var(--pt-blue-600); }
.back-to-top svg { width: 20px; height: 20px; }

/* A floating WhatsApp/call action sits above it on mobile, where a tap-to-call
   is by far the most likely next step. */
.floating-call {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: calc(clamp(1rem, 3vw, 2rem) + 58px);
    z-index: 400;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #1faa55);
    color: #fff;
    box-shadow: 0 8px 24px rgba(31, 170, 85, .38);
    transition: transform .25s var(--pt-ease);
}

.floating-call:hover { transform: scale(1.07); color: #fff; }
.floating-call svg { width: 25px; height: 25px; }

@media (min-width: 992px) { .floating-call { display: none; } }
