/* Nagpur announcement — centered creative modal */
.nagpur-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background:
        radial-gradient(ellipse 70% 55% at 30% 25%, rgba(74, 124, 124, 0.28), transparent 60%),
        radial-gradient(ellipse 60% 50% at 75% 75%, rgba(74, 124, 124, 0.25), transparent 55%),
        rgba(10, 18, 30, 0.55);
    backdrop-filter: blur(6px);
}

.nagpur-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Celebration confetti — clipped inside card only */
.nagpur-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    border-radius: 20px;
}

.nagpur-confetti-piece {
    position: absolute;
    top: -12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: 0;
    animation: nagpurConfettiFall 3.6s ease-in forwards;
}

.nagpur-confetti-piece--rect {
    width: 7px;
    height: 13px;
    border-radius: 2px;
}

.nagpur-confetti-piece--wide {
    width: 12px;
    height: 7px;
    border-radius: 2px;
}

@keyframes nagpurConfettiFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(var(--nagpur-fall, 480px)) translateX(var(--nagpur-drift, 0px)) rotate(720deg) scale(0.6);
        opacity: 0;
    }
}

/* Ambient glow orbs behind card */
.nagpur-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.nagpur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: nagpurOrbFloat 5s ease-in-out infinite;
}

.nagpur-orb-1 {
    width: 200px;
    height: 200px;
    background: rgba(74, 124, 124, 0.35);
    top: 30%;
    left: 25%;
    animation-delay: 0s;
}

.nagpur-orb-2 {
    width: 160px;
    height: 160px;
    background: rgba(126, 200, 200, 0.28);
    bottom: 28%;
    right: 22%;
    animation-delay: 2s;
}

@keyframes nagpurOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -16px) scale(1.08); }
}

.nagpur-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    max-height: min(92dvh, 92vh);
    margin: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(74, 124, 124, 0.2),
        0 24px 64px rgba(0, 0, 0, 0.28);
    animation: nagpurModalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nagpur-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.38), rgba(255, 154, 110, 0.28), rgba(255, 200, 175, 0.22));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

@keyframes nagpurModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header — centered creative */
.nagpur-head {
    flex-shrink: 0;
    position: relative;
    padding: 32px 24px 44px;
    text-align: center;
    background: linear-gradient(145deg, #E55A28 0%, #FF9A6E 48%, #E86230 100%);
    overflow: hidden;
}

.nagpur-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(255, 154, 110, 0.2), transparent 45%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.nagpur-head-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.nagpur-head-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.12);
    animation: nagpurBubbleFloatTL 7s ease-in-out infinite;
    opacity: 0.85;
}

.nagpur-head-bubble-1 {
    width: 88px;
    height: 88px;
    top: -18px;
    left: -18px;
    animation: nagpurBubbleFloatTL 7s ease-in-out infinite;
    animation-delay: 0s;
}

.nagpur-head-bubble-2 {
    width: 72px;
    height: 72px;
    bottom: 8px;
    right: -12px;
    animation: nagpurBubbleFloatBR 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes nagpurBubbleFloatTL {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10px, 12px) scale(1.06);
        opacity: 0.85;
    }
}

@keyframes nagpurBubbleFloatBR {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-10px, -10px) scale(1.06);
        opacity: 0.85;
    }
}

.nagpur-head-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    opacity: 0.9;
    animation: nagpurSparkle 2.4s ease-in-out infinite;
}

.nagpur-head-sparkle-1 { top: 18%; left: 15%; animation-delay: 0s; }
.nagpur-head-sparkle-2 { top: 25%; right: 18%; width: 3px; height: 3px; animation-delay: 1s; }
.nagpur-head-sparkle-3 { bottom: 35%; left: 22%; animation-delay: 1.8s; }
.nagpur-head-sparkle-4 { bottom: 40%; right: 14%; width: 5px; height: 5px; animation-delay: 0.6s; }

@keyframes nagpurSparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.nagpur-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    touch-action: manipulation;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.nagpur-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.nagpur-icon-wrap {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
}

.nagpur-icon-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    animation: nagpurRingSpin 14s linear infinite;
}

@keyframes nagpurRingSpin {
    to { transform: rotate(360deg); }
}

.nagpur-pin {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.nagpur-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E55A28;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.nagpur-announce {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    padding: 0 12px;
    font-family: Poppins, "Outfit", sans-serif;
    font-size: clamp(15px, 4.2vw, 18px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.1px;
}

.nagpur-location {
    background: linear-gradient(90deg, #fff5e6, #fff, #fff5e6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nagpurShimmer 3s linear infinite;
}

@keyframes nagpurShimmer {
    to { background-position: 200% center; }
}

.nagpur-branch-name {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.nagpur-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.nagpur-wave svg {
    display: block;
    width: 100%;
    height: 32px;
}

/* Body */
.nagpur-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 26px 18px;
    background: linear-gradient(180deg, #f8fafa 0%, #fff 100%);
}

.nagpur-tagline {
    margin: 0 0 16px;
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
    color: #2d5a5a;
    line-height: 1.55;
    background: linear-gradient(135deg, #f0f7f7 0%, #fff 100%);
    border-radius: 10px;
    border-left: 3px solid #4A7C7C;
}


.nagpur-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 14px;
}

.nagpur-contact-grid .nagpur-row + .nagpur-row {
    margin-top: 0;
}

.nagpur-contact-grid .nagpur-row > div:last-child {
    min-width: 0;
}

.nagpur-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    transition: all 0.25s ease;
}

.nagpur-row + .nagpur-row {
    margin-top: 10px;
}

.nagpur-row:hover {
    border-color: #c5d9d9;
    box-shadow: 0 4px 16px rgba(74, 124, 124, 0.08);
    transform: translateX(2px);
}

.nagpur-row-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
}

.nagpur-row-icon--addr {
    background: linear-gradient(135deg, #4A7C7C, #2d5a5a);
}

.nagpur-row-icon--phone {
    background: linear-gradient(135deg, #FF9A6E, #E55A28);
}

.nagpur-row-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.nagpur-row-content {
    margin: 0;
    font-size: clamp(11px, 3.2vw, 12px);
    line-height: 1.55;
    color: #374151;
    word-break: break-word;
}

.nagpur-row-content a {
    color: #4A7C7C;
    font-weight: 600;
    text-decoration: none;
}

.nagpur-row-content a:hover {
    color: #FF6B35;
}

.nagpur-phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nagpur-phone-line {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.nagpur-phone-note {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    white-space: normal;
}

/* Actions */
.nagpur-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 10px 24px max(22px, env(safe-area-inset-bottom, 0px));
    background: #fff;
}

.nagpur-btn {
    flex: 1;
    font-family: Poppins, "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 600;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    touch-action: manipulation;
    transition: all 0.25s ease;
}

.nagpur-btn-primary {
    background: linear-gradient(135deg, #4A7C7C, #3a6565);
    color: #fff;
    box-shadow: 0 6px 20px rgba(74, 124, 124, 0.3);
}

.nagpur-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(74, 124, 124, 0.38);
}

.nagpur-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #1aad56);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.28);
}

.nagpur-btn-whatsapp:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Timer */
.nagpur-timer {
    flex-shrink: 0;
    height: 4px;
    background: #f1f5f9;
}

.nagpur-timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #4A7C7C, #FF9A6E, #4A7C7C);
    background-size: 200% 100%;
    transform-origin: left center;
    transform: scaleX(1);
    animation: nagpurTimerGlow 2s ease infinite;
}

.nagpur-timer-bar.running {
    animation:
        nagpurTimerCountdown var(--nagpur-timer-duration, 10s) linear forwards,
        nagpurTimerGlow 2s ease infinite;
}

@keyframes nagpurTimerCountdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes nagpurTimerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nagpur-orb-3 {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.22);
    top: 18%;
    right: 18%;
    animation-delay: 1.2s;
}

.nagpur-orb-4 {
    width: 120px;
    height: 120px;
    background: rgba(74, 124, 124, 0.25);
    bottom: 18%;
    left: 18%;
    animation-delay: 3s;
}

/* Tablet */
@media (max-width: 768px) {
    .nagpur-overlay {
        padding: 14px;
        padding-top: max(14px, env(safe-area-inset-top, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        align-items: center;
    }

    .nagpur-box {
        max-width: 100%;
        max-height: min(94dvh, 94vh);
        border-radius: 18px;
    }

    .nagpur-head {
        padding: 24px 18px 36px;
    }

    .nagpur-head-bubble-1 {
        width: 64px;
        height: 64px;
    }

    .nagpur-head-bubble-2 {
        width: 52px;
        height: 52px;
    }

    .nagpur-icon-wrap,
    .nagpur-pin {
        width: 60px;
        height: 60px;
    }

    .nagpur-pin {
        font-size: 22px;
    }

    .nagpur-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
    }

    .nagpur-body {
        padding: 18px 18px 14px;
    }

    .nagpur-tagline {
        font-size: 12px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .nagpur-row {
        padding: 12px 14px;
    }

    .nagpur-contact-grid {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .nagpur-actions {
        flex-direction: column;
        padding: 8px 18px max(18px, env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .nagpur-btn {
        width: 100%;
        min-height: 48px;
    }

    .nagpur-orb-1,
    .nagpur-orb-2 {
        width: 120px;
        height: 120px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .nagpur-overlay {
        padding: 10px;
        padding-top: max(10px, env(safe-area-inset-top, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
        padding-left: max(10px, env(safe-area-inset-left, 0px));
    }

    .nagpur-box {
        border-radius: 16px;
        max-height: min(96dvh, 96vh);
    }

    .nagpur-head {
        padding: 20px 14px 32px;
    }

    .nagpur-branch-name {
        font-size: 12px;
        padding: 0 4px;
    }

    .nagpur-wave svg {
        height: 24px;
    }

    .nagpur-body {
        padding: 14px 14px 10px;
    }

    .nagpur-row-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .nagpur-phone-line {
        font-size: 11px;
    }

    .nagpur-head-sparkle {
        display: none;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .nagpur-badge {
        font-size: 9px;
        padding: 5px 10px;
        letter-spacing: 0.6px;
    }

    .nagpur-announce {
        padding: 0 4px;
    }

    .nagpur-actions {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Short landscape viewports */
@media (max-height: 520px) and (orientation: landscape) {
    .nagpur-overlay {
        align-items: flex-start;
    }

    .nagpur-box {
        max-height: min(96dvh, 96vh);
    }

    .nagpur-head {
        padding: 14px 16px 26px;
    }

    .nagpur-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }

    .nagpur-pin {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .nagpur-badge {
        margin-bottom: 6px;
    }

    .nagpur-wave svg {
        height: 20px;
    }

    .nagpur-body {
        padding: 12px 16px 8px;
    }

    .nagpur-tagline {
        margin-bottom: 10px;
        padding: 10px 12px;
    }

    .nagpur-contact-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
        row-gap: 8px;
    }

    .nagpur-actions {
        flex-direction: row;
        padding: 6px 16px 12px;
    }

    .nagpur-btn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .nagpur-box {
        max-width: 460px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nagpur-box,
    .nagpur-confetti-piece,
    .nagpur-orb,
    .nagpur-head-bubble,
    .nagpur-head-sparkle,
    .nagpur-icon-ring,
    .nagpur-location,
    .nagpur-timer-bar {
        animation: none !important;
    }

    .nagpur-close:hover {
        transform: none;
    }
}

