/* =========================================================
   BHOPAL TIFFIN SERVICE — FOOTER
   File : /assets/css/footer.css
   (Colour tokens header.css ke :root se aate hain)
========================================================= */

/* =========================================================
   PRE-FOOTER CTA
========================================================= */
.footer-cta{
    position:relative;
    padding:0 24px;
    margin-top:40px;
    z-index:2;
}

.footer-cta-inner{
    position:relative;
    max-width:1180px;
    margin:0 auto -70px;
    padding:40px 48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    border-radius:var(--rk-radius-lg);
    background:
        radial-gradient(circle at 92% 20%,rgba(255,255,255,.18) 0 70px,transparent 71px),
        radial-gradient(circle at 80% 120%,rgba(233,160,25,.55),transparent 55%),
        linear-gradient(120deg,var(--rk-brand-dark) 0%,var(--rk-brand) 60%,#C9431F 100%);
    color:#fff;
    box-shadow:var(--rk-shadow-lg);
    overflow:hidden;
}

.footer-cta-inner::before{
    /* halka dotted pattern */
    content:"";
    position:absolute;
    inset:0;
    background-image:radial-gradient(rgba(255,255,255,.16) 1.2px,transparent 1.2px);
    background-size:18px 18px;
    pointer-events:none;
}

.footer-cta-text,
.footer-cta-actions{ position:relative; }

.footer-cta-text h2{
    font-family:var(--rk-font-display);
    font-size:clamp(24px,3vw,34px);
    font-weight:800;
    line-height:1.15;
    margin-bottom:8px;
}

.footer-cta-text p{
    font-size:15.5px;
    opacity:.95;
    max-width:520px;
}

.footer-cta-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    flex-shrink:0;
}

.footer-cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:52px;
    padding:0 26px;
    border-radius:999px;
    font-size:15px;
    font-weight:600;
    white-space:nowrap;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.footer-cta-btn.primary{
    background:#fff;
    color:var(--rk-brand-dark);
    box-shadow:0 12px 24px -10px rgba(31,26,23,.45);
}

.footer-cta-btn.primary:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 30px -10px rgba(31,26,23,.55);
}

.footer-cta-btn.ghost{
    color:#fff;
    border:2px solid rgba(255,255,255,.75);
}

.footer-cta-btn.ghost:hover{
    background:rgba(255,255,255,.14);
}

/* =========================================================
   FOOTER BASE
========================================================= */
.footer{
    position:relative;
    overflow:hidden;
    padding-top:70px;          /* CTA card ke overlap ke liye */
    background:
        radial-gradient(circle at 0% 0%,rgba(180,35,24,.22),transparent 40%),
        radial-gradient(circle at 100% 100%,rgba(30,107,82,.16),transparent 40%),
        #22140C;
    color:#E9D9CA;
    isolation:isolate;
}

.footer::before{
    /* top masala stripe */
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:repeating-linear-gradient(90deg,var(--rk-accent) 0 18px,transparent 18px 26px);
}

.footer *{ box-sizing:border-box; }

.footer-container{
    max-width:1180px;
    margin:0 auto;
    padding:70px 24px 46px;
    display:grid;
    grid-template-columns:1.35fr .85fr 1fr 1.45fr;
    gap:48px;
}

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

.footer-col h4{
    position:relative;
    margin-bottom:22px;
    padding-bottom:12px;
    font-family:var(--rk-font-display);
    font-size:20px;
    font-weight:700;
    color:#fff;
}

.footer-col h4::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:44px;
    height:4px;
    border-radius:4px;
    background:linear-gradient(90deg,var(--rk-brand),var(--rk-accent));
}

.footer-col p{
    font-size:14.5px;
    line-height:1.85;
    color:#CDB9A7;
}

.footer-col ul{ list-style:none; }

.footer-col li{ margin-bottom:12px; }
.footer-col li:last-child{ margin-bottom:0; }

.footer-col ul a{
    display:inline-flex;
    align-items:center;
    gap:0;
    font-size:14.5px;
    color:#E0CDBC;
    transition:color .2s ease, gap .2s ease;
}

.footer-col ul a::before{
    content:"";
    width:0;
    height:2px;
    border-radius:2px;
    background:var(--rk-accent);
    transition:width .2s ease;
}

.footer-col ul a:hover{
    color:#fff;
    gap:8px;
}

.footer-col ul a:hover::before{ width:12px; }

/* ---------- ABOUT COLUMN ---------- */
.footer-logo{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.footer-logo-mark{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:linear-gradient(135deg,var(--rk-brand),var(--rk-accent));
}

.footer-logo-mark svg{
    width:30px;
    height:30px;
    fill:none;
    stroke:#fff;
    stroke-width:2.4;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.footer-logo-text{
    font-family:var(--rk-font-display);
    font-size:22px;
    font-weight:800;
    color:#fff;
    line-height:1.1;
}

.footer-logo-text em{
    font-style:normal;
    color:var(--rk-accent);
}

.footer-about p{ max-width:380px; }

.footer-badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:20px;
    list-style:none;
}

.footer-badges li{
    margin:0;
    padding:6px 12px;
    border-radius:999px;
    font-size:12.5px;
    font-weight:600;
    color:#BFF0C8;
    background:rgba(30,107,82,.16);
    border:1px solid rgba(30,107,82,.35);
}

/* ---------- SOCIAL ---------- */
.footer-social-wrap{ margin-top:24px; }

.footer-social-title{
    margin-bottom:12px !important;
    font-size:12.5px !important;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:#fff !important;
}

.footer-social{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.footer-social a{
    position:relative;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    color:#F3E6DA;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    transition:transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.footer-social svg{
    width:19px;
    height:19px;
    fill:currentColor;
}

.footer-social a:hover,
.footer-social a:focus-visible{
    transform:translateY(-4px);
    color:#fff;
    box-shadow:0 10px 22px -10px rgba(0,0,0,.6);
}

/* Har platform ka apna rang (hover par) */
.footer-social .social-facebook:hover,
.footer-social .social-facebook:focus-visible{ background:#1877F2; border-color:#1877F2; }

.footer-social .social-linkedin:hover,
.footer-social .social-linkedin:focus-visible{ background:#0A66C2; border-color:#0A66C2; }

.footer-social .social-instagram:hover,
.footer-social .social-instagram:focus-visible{
    background:linear-gradient(45deg,#F58529,#DD2A7B 55%,#8134AF);
    border-color:#DD2A7B;
}

.footer-social .social-youtube:hover,
.footer-social .social-youtube:focus-visible{ background:#FF0000; border-color:#FF0000; }

.footer-social .social-pinterest:hover,
.footer-social .social-pinterest:focus-visible{ background:#E60023; border-color:#E60023; }

/* '#' wale (abhi page nahi bana) — halke dikhenge */
.footer-social a.is-soon{
    opacity:.55;
    cursor:default;
}

.footer-social a.is-soon:hover{
    transform:none;
    opacity:.75;
}

@media (max-width:640px){
    .footer-social a{ width:44px; height:44px; }
}

/* ---------- CONTACT COLUMN ---------- */
.footer-contact li{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:16px;
    font-size:14.5px;
    line-height:1.6;
    color:#E0CDBC;
}

.footer-contact li svg{
    flex-shrink:0;
    width:34px;
    height:34px;
    padding:8px;
    border-radius:10px;
    background:rgba(180,35,24,.16);
    fill:none;
    stroke:var(--rk-accent);
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.footer-contact li span,
.footer-contact li a{ padding-top:6px; word-break:break-word; }

.footer-contact li a::before{ display:none; }
.footer-contact li a:hover{ gap:0; color:var(--rk-accent); }

/* =========================================================
   SERVICE AREAS STRIP
========================================================= */
.footer-areas{
    max-width:1180px;
    margin:0 auto;
    padding:22px 24px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    border-top:1px dashed rgba(255,255,255,.14);
}

.footer-areas-label{
    margin-right:6px;
    font-size:13.5px;
    font-weight:600;
    color:#fff;
}

.footer-areas a{
    padding:6px 13px;
    border-radius:999px;
    font-size:13px;
    color:#E0CDBC;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.footer-areas a:hover{
    color:#fff;
    background:rgba(180,35,24,.25);
    border-color:rgba(180,35,24,.55);
}

.footer-areas a.footer-areas-more{
    color:var(--rk-accent);
    border-color:rgba(233,160,25,.4);
}

/* =========================================================
   BOTTOM BAR
========================================================= */
.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.18);
}

.footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px 24px;
    padding:20px max(24px,calc((100% - 1180px) / 2 + 24px));
    font-size:13.5px;
    color:#B19C8A;
}

.footer-legal{
    display:flex;
    flex-wrap:wrap;
    gap:6px 20px;
}

.footer-legal a{
    color:#CDB9A7;
    transition:color .2s ease;
}

.footer-legal a:hover{ color:#fff; }

/* =========================================================
   FLOATING WHATSAPP
========================================================= */
.wa-float{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:9980;
    display:inline-flex;
    align-items:center;
    gap:10px;
    height:56px;
    padding:0 20px 0 16px;
    border-radius:999px;
    background:var(--rk-whatsapp);
    color:#fff;
    font-size:15px;
    font-weight:600;
    box-shadow:0 14px 30px -10px rgba(37,211,102,.7);
    transition:transform .2s ease, box-shadow .2s ease;
}

.wa-float::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    border:2px solid var(--rk-whatsapp);
    animation:rk-wa-ring 2.4s ease-out infinite;
    pointer-events:none;
}

@keyframes rk-wa-ring{
    0%  { transform:scale(1);   opacity:.8; }
    100%{ transform:scale(1.35); opacity:0; }
}

.wa-float:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 34px -10px rgba(37,211,102,.8);
}

.wa-float svg{
    width:26px;
    height:26px;
    flex-shrink:0;
}

body.menu-open .wa-float{ display:none; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:1024px){
    .footer-container{
        grid-template-columns:1fr 1fr;
        gap:40px 36px;
    }
    .footer-about p{ max-width:100%; }
}

@media (max-width:860px){
    .footer-cta-inner{
        flex-direction:column;
        align-items:flex-start;
        padding:34px 28px;
    }
}

@media (max-width:640px){

    .footer-cta{ padding:0 16px; }
    .footer-cta-inner{ padding:28px 22px; margin-bottom:-60px; }
    .footer-cta-actions{ width:100%; flex-direction:column; }
    .footer-cta-btn{ width:100%; height:50px; }

    .footer{ padding-top:60px; }

    .footer-container{
        grid-template-columns:1fr 1fr;
        gap:32px 20px;
        padding:52px 16px 32px;
    }

    .footer-about,
    .footer-contact{ grid-column:1 / -1; }

    .footer-col h4{ font-size:18px; margin-bottom:18px; }
    .footer-col ul a,
    .footer-col p,
    .footer-contact li{ font-size:14px; }

    .footer-areas{ padding:20px 16px; }
    .footer-areas-label{ width:100%; margin-bottom:2px; }

    .footer-bottom{
        flex-direction:column;
        text-align:center;
        padding:20px 16px 90px;   /* WhatsApp button ke liye jagah */
        font-size:12.5px;
    }
    .footer-legal{ justify-content:center; }

    .wa-float{
        right:16px;
        bottom:16px;
        width:56px;
        padding:0;
        justify-content:center;
    }
    .wa-float-text{ display:none; }
}

/* ---------- Logo image (footer ke gehre background par safed patti mein) ---------- */
.footer-logo--image{
    display:inline-flex;
    align-items:center;
    padding:10px 16px;
    border-radius:14px;
    background:#fff;
    line-height:0;
    box-shadow:0 10px 24px -14px rgba(0,0,0,.6);
}

.footer-logo--image img{
    display:block;
    height:48px;
    width:auto;
    max-width:200px;
    object-fit:contain;
}

@media (max-width:640px){
    .footer-logo--image img{ height:42px; max-width:170px; }
}

@media (prefers-reduced-motion:reduce){
    .footer *,
    .footer *::before,
    .footer *::after,
    .wa-float,
    .wa-float::before{
        animation:none !important;
        transition:none !important;
    }
}
