/* =========================================================
   Wealth Invest Guide — Main Stylesheet
   Simple theme. Palette: Indigo + Aqua Mint + Lavender Grey
   ========================================================= */
:root {
  --indigo: #2a2f6b;
  --indigo-2: #1d2150;
  --indigo-soft: #ecedf7;
  --mint: #3ccfb4;
  --mint-2: #22a891;
  --mint-soft: #e3f8f4;
  --lav: #f6f6fb;
  --ink: #1f2240;
  --text: #575b72;
  --line: #e4e5f0;
  --shadow: 0 10px 28px rgba(42, 47, 107, 0.08);
  --shadow-lg: 0 18px 44px rgba(42, 47, 107, 0.15);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: "Poppins", sans-serif; color: var(--ink); font-weight: 600; line-height: 1.25; }
a { color: var(--indigo); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mint-2); }
img { max-width: 100%; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-lav { background: var(--lav); }
.bg-indigo { background: var(--indigo); color: rgba(255,255,255,.82); }
.bg-indigo h2, .bg-indigo h3, .bg-indigo h4 { color: #fff; }
.sec-head { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.sec-head span { color: var(--mint-2); }
.bg-indigo .sec-head span { color: var(--mint); }
.sec-text { font-size: 1.05rem; max-width: 640px; }
.text-center .sec-text { margin-inline: auto; }

/* ---------- Logo: one line, one style ---------- */
.wig-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.38rem; color: var(--indigo); line-height: 1; }
.wig-logo:hover { color: var(--indigo); }
.wig-logo .sign { width: 38px; height: 38px; border-radius: 12px; background: var(--indigo); color: var(--mint); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.wig-logo.light { color: #fff; }
.wig-logo.light:hover { color: #fff; }
.wig-logo.light .sign { background: var(--mint); color: var(--indigo-2); }

/* ---------- Header ---------- */
.info-line { background: var(--indigo-2); color: rgba(255,255,255,.8); font-size: .86rem; padding: 8px 0; }
.info-line a { color: rgba(255,255,255,.88); }
.info-line a:hover { color: var(--mint); }
.info-line i { color: var(--mint); margin-right: 6px; }
.info-line .il-item { margin-right: 22px; }
.wig-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.wig-header.scrolled { box-shadow: 0 6px 22px rgba(42,47,107,.08); }
.wig-header .navbar { padding: 16px 0; }
.wig-header .nav-link { color: var(--ink) !important; font-weight: 600; font-size: .95rem; padding: 8px 15px !important; border-radius: 30px; }
.wig-header .nav-link:hover { color: var(--indigo) !important; background: var(--lav); }
.wig-header .nav-link.active { color: #fff !important; background: var(--indigo); }
.wig-header .navbar-toggler { border: 1px solid var(--line); color: var(--indigo); font-size: 1.4rem; padding: 4px 10px; }
.wig-header .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) { .wig-header .navbar-collapse { padding: 12px 0 4px; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 30px; font-weight: 600; padding: 12px 28px; transition: all .25s ease; font-family: "Poppins", sans-serif; font-size: .95rem; }
.btn-sm { padding: 8px 20px; font-size: .86rem; }
.btn-indigo { background: var(--indigo); color: #fff; border: 1px solid var(--indigo); }
.btn-indigo:hover, .btn-indigo:focus { background: var(--indigo-2); border-color: var(--indigo-2); color: #fff; transform: translateY(-2px); }
.btn-mint { background: var(--mint); color: var(--indigo-2); border: 1px solid var(--mint); }
.btn-mint:hover, .btn-mint:focus { background: var(--mint-2); border-color: var(--mint-2); color: #fff; transform: translateY(-2px); }
.btn-outline-indigo { background: transparent; color: var(--indigo); border: 1px solid var(--indigo); }
.btn-outline-indigo:hover { background: var(--indigo); color: #fff; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 80px 0 0; background: linear-gradient(180deg, var(--indigo-soft) 0%, #fff 75%); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 860px; margin: 0 auto; }
.hero h1 span { color: var(--mint-2); }
.hero .lead { font-size: 1.12rem; max-width: 640px; margin: 20px auto 30px; }
.hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-band { margin-top: 50px; position: relative; }
.hero-band img { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); display: block; background: var(--indigo-soft); }
.hero-tags { position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); background: #fff; border-radius: 40px; box-shadow: var(--shadow-lg); padding: 12px 26px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; white-space: nowrap; }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero-tags i { color: var(--mint-2); }
.hero-after { height: 70px; }
@media (max-width: 767.98px) {
  .hero-band img { height: 300px; }
  .hero-tags { position: static; transform: none; margin: 16px auto 0; white-space: normal; border-radius: 18px; gap: 12px; }
  .hero-after { height: 30px; }
}

/* ---------- Service cards ---------- */
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc .svc-img { height: 200px; overflow: hidden; background: var(--indigo-soft); }
.svc .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc .svc-body { padding: 0 24px 28px; display: flex; flex-direction: column; align-items: center; flex-grow: 1; }
.svc .svc-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--mint); color: var(--indigo-2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-top: -30px; margin-bottom: 14px; border: 5px solid #fff; position: relative; }
.svc h3 { font-size: 1.22rem; margin-bottom: 10px; }
.svc p { flex-grow: 1; }

/* ---------- About ---------- */
.about-pic { width: 100%; height: 430px; object-fit: cover; border-radius: 24px; display: block; box-shadow: var(--shadow); background: var(--indigo-soft); }
.tick-list { list-style: none; padding: 0; margin: 20px 0; }
.tick-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink); font-weight: 600; }
.tick-list i { color: var(--mint-2); font-size: 1.15rem; margin-top: 1px; }
.bg-indigo .tick-list li { color: #fff; }
.bg-indigo .tick-list i { color: var(--mint); }

/* ---------- Retirement estimator ---------- */
.estimator { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 32px; }
.estimator .form-label { font-size: .9rem; }
.est-result { background: var(--indigo); border-radius: 18px; color: rgba(255,255,255,.85); padding: 26px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.est-result .est-big { font-family: "Poppins", sans-serif; font-size: 2.3rem; font-weight: 700; color: var(--mint); line-height: 1.15; margin: 4px 0 16px; }
.est-result .est-line { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding: 9px 0; font-size: .95rem; }
.est-result strong { color: #fff; }
.est-result .est-note { font-size: .9rem; margin-top: 8px; }

/* ---------- Pillars ---------- */
.pillar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 24px; height: 100%; }
.pillar i { font-size: 1.9rem; color: var(--mint); }
.pillar h4 { font-size: 1.15rem; margin: 12px 0 6px; }
.pillar p { margin: 0; color: rgba(255,255,255,.78); }

/* ---------- Timeline steps ---------- */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 30px; border-top: 2px dashed var(--mint); }
.step { text-align: center; position: relative; padding: 0 10px; }
.step .num { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 3px solid var(--mint); color: var(--indigo); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative; z-index: 2; }
.step h4 { font-size: 1.12rem; }
@media (max-width: 991.98px) { .steps::before { display: none; } }

/* ---------- Testimonials ---------- */
.t-card { background: #fff; border-radius: var(--radius); padding: 30px; height: 100%; box-shadow: var(--shadow); display: flex; gap: 18px; }
.t-card .t-av { width: 56px; height: 56px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-2); font-family: "Poppins", sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-card .stars { color: #f0b400; letter-spacing: 2px; font-size: .9rem; margin-bottom: 8px; }
.t-card p { margin-bottom: 10px; }
.t-card h5 { font-size: 1.02rem; margin: 0; color: var(--indigo); }

/* ---------- Blog ---------- */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .3s ease, transform .3s ease; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.post-card .pc-img { display: block; height: 220px; overflow: hidden; background: var(--indigo-soft); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .pc-img img { transform: scale(1.05); }
.post-card .pc-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card h3 { font-size: 1.18rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--mint-2); }
.post-card p { flex-grow: 1; }
.go-link { font-weight: 600; color: var(--indigo); display: inline-flex; align-items: center; gap: 6px; font-family: "Poppins", sans-serif; font-size: .92rem; }
.go-link i { transition: transform .2s ease; }
.go-link:hover i { transform: translateX(4px); }

/* Single post */
.article-img { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; margin-bottom: 32px; display: block; background: var(--indigo-soft); }
.article { font-size: 1.07rem; }
.article p { margin-bottom: 22px; }
.article h2 { font-size: 1.55rem; margin: 34px 0 14px; }
.article .tip-box { background: var(--mint-soft); border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; color: var(--ink); font-weight: 600; display: flex; gap: 14px; }
.article .tip-box i { color: var(--mint-2); font-size: 1.4rem; }
.side-box { background: var(--lav); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.side-box h4 { font-size: 1.12rem; margin-bottom: 14px; }
.side-box.indigo { background: var(--indigo); color: rgba(255,255,255,.85); }
.side-box.indigo h4 { color: #fff; }
.side-post { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.side-post img { width: 72px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--indigo-soft); }
.side-post a { color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.4; }
.side-post a:hover { color: var(--mint-2); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { margin-bottom: 8px; }
.side-list a { color: var(--ink); }
.side-list a:hover { color: var(--mint-2); }
.article-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; }

/* ---------- Page header ---------- */
.page-head { background: linear-gradient(120deg, var(--indigo-2) 0%, var(--indigo) 100%); padding: 72px 0; color: rgba(255,255,255,.82); text-align: center; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); max-width: 860px; margin: 0 auto; }
.page-head p { max-width: 620px; margin: 10px auto 0; font-size: 1.05rem; }
.page-head .breadcrumb { justify-content: center; margin: 16px 0 0; }
.page-head .breadcrumb-item, .page-head .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-head .breadcrumb-item a:hover { color: #fff; }
.page-head .breadcrumb-item.active { color: var(--mint); }
.page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }

/* ---------- Contact ---------- */
.contact-card { background: var(--lav); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.contact-card i { width: 48px; height: 48px; border-radius: 12px; background: var(--indigo); color: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-card h5 { font-size: 1rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { margin: 0; color: var(--text); word-break: break-word; }
.contact-card a:hover { color: var(--mint-2); }
.form-panel { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 38px; }
.map-panel { border-radius: 24px; overflow: hidden; }
.map-panel iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; color: var(--ink); font-size: .93rem; }
.form-control, .form-select { border-radius: 12px; border: 1px solid var(--line); padding: 12px 14px; background-color: var(--lav); }
.form-control:focus, .form-select:focus { border-color: var(--indigo); background-color: #fff; box-shadow: 0 0 0 4px rgba(42,47,107,.1); }
.form-check-input:checked { background-color: var(--indigo); border-color: var(--indigo); }
.form-alert { display: none; border-radius: 12px; margin-top: 18px; }
.form-alert.show { display: block; }

/* ---------- Newsletter pages ---------- */
.nl-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.nl-card .nl-pic { height: 100%; min-height: 320px; position: relative; background: var(--indigo-soft); }
.nl-card .nl-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-card .nl-form { padding: 40px 38px; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal .updated { display: inline-block; background: var(--mint-soft); color: var(--mint-2); border-radius: 30px; padding: 6px 16px; font-weight: 600; margin-bottom: 18px; }

/* ---------- Values ---------- */
.value { background: #fff; border-radius: var(--radius); padding: 28px; height: 100%; box-shadow: var(--shadow); }
.value i { width: 54px; height: 54px; border-radius: 14px; background: var(--mint-soft); color: var(--mint-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.value h3 { font-size: 1.2rem; margin: 14px 0 8px; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--ink); background: #fff; box-shadow: none; font-family: "Poppins", sans-serif; font-size: .98rem; }
.faq .accordion-button:not(.collapsed) { background: var(--indigo-soft); color: var(--indigo); }
.faq .accordion-button:focus { box-shadow: none; }

/* ---------- Newsletter CTA ---------- */
.cta-wrap { background: var(--indigo); border-radius: 24px; padding: 48px 46px; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.cta-wrap::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: var(--mint); opacity: .18; }
.cta-wrap > .row { position: relative; z-index: 2; }
.cta-wrap h2 { color: #fff; }
.cta-field { display: flex; gap: 8px; background: #fff; border-radius: 30px; padding: 6px; }
.cta-field .form-control { border: none; background: transparent; border-radius: 30px; }
.cta-field .form-control:focus { box-shadow: none; }
.cta-wrap .invalid-feedback { color: var(--mint); font-weight: 600; }
@media (max-width: 575.98px) { .cta-wrap { padding: 34px 22px; } .cta-field { flex-direction: column; border-radius: 18px; } }

/* ---------- Footer ---------- */
.wig-footer { background: var(--indigo-2); color: rgba(255,255,255,.7); }
.wig-footer .ft-main { padding: 70px 0 40px; }
.wig-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.wig-footer a { color: rgba(255,255,255,.75); }
.wig-footer a:hover { color: var(--mint); }
.ft-list { list-style: none; padding: 0; margin: 0; }
.ft-list li { margin-bottom: 10px; }
.ft-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.ft-contact i { color: var(--mint); margin-top: 3px; }
.ft-social { display: flex; gap: 8px; margin-top: 20px; }
.ft-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.ft-social a:hover { background: var(--mint); color: var(--indigo-2); }
.ft-news .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.ft-news .form-control::placeholder { color: rgba(255,255,255,.45); }
.ft-news .form-control:focus { background: rgba(255,255,255,.12); color: #fff; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .9rem; }
.ft-bottom a { margin-left: 18px; }

/* Back to top */
.wig-top { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 48px; height: 48px; border-radius: 14px; border: none; background: var(--mint); color: var(--indigo-2); font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; }
.wig-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 70px 0; }
  .about-pic { height: 340px; }
  .form-panel, .nl-card .nl-form { padding: 28px 20px; }
}
@media (max-width: 575.98px) {
  .wig-logo { font-size: 1.18rem; }
  .wig-logo .sign { width: 32px; height: 32px; font-size: 1rem; }
  .article-img { height: 260px; }
  .estimator { padding: 22px 16px; }
  .t-card { flex-direction: column; }
  .ft-bottom a { margin: 0 8px; }
}
