/* =========================================================
   Finance Elevate Hub — Main Stylesheet
   Palette: deep ocean teal + coral on seafoam mist
   ========================================================= */
:root {
  --primary: #0a4d68;
  --primary-dark: #06303f;
  --primary-light: #088395;
  --accent: #ff6b5b;
  --accent-dark: #e04f3f;
  --ink: #0f2229;
  --muted: #587078;
  --soft: #eef7f7;
  --cream: #fff4f1;
  --white: #ffffff;
  --border: #d9e9ea;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(6, 48, 63, 0.12);
  --shadow-sm: 0 6px 18px rgba(6, 48, 63, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 1.02rem;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; color: var(--ink); line-height: 1.25; }
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
.section { padding: 90px 0; }
.bg-soft { background: var(--soft); }
.bg-cream { background: var(--cream); }
.text-muted-2 { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-brand, .btn-accent, .btn-outline-brand {
  border-radius: 50px; padding: 12px 30px; font-weight: 600;
  transition: all .3s ease; border: 2px solid transparent;
}
.btn-brand { background: var(--primary); color: var(--white); }
.btn-brand:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline-brand { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-brand:hover { background: var(--white); color: var(--primary); }

/* ---------- Section titles ---------- */
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-head { max-width: 680px; margin: 0 auto 55px; text-align: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #c6dde1; font-size: .9rem; padding: 8px 0; }
.topbar a { color: #c6dde1; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: 6px; }

/* ---------- Navbar & Logo ---------- */
.navbar { background: var(--white); padding: 16px 0; transition: box-shadow .3s, padding .3s; }
.navbar.scrolled { box-shadow: var(--shadow-sm); padding: 10px 0; }
.logo { display: inline-flex; align-items: center; padding: 0; margin: 0; }
.logo img { height: 46px; width: auto; display: block; }
.footer .logo img { height: 44px; }
.navbar .nav-link { color: var(--ink); font-weight: 500; margin: 0 8px; position: relative; }
.navbar .nav-link::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .3s;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--primary); }
.navbar-toggler { border: none; font-size: 1.6rem; color: var(--primary); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 120px 0 130px; color: var(--white);
  background: linear-gradient(115deg, rgba(6,48,63,.94) 0%, rgba(10,77,104,.78) 55%, rgba(10,77,104,.3) 100%),
              url('../images/hero.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(255,107,91,.12); right: -160px; bottom: -220px;
}
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 22px; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero p.lead { color: #d4e8eb; font-size: 1.2rem; max-width: 560px; }
.hero-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 30px; position: relative; z-index: 2;
}
.hero-card .stat { font-family: 'Poppins', sans-serif; font-size: 2.2rem; color: var(--accent); font-weight: 700; }
.hero-card small { color: #d4e8eb; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; color: #d4e8eb; font-size: .95rem; }
.hero-badges i { color: var(--accent); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  padding: 90px 0 80px; color: var(--white); text-align: center;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,107,91,.15); top: -120px; left: -80px;
}
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); position: relative; }
.page-banner .breadcrumb { justify-content: center; margin: 0; position: relative; }
.page-banner .breadcrumb a { color: var(--accent); }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: #d4e8eb; }

/* ---------- About ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; }
.experience-badge {
  position: absolute; bottom: -25px; right: -10px; background: var(--accent); color: var(--ink);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.experience-badge strong { font-family: 'Poppins', sans-serif; font-size: 2.4rem; display: block; line-height: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 34px; position: relative; }
.check-list li::before {
  content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 6px;
  color: var(--primary); font-size: 1.2rem;
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; height: 100%;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card .img-box { position: relative; height: 220px; overflow: hidden; }
.service-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .img-box img { transform: scale(1.08); }
.service-card .icon {
  position: absolute; bottom: -26px; left: 26px; width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.service-card .body { padding: 42px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); flex-grow: 1; }
.service-card .btn { align-self: flex-start; padding: 10px 24px; }

/* ---------- Feature boxes ---------- */
.feature-box {
  padding: 34px 28px; border-radius: var(--radius); background: var(--white); height: 100%;
  border: 1px solid var(--border); transition: all .3s;
}
.feature-box:hover { background: var(--primary); }
.feature-box:hover h4, .feature-box:hover p { color: var(--white); }
.feature-box:hover .f-icon { background: var(--accent); color: var(--ink); }
.f-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; transition: all .3s;
}
.feature-box h4 { font-size: 1.25rem; }
.feature-box p { color: var(--muted); margin: 0; transition: color .3s; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--primary-dark); color: var(--white); padding: 70px 0; }
.stat-item h3 { color: var(--accent); font-size: 2.8rem; margin-bottom: 4px; }
.stat-item p { color: #c6dde1; margin: 0; }

/* ---------- Process ---------- */
.process-step { text-align: center; padding: 10px 18px; position: relative; }
.step-num {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--primary);
  background: var(--white); border: 3px dashed var(--accent);
}
.process-step h4 { font-size: 1.2rem; }
.process-step p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px; height: 100%;
  box-shadow: var(--shadow-sm); position: relative; border-top: 4px solid var(--accent);
}
.testimonial-card .quote-icon { font-size: 2.6rem; color: var(--accent); line-height: 1; }
.testimonial-card p { color: var(--muted); font-style: italic; }
.testimonial-card .stars { color: var(--accent); margin-bottom: 8px; }
.testimonial-card h5 { font-family: 'Inter', sans-serif; font-weight: 700; margin: 0; color: var(--primary); }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-right: 12px;
}

/* ---------- Blog cards ---------- */
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; height: 100%;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card .img-box { display: block; height: 230px; overflow: hidden; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover img { transform: scale(1.07); }
.blog-card .body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card h3 { font-size: 1.3rem; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--muted); flex-grow: 1; }
.read-more { font-weight: 600; color: var(--primary); }
.read-more i { transition: margin .3s; }
.read-more:hover i { margin-left: 6px; }

/* ---------- Single blog post ---------- */
.post-hero-img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; box-shadow: var(--shadow); }
.post-content p { margin-bottom: 1.4rem; color: #2b3b37; font-size: 1.08rem; }
.post-content h2 { font-size: 1.6rem; margin: 2.2rem 0 1rem; }
.post-content blockquote {
  border-left: 5px solid var(--accent); background: var(--soft); padding: 22px 28px; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Poppins', sans-serif; font-size: 1.2rem; color: var(--primary-dark); margin: 2rem 0;
}
.sidebar-box { background: var(--soft); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.sidebar-box h4 { font-size: 1.25rem; margin-bottom: 18px; }
.sidebar-post { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.sidebar-post img { width: 78px; height: 66px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.sidebar-post a { color: var(--ink); font-weight: 600; line-height: 1.4; font-size: .98rem; }
.sidebar-post a:hover { color: var(--primary); }
.sidebar-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.sidebar-cta h4 { color: var(--white); }
.sidebar-cta p { color: #d4e8eb; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #ffa38f); border-radius: 28px; padding: 60px 50px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.2); right: -60px; top: -80px;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-control, .form-select {
  border-radius: 12px; padding: 13px 16px; border: 1px solid var(--border); background: var(--soft);
}
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 .2rem rgba(8,131,149,.15); background: var(--white); }
.form-label { font-weight: 500; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-status { display: none; border-radius: 12px; padding: 14px 18px; margin-top: 18px; font-weight: 500; }
.form-status.success { display: block; background: #e3f5ec; color: #11613f; border: 1px solid #b7e2cb; }
.form-status.error { display: block; background: #fdecea; color: #a12a1f; border: 1px solid #f5c2bd; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Contact info ---------- */
.contact-info-box { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.contact-info-box .ci-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--primary); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.contact-info-box h5 { font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 4px; }
.contact-info-box p, .contact-info-box a { margin: 0; color: var(--muted); }
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Legal ---------- */
.legal-content h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal-content p, .legal-content li { color: #2b3b37; }

/* ---------- Newsletter page ---------- */
.newsletter-perks .perk { display: flex; gap: 14px; margin-bottom: 18px; }
.newsletter-perks i { font-size: 1.4rem; color: var(--accent-dark); }

/* ---------- Footer ---------- */
.footer { background: #041f29; color: #a9c4ca; padding-top: 80px; }
.footer h5 { color: var(--white); font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 22px; }
.footer a { color: #a9c4ca; }
.footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links i { color: var(--accent); margin-right: 8px; font-size: .8rem; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--accent); }
.footer .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--white); }
.footer .form-control::placeholder { color: #86a3aa; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); margin-right: 8px; transition: all .3s;
}
.social a:hover { background: var(--accent); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 22px 0; font-size: .92rem; }
.footer-bottom a { margin-left: 18px; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--accent); color: var(--ink); font-size: 1.3rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .3s; z-index: 999;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--primary); color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .navbar-collapse { padding: 16px 0; }
  .navbar .nav-link { margin: 0; padding: 10px 0; }
  .navbar .nav-link::after { display: none; }
  .hero { padding: 90px 0; }
  .section { padding: 70px 0; }
  .about-img-wrap img { height: 360px; }
}
@media (max-width: 575px) {
  .logo img { height: 36px; }
  .form-card { padding: 26px; }
  .cta-band { padding: 40px 26px; }
  .post-hero-img { height: 260px; }
  .footer-bottom a { margin: 0 8px; }
  .experience-badge { right: 10px; }
}

/* ---------- Finance Elevate Hub extras ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.4px; }
.hero h1 span { font-style: normal; }
.btn-accent { color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.cta-band h2, .cta-band p { color: var(--ink); position: relative; z-index: 1; }
.cta-band .btn-brand { background: var(--primary); color: var(--white); }
.cta-band .btn-brand:hover { background: var(--primary-dark); color: var(--white); }
.experience-badge, .service-card .icon, #backToTop { color: var(--ink); }
.feature-box:hover .f-icon { color: var(--ink); }
.social a:hover { color: var(--ink); }
.footer .social a i { font-size: 1rem; }
