/* ==========================================================================
   Nile Market Place — public brochure site
   Loaded AFTER theme.css and reuses its CSS variables (--ms-primary, --ms-gold,
   --ms-pink, --ms-shadow-lg, …). Nothing here touches the panel shell.
   ========================================================================== */

/* Client asked for the public site background to read as green (not the
   intense --ms-primary teal used on buttons/hero bands — that would be too
   heavy as a full-page wash). A very light sage tint keeps white cards and
   body copy reading clearly while still visibly "green". */
body.site { background: #EAF5EE; color: var(--ms-text); }

.site-anchor { scroll-margin-top: 120px; }
html { scroll-behavior: smooth; }

/* ---------------------------------------------------------- announcement */

.site-ticker {
    background: var(--ms-primary);
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
    padding: .4rem 0;
    overflow: hidden;
}
.site-ticker a { color: rgba(255, 255, 255, .88); }
.site-ticker a:hover { color: var(--ms-gold); }
.site-ticker__viewport { overflow: hidden; position: relative; flex: 1 1 auto; min-width: 0; }
.site-ticker__track {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    padding-left: 100%;
    animation: ms-ticker 28s linear infinite;
}
.site-ticker:hover .site-ticker__track { animation-play-state: paused; }
.site-ticker__track b { color: var(--ms-gold); font-weight: 700; }
.site-ticker__meta { white-space: nowrap; font-weight: 600; }
.site-ticker__meta i { color: var(--ms-gold); }

@keyframes ms-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .site-ticker__track { animation: none; padding-left: 0; }
}

/* --------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ms-border);
    transition: box-shadow .2s ease, padding .2s ease;
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(16, 30, 54, .09); }
.site-header .navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ms-primary); }
.site-header .navbar-brand img { height: 44px; width: auto; }
.site-header .navbar-brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--ms-muted); letter-spacing: .3px; }
.site-header .nav-link { font-weight: 600; font-size: .88rem; color: var(--ms-text); padding: .5rem .9rem; border-radius: 8px; }
.site-header .nav-link:hover { color: var(--ms-primary); background: rgba(11, 61, 46, .05); }
.site-header .nav-link.active { color: var(--ms-primary); }

.site-offcanvas .offcanvas-header { border-bottom: 1px solid var(--ms-border); }
.site-offcanvas .nav-link { padding: .65rem .25rem; border-bottom: 1px solid var(--ms-border); border-radius: 0; }

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

.site-hero { position: relative; }
.site-hero .carousel-item { height: 560px; }
.site-hero__slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.site-hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(8, 38, 29, .94) 0%, rgba(11, 61, 46, .82) 45%, rgba(11, 61, 46, .35) 100%);
}
.site-hero__inner { position: relative; z-index: 2; color: #fff; max-width: 660px; padding: 2rem 0; }
.site-hero__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(233, 196, 106, .18);
    border: 1px solid rgba(233, 196, 106, .45);
    color: var(--ms-gold);
    font-size: .76rem; font-weight: 700; letter-spacing: .3px;
    padding: .38rem .9rem; border-radius: 30px; margin-bottom: 1.1rem;
}
.site-hero__inner h1 {
    font-size: 2.9rem; font-weight: 800; line-height: 1.18;
    letter-spacing: -1px; margin-bottom: .9rem;
}
.site-hero__inner h1 span { color: var(--ms-gold); }
.site-hero__inner p { color: rgba(255, 255, 255, .82); font-size: 1rem; max-width: 520px; margin-bottom: 1.6rem; }

.site-hero .carousel-indicators { margin-bottom: 1.6rem; }
.site-hero .carousel-indicators [data-bs-target] {
    width: 30px; height: 4px; border-radius: 4px; border: 0;
    background: rgba(255, 255, 255, .4); opacity: 1;
}
.site-hero .carousel-indicators .active { background: var(--ms-gold); }
.site-hero .carousel-control-prev, .site-hero .carousel-control-next { width: 6%; opacity: .55; }
.site-hero .carousel-control-prev:hover, .site-hero .carousel-control-next:hover { opacity: 1; }

/* ---------------------------------------------------------- trust strip */

.site-trust { background: var(--ms-primary); padding: 1.4rem 0; }
.site-trust__item { display: flex; align-items: center; gap: .75rem; color: #fff; justify-content: center; }
.site-trust__item i { color: var(--ms-gold); font-size: 1.6rem; flex: 0 0 auto; }
.site-trust__item span { font-size: .86rem; font-weight: 600; line-height: 1.25; }

/* ------------------------------------------------------------- sections */

.site-section { padding: 4.5rem 0; }
/* A slightly deeper sage than body.site so alternating sections still read
   as distinct bands now that the base page is green instead of white. */
.site-section--tint { background: #DDEEE3; }

.site-eyebrow {
    display: inline-block;
    font-size: .71rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--ms-primary); background: rgba(11, 61, 46, .07);
    padding: .32rem .85rem; border-radius: 30px; margin-bottom: .8rem;
}
.site-title { font-size: 2.05rem; font-weight: 800; letter-spacing: -.6px; margin-bottom: .55rem; }
.site-title span { color: var(--ms-primary); }
.site-lead { color: var(--ms-muted); font-size: .95rem; max-width: 640px; }
.site-lead--center { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- products */

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--ms-shadow-lg); border-color: rgba(11, 61, 46, .3); }

.product-card__tile {
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 1.4rem;
    background: radial-gradient(circle at 50% 42%, rgba(233, 196, 106, .28) 0%, rgba(244, 246, 249, .9) 62%, #F4F6F9 100%);
}
.product-card--pink .product-card__tile { background: radial-gradient(circle at 50% 42%, rgba(216, 30, 91, .18) 0%, rgba(252, 244, 247, .95) 62%, #FDF6F8 100%); }
.product-card--green .product-card__tile { background: radial-gradient(circle at 50% 42%, rgba(42, 157, 143, .2) 0%, rgba(243, 250, 248, .95) 62%, #F2FAF7 100%); }
/* The tile is a fixed-height grid track, but a grid item's default
   min-height:auto lets an oversized image's intrinsic size win over
   max-height in some browsers, spilling the image past the 230px tile
   and visually overlapping the title/price text below it. min-height:0
   plus display:block (images default to inline, which adds a few px of
   baseline gap that also contributed to the overlap) close that gap. */
.product-card__tile img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: contain;
    transition: transform .25s ease;
}
.product-card:hover .product-card__tile img { transform: scale(1.06); }

/* This ribbon is the public site's one literal "income figure in a box" —
   it states the rupee activation value, so it gets the pink
   treatment the client asked for income boxes. */
.product-card__ribbon {
    position: absolute; top: 14px; left: 0; z-index: 3;
    background: var(--ms-pink); color: #fff;
    font-size: .7rem; font-weight: 800; letter-spacing: .2px;
    padding: .32rem .8rem .32rem .7rem;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.product-card__pack {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    background: rgba(11, 61, 46, .9); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: .26rem .6rem; border-radius: 30px;
}
.product-card__body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-card__body h6 { font-weight: 700; font-size: .96rem; margin-bottom: .3rem; line-height: 1.35; }
.product-card__body p { font-size: .82rem; color: var(--ms-muted); margin-bottom: .85rem; }
.product-card__price { display: flex; align-items: baseline; gap: .45rem; margin-bottom: 1rem; }
.product-card__price .now { font-weight: 800; font-size: 1.2rem; color: var(--ms-primary); }
.product-card__price .was { text-decoration: line-through; color: var(--ms-muted); font-size: .84rem; }
.product-card__price .off { font-size: .7rem; font-weight: 700; color: var(--ms-pink); background: rgba(216, 30, 91, .1); padding: .14rem .45rem; border-radius: 20px; }
.product-card__body .btn { margin-top: auto; }

/* ------------------------------------------------------ activation band */

.site-activation {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #08261D 0%, var(--ms-primary) 50%, #0E4C39 100%);
    color: #fff; padding: 3.2rem 0;
}
.site-activation::before, .site-activation::after {
    content: ''; position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 196, 106, .24) 0%, transparent 70%);
}
.site-activation::before { width: 420px; height: 420px; top: -170px; right: -100px; }
.site-activation::after { width: 320px; height: 320px; bottom: -150px; left: -90px; }
.site-activation .container { position: relative; z-index: 2; }
.site-activation__ribbon {
    display: inline-block; background: var(--ms-gold); color: #3D2E00;
    font-weight: 800; font-size: .74rem; letter-spacing: 1.2px; text-transform: uppercase;
    padding: .35rem 1rem; border-radius: 4px; margin-bottom: .9rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.site-activation h3 { font-weight: 800; font-size: 2.1rem; letter-spacing: -.6px; margin-bottom: .5rem; }
.site-activation h3 span { color: var(--ms-gold); }
.site-activation p { color: rgba(255, 255, 255, .8); margin-bottom: 0; }
.site-activation__price {
    display: inline-grid; place-items: center;
    width: 148px; height: 148px; border-radius: 50%;
    border: 3px dashed rgba(233, 196, 106, .6);
    background: rgba(233, 196, 106, .12);
}
.site-activation__price b { font-size: 2.3rem; font-weight: 800; color: var(--ms-gold); line-height: 1; }
.site-activation__price small { font-size: .7rem; color: rgba(255, 255, 255, .75); letter-spacing: .6px; text-transform: uppercase; }

/* --------------------------------------------------------- income heads */

.income-card {
    height: 100%; background: #fff;
    border: 1px solid var(--ms-border); border-radius: var(--ms-radius);
    padding: 1.7rem 1.45rem; position: relative; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.income-card:hover { transform: translateY(-5px); box-shadow: var(--ms-shadow-lg); border-color: rgba(11, 61, 46, .3); }
.income-card__no {
    position: absolute; top: .6rem; right: 1rem;
    font-size: 3rem; font-weight: 800; line-height: 1;
    color: rgba(11, 61, 46, .06); letter-spacing: -2px;
}
.income-card__icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.55rem; color: #fff;
    margin-bottom: 1.05rem; position: relative; z-index: 2;
}
.income-card h5 { font-weight: 800; font-size: 1.05rem; margin-bottom: .45rem; }
.income-card p { font-size: .855rem; color: var(--ms-muted); margin: 0; }

/* Small projected-earning tiles ("Per Month" / "12 Months" on the level-plan
   summary) — a real rupee income figure in its own card, so it gets the
   pink accent the gold-icon .ms-stat tiles use elsewhere on the panels. */
.income-figure-card { border-top: 3px solid var(--ms-pink); }
.income-figure-card .ms-stat__value { color: var(--ms-pink); }

/* ----------------------------------------------------------- plan table */

.plan-wrap { border: 1px solid var(--ms-border); border-radius: var(--ms-radius); overflow: hidden; background: #fff; }
.plan-table { width: 100%; margin: 0; font-size: .86rem; border-collapse: collapse; }
.plan-table thead th {
    background: var(--ms-primary); color: var(--ms-gold);
    font-size: .73rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700;
    padding: .75rem .9rem; border: 0; white-space: nowrap;
}
.plan-table tbody td { padding: .62rem .9rem; border-bottom: 1px solid var(--ms-border); white-space: nowrap; }
.plan-table tbody tr:nth-child(even) { background: #FAFBFB; }
.plan-table tbody tr:hover { background: rgba(233, 196, 106, .09); }
/* Totals row is the table's income figure — pink wash instead of the
   default gold, dark brand text stays for legibility. */
.plan-table tfoot td { background: rgba(216, 30, 91, .12); font-weight: 800; padding: .75rem .9rem; }
.plan-table .lvl {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; border-radius: 8px;
    background: rgba(11, 61, 46, .09); color: var(--ms-primary);
    font-weight: 800; font-size: .75rem;
}

/* ------------------------------------------------------------ pool cards */

.stage-card {
    border: 1px solid var(--ms-border); border-radius: var(--ms-radius);
    overflow: hidden; height: 100%; background: #fff;
    display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.stage-card:hover { transform: translateY(-5px); box-shadow: var(--ms-shadow-lg); }
.stage-card__head {
    background: linear-gradient(135deg, #08261D 0%, var(--ms-primary) 100%);
    color: #fff; padding: 1.1rem 1.2rem; position: relative; overflow: hidden;
}
.stage-card__head::after {
    content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 196, 106, .25) 0%, transparent 70%);
    right: -60px; top: -70px;
}
.stage-card__head h5 { margin: 0; font-weight: 800; font-size: 1.02rem; color: var(--ms-gold); position: relative; z-index: 2; }
.stage-card__head small { color: rgba(255, 255, 255, .75); position: relative; z-index: 2; }
/* Pool total / upgrade amount are income figures, so the footer badge gets
   a pink wash (text stays --ms-primary — it already has strong contrast on
   any light tint here, and pink text at this size/weight would be borderline
   on AA contrast). */
.stage-card__foot {
    margin-top: auto; background: rgba(216, 30, 91, .14);
    padding: .8rem 1.2rem; font-size: .82rem; font-weight: 700; color: var(--ms-primary);
    display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
}

/* ------------------------------------------------------------- why join */

.why-item { display: flex; gap: .95rem; align-items: flex-start; }
.why-item__icon {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
    background: rgba(11, 61, 46, .08); color: var(--ms-primary);
    display: grid; place-items: center; font-size: 1.2rem;
}
.why-item h6 { font-weight: 700; font-size: .95rem; margin-bottom: .22rem; }
.why-item p { font-size: .84rem; color: var(--ms-muted); margin: 0; }

/* ---------------------------------------------------------- how it works */

.step-card { text-align: center; position: relative; padding: 0 .5rem; }
.step-card__no {
    width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center;
    background: var(--ms-primary); color: var(--ms-gold);
    font-weight: 800; font-size: 1.3rem;
    box-shadow: 0 0 0 6px rgba(11, 61, 46, .08);
    position: relative; z-index: 2;
}
.step-card h6 { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.step-card p { font-size: .83rem; color: var(--ms-muted); margin: 0; }
.step-row { position: relative; }
.step-row::before {
    content: ''; position: absolute; top: 31px; left: 12%; right: 12%;
    border-top: 2px dashed var(--ms-border); z-index: 1;
}

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

.site-cta {
    background: linear-gradient(135deg, var(--ms-primary) 0%, #0E4C39 100%);
    color: #fff; border-radius: 18px; padding: 2.8rem 2.4rem;
    position: relative; overflow: hidden;
}
.site-cta::after {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 196, 106, .22) 0%, transparent 70%);
    right: -110px; top: -120px;
}
.site-cta > * { position: relative; z-index: 2; }
.site-cta h3 { font-weight: 800; font-size: 1.7rem; letter-spacing: -.4px; }

/* --------------------------------------------------------------- footer */

.site-footer { background: #08261D; color: rgba(255, 255, 255, .68); padding: 3.4rem 0 0; font-size: .86rem; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: .88rem; margin-bottom: 1rem; letter-spacing: .3px; }
.site-footer a { color: rgba(255, 255, 255, .68); display: block; padding: .22rem 0; }
.site-footer a:hover { color: var(--ms-gold); }
.site-footer__brand img { height: 48px; margin-bottom: .9rem; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1rem; }
.site-footer__social a {
    width: 36px; height: 36px; border-radius: 50%; padding: 0;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8);
}
.site-footer__social a:hover { background: var(--ms-gold); color: #08261D; }
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.4rem; padding: 1.1rem 0;
    font-size: .78rem; color: rgba(255, 255, 255, .5);
}

/* -------------------------------------------------------- scroll to top */

.site-totop {
    position: fixed; right: 20px; bottom: 20px; z-index: 1035;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--ms-primary); color: var(--ms-gold);
    display: grid; place-items: center; font-size: 1.1rem;
    box-shadow: var(--ms-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .22s ease;
}
.site-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.site-totop:hover { background: #08261D; }

/* ---------------------------------------------------------- page header */

.site-pagehead {
    background: linear-gradient(120deg, #08261D 0%, var(--ms-primary) 100%);
    color: #fff; padding: 3rem 0; position: relative; overflow: hidden;
}
.site-pagehead::after {
    content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 196, 106, .2) 0%, transparent 70%);
    right: -120px; top: -140px;
}
.site-pagehead .container { position: relative; z-index: 2; }
.site-pagehead h1 { font-weight: 800; font-size: 2.1rem; letter-spacing: -.6px; margin: 0; }
.site-pagehead .breadcrumb { margin: .5rem 0 0; font-size: .82rem; }
.site-pagehead .breadcrumb a { color: var(--ms-gold); }
.site-pagehead .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }
.site-pagehead .breadcrumb-item.active { color: rgba(255, 255, 255, .75); }

/* ------------------------------------------------------------- cms copy */

.site-prose { font-size: .93rem; line-height: 1.8; color: var(--ms-text); }
.site-prose h2, .site-prose h3, .site-prose h4 { font-weight: 700; margin: 1.6rem 0 .7rem; color: var(--ms-primary); }
.site-prose h2 { font-size: 1.3rem; }
.site-prose h3 { font-size: 1.1rem; }
.site-prose ul, .site-prose ol { padding-left: 1.2rem; }
.site-prose li { margin-bottom: .4rem; }

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

@media (max-width: 991.98px) {
    .site-hero .carousel-item { height: 480px; }
    .site-hero__inner h1 { font-size: 2.2rem; }
    .step-row::before { display: none; }
}

@media (max-width: 767.98px) {
    .site-section { padding: 3rem 0; }
    .site-title { font-size: 1.6rem; }
    .site-hero .carousel-item { height: 440px; }
    .site-hero__inner h1 { font-size: 1.75rem; }
    .site-hero__inner p { font-size: .9rem; }
    .site-hero .carousel-control-prev, .site-hero .carousel-control-next { display: none; }
    .site-activation h3 { font-size: 1.5rem; }
    .site-cta { padding: 2rem 1.4rem; }
    .site-cta h3 { font-size: 1.35rem; }
    .product-card__tile { height: 200px; }
}
