/* =====================================================
   Budget Planning Hub — Main Stylesheet
   Palette: Deep Navy #0A2540 | Emerald #10B981 | Gold #F5A623
   ===================================================== */

:root {
  --navy: #0a2540;
  --navy-2: #123a5f;
  --emerald: #10b981;
  --emerald-dark: #0b8f63;
  --gold: #f5a623;
  --sky: #eef7f4;
  --ink: #24313f;
  --muted: #5c6b7a;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 18px 45px rgba(10, 37, 64, 0.16);
}

* { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fw-brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

img { max-width: 100%; }

::selection { background: var(--emerald); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0ee;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar a { color: #cfe0ee; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar .bi { color: var(--emerald); margin-right: 6px; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 14px rgba(10, 37, 64, 0.08);
  padding: 0.7rem 0;
  transition: all .3s ease;
}
.navbar.scrolled { padding: 0.35rem 0; box-shadow: 0 6px 20px rgba(10,37,64,.14); }

.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem; box-shadow: 0 6px 14px rgba(16,185,129,.35);
}
.navbar-brand .brand-name { font-family: Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.25rem; line-height: 1.1; }
.navbar-brand .brand-tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald-dark); font-weight: 600; }

.navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: .55rem 1rem !important;
  position: relative;
  transition: color .2s;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: .25rem;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--emerald-dark); }

/* ---------- Buttons ---------- */
.btn { border-radius: 50px; font-weight: 600; padding: .65rem 1.6rem; transition: all .25s ease; }
.btn-emerald { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: #fff; border: none; box-shadow: 0 8px 20px rgba(16,185,129,.35); }
.btn-emerald:hover { background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,185,129,.45); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e08e0b); color: var(--navy); border: none; box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-gold:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,166,35,.5); }
.btn-outline-light2 { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light2:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; border: none; }
.btn-navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(10,37,64,.94) 0%, rgba(18,58,95,.88) 45%, rgba(11,143,99,.78) 100%), url("../images/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 90" preserveAspectRatio="none"><path fill="%23ffffff" d="M0,50 C240,95 480,0 720,25 C960,50 1200,95 1440,45 L1440,90 L0,90 Z"/></svg>') center/cover no-repeat;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; letter-spacing: .06em; color: #ffe9c2;
  backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.15; font-weight: 800; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { color: #d8e6f2; font-size: 1.1rem; max-width: 560px; }
.hero .hero-check { color: #d8e6f2; font-size: .95rem; }
.hero .hero-check .bi { color: var(--emerald); margin-right: .45rem; }

.hero-stats { position: relative; z-index: 2; }
.stat-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center;
  backdrop-filter: blur(6px); transition: transform .3s ease, background .3s ease;
}
.stat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.16); }
.stat-card .num { font-size: 2.1rem; font-weight: 800; color: var(--gold); font-family: Georgia, serif; }
.stat-card .lbl { font-size: .85rem; color: #dce9f4; letter-spacing: .04em; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, rgba(10,37,64,.95), rgba(11,143,99,.85)), url("../images/hero.jpg") center/cover no-repeat;
  color: #fff; padding: 90px 0 70px; position: relative;
}
.page-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 60" preserveAspectRatio="none"><path fill="%23ffffff" d="M0,30 C360,65 1080,-5 1440,30 L1440,60 L0,60 Z"/></svg>') center/cover no-repeat;
}
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); margin-bottom: 0; }
.page-header .breadcrumb a { color: var(--gold); }
.page-header .breadcrumb .active { color: #e5eef6; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--sky); }

.section-title .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--emerald-dark); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem;
}
.section-title .eyebrow::before, .section-title .eyebrow.center-eyebrow::after {
  content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 2px;
}
.section-title h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-top: .5rem; }
.section-title p { color: var(--muted); max-width: 640px; }
.text-center .section-title p, .section-title.text-center p { margin-left: auto; margin-right: auto; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(10,37,64,.05);
  height: 100%; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .card-img-wrap { position: relative; overflow: hidden; height: 200px; }
.service-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .card-img-wrap img { transform: scale(1.08); }
.service-card .icon-badge {
  position: absolute; left: 20px; bottom: -26px; z-index: 2;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 8px 18px rgba(16,185,129,.4); border: 3px solid #fff;
}
.service-card .card-body { padding: 2.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.service-card .btn { align-self: flex-start; padding: .5rem 1.3rem; font-size: .9rem; }

/* ---------- Feature / Why us ---------- */
.feature-box { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); height: 100%; transition: transform .3s; }
.feature-box:hover { transform: translateY(-5px); }
.feature-box .fi {
  min-width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.feature-box.gold .fi { background: linear-gradient(135deg, var(--gold), #e08e0b); }
.feature-box.green .fi { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); }
.feature-box h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.feature-box p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ---------- Steps ---------- */
.step-card { text-align: center; padding: 2rem 1.2rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); height: 100%; position: relative; transition: transform .3s; }
.step-card:hover { transform: translateY(-6px); }
.step-num {
  width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff; font-family: Georgia, serif;
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  box-shadow: 0 10px 20px rgba(16,185,129,.35);
}
.step-card h5 { font-weight: 700; }
.step-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ---------- Counters band ---------- */
.counter-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--emerald-dark) 100%);
  color: #fff; padding: 70px 0; position: relative; overflow: hidden;
}
.counter-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(245,166,35,.12); top: -220px; right: -120px;
}
.counter-band .cnum { font-size: 2.6rem; font-weight: 800; color: var(--gold); font-family: Georgia, serif; }
.counter-band .clbl { color: #d8e6f2; font-size: .95rem; letter-spacing: .03em; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem;
  box-shadow: var(--shadow); height: 100%; position: relative;
  border-top: 4px solid var(--emerald); transition: transform .3s;
}
.testimonial-card:hover { transform: translateY(-6px); }
.testimonial-card .quote-icon {
  position: absolute; top: -20px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e08e0b);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(245,166,35,.4);
}
.testimonial-card p { color: var(--muted); font-style: italic; font-size: .95rem; }
.stars { color: var(--gold); font-size: .9rem; margin-bottom: .6rem; }
.tperson { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.tperson .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: Georgia, serif; font-size: 1.05rem;
}
.av-1 { background: linear-gradient(135deg, #10b981, #0b8f63); }
.av-2 { background: linear-gradient(135deg, #0a2540, #123a5f); }
.av-3 { background: linear-gradient(135deg, #f5a623, #e08e0b); }
.tperson .tname { font-weight: 700; color: var(--navy); font-family: Georgia, serif; }

/* Carousel tweaks */
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: var(--navy); border-radius: 50%; padding: 1.3rem; background-size: 55%;
}

/* ---------- Blog cards ---------- */
.blog-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(10,37,64,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card .card-img-wrap { height: 210px; overflow: hidden; position: relative; }
.blog-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .card-img-wrap img { transform: scale(1.07); }
.blog-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h3, .blog-card h5 { font-size: 1.12rem; font-weight: 700; line-height: 1.4; }
.blog-card h3 a, .blog-card h5 a { color: var(--navy); transition: color .2s; }
.blog-card h3 a:hover, .blog-card h5 a:hover { color: var(--emerald-dark); }
.blog-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.read-more { color: var(--emerald-dark); font-weight: 700; font-size: .92rem; }
.read-more:hover { color: var(--navy); }
.read-more .bi { transition: transform .2s; display: inline-block; }
.read-more:hover .bi { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--emerald-dark), var(--navy) 70%);
  border-radius: 24px; color: #fff; padding: 3.2rem 2.5rem; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(245,166,35,.15); bottom: -160px; left: -80px;
}
.cta-band::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.07); top: -110px; right: -60px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8e6f2; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 2.4rem; border: 1px solid rgba(10,37,64,.05);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-control, .form-select {
  border: 1.5px solid #dbe4ec; border-radius: 12px; padding: .7rem 1rem; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--emerald); box-shadow: 0 0 0 .2rem rgba(16,185,129,.15);
}
.form-control.is-invalid { border-color: #dc3545; }
.invalid-feedback { font-size: .8rem; }
.form-alert { border-radius: 12px; }

/* ---------- Contact info ---------- */
.contact-tile {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem; text-align: center; height: 100%; transition: transform .3s;
  border-bottom: 4px solid var(--emerald);
}
.contact-tile:hover { transform: translateY(-6px); }
.contact-tile .ci {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  box-shadow: 0 10px 20px rgba(16,185,129,.3);
}
.contact-tile h5 { font-weight: 700; font-size: 1.05rem; }
.contact-tile p, .contact-tile a { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.contact-tile a:hover { color: var(--emerald-dark); }

.info-side {
  background: linear-gradient(150deg, var(--navy), var(--navy-2) 60%, var(--emerald-dark));
  border-radius: 20px; color: #fff; padding: 2.4rem; height: 100%; position: relative; overflow: hidden;
}
.info-side::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(245,166,35,.14); top: -120px; right: -100px;
}
.info-side h4 { color: #fff; }
.info-side .row-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.info-side .row-item .bi {
  font-size: 1.15rem; color: var(--gold); min-width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1);
}
.info-side .row-item strong { display: block; font-size: .95rem; }
.info-side .row-item span, .info-side .row-item a { color: #d8e6f2; font-size: .9rem; }
.info-side .row-item a:hover { color: var(--gold); }

/* ---------- About page ---------- */
.value-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center;
  box-shadow: var(--shadow); height: 100%; transition: transform .3s;
  border-bottom: 4px solid var(--gold);
}
.value-card:hover { transform: translateY(-6px); }
.value-card .vi {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px;
  background: var(--sky); color: var(--emerald-dark); font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
}
.value-card h5 { font-weight: 700; }
.value-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .45rem 0; color: var(--ink); font-size: .95rem; display: flex; gap: .6rem; }
.check-list li .bi { color: var(--emerald); font-size: 1.05rem; margin-top: .1rem; }

.rounded-img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.float-badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: .9rem 1.2rem; display: flex; align-items: center; gap: .8rem;
}
.float-badge .bi { font-size: 1.6rem; color: var(--emerald); }
.float-badge strong { color: var(--navy); display: block; line-height: 1.1; }
.float-badge span { color: var(--muted); font-size: .78rem; }

/* ---------- Blog article ---------- */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-hero-img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; height: 380px; object-fit: cover; }
.article-body p { font-size: 1.03rem; line-height: 1.85; color: #3a4a5a; margin-bottom: 1.35rem; }
.article-body h3 { font-size: 1.35rem; margin: 2rem 0 1rem; font-weight: 700; }
.pullquote {
  border-left: 4px solid var(--gold); background: var(--sky); border-radius: 0 14px 14px 0;
  padding: 1.2rem 1.5rem; font-style: italic; color: var(--navy); margin: 1.8rem 0; font-size: 1.02rem;
}
.share-row a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--navy); font-size: 1.05rem; transition: all .25s; margin-right: .5rem;
}
.share-row a:hover { background: var(--emerald); color: #fff; transform: translateY(-3px); }

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-2) 55%, var(--emerald-dark));
  color: #fff; padding: 70px 0; position: relative; overflow: hidden;
}
.newsletter-band::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(245,166,35,.12); top: -200px; left: -120px;
}
.newsletter-band h2 { color: #fff; }
.newsletter-band p { color: #d8e6f2; }
.newsletter-form .form-control { border: none; border-radius: 50px; padding: .8rem 1.4rem; }
.newsletter-form .btn { border-radius: 50px; }
.unsub-note { font-size: .82rem; color: #b9cede; }
.unsub-note a { color: var(--gold); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #071c31; color: #a9bccd; padding: 70px 0 0; font-size: .92rem; }
.footer h5 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.footer a { color: #a9bccd; transition: all .2s; }
.footer a:hover { color: var(--gold); padding-left: 4px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .65rem; }
.footer ul li .bi { color: var(--emerald); margin-right: .5rem; font-size: .8rem; }
.footer .f-contact li { display: flex; gap: .7rem; margin-bottom: 1rem; }
.footer .f-contact li .bi { font-size: 1.05rem; margin-top: .15rem; }
.footer .f-contact a:hover, .footer .f-contact li:hover { padding-left: 0; }
.footer-brand p { color: #a9bccd; font-size: .9rem; line-height: 1.7; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem;
  color: #fff; transition: all .25s;
}
.social-row a:hover { background: var(--emerald); transform: translateY(-4px); padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 20px 0; font-size: .85rem; }
.footer-bottom a:hover { padding-left: 0; }

/* ---------- Legal pages ---------- */
.legal-content h3 { font-size: 1.25rem; margin: 2.2rem 0 .8rem; font-weight: 700; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.8; font-size: .97rem; }
.legal-content ul { padding-left: 1.2rem; }
.legal-updated { color: var(--muted); font-size: .88rem; font-style: italic; }

/* ---------- Misc ---------- */
.badge-soft {
  background: var(--sky); color: var(--emerald-dark); border-radius: 50px;
  padding: .45rem 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
}

#backToTop {
  position: fixed; right: 22px; bottom: 26px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--emerald), var(--navy)); color: #fff;
  font-size: 1.15rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-4px); }

/* Reveal-on-scroll animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 991.98px) {
  .hero { padding: 80px 0 110px; }
  .section { padding: 65px 0; }
  .navbar-collapse { background: #fff; border-radius: 14px; padding: .8rem; margin-top: .8rem; box-shadow: var(--shadow); }
}
