/* =============================================================================
   Nodu — Business Detail Page
   Card / content styles only.
   Header + footer are styled by the shared /css/style.css + /css/responsive.css
   ========================================================================== */

:root {
    --biz-purple: #6A49F2;
    --biz-violet: #B77BFF;
    --biz-deep: #32236F;
    --biz-blue: #52C6EF;
    --biz-text: #3E3F66;
    --biz-muted: #85839F;
    --biz-tint: #F6F4FE;
    --biz-line: #ECE8FC;
    --biz-green: #12B76A;
    --biz-green-2: #0B8F52;
    --biz-sky: #4C8DFF;
    --biz-orange: #FFA24D;
    --biz-orange-2: #FF6B3D;
    --biz-radius: 30px;
    --biz-shadow: 0 30px 70px -28px rgba(50, 35, 111, .45);
    --biz-shadow-sm: 0 16px 36px -18px rgba(50, 35, 111, .45);
}

/* ---------- page canvas ------------------------------------------------- */

body {
    color: var(--biz-text);
    background-color: #FBFAFF;
    background-image:
        radial-gradient(760px 420px at 8% -6%, rgba(106, 73, 242, .14), transparent 60%),
        radial-gradient(680px 420px at 100% 8%, rgba(82, 198, 239, .16), transparent 62%),
        radial-gradient(700px 500px at 50% 108%, rgba(183, 123, 255, .12), transparent 60%);
    background-attachment: fixed;
}

/* `overflow-x: clip` keeps horizontal overflow hidden without killing
   position:sticky on the header (which `overflow-x: hidden` would) */
.page_wrapper {
    overflow-x: clip;
}

/* sticky glass header (replaces the jump-on-scroll fixed behaviour) */
header {
    position: sticky;
    top: 0;
}

header.fix_style {
    position: sticky;
    opacity: 1;
    pointer-events: all;
    padding: 6px 0;
    background-color: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -22px rgba(50, 35, 111, .9);
}

.biz_page {
    padding: 30px 0 70px;
}

/* ---------- hero card --------------------------------------------------- */

.biz_card {
    position: relative;
    background: #fff;
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
    box-shadow: var(--biz-shadow);
    overflow: hidden;
}

.biz_hero {
    position: relative;
    z-index: 0;
    isolation: isolate; /* traps the mesh's z-index so it can never cover the logo/title */
    height: 150px;
    overflow: hidden;
    background: linear-gradient(118deg, var(--biz-deep) 0%, var(--biz-purple) 42%, var(--biz-blue) 100%);
}

/* drifting aurora blobs */
.biz_hero::before,
.biz_hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    opacity: .6;
}

.biz_hero::before {
    width: 280px;
    height: 280px;
    top: -140px;
    left: -60px;
    background: var(--biz-blue);
    animation: bizDriftA 11s ease-in-out infinite;
}

.biz_hero::after {
    width: 240px;
    height: 240px;
    right: -50px;
    bottom: -130px;
    background: var(--biz-violet);
    animation: bizDriftB 13s ease-in-out infinite;
}

/* dotted mesh + curved bottom edge */
.biz_hero_mesh {
    position: absolute;
    inset: 0;
    z-index: 2; /* keep the mesh + white curve above the blurred blobs */
}

/* the dot pattern is masked so it fades out toward the bottom -- it lives on its
   own layer so the mask never touches the white curve below */
.biz_hero_mesh::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .4) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 5%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 5%, transparent 85%);
}

/* curved white edge blending the band into the card body */
.biz_hero_mesh::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -44px;
    height: 80px;
    background: #fff;
    border-radius: 50% 50% 0 0;
}

@keyframes bizDriftA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

@keyframes bizDriftB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
    50%      { transform: translate3d(-70px, -30px, 0) scale(.92); }
}

/* ---------- identity (logo + name + chips) ------------------------------ */

/* only the avatar overhangs the band -- the text column always starts below it */
.biz_identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 26px;
    padding: 0 46px 22px;
}

.biz_avatar {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    margin-top: -54px;
    padding: 3px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--biz-purple), var(--biz-violet) 50%, var(--biz-blue));
    box-shadow: 0 20px 40px -18px rgba(50, 35, 111, .8);
    animation: bizPop .75s cubic-bezier(.2, .9, .3, 1.25) both;
}

.biz_avatar_inner {
    width: 100%;
    height: 100%;
    padding: 9px;
    border-radius: 25px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.biz_avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes bizPop {
    from { opacity: 0; transform: translateY(26px) scale(.9); }
    to   { opacity: 1; transform: none; }
}

.biz_identity_text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 14px;
}

.biz_title {
    margin: 0;
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.4px;
    color: var(--biz-deep);
    word-break: break-word;
}

.biz_title::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--biz-purple), var(--biz-blue));
}

.biz_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.biz_chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--biz-deep);
    background: var(--biz-tint);
    border: 1px solid var(--biz-line);
    border-radius: 999px;
    transition: .3s all;
}

.biz_chip:hover {
    transform: translateY(-2px);
    border-color: rgba(106, 73, 242, .45);
    box-shadow: 0 12px 24px -16px rgba(106, 73, 242, .95);
}

.biz_chip i {
    font-size: 16px;
    color: var(--biz-purple);
}

.biz_chip strong {
    font-weight: 600;
}

/* ---------- action buttons ---------------------------------------------- */

.biz_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 46px 26px;
}

.biz_btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 30px 13px 13px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 16px 30px -14px var(--c1);
    transition: .35s all;
}

.biz_btn i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

.biz_btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    transform: skewX(-22deg);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
    transition: left .7s ease;
}

.biz_btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 38px -14px var(--c1);
}

.biz_btn:hover::after { left: 140%; }
.biz_btn:active       { transform: translateY(-1px) scale(.98); }

.biz_btn--call { --c1: var(--biz-green);  --c2: var(--biz-green-2); }
.biz_btn--web  { --c1: var(--biz-sky);    --c2: var(--biz-purple); }
.biz_btn--map  { --c1: var(--biz-orange); --c2: var(--biz-orange-2); }

/* ---------- info panels -------------------------------------------------- */

/* Address + Details stack one after another, full width */
.biz_grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding: 0 46px 26px;
}

.biz_panel {
    position: relative;
    padding: 22px 24px 22px 28px;
    background: #fff;
    border: 1px solid var(--biz-line);
    border-radius: 22px;
    overflow: hidden;
    transition: .4s all;
}

.biz_panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--biz-purple), var(--biz-blue));
}

.biz_panel::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--biz-tint);
    opacity: 0;
    transition: .4s all;
}

.biz_panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--biz-shadow-sm);
}

.biz_panel:hover::after { opacity: 1; }

.biz_panel_head,
.biz_section_head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 13px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--biz-deep);
}

.biz_panel_head i,
.biz_section_head i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    font-size: 17px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--biz-purple), var(--biz-blue));
    box-shadow: 0 12px 22px -12px var(--biz-purple);
}

.biz_panel p {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: var(--biz-text);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

.biz_panel p:last-child { margin-bottom: 0; }

/* ---------- gallery ------------------------------------------------------ */

.biz_gallery_block {
    padding: 0 46px 26px;
}

.biz_section_head {
    margin-bottom: 16px;
}

/* mosaic: repeating 6-tile rhythm keeps it lively without looking random */
.biz_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 128px;
    grid-auto-flow: dense;
    gap: 14px;
}

.biz_shot {
    position: relative;
    display: block;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 14px 30px -20px rgba(50, 35, 111, .85);
    transition: transform .5s cubic-bezier(.2, .8, .3, 1), box-shadow .5s;
}

.biz_shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .8, .3, 1), filter .5s;
}

/* gradient veil + zoom cue on hover */
.biz_shot_veil {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 21px;
    color: #fff;
    opacity: 0;
    background: linear-gradient(180deg, rgba(50, 35, 111, 0) 25%, rgba(50, 35, 111, .72) 100%);
    transition: opacity .45s;
}

.biz_shot_veil i {
    transform: translateY(12px) scale(.8);
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.3);
}

.biz_shot:hover,
.biz_shot:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 30px 52px -22px rgba(50, 35, 111, .8);
}

.biz_shot:hover img,
.biz_shot:focus-visible img {
    transform: scale(1.09);
    filter: saturate(1.1);
}

.biz_shot:hover .biz_shot_veil,
.biz_shot:focus-visible .biz_shot_veil { opacity: 1; }

.biz_shot:hover .biz_shot_veil i,
.biz_shot:focus-visible .biz_shot_veil i { transform: none; }

/* The wide / tall accents only switch on once there are enough tiles to fill in
   around them -- with 1-3 images an even row reads better than a lopsided mosaic. */
.biz_shot:first-of-type:nth-last-of-type(n+4),
.biz_shot:first-of-type:nth-last-of-type(n+4) ~ .biz_shot:nth-of-type(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.biz_shot:first-of-type:nth-last-of-type(n+6) ~ .biz_shot:nth-of-type(6n+4) {
    grid-column: span 2;
}

/* a lone image takes the full width */
.biz_shot:only-of-type {
    grid-column: 1 / -1;
    grid-row: span 2;
}

/* ---------- prev / next -------------------------------------------------- */

.biz_pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 46px 22px;
}

.biz_pager_btn {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 20px;
    color: var(--biz-purple);
    background: #fff;
    border: 1px solid var(--biz-line);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--biz-shadow-sm);
    transition: .35s all;
}

.biz_pager_btn:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: transparent;
    background: linear-gradient(135deg, var(--biz-purple), var(--biz-blue));
}

.biz_pager_spacer { flex: 1 1 auto; }

/* ---------- register CTA -------------------------------------------------- */

.biz_cta_wrap {
    display: flex;
    justify-content: center;
    padding: 0 46px 34px;
}

.biz_cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    padding: 17px 34px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #FF7A18, #AF002D 62%);
    box-shadow: 0 18px 38px -14px rgba(175, 0, 45, .8);
    transition: .35s all;
    animation: bizFloat 3.2s ease-in-out infinite;
}

.biz_cta i { font-size: 20px; }

.biz_cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -110%;
    width: 55%;
    height: 100%;
    transform: skewX(-24deg);
    background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .6), rgba(255, 255, 255, .12));
    animation: bizShine 2.8s linear infinite;
}

.biz_cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 48px -14px rgba(175, 0, 45, .9);
}

.biz_cta:active { transform: scale(.97); }

@keyframes bizShine {
    0%        { left: -110%; }
    62%, 100% { left: 150%; }
}

@keyframes bizFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ---------- empty state --------------------------------------------------- */

.biz_empty {
    padding: 56px 40px 62px;
    text-align: center;
}

.biz_empty .biz_title::after {
    margin-left: auto;
    margin-right: auto;
}

.biz_empty p {
    max-width: 560px;
    margin: 22px auto 0;
    color: var(--biz-muted);
}

/* ---------- credit image -------------------------------------------------- */

.biz_credit {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 32px auto 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--biz-shadow-sm);
    transition: .4s all;
}

.biz_credit img {
    display: block;
    width: 100%;
    height: auto;
}

.biz_credit:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 48px -20px rgba(50, 35, 111, .75);
}

/* ---------- modal ---------------------------------------------------------- */

.biz_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 20, 70, .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.biz_modal.is_open { display: flex; }

.biz_modal_box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 34px 30px 30px;
    text-align: center;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 40px 80px -30px rgba(20, 10, 50, .9);
    animation: bizModalIn .35s cubic-bezier(.2, .9, .3, 1.2) both;
}

@keyframes bizModalIn {
    from { opacity: 0; transform: translateY(24px) scale(.94); }
    to   { opacity: 1; transform: none; }
}

.biz_modal_close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: var(--biz-deep);
    background: var(--biz-tint);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s all;
}

.biz_modal_close:hover {
    color: #fff;
    background: var(--biz-purple);
    transform: rotate(90deg);
}

.biz_modal_box h2 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
    color: var(--biz-deep);
}

.biz_modal_box h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--biz-muted);
}

.biz_modal_box hr {
    margin: 20px 0;
    border: none;
    border-top: 1px dashed var(--biz-line);
}

/* enlarged gallery image inside the modal */
#modal-content-inner > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.biz_store {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.biz_store a {
    display: block;
    width: 190px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 26px -16px rgba(50, 35, 111, .9);
    transition: .3s all;
}

.biz_store a:hover { transform: translateY(-4px); }

.biz_store img {
    display: block;
    width: 100%;
    height: auto;
}

body.biz_no_scroll { overflow: hidden; }

/* ---------- responsive ------------------------------------------------------ */

@media (max-width: 991px) {
    .biz_identity,
    .biz_actions,
    .biz_grid,
    .biz_gallery_block,
    .biz_pager,
    .biz_cta_wrap { padding-left: 28px; padding-right: 28px; }

    .biz_gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 118px;
    }
}

@media (max-width: 767px) {
    .biz_page { padding: 20px 0 50px; }

    .biz_card { border-radius: 22px; }

    .biz_hero { height: 118px; }

    .biz_identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding-bottom: 20px;
    }

    .biz_avatar {
        width: 96px;
        height: 96px;
        margin-top: -48px;
        border-radius: 26px;
    }

    .biz_avatar_inner { border-radius: 23px; }

    .biz_identity_text { padding-top: 14px; }

    .biz_title::after { margin-left: auto; margin-right: auto; }

    .biz_chips,
    .biz_actions { justify-content: center; }

    .biz_panel { padding: 20px 18px 20px 24px; }
}

@media (max-width: 575px) {
    .biz_identity,
    .biz_actions,
    .biz_grid,
    .biz_gallery_block,
    .biz_pager,
    .biz_cta_wrap { padding-left: 16px; padding-right: 16px; }

    .biz_btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .biz_cta { font-size: 15px; padding: 15px 22px; }

    .biz_pager_btn { width: 48px; height: 48px; }

    .biz_gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 108px;
        gap: 10px;
    }

    /* keep the featured tile, drop the wide one -- 2 columns is too narrow for both */
    .biz_shot:first-of-type:nth-last-of-type(n+6) ~ .biz_shot:nth-of-type(6n+4) {
        grid-column: span 1;
    }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .biz_hero::before,
    .biz_hero::after,
    .biz_cta,
    .biz_cta::before,
    .biz_avatar,
    .biz_modal_box { animation: none; }
}
