/* =========================================================
   Global Finance Base — Main Stylesheet
   Simple, clean theme. Palette: Burgundy + Blush + Cream
   ========================================================= */
:root {
  --wine: #7a1f3d;
  --wine-2: #5c162d;
  --wine-soft: #f6e9ed;
  --blush: #e8b4a0;
  --blush-soft: #fbefe9;
  --cream: #fdfaf6;
  --ink: #2a2326;
  --text: #5a5155;
  --line: #ece3df;
  --shadow: 0 10px 30px rgba(122, 31, 61, 0.08);
  --shadow-lg: 0 18px 45px rgba(122, 31, 61, 0.14);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Mulish", 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: "Lora", Georgia, serif; color: var(--ink); font-weight: 700; line-height: 1.25; }
a { color: var(--wine); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--wine-2); }
img { max-width: 100%; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-cream { background: var(--cream); }
.bg-blush { background: var(--blush-soft); }
.bg-wine { background: var(--wine); color: rgba(255,255,255,.85); }
.bg-wine h2, .bg-wine h3, .bg-wine h4 { color: #fff; }
.sec-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.sec-intro { font-size: 1.06rem; max-width: 640px; }
.text-center .sec-intro { margin-inline: auto; }
.title-line { width: 60px; height: 3px; background: var(--blush); border-radius: 3px; margin: 0 0 22px; }
.text-center .title-line { margin-inline: auto; }

/* ---------- Logo: one line, one style ---------- */
.gfb-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "Lora", serif; font-weight: 700; font-size: 1.5rem; color: var(--wine); line-height: 1; }
.gfb-logo:hover { color: var(--wine); }
.gfb-logo .globe { width: 38px; height: 38px; border-radius: 50%; background: var(--wine); color: var(--blush); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.gfb-logo.light { color: #fff; }
.gfb-logo.light:hover { color: #fff; }
.gfb-logo.light .globe { background: var(--blush); color: var(--wine); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--wine-2); color: rgba(255,255,255,.85); font-size: .88rem; padding: 8px 0; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--blush); }
.topbar i { color: var(--blush); margin-right: 6px; }
.topbar .tb-item { margin-right: 22px; }
.gfb-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.gfb-header.scrolled { box-shadow: 0 6px 24px rgba(122,31,61,.08); }
.gfb-header .navbar { padding: 16px 0; }
.gfb-header .nav-link { color: var(--ink) !important; font-weight: 600; padding: 8px 14px !important; }
.gfb-header .nav-link:hover, .gfb-header .nav-link.active { color: var(--wine) !important; }
.gfb-header .nav-link.active { text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.gfb-header .navbar-toggler { border: 1px solid var(--line); color: var(--wine); font-size: 1.4rem; padding: 4px 10px; }
.gfb-header .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) { .gfb-header .navbar-collapse { padding: 12px 0 4px; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 8px; font-weight: 700; padding: 12px 28px; transition: all .25s ease; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-wine { background: var(--wine); color: #fff; border: 1px solid var(--wine); }
.btn-wine:hover, .btn-wine:focus { background: var(--wine-2); border-color: var(--wine-2); color: #fff; transform: translateY(-2px); }
.btn-outline-wine { background: transparent; color: var(--wine); border: 1px solid var(--wine); }
.btn-outline-wine:hover { background: var(--wine); color: #fff; }
.btn-blush { background: var(--blush); color: var(--wine-2); border: 1px solid var(--blush); }
.btn-blush:hover, .btn-blush:focus { background: #fff; color: var(--wine); border-color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: 80px 0 90px; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.hero h1 span { color: var(--wine); }
.hero .lead { font-size: 1.15rem; max-width: 540px; margin: 20px 0 30px; }
.hero-img { position: relative; }
.hero-img img { width: 100%; height: 460px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); display: block; background: var(--wine-soft); }
.hero-img::before { content: ""; position: absolute; right: -16px; bottom: -16px; width: 60%; height: 60%; border-radius: 16px; background: var(--blush-soft); z-index: -1; }
.hero-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.hero-list i { color: var(--wine); }

/* ---------- Service cards ---------- */
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .sc-img { height: 210px; overflow: hidden; background: var(--wine-soft); }
.service-card .sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .sc-img img { transform: scale(1.05); }
.service-card .sc-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card .sc-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-top: -48px; margin-bottom: 14px; border: 4px solid #fff; position: relative; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { flex-grow: 1; }
.service-card .btn { align-self: flex-start; }

/* ---------- About ---------- */
.about-img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); display: block; background: var(--wine-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: 600; }
.check-list i { color: var(--wine); font-size: 1.15rem; margin-top: 1px; }
.bg-wine .check-list li { color: #fff; }
.bg-wine .check-list i { color: var(--blush); }

/* ---------- Feature boxes ---------- */
.feature-box { background: #fff; border-radius: var(--radius); padding: 30px 26px; height: 100%; box-shadow: var(--shadow); text-align: center; }
.feature-box i { width: 64px; height: 64px; border-radius: 50%; background: var(--blush-soft); color: var(--wine); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px; }
.feature-box h4 { font-size: 1.2rem; }

/* ---------- Emergency fund calculator ---------- */
.calc-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 34px; }
.calc-result { background: var(--wine); color: rgba(255,255,255,.88); border-radius: 12px; padding: 22px 24px; margin-top: 20px; }
.calc-result .big { font-family: "Lora", serif; font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1.2; }
.calc-result .row-line { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); padding-top: 8px; margin-top: 8px; }
.calc-result strong { color: var(--blush); }

/* ---------- Steps ---------- */
.step-box { text-align: center; padding: 10px 16px; }
.step-box .num { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--blush); color: var(--wine); font-family: "Lora", serif; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; background: #fff; }
.step-box h4 { font-size: 1.2rem; }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border-radius: var(--radius); padding: 30px 28px; height: 100%; border: 1px solid var(--line); display: flex; flex-direction: column; }
.testimonial .stars { color: #e0a100; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { flex-grow: 1; font-style: italic; }
.testimonial h5 { font-size: 1.05rem; margin: 8px 0 0; color: var(--wine); font-family: "Mulish", sans-serif; font-weight: 800; }

/* ---------- Blog ---------- */
.blog-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; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.blog-card .bc-img { display: block; height: 220px; overflow: hidden; background: var(--wine-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.25rem; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--wine); }
.blog-card p { flex-grow: 1; }
.read-more { font-weight: 700; color: var(--wine); display: inline-flex; align-items: center; gap: 6px; }
.read-more i { transition: transform .2s ease; }
.read-more:hover i { transform: translateX(4px); }

/* Single post */
.post-img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; margin-bottom: 34px; display: block; background: var(--wine-soft); }
.post-content { font-size: 1.08rem; }
.post-content p { margin-bottom: 22px; }
.post-content h2 { font-size: 1.65rem; margin: 36px 0 14px; }
.post-content blockquote { border-left: 4px solid var(--blush); background: var(--blush-soft); padding: 22px 26px; border-radius: 0 12px 12px 0; margin: 30px 0; font-family: "Lora", serif; font-size: 1.18rem; font-style: italic; color: var(--ink); }
.sidebar-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-box h4 { font-size: 1.2rem; margin-bottom: 14px; }
.sidebar-box.wine { background: var(--wine); border-color: var(--wine); color: rgba(255,255,255,.88); }
.sidebar-box.wine 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: 8px; flex-shrink: 0; background: var(--wine-soft); }
.side-post a { color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.side-post a:hover { color: var(--wine); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin-bottom: 8px; }
.side-links a { color: var(--ink); }
.side-links a:hover { color: var(--wine); }
.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-header { background: var(--wine); color: rgba(255,255,255,.85); padding: 70px 0; position: relative; overflow: hidden; }
.page-header::after { content: "\F3EE"; font-family: "bootstrap-icons"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: 13rem; color: rgba(255,255,255,.06); line-height: 1; }
.page-header h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); position: relative; z-index: 2; max-width: 860px; }
.page-header p { max-width: 620px; margin: 10px 0 0; font-size: 1.08rem; position: relative; z-index: 2; }
.page-header .breadcrumb { margin: 16px 0 0; position: relative; z-index: 2; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-header .breadcrumb-item a:hover { color: #fff; }
.page-header .breadcrumb-item.active { color: var(--blush); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
@media (max-width: 767.98px) { .page-header::after { display: none; } }

/* ---------- Contact ---------- */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.info-card i { width: 48px; height: 48px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.info-card h5 { font-size: 1.05rem; margin-bottom: 2px; }
.info-card p, .info-card a { margin: 0; color: var(--text); word-break: break-word; }
.info-card a:hover { color: var(--wine); }
.form-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 38px; }
.map-box { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map-box 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: 8px; border: 1px solid var(--line); padding: 12px 14px; background-color: var(--cream); }
.form-control:focus, .form-select:focus { border-color: var(--wine); background-color: #fff; box-shadow: 0 0 0 4px rgba(122,31,61,.1); }
.form-check-input:checked { background-color: var(--wine); border-color: var(--wine); }
.form-alert { display: none; border-radius: 8px; margin-top: 18px; }
.form-alert.show { display: block; }

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

/* ---------- Legal ---------- */
.legal-text h2 { font-size: 1.4rem; margin-top: 34px; margin-bottom: 10px; }
.legal-text h2:first-of-type { margin-top: 10px; }
.legal-date { background: var(--cream); border-left: 4px solid var(--blush); border-radius: 0 8px 8px 0; padding: 14px 18px; margin-bottom: 24px; }

/* ---------- Values ---------- */
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; }
.value-card i { font-size: 1.8rem; color: var(--wine); }
.value-card h3 { font-size: 1.3rem; margin: 12px 0 8px; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 10px !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-weight: 700; color: var(--ink); background: #fff; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { background: var(--wine-soft); color: var(--wine); }
.faq .accordion-button:focus { box-shadow: none; }

/* ---------- Newsletter CTA ---------- */
.cta-box { background: var(--wine); border-radius: 16px; padding: 50px 46px; color: rgba(255,255,255,.88); }
.cta-box h2 { color: #fff; }
.nl-field { display: flex; gap: 8px; background: #fff; border-radius: 10px; padding: 6px; }
.nl-field .form-control { border: none; background: transparent; }
.nl-field .form-control:focus { box-shadow: none; }
.cta-box .invalid-feedback { color: var(--blush); }
@media (max-width: 575.98px) { .cta-box { padding: 36px 22px; } .nl-field { flex-direction: column; } }

/* ---------- Footer ---------- */
.gfb-footer { background: var(--ink); color: rgba(255,255,255,.7); }
.gfb-footer .ft-main { padding: 70px 0 40px; }
.gfb-footer h5 { color: #fff; font-size: 1.15rem; margin-bottom: 20px; }
.gfb-footer a { color: rgba(255,255,255,.75); }
.gfb-footer a:hover { color: var(--blush); }
.ft-links { list-style: none; padding: 0; margin: 0; }
.ft-links li { margin-bottom: 10px; }
.ft-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.ft-contact i { color: var(--blush); margin-top: 3px; }
.ft-social { display: flex; gap: 8px; margin-top: 20px; }
.ft-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.ft-social a:hover { background: var(--blush); color: var(--wine-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 */
.gfb-top { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--wine); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; }
.gfb-top.show { opacity: 1; visibility: visible; transform: none; }
.gfb-top:hover { background: var(--wine-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); 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; }
  .hero-img img { height: 360px; }
  .about-img { height: 340px; }
  .form-card, .nl-wrap .nl-form { padding: 28px 20px; }
}
@media (max-width: 575.98px) {
  .gfb-logo { font-size: 1.25rem; }
  .gfb-logo .globe { width: 32px; height: 32px; font-size: 1rem; }
  .post-img { height: 260px; }
  .calc-card { padding: 24px 18px; }
  .ft-bottom a { margin: 0 8px; }
}
