/* =========================================================
   Invest Wealth Guide — Main Stylesheet
   Simple theme. Palette: Royal Blue + Tangerine + Ice
   ========================================================= */
:root {
  --royal: #1e40af;
  --royal-2: #172f80;
  --royal-soft: #e9eefc;
  --tang: #f97316;
  --tang-2: #dd5f08;
  --tang-soft: #fff1e6;
  --ice: #f6f8fd;
  --ink: #141b33;
  --text: #4f5672;
  --line: #e2e7f3;
  --shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
  --shadow-lg: 0 18px 44px rgba(30, 64, 175, 0.16);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; font-size: 16.5px; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: "Lexend", sans-serif; color: var(--ink); font-weight: 600; line-height: 1.25; }
a { color: var(--royal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tang-2); }
img { max-width: 100%; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-ice { background: var(--ice); }
.bg-royal { background: var(--royal); color: rgba(255,255,255,.85); }
.bg-royal h2, .bg-royal h3, .bg-royal h4 { color: #fff; }
.sec-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.sec-title::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 6px; background: var(--tang); margin-bottom: 16px; }
.text-center .sec-title::before { margin-inline: auto; }
.sec-intro { font-size: 1.05rem; max-width: 640px; }
.text-center .sec-intro { margin-inline: auto; }

/* ---------- Logo: one line, one style ---------- */
.iwg-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.34rem; color: var(--royal-2); line-height: 1; letter-spacing: -.3px; }
.iwg-logo:hover { color: var(--royal-2); }
.iwg-logo .chart { width: 38px; height: 38px; border-radius: 12px; background: var(--royal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; position: relative; }
.iwg-logo .chart::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--tang); border: 2px solid #fff; }
.iwg-logo.light { color: #fff; }
.iwg-logo.light:hover { color: #fff; }
.iwg-logo.light .chart { background: #fff; color: var(--royal); }
.iwg-logo.light .chart::after { border-color: var(--royal-2); }

/* ---------- Header ---------- */
.iwg-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.iwg-header.scrolled { box-shadow: 0 6px 22px rgba(30,64,175,.08); }
.iwg-header .navbar { padding: 16px 0; }
.iwg-header .nav-link { color: var(--ink) !important; font-weight: 700; padding: 8px 14px !important; }
.iwg-header .nav-link:hover { color: var(--royal) !important; }
.iwg-header .nav-link.active { color: var(--tang-2) !important; }
.iwg-header .navbar-toggler { border: 1px solid var(--line); color: var(--royal); font-size: 1.4rem; padding: 4px 10px; }
.iwg-header .navbar-toggler:focus { box-shadow: none; }
.call-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--royal-2); font-weight: 800; white-space: nowrap; }
.call-chip i { width: 34px; height: 34px; border-radius: 50%; background: var(--royal-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--royal); }
@media (max-width: 991.98px) { .iwg-header .navbar-collapse { padding: 12px 0 4px; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-family: "Lexend", sans-serif; font-weight: 500; padding: 12px 26px; transition: all .25s ease; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-royal { background: var(--royal); color: #fff; border: 1px solid var(--royal); }
.btn-royal:hover, .btn-royal:focus { background: var(--royal-2); border-color: var(--royal-2); color: #fff; transform: translateY(-2px); }
.btn-tang { background: var(--tang); color: #fff; border: 1px solid var(--tang); }
.btn-tang:hover, .btn-tang:focus { background: var(--tang-2); border-color: var(--tang-2); color: #fff; transform: translateY(-2px); }
.btn-outline-royal { background: transparent; color: var(--royal); border: 1px solid var(--royal); }
.btn-outline-royal:hover { background: var(--royal); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--royal); }

/* ---------- Hero ---------- */
.hero { background: var(--royal); color: rgba(255,255,255,.85); padding: 80px 0 150px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.hero h1 span { color: #ffb37a; }
.hero .lead { font-size: 1.12rem; max-width: 560px; margin: 20px 0 30px; }
.hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: 22px; border: 8px solid rgba(255,255,255,.12); display: block; background: var(--royal-2); }
.hero-highlights { margin-top: -90px; position: relative; z-index: 5; }
.hl-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px 24px; height: 100%; display: flex; gap: 16px; align-items: flex-start; }
.hl-card i { width: 50px; height: 50px; border-radius: 12px; background: var(--tang-soft); color: var(--tang-2); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.hl-card h4 { font-size: 1.08rem; margin-bottom: 4px; }
.hl-card p { margin: 0; font-size: .95rem; }
@media (max-width: 991.98px) { .hero-img { height: 320px; } }

/* ---------- Service cards ---------- */
.svc { 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; }
.svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.svc .svc-img { height: 210px; overflow: hidden; background: var(--royal-soft); position: relative; }
.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-ico { position: absolute; left: 18px; top: 18px; width: 46px; height: 46px; border-radius: 12px; background: var(--tang); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 8px 18px rgba(249,115,22,.35); }
.svc .svc-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.svc h3 { font-size: 1.2rem; margin-bottom: 10px; }
.svc p { flex-grow: 1; }
.svc .btn { align-self: flex-start; }

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

/* ---------- Inflation calculator ---------- */
.inf-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.inf-card .inf-in { padding: 32px; }
.inf-card .inf-out { background: var(--royal); color: rgba(255,255,255,.85); padding: 32px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.inf-out .big { font-family: "Lexend", sans-serif; font-size: 2.3rem; font-weight: 700; color: #ffb37a; line-height: 1.15; margin: 4px 0 16px; }
.inf-out .row-line { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); padding: 9px 0; }
.inf-out strong { color: #fff; }
.inf-out .msg { font-size: .93rem; margin-top: 10px; }
.range-label { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.range-label output { color: var(--tang-2); }
.inf-in .form-range::-webkit-slider-thumb { background: var(--tang); }
.inf-in .form-range::-moz-range-thumb { background: var(--tang); }

/* ---------- Glossary ---------- */
.term { background: #fff; border-radius: var(--radius); padding: 26px 24px; height: 100%; border-top: 4px solid var(--royal); box-shadow: var(--shadow); }
.term h4 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.term h4 i { color: var(--tang); }
.term p { margin: 0; }

/* ---------- Steps ---------- */
.step { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px 22px; height: 100%; }
.step .num { font-family: "Lexend", sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: 1px; color: #ffb37a; text-transform: uppercase; }
.step h4 { font-size: 1.15rem; margin: 8px 0 6px; }
.step p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- Testimonials ---------- */
.testi { background: #fff; border-radius: var(--radius); padding: 28px; height: 100%; border-left: 5px solid var(--tang); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.testi .stars { color: #f5a300; letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }
.testi p { flex-grow: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.testi .who span { width: 44px; height: 44px; border-radius: 50%; background: var(--royal); color: #fff; font-family: "Lexend", sans-serif; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.testi h5 { font-size: 1rem; margin: 0; }

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

/* Single post */
.post-img { width: 100%; height: 440px; object-fit: cover; border-radius: 22px; margin-bottom: 32px; display: block; background: var(--royal-soft); }
.post-content { font-size: 1.07rem; }
.post-content p { margin-bottom: 22px; }
.post-content h2 { font-size: 1.55rem; margin: 34px 0 14px; }
.post-content .insight { background: var(--royal-soft); border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; color: var(--ink); font-weight: 700; display: flex; gap: 14px; }
.post-content .insight i { color: var(--tang); font-size: 1.4rem; }
.aside-box { background: var(--ice); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.aside-box h4 { font-size: 1.1rem; margin-bottom: 14px; }
.aside-box.royal { background: var(--royal); color: rgba(255,255,255,.85); }
.aside-box.royal h4 { color: #fff; }
.aside-post { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.aside-post img { width: 72px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--royal-soft); }
.aside-post a { color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.aside-post a:hover { color: var(--royal); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { margin-bottom: 8px; }
.aside-list a { color: var(--ink); }
.aside-list a:hover { color: var(--royal); }
.post-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-top { background: var(--royal); padding: 72px 0; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.page-top::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; }
.page-top .container { position: relative; z-index: 2; }
.page-top h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 860px; }
.page-top p { max-width: 620px; margin: 10px 0 0; font-size: 1.06rem; }
.page-top .breadcrumb { margin: 16px 0 0; }
.page-top .breadcrumb-item, .page-top .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-top .breadcrumb-item a:hover { color: #fff; }
.page-top .breadcrumb-item.active { color: #ffb37a; }
.page-top .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }

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

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

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

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

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

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

/* ---------- Newsletter CTA ---------- */
.cta-box { background: linear-gradient(120deg, var(--tang) 0%, var(--tang-2) 100%); border-radius: 22px; padding: 46px 44px; color: rgba(255,255,255,.92); }
.cta-box h2 { color: #fff; }
.cta-field { display: flex; gap: 8px; background: #fff; border-radius: 12px; padding: 6px; }
.cta-field .form-control { border: none; background: transparent; }
.cta-field .form-control:focus { box-shadow: none; }
.cta-box .invalid-feedback { color: #fff; font-weight: 700; }
@media (max-width: 575.98px) { .cta-box { padding: 34px 22px; } .cta-field { flex-direction: column; } }

/* ---------- Footer ---------- */
.iwg-footer { background: var(--royal-2); color: rgba(255,255,255,.72); }
.iwg-footer .ft-main { padding: 70px 0 40px; }
.iwg-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.iwg-footer a { color: rgba(255,255,255,.78); }
.iwg-footer a:hover { color: #ffb37a; }
.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: #ffb37a; 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,.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.ft-social a:hover { background: var(--tang); color: #fff; }
.ft-news .form-control { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.ft-news .form-control::placeholder { color: rgba(255,255,255,.5); }
.ft-news .form-control:focus { background: rgba(255,255,255,.14); color: #fff; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; }
.ft-bottom a { margin-left: 18px; }

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

/* 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-img { height: 340px; }
  .form-panel, .nl-card .nl-body { padding: 28px 20px; }
}
@media (max-width: 575.98px) {
  .iwg-logo { font-size: 1.15rem; }
  .iwg-logo .chart { width: 32px; height: 32px; font-size: .95rem; }
  .post-img { height: 260px; }
  .inf-card .inf-in, .inf-card .inf-out { padding: 22px 16px; }
  .ft-bottom a { margin: 0 8px; }
}
