/* =====================================================
   Jyoti Netra Chikitsalaya | Premium Footer
   ===================================================== */

.jn-footer {
    --jn-maroon: #a71930;
    --jn-maroon-dark: #861326;
    --jn-maroon-soft: #f9ebee;
    --jn-navy: #123b66;
    --jn-navy-dark: #082846;
    --jn-navy-deep: #041d34;
    --jn-gold: #d6a33c;
    --jn-gold-light: #f2d89c;
    --jn-white: #ffffff;
    --jn-container: 1240px;
    position: relative;
    width: 100%;
    margin: 72px 0 0;
    padding: 52px 0 0;
    color: var(--jn-white);
    font-family: inherit;
    isolation: isolate;
}

.jn-footer,
.jn-footer * {
    box-sizing: border-box;
}

.jn-footer a,
.jn-footer button {
    -webkit-tap-highlight-color: transparent;
}

.jn-footer a:focus-visible,
.jn-footer button:focus-visible {
    outline: 3px solid var(--jn-gold-light);
    outline-offset: 3px;
}

/* Premium appointment ribbon */
.jn-appointment-bar {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 50%;
    width: min(calc(100% - 48px), var(--jn-container));
    min-height: 104px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(380px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 17px 24px 17px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .16), transparent 26%),
        linear-gradient(115deg, var(--jn-maroon-dark) 0%, var(--jn-maroon) 52%, #b92a43 100%);
    box-shadow: 0 24px 55px rgba(84, 4, 24, .28);
}

.jn-appointment-bar::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -104px;
    top: -118px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .025), 0 0 0 38px rgba(255, 255, 255, .018);
    pointer-events: none;
}

.jn-appointment-copy {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    align-items: center;
    min-width: 0;
}

.jn-calendar-ring {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 17px;
    color: var(--jn-gold-light);
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.jn-calendar-ring .jn-icon {
    width: 25px;
    height: 25px;
}

.jn-appointment-eyebrow {
    grid-column: 2;
    margin-bottom: 4px;
    color: var(--jn-gold-light);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.jn-appointment-copy strong {
    grid-column: 2;
    margin-bottom: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 1.45vw, 23px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.jn-appointment-subtext {
    grid-column: 2;
    color: rgba(255, 255, 255, .8);
    font-size: 12.5px;
    line-height: 1.4;
}

.jn-top-action,
.jn-outline-button {
    text-decoration: none;
}

.jn-top-action {
    position: relative;
    z-index: 1;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    white-space: nowrap;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font-size: 13.5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.jn-top-action:hover {
    transform: translateY(-3px);
}

.jn-book-btn {
    min-width: 190px;
    color: var(--jn-maroon-dark);
    background: var(--jn-white);
    box-shadow: 0 12px 24px rgba(70, 0, 18, .2);
    font-weight: 800;
}

.jn-book-btn:hover {
    box-shadow: 0 16px 28px rgba(70, 0, 18, .28);
}

.jn-call-top {
    min-width: 205px;
    color: var(--jn-white);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .32);
    font-weight: 700;
}

.jn-call-top:hover {
    background: rgba(255, 255, 255, .16);
}

/* Main footer surface */
.jn-footer-card {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    background:
        radial-gradient(circle at 88% 12%, rgba(38, 104, 163, .32), transparent 31%),
        radial-gradient(circle at 8% 82%, rgba(167, 25, 48, .14), transparent 25%),
        linear-gradient(125deg, var(--jn-navy-deep) 0%, var(--jn-navy-dark) 43%, var(--jn-navy) 100%);
    box-shadow: 0 -8px 50px rgba(4, 29, 52, .12);
}

.jn-footer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
    mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}

.jn-footer-card::after {
    content: "";
    position: absolute;
    right: -105px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(242, 216, 156, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(242, 216, 156, .025), 0 0 0 64px rgba(242, 216, 156, .018);
    pointer-events: none;
}

.jn-footer-main {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--jn-container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr .72fr .9fr 1.1fr;
    gap: 0;
    padding: 108px 0 47px;
}

.jn-footer-column {
    min-width: 0;
    padding: 4px 34px;
    border-left: 1px solid rgba(255, 255, 255, .13);
}

.jn-brand-column {
    padding-left: 0;
    padding-right: 48px;
    border-left: 0;
}

.jn-visit-column {
    padding-right: 0;
}

.jn-brand-lockup {
    width: min(100%, 344px);
    overflow: hidden;
    border: 1px solid rgba(214, 163, 60, .42);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #fffdf8 100%);
    box-shadow: 0 16px 38px rgba(0, 15, 34, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.jn-official-logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: contain;
}

.jn-brand-name {
    color: var(--jn-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.07;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.jn-brand-description {
    max-width: 355px;
    margin: 20px 0 14px;
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    line-height: 1.65;
}

.jn-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .82);
    font-size: 11.5px;
}

.jn-trust-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.jn-trust-points i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jn-gold);
    box-shadow: 0 0 0 4px rgba(214, 163, 60, .12);
}

.jn-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jn-outline-button {
    min-height: 43px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    color: var(--jn-white);
    background: rgba(255, 255, 255, .055);
    font-size: 12.5px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.jn-outline-button:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 216, 156, .62);
    color: var(--jn-gold-light);
    background: rgba(255, 255, 255, .1);
}

.jn-contact-buttons .jn-outline-button:first-child {
    color: var(--jn-navy-dark);
    border-color: var(--jn-white);
    background: var(--jn-white);
}

.jn-contact-buttons .jn-outline-button:first-child:hover {
    color: var(--jn-maroon);
    background: #fffaf5;
}

.jn-icon {
    width: 19px;
    height: 19px;
    display: inline-block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jn-icon-small {
    width: 16px;
    height: 16px;
}

.jn-column-heading {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 13px;
    color: var(--jn-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
}

.jn-column-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 31px;
    height: 2px;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--jn-gold), var(--jn-gold-light));
}

.jn-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.jn-link-list a,
.jn-visit-item a,
.jn-legal-links a,
.jn-accordion-panel-inner a,
.jn-mobile-info-row,
.jn-sticky-action {
    color: inherit;
    text-decoration: none;
}

.jn-link-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: color .2s ease, transform .2s ease;
}

.jn-link-list a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(214, 163, 60, .6);
    transition: background .2s ease, box-shadow .2s ease;
}

.jn-link-list a:hover {
    color: var(--jn-gold-light);
    transform: translateX(3px);
}

.jn-link-list a:hover::before {
    background: var(--jn-gold-light);
    box-shadow: 0 0 0 4px rgba(214, 163, 60, .12);
}

.jn-visit-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .76);
    font-size: 12.5px;
    line-height: 1.55;
}

.jn-visit-item > .jn-icon {
    width: 35px;
    height: 35px;
    padding: 8px;
    margin-top: 1px;
    color: var(--jn-gold-light);
    border: 1px solid rgba(214, 163, 60, .28);
    border-radius: 10px;
    background: rgba(214, 163, 60, .08);
}

.jn-visit-item small {
    display: block;
    margin-bottom: 2px;
    color: var(--jn-gold-light);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jn-visit-item a:hover,
.jn-legal-links a:hover,
.jn-accordion-panel-inner a:hover,
.jn-mobile-info-row:hover {
    color: var(--jn-gold-light);
}

.jn-map-button {
    width: fit-content;
    margin-top: 2px;
}

.jn-mobile-brand,
.jn-mobile-info,
.jn-mobile-actions,
.jn-mobile-accordion,
.jn-mobile-sticky {
    display: none;
}

.jn-footer-bottom {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--jn-container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px 0 25px;
    color: rgba(255, 255, 255, .56);
    font-size: 11.5px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.jn-footer-bottom::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 64px;
    height: 1px;
    background: var(--jn-gold);
}

.jn-confirmation-note {
    color: rgba(255, 255, 255, .68);
    text-align: center;
    line-height: 1.5;
}

.jn-legal-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.jn-legal-links a {
    transition: color .2s ease;
}

@media (max-width: 1120px) {
    .jn-appointment-bar {
        grid-template-columns: minmax(350px, 1fr) auto;
    }

    .jn-call-top {
        display: none;
    }

    .jn-footer-main {
        grid-template-columns: 1.25fr .75fr .9fr 1fr;
    }

    .jn-footer-column {
        padding-left: 24px;
        padding-right: 24px;
    }

    .jn-brand-column {
        padding-left: 0;
        padding-right: 30px;
    }

    .jn-visit-column {
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    .jn-footer-main {
        grid-template-columns: 1.25fr .75fr 1fr;
        row-gap: 36px;
    }

    .jn-visit-column {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1.45fr 1fr auto;
        align-items: center;
        gap: 16px;
        padding: 25px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .jn-visit-column .jn-column-heading,
    .jn-visit-column .jn-visit-item {
        margin: 0;
    }

    .jn-visit-column .jn-column-heading::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .jn-footer {
        margin-top: 46px;
        padding-top: 0;
        padding-bottom: 0;
        background: var(--jn-navy-deep);
    }

    .jn-appointment-bar {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100% - 24px);
        min-height: 0;
        transform: none;
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto -30px;
        padding: 21px;
        border-radius: 20px;
    }

    .jn-appointment-copy {
        grid-template-columns: 48px 1fr;
        column-gap: 14px;
    }

    .jn-calendar-ring {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .jn-appointment-copy strong {
        font-size: 18px;
    }

    .jn-appointment-subtext {
        font-size: 11.5px;
    }

    .jn-top-action {
        width: 100%;
        min-height: 48px;
    }

    .jn-call-top {
        display: none;
    }

    .jn-footer-card {
        min-height: 0;
        padding-top: 49px;
    }

    .jn-footer-card::before {
        -webkit-mask-image: none;
        mask-image: none;
        opacity: .12;
    }

    .jn-footer-card::after {
        display: none;
    }

    .jn-footer-main {
        display: none;
    }

    .jn-mobile-brand,
    .jn-mobile-info,
    .jn-mobile-actions,
    .jn-mobile-accordion,
    .jn-mobile-sticky {
        display: block;
    }

    .jn-mobile-brand {
        width: calc(100% - 32px);
        max-width: 540px;
        margin: 0 auto;
        display: block;
        padding: 26px 0 19px;
        border-bottom: 1px solid rgba(255, 255, 255, .11);
    }

    .jn-mobile-logo-lockup {
        width: min(100%, 312px);
        margin: 0 auto;
        border-radius: 15px;
    }

    .jn-mobile-info {
        width: calc(100% - 32px);
        max-width: 540px;
        margin: 0 auto;
        padding: 9px 0 4px;
    }

    .jn-mobile-info-row {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 55px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        color: rgba(255, 255, 255, .79);
        font-size: 12.5px;
        line-height: 1.45;
        transition: color .2s ease;
    }

    .jn-mobile-info-row:last-child {
        border-bottom: 0;
    }

    .jn-info-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        color: var(--jn-gold-light);
        border: 1px solid rgba(214, 163, 60, .24);
        border-radius: 10px;
        background: rgba(214, 163, 60, .07);
    }

    .jn-chevron {
        margin-left: auto;
        color: var(--jn-gold-light);
        font-size: 19px;
    }

    .jn-mobile-actions {
        width: calc(100% - 32px);
        max-width: 540px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 0 20px;
    }

    .jn-mobile-actions .jn-outline-button {
        width: 100%;
        min-height: 47px;
    }

    .jn-mobile-actions .jn-outline-button:first-child {
        color: var(--jn-navy-dark);
        background: var(--jn-white);
        border-color: var(--jn-white);
    }

    .jn-mobile-accordion {
        width: calc(100% - 32px);
        max-width: 540px;
        margin: 0 auto;
        border-top: 1px solid rgba(255, 255, 255, .11);
    }

    .jn-accordion-item {
        border-bottom: 1px solid rgba(255, 255, 255, .11);
    }

    .jn-accordion-toggle {
        width: 100%;
        min-height: 57px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 0;
        border: 0;
        color: var(--jn-white);
        background: transparent;
        text-align: left;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .jn-accordion-toggle > .jn-icon {
        color: var(--jn-gold-light);
    }

    .jn-accordion-arrow {
        margin-left: auto;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform .25s ease;
    }

    .jn-accordion-item.is-open .jn-accordion-arrow {
        transform: rotate(-135deg);
    }

    .jn-accordion-panel {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows .25s ease, opacity .2s ease;
    }

    .jn-accordion-item.is-open .jn-accordion-panel {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .jn-accordion-panel-inner {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 0 15px 30px;
        color: rgba(255, 255, 255, .67);
        font-size: 12px;
        line-height: 1.55;
    }

    .jn-footer-bottom {
        width: calc(100% - 32px);
        max-width: 540px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 21px 0 23px;
        font-size: 10.5px;
        border-top: 0;
    }

    .jn-footer-bottom::before {
        width: 38px;
    }

    .jn-confirmation-note {
        text-align: left;
    }

    .jn-legal-links {
        justify-content: flex-start;
        gap: 15px;
    }

    .jn-mobile-sticky {
        position: sticky;
        z-index: 20;
        bottom: 0;
        display: grid;
        grid-template-columns: .8fr 1fr 1.22fr;
        min-height: 58px;
        overflow: hidden;
        border-top: 1px solid rgba(255, 255, 255, .2);
        background: linear-gradient(104deg, var(--jn-maroon-dark), var(--jn-maroon));
        box-shadow: 0 -8px 22px rgba(4, 29, 52, .2);
    }

    .jn-sticky-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 6px;
        border-right: 1px solid rgba(255, 255, 255, .2);
        color: var(--jn-white);
        font-size: 11.5px;
        font-weight: 700;
    }

    .jn-sticky-action:last-child {
        border-right: 0;
    }
}

@media (max-width: 420px) {
    .jn-appointment-bar {
        width: calc(100% - 20px);
        padding: 18px 16px;
    }

    .jn-appointment-copy {
        grid-template-columns: 43px 1fr;
        column-gap: 12px;
    }

    .jn-calendar-ring {
        width: 43px;
        height: 43px;
    }

    .jn-appointment-copy strong {
        font-size: 16px;
    }

    .jn-appointment-eyebrow {
        font-size: 8.5px;
    }

    .jn-appointment-subtext {
        font-size: 10.5px;
    }

    .jn-mobile-logo-lockup {
        width: min(100%, 276px);
        border-radius: 13px;
    }

    .jn-mobile-actions {
        gap: 7px;
    }

    .jn-mobile-actions .jn-outline-button {
        padding: 0 9px;
        font-size: 11px;
    }

    .jn-sticky-action {
        gap: 5px;
        font-size: 10px;
    }

    .jn-sticky-action .jn-icon {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jn-footer *,
    .jn-footer *::before,
    .jn-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}