/* =========================================================
   Wealth Tax Guide — Main Stylesheet
   Simple theme. Palette: Olive + Sky Blue + Warm Off-White
   ========================================================= */
:root {
  --olive: #4b5d2e;
  --olive-2: #34411f;
  --olive-soft: #eef1e6;
  --sky: #3b82c4;
  --sky-2: #2a69a6;
  --sky-soft: #e7f0f9;
  --paper: #f8f7f1;
  --ink: #23271c;
  --text: #555a4c;
  --line: #e4e3d8;
  --shadow: 0 10px 28px rgba(52, 65, 31, 0.08);
  --shadow-lg: 0 18px 44px rgba(52, 65, 31, 0.15);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; font-size: 17px; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: "Libre Baskerville", Georgia, serif; color: var(--ink); font-weight: 700; line-height: 1.3; }
a { color: var(--sky-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--olive); }
img { max-width: 100%; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-paper { background: var(--paper); }
.bg-olive { background: var(--olive); color: rgba(255,255,255,.85); }
.bg-olive h2, .bg-olive h3, .bg-olive h4 { color: #fff; }
.heading { font-size: clamp(1.75rem, 3.1vw, 2.35rem); margin-bottom: 16px; }
.heading-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.heading-line span { height: 2px; width: 40px; background: var(--olive); }
.heading-line i { color: var(--sky); font-size: .9rem; }
.text-center .heading-line { justify-content: center; }
.bg-olive .heading-line span { background: #fff; }
.bg-olive .heading-line i { color: #b9d6f2; }
.intro { font-size: 1.05rem; max-width: 640px; }
.text-center .intro { margin-inline: auto; }

/* ---------- Logo: one line, one style ---------- */
.wtg-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "Libre Baskerville", serif; font-weight: 700; font-size: 1.36rem; color: var(--olive-2); line-height: 1; }
.wtg-logo:hover { color: var(--olive-2); }
.wtg-logo .book { width: 38px; height: 38px; border-radius: 8px; background: var(--olive); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; box-shadow: 3px 3px 0 var(--sky); }
.wtg-logo.light { color: #fff; }
.wtg-logo.light:hover { color: #fff; }
.wtg-logo.light .book { background: #fff; color: var(--olive); }

/* ---------- Header ---------- */
.top-strip { background: var(--olive-2); color: rgba(255,255,255,.82); font-size: .88rem; padding: 8px 0; }
.top-strip a { color: rgba(255,255,255,.9); }
.top-strip a:hover { color: #b9d6f2; }
.top-strip i { color: #b9d6f2; margin-right: 6px; }
.top-strip .ts-item { margin-right: 22px; }
.wtg-header { position: sticky; top: 0; z-index: 1030; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease, background .3s ease; }
.wtg-header.scrolled { background: #fff; box-shadow: 0 6px 22px rgba(52,65,31,.08); }
.wtg-header .navbar { padding: 16px 0; }
.wtg-header .nav-link { color: var(--ink) !important; font-weight: 600; padding: 8px 14px !important; }
.wtg-header .nav-link:hover { color: var(--sky-2) !important; }
.wtg-header .nav-link.active { color: var(--olive) !important; box-shadow: inset 0 -3px 0 var(--olive); }
.wtg-header .navbar-toggler { border: 1px solid var(--line); color: var(--olive); font-size: 1.4rem; padding: 4px 10px; }
.wtg-header .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) { .wtg-header .navbar-collapse { padding: 12px 0 4px; } .wtg-header .nav-link.active { box-shadow: none; } }

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

/* ---------- Hero (image with overlapping card) ---------- */
.hero { position: relative; padding: 70px 0 80px; background: var(--paper); }
.hero .hero-pic { position: relative; }
.hero .hero-pic img { width: 100%; height: 500px; object-fit: cover; border-radius: 14px; display: block; background: var(--olive-soft); }
.hero .hero-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 44px 40px; position: relative; z-index: 2; border-top: 5px solid var(--olive); }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.hero h1 em { font-style: italic; color: var(--olive); }
.hero .lead { font-size: 1.08rem; margin: 18px 0 26px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.hero-notes i { color: var(--sky); }
@media (min-width: 992px) { .hero .hero-card { margin-right: -120px; } }
@media (max-width: 991.98px) { .hero .hero-pic img { height: 320px; } .hero .hero-card { margin-top: -60px; margin-left: 12px; margin-right: 12px; padding: 32px 24px; } }

/* ---------- 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(-5px); }
.svc .svc-img { height: 205px; overflow: hidden; background: var(--olive-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-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.svc .svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.svc .svc-head i { width: 42px; height: 42px; border-radius: 8px; background: var(--olive-soft); color: var(--olive); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.svc h3 { font-size: 1.15rem; margin: 0; }
.svc p { flex-grow: 1; }
.svc .btn { align-self: flex-start; }

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

/* ---------- Tax savings estimator ---------- */
.tax-tool { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 32px; }
.rate-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-pills input { position: absolute; opacity: 0; pointer-events: none; }
.rate-pills label { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 7px 14px; font-weight: 700; cursor: pointer; color: var(--ink); transition: all .2s ease; }
.rate-pills input:checked + label { background: var(--olive); border-color: var(--olive); color: #fff; }
.rate-pills input:focus-visible + label { outline: 3px solid rgba(59,130,196,.4); }
.tax-out { background: var(--sky-soft); border-radius: 12px; padding: 24px; height: 100%; display: flex; flex-direction: column; justify-content: center; border-left: 5px solid var(--sky); }
.tax-out .t-big { font-family: "Libre Baskerville", serif; font-size: 2.3rem; font-weight: 700; color: var(--olive-2); line-height: 1.15; margin: 4px 0 14px; }
.tax-out .t-line { display: flex; justify-content: space-between; border-top: 1px solid rgba(59,130,196,.25); padding: 9px 0; }
.tax-out strong { color: var(--ink); }

/* ---------- Tax calendar ---------- */
.date-card { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; height: 100%; box-shadow: var(--shadow); }
.date-card .dc-cal { width: 70px; flex-shrink: 0; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.date-card .dc-cal .m { background: var(--olive); color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; padding: 3px 0; }
.date-card .dc-cal .d { font-family: "Libre Baskerville", serif; font-size: 1.6rem; font-weight: 700; color: var(--ink); padding: 4px 0; background: #fff; }
.date-card h4 { font-size: 1.02rem; margin-bottom: 2px; }
.date-card p { margin: 0; font-size: .94rem; }

/* ---------- Steps ---------- */
.step-box { display: flex; gap: 16px; margin-bottom: 24px; }
.step-box .n { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--olive); font-family: "Libre Baskerville", serif; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-box h4 { font-size: 1.1rem; margin-bottom: 2px; }
.step-box p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- Testimonials ---------- */
.review { background: #fff; border-radius: var(--radius); padding: 30px 26px; height: 100%; border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; }
.review .avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); font-family: "Libre Baskerville", serif; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.15rem; }
.review .stars { color: #d9a400; letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }
.review p { flex-grow: 1; font-style: italic; }
.review h5 { font-size: 1.02rem; margin: 4px 0 0; color: var(--olive-2); }

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

/* Single post */
.post-pic { width: 100%; height: 430px; object-fit: cover; border-radius: 14px; margin-bottom: 32px; display: block; background: var(--olive-soft); }
.post-body { font-size: 1.08rem; }
.post-body p { margin-bottom: 22px; }
.post-body h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.post-body .good-to-know { background: var(--olive-soft); border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; color: var(--ink); position: relative; padding-left: 62px; }
.post-body .good-to-know::before { content: "\F431"; font-family: "bootstrap-icons"; position: absolute; left: 22px; top: 20px; color: var(--olive); font-size: 1.4rem; }
.post-body .good-to-know strong { display: block; color: var(--olive-2); margin-bottom: 4px; }
.side-card { background: var(--paper); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; border: 1px solid var(--line); }
.side-card h4 { font-size: 1.1rem; margin-bottom: 14px; }
.side-card.olive { background: var(--olive); border-color: var(--olive); color: rgba(255,255,255,.85); }
.side-card.olive 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(--olive-soft); }
.side-post a { color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.side-post a:hover { color: var(--sky-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(--sky-2); }
.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(--paper); padding: 64px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34%; background: var(--olive); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 720px; }
.page-header p { max-width: 580px; margin: 10px 0 0; font-size: 1.05rem; }
.page-header .breadcrumb { margin: 16px 0 0; }
.page-header .breadcrumb-item a { color: var(--sky-2); }
.page-header .breadcrumb-item.active { color: var(--olive); font-weight: 700; }
@media (max-width: 991.98px) { .page-header::after { display: none; } }

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

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

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

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

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 8px !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(--olive-soft); color: var(--olive-2); }
.faq .accordion-button:focus { box-shadow: none; }

/* ---------- Newsletter CTA ---------- */
.cta { background: var(--sky-soft); border-radius: 14px; padding: 46px 44px; border: 1px solid #cfe0f1; }
.cta-field { display: flex; gap: 8px; background: #fff; border-radius: 8px; padding: 6px; border: 1px solid var(--line); }
.cta-field .form-control { border: none; background: transparent; }
.cta-field .form-control:focus { box-shadow: none; }
@media (max-width: 575.98px) { .cta { padding: 34px 22px; } .cta-field { flex-direction: column; } }

/* ---------- Footer ---------- */
.wtg-footer { background: var(--olive-2); color: rgba(255,255,255,.72); }
.wtg-footer .ft-main { padding: 70px 0 40px; }
.wtg-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.wtg-footer a { color: rgba(255,255,255,.78); }
.wtg-footer a:hover { color: #b9d6f2; }
.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: #b9d6f2; margin-top: 3px; }
.ft-social { display: flex; gap: 8px; margin-top: 20px; }
.ft-social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.ft-social a:hover { background: var(--sky); 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 */
.wtg-top { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 48px; height: 48px; border-radius: 8px; border: none; background: var(--olive); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; }
.wtg-top.show { opacity: 1; visibility: visible; transform: none; }
.wtg-top:hover { background: var(--sky); }

/* 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: 330px; }
  .form-card, .nl-box .nl-form { padding: 28px 20px; }
}
@media (max-width: 575.98px) {
  .wtg-logo { font-size: 1.15rem; }
  .wtg-logo .book { width: 32px; height: 32px; font-size: .95rem; }
  .post-pic { height: 260px; }
  .tax-tool { padding: 22px 16px; }
  .ft-bottom a { margin: 0 8px; }
}
