/* Astute Prime Wealth Pvt Ltd - replica-specific styles (everything else is the original compiled CSS). */
[hidden] { display: none !important; }

/* Scroll reveal (replaces framer-motion's inline initial state) */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-left { transform: translateX(-100px); }
.reveal.reveal-right { transform: translateX(100px); }
.reveal.reveal-scale { transform: scale(.8); }
.reveal.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Mobile menu */
.mobile-menu { transition: height .3s ease; background: rgba(255,255,255,.92); }
.mobile-menu details > summary { list-style: none; }
.mobile-menu details > summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] > summary svg { transform: rotate(180deg); }

/* Hero rotating quotes */
.hero-quote { opacity: 0; transform: translateX(40px); transition: opacity .5s ease, transform .5s ease; }
.hero-quote.is-active { opacity: 1; transform: translateX(0); }

/* Explore funds search */
[data-fund-search] .fund-results, [data-fund-search-mobile] .fund-results {
  position: absolute; right: 0; top: 100%; margin-top: .25rem; width: 100%; min-width: 260px; background: #fff; color: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,.15); z-index: 60; border-radius: .375rem; padding: .5rem 0; font-size: .875rem; max-height: 320px; overflow-y: auto;
}
.fund-results a { display: block; padding: .5rem 1rem; }
.fund-results a:hover { background: #f3f4f6; }
.fund-results .fund-results__empty { padding: .5rem 1rem; }


/* Video modal */
[data-video-modal]:not([hidden]) { display: flex; }

/* Charts */
.chart-box { width: 100%; min-height: 260px; position: relative; }
.chart-box--pie { min-height: 280px; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-box .chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: .8rem; margin-top: .5rem; }
.chart-box .chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-box .chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.chart-tip { position: absolute; pointer-events: none; background: rgba(1,10,45,.95); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; padding: .4rem .6rem; font-size: .75rem; white-space: nowrap; transform: translate(-50%, -110%); z-index: 5; }
.chart-tip[hidden] { display: none; }

/* Calculator summary cards */
[data-calc-summary] > div { border: 1px solid rgba(255,255,255,.25); border-radius: .75rem; padding: .75rem 1rem; }
[data-calc-summary] p:first-child { font-size: .8rem; opacity: .8; }
[data-calc-summary] p:last-child { font-weight: 700; font-size: 1.05rem; color: var(--rv-primary-light); }
[data-calc-fields] input[type=number] { color: #fff; }
[data-calc-fields] input[type=number]::-webkit-outer-spin-button, [data-calc-fields] input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
[data-calc-fields] input[type=number] { -moz-appearance: textfield; }

/* Quiz (risk profile / financial health) */
.quiz-option { display: block; width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.3); border-radius: .5rem; padding: .75rem 1rem; margin-bottom: .6rem;
  transition: background .2s, border-color .2s; }
.quiz-option:hover { border-color: var(--rv-primary); }
.quiz-option.is-selected { background: var(--rv-primary); color: #000; border-color: var(--rv-primary); }
.quiz-progress { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin: 1rem 0 1.5rem; }
.quiz-progress > i { display: block; height: 100%; background: var(--rv-primary); transition: width .3s; }

/* Notices for data-driven sections without a live feed */
.data-notice { border: 1px dashed rgba(255,255,255,.35); border-radius: .75rem; padding: 1.25rem; color: #fff; text-align: center; }

/* Fund cards (live NAV data) */
.fund-results__group { padding: .35rem 1rem .15rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.fund-card { background: var(--rv-bg-black1); border: 1px solid rgba(255,255,255,.15); border-radius: .75rem; color: #fff; min-height: 180px; transition: border-color .2s, transform .2s; }
.fund-card:hover { border-color: var(--rv-primary); transform: translateY(-2px); }
.fund-card__body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; height: 100%; }
.fund-card__house { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rv-primary-light); }
.fund-card__name { font-weight: 700; line-height: 1.3; }
.fund-card__cat { font-size: .78rem; color: rgba(255,255,255,.65); }
.fund-card__nav { display: flex; align-items: baseline; gap: .5rem; margin-top: .35rem; font-size: .8rem; color: rgba(255,255,255,.7); }
.fund-card__nav b { font-size: 1.1rem; color: #fff; }
.fund-card__returns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .5rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
.fund-card__returns span { display: block; font-size: .7rem; color: rgba(255,255,255,.6); }
.fund-card__returns b { font-size: .95rem; }
.is-up { color: #6ee7a2; } .is-down { color: #fca5a5; }
.fund-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .75rem; font-size: .85rem; }
.fund-card__actions a { color: var(--rv-primary-light); text-decoration: underline; }
.fund-card__actions .fund-card__cta { background: var(--rv-primary); color: #000; text-decoration: none; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; }
.perf-stat { border: 1px solid rgba(255,255,255,.2); border-radius: .6rem; padding: .7rem .9rem; }
.perf-stat span { display: block; font-size: .75rem; color: rgba(255,255,255,.65); }
.perf-stat b { font-size: 1.05rem; }
.perf-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: center; }
.perf-table th, .perf-table td { padding: .55rem .5rem; border: 1px solid rgba(255,255,255,.15); }
.perf-table th { background: rgba(255,255,255,.06); font-weight: 600; }
[data-perf-form] input[type=date] { color-scheme: dark; }

/* Partner badges & link cards */
.partner-slide { width: auto !important; }
.partner-badge { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .6rem 1.4rem; white-space: nowrap; font-weight: 600; color: #fff; background: rgba(255,255,255,.04); }
.link-card { display: block; background: var(--rv-bg-black2); border: 1px solid rgba(255,255,255,.15); border-radius: .75rem; padding: 1.1rem 1.2rem; color: #fff; transition: border-color .2s, transform .2s; }
.link-card:hover { border-color: var(--rv-primary); transform: translateY(-2px); }
.link-card h4 { font-weight: 700; margin-bottom: .35rem; }
.link-card p { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .6rem; }
.link-card span { font-size: .8rem; color: var(--rv-primary-light); }
.link-card--compact { padding: .8rem .9rem; } .link-card--compact h4 { font-size: .9rem; } .link-card--compact span { font-size: .7rem; }

/* Misc parity fixes */
select option { color: #000; }

/* WhatsApp enquiries (replaces the old enquiry forms) */
:root { --wa-green: #25D366; --wa-ink: #062a14; }
.wa-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; padding: 2rem 1rem; color: #fff; }
.wa-panel > .wa-icon { color: var(--wa-green); }
.wa-panel__title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.wa-panel__text { max-width: 28rem; color: #fff; font-weight: 500; }
.wa-panel__alt { font-size: .9rem; color: #fff; }
.wa-panel__alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.75rem; border-radius: 9999px;
  background: var(--wa-green); color: var(--wa-ink); font-weight: 700; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(37, 211, 102, .25);
  transition: transform .2s ease, box-shadow .2s ease; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, .35); color: var(--wa-ink); }
.wa-btn:focus-visible, .wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Floating WhatsApp button: bottom-right on every page, clear of the phone's home bar */
.wa-float { position: fixed; z-index: 60; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  background: var(--wa-green); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 28px rgba(0, 0, 0, .32); color: #fff; }
@media (max-width: 640px) {
  .wa-float { width: 54px; height: 54px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-float svg { width: 28px; height: 28px; }
}
@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-btn, .wa-float { transition: none; } .wa-btn:hover, .wa-float:hover { transform: none; } }

/* Footer logo: transparent artwork straight on the footer background, a little larger than the original 130px */
.footer-logo { width: 200px; max-width: 100%; height: auto; }

/* SEO heading fixes: demoted headings keep their original look */
.rv-h1 { font-size: var(--rv-h1); }
.rv-h2 { font-size: var(--rv-h2); }
h1.rv-eyebrow { font-size: 1rem; font-weight: 500; font-family: inherit; line-height: 1.5; letter-spacing: .02em; }

/* Insights articles */
.article-body { color: #e5e7eb; font-size: 1.05rem; line-height: 1.8; max-width: 72ch; }
.article-body h2 { color: #fff; font-size: 1.45rem; line-height: 1.35; margin: 2.25rem 0 .75rem; }
.article-body p { margin: 0 0 1rem; }
.article-body ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a, .seo-page a:not(.wa-btn):not(.link-card) { color: var(--wa-green); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: #fff; }
.seo-note { font-size: .875rem; color: #cbd5e1; margin-top: 2rem; }

/* Kochi landing page */
.seo-section { padding: 4rem 1rem; }
.seo-alt { background: var(--rv-bg-black2); }
.seo-wrap { max-width: 1280px; margin: 0 auto; }
.seo-split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .seo-split { grid-template-columns: 1.4fr 1fr; } }
.seo-page h2 { font-size: var(--rv-h2); line-height: 1.25; margin-bottom: 1rem; color: #fff; }
.seo-page p { color: #e5e7eb; line-height: 1.75; margin-bottom: 1rem; max-width: 70ch; }
.seo-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--wa-green) !important; margin-bottom: .5rem !important; }
.seo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.seo-card { background: var(--rv-bg-black2); border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; padding: 1.75rem; }
.seo-alt .seo-card { background: var(--rv-bg-black1); }
.seo-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.seo-steps { list-style: decimal; padding-left: 1.25rem; color: #e5e7eb; line-height: 1.7; }
.seo-steps li { margin-bottom: .75rem; }
.seo-steps strong { color: #fff; }
.seo-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.seo-chips li { list-style: none; padding: .45rem .9rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .95rem; }
.seo-faq { border-top: 1px solid rgba(255,255,255,.18); padding: 1rem 0; }
.seo-faq:last-of-type { border-bottom: 1px solid rgba(255,255,255,.18); }
.seo-faq summary { cursor: pointer; font-weight: 600; color: #fff; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--wa-green); font-size: 1.4rem; line-height: 1; }
.seo-faq[open] summary::after { content: "–"; }
.seo-faq p { margin: .75rem 0 0; }
.seo-map { border-radius: 1rem; overflow: hidden; min-height: 320px; }
.seo-page .link-card h3 { font-size: 1.1rem; font-weight: 700; }
.seo-page > .seo-section:last-child { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.seo-page > .seo-section:last-child .seo-note { margin-top: 0; }
@media (max-width: 767px) { .rv-listing-section { padding-left: 1rem; padding-right: 1rem; } }

/* Accessibility (Lighthouse): darker greens where text sits on or is coloured green, so contrast passes 4.5:1 */
nav .text-\[var\(--rv-primary-light\)\] { color: #05703a; }
.bg-\[var\(--rv-primary\)\]:has([data-goal-select]),
.bg-\[var\(--rv-primary\)\]:has([data-goal-select]) .bg-\[var\(--rv-primary\)\],
[data-goal-select], [data-goal-amount], [data-goal-years] { background-color: #05703a; }
.bg-\[var\(--rv-primary\)\]:has([data-goal-select]) label { color: #fff; }
/* links wrapping a button: make the link as big as the button so it is easy to tap */
a:has(> button) { display: inline-block; }
