/* ==========================================================
   Trust Finance Solution - Stylesheet
   Colors: Laramie night #1f1d36, Snowy Range teal #0f7173,
           prairie ochre #e09f3e, sage frost #eef3f1
   Fonts: Libre Baskerville (headings), Overpass (body)
   ========================================================== */

:root {
  --tfs-ink: #1f1d36;
  --tfs-ink-2: #2c2a4a;
  --tfs-teal: #0f7173;
  --tfs-teal-dark: #0a5557;
  --tfs-teal-soft: #d6ebe9;
  --tfs-ochre: #e09f3e;
  --tfs-ochre-dark: #c4852a;
  --tfs-frost: #eef3f1;
  --tfs-paper: #fbfaf7;
  --tfs-text: #45475a;
  --tfs-muted: #6d7082;
  --tfs-line: #dfe5e3;
  --tfs-radius: 14px;
  --tfs-shadow: 0 18px 40px -22px rgba(31, 29, 54, .35);
  --tfs-head: 'Libre Baskerville', Georgia, serif;
  --tfs-body: 'Overpass', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--tfs-body);
  color: var(--tfs-text);
  background: var(--tfs-paper);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--tfs-head); color: var(--tfs-ink); font-weight: 700; line-height: 1.3; }
a { color: var(--tfs-teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tfs-ochre-dark); }
img { max-width: 100%; display: block; }
p { margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn-tfs, .btn-tfs-light, .btn-tfs-outline {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--tfs-body); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; padding: .85rem 1.6rem; border-radius: 50px;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease; line-height: 1.2;
}
.btn-tfs { background: var(--tfs-teal); color: #fff; border-color: var(--tfs-teal); }
.btn-tfs:hover { background: var(--tfs-ochre); border-color: var(--tfs-ochre); color: var(--tfs-ink); transform: translateY(-2px); }
.btn-tfs:disabled { opacity: .7; transform: none; cursor: wait; }
.btn-tfs-light { background: transparent; color: var(--tfs-ink); border-color: var(--tfs-ink); }
.btn-tfs-light:hover { background: var(--tfs-ink); color: #fff; }
.bg-ink .btn-tfs-light, .cta-band .btn-tfs-light { color: #fff; border-color: rgba(255,255,255,.6); }
.bg-ink .btn-tfs-light:hover, .cta-band .btn-tfs-light:hover { background: #fff; color: var(--tfs-ink); }
.btn-tfs-outline { background: transparent; color: var(--tfs-teal); border-color: var(--tfs-teal); padding: .65rem 1.3rem; font-size: .9rem; }
.btn-tfs-outline:hover { background: var(--tfs-teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--tfs-ink); color: rgba(255,255,255,.78); font-size: .86rem; padding: .55rem 0; }
.topbar .item { color: rgba(255,255,255,.78); margin-right: 1.6rem; display: inline-flex; align-items: center; gap: .45rem; }
.topbar .item i { color: var(--tfs-ochre); }
.topbar a.item:hover { color: #fff; }
.topbar .social a { color: rgba(255,255,255,.78); margin-left: .9rem; }
.topbar .social a:hover { color: var(--tfs-ochre); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(251,250,247,.97); border-bottom: 1px solid var(--tfs-line); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(31,29,54,.45); }
.site-header .navbar { padding: .85rem 0; }
.navbar-brand img { height: 44px; width: auto; }
.navbar-nav .nav-link { font-weight: 600; color: var(--tfs-ink); padding: .5rem .95rem !important; position: relative; }
.navbar-nav .nav-link::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .2rem; height: 2px; background: var(--tfs-ochre); transform: scaleX(0); transition: transform .25s ease; transform-origin: left; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--tfs-teal); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 2px solid var(--tfs-ink); padding: .35rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }
.header-cta { padding: .7rem 1.3rem; }
@media (max-width: 991.98px) {
  .navbar-brand img { height: 36px; }
  .navbar-collapse { padding: 1rem 0 .5rem; }
  .header-cta { margin-top: .6rem; }
}
@media (max-width: 400px) { .navbar-brand img { height: 30px; } }

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.bg-frost { background: var(--tfs-frost); }
.bg-ink { background: var(--tfs-ink); color: rgba(255,255,255,.78); }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tfs-teal); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--tfs-ochre); }
.bg-ink .eyebrow, .cta-band .eyebrow, .newsletter-band .eyebrow { color: var(--tfs-ochre); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.section-head { max-width: 680px; margin: 0 auto 3.2rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--tfs-muted); }
.bg-ink .section-head p { color: rgba(255,255,255,.7); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.img-fallback { background: linear-gradient(135deg, var(--tfs-teal) 0%, var(--tfs-ink) 100%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 110px; background: linear-gradient(180deg, var(--tfs-frost) 0%, var(--tfs-paper) 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(15,113,115,.07); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 1.3rem; }
.hero h1 em { font-style: italic; color: var(--tfs-teal); }
.hero .lead { font-size: 1.12rem; color: var(--tfs-muted); margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.3rem; padding-top: 1.6rem; border-top: 1px solid var(--tfs-line); }
.hero-trust div { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--tfs-ink); font-size: .95rem; }
.hero-trust i { color: var(--tfs-teal); font-size: 1.3rem; }
.hero-frame { position: relative; padding: 0 0 30px 30px; }
.hero-frame::before { content: ''; position: absolute; left: 0; bottom: 0; width: 70%; height: 75%; background: var(--tfs-ochre); border-radius: var(--tfs-radius); }
.hero-frame .photo { position: relative; border-radius: 160px 14px 14px 14px; overflow: hidden; box-shadow: var(--tfs-shadow); aspect-ratio: 4 / 4.2; }
.hero-frame .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; right: -10px; bottom: 60px; background: #fff; border-radius: var(--tfs-radius); padding: 1rem 1.2rem; display: flex; gap: .85rem; align-items: center; box-shadow: var(--tfs-shadow); max-width: 260px; }
.hero-badge i { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--tfs-teal-soft); color: var(--tfs-teal); display: grid; place-items: center; font-size: 1.3rem; }
.hero-badge strong { display: block; color: var(--tfs-ink); font-size: .95rem; line-height: 1.3; }
.hero-badge span { font-size: .82rem; color: var(--tfs-muted); line-height: 1.4; display: block; }
@media (max-width: 575.98px) { .hero-badge { right: 8px; bottom: 44px; max-width: 220px; } .hero-frame { padding: 0 0 22px 18px; } }

/* ---------- Stats bar ---------- */
.stats-bar { margin-top: -54px; position: relative; z-index: 2; }
.stats-bar .inner { background: var(--tfs-ink); border-radius: var(--tfs-radius); padding: 2.2rem 1.5rem; box-shadow: var(--tfs-shadow); }
.stat { text-align: center; padding: .5rem; }
.stat .num { font-family: var(--tfs-head); font-size: 2.1rem; color: var(--tfs-ochre); line-height: 1.1; }
.stat .label { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: .35rem; }
@media (min-width: 992px) { .stats-bar .col-lg-3 + .col-lg-3 .stat { border-left: 1px solid rgba(255,255,255,.12); } }

/* ---------- About ---------- */
.about-stack { position: relative; padding-right: 70px; padding-bottom: 70px; }
.about-stack .main { border-radius: var(--tfs-radius); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--tfs-shadow); }
.about-stack .main img, .about-stack .small img { width: 100%; height: 100%; object-fit: cover; }
.about-stack .small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--tfs-paper); box-shadow: var(--tfs-shadow); }
.about-stack .year { position: absolute; left: 20px; bottom: 20px; background: var(--tfs-teal); color: #fff; border-radius: 12px; padding: .8rem 1.1rem; font-weight: 600; font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; font-weight: 600; color: var(--tfs-ink); }
.check-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--tfs-teal); font-size: 1.15rem; }

/* ---------- Service cards ---------- */
.service-card { background: #fff; border-radius: var(--tfs-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--tfs-line); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--tfs-shadow); }
.service-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .icon { position: absolute; left: 1.4rem; bottom: -24px; width: 52px; height: 52px; border-radius: 14px; background: var(--tfs-ochre); color: var(--tfs-ink); display: grid; place-items: center; font-size: 1.35rem; box-shadow: 0 8px 18px -8px rgba(31,29,54,.5); z-index: 1; }
.service-card .thumb { overflow: visible; }
.service-card .thumb .clip { overflow: hidden; height: 100%; }
.service-card .body { padding: 2.2rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.22rem; margin-bottom: .7rem; }
.service-card p { color: var(--tfs-muted); font-size: .97rem; flex: 1; }
.service-card .btn-tfs-outline { align-self: flex-start; }

/* ---------- Process ---------- */
.process-item { position: relative; padding: 2rem 1.6rem; border-radius: var(--tfs-radius); background: var(--tfs-ink-2); height: 100%; border-top: 4px solid var(--tfs-ochre); }
.process-item .no { font-family: var(--tfs-head); font-size: 2.6rem; color: rgba(224,159,62,.35); line-height: 1; margin-bottom: .8rem; }
.process-item h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.process-item p { margin: 0; font-size: .96rem; color: rgba(255,255,255,.72); }

/* ---------- Why choose us ---------- */
.why-photo { position: relative; border-radius: var(--tfs-radius); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--tfs-shadow); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-photo .note { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; background: rgba(31,29,54,.92); color: #fff; border-radius: 12px; padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; }
.why-photo .note i { font-size: 1.8rem; color: var(--tfs-ochre); }
.why-photo .note strong { display: block; font-family: var(--tfs-head); }
.why-photo .note span { font-size: .88rem; color: rgba(255,255,255,.75); }
.why-box { display: flex; gap: 1rem; padding: 1.3rem; border-radius: 12px; background: #fff; border: 1px solid var(--tfs-line); height: 100%; transition: border-color .25s ease; }
.why-box:hover { border-color: var(--tfs-teal); }
.why-box .ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--tfs-teal-soft); color: var(--tfs-teal); display: grid; place-items: center; font-size: 1.3rem; }
.why-box h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.why-box p { margin: 0; font-size: .93rem; color: var(--tfs-muted); line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--tfs-radius); padding: 2rem 1.8rem; height: 100%; position: relative; border: 1px solid var(--tfs-line); display: flex; flex-direction: column; }
.testimonial-card .stars { color: var(--tfs-ochre); margin-bottom: .9rem; letter-spacing: .1em; }
.testimonial-card p { font-size: 1rem; flex: 1; font-style: italic; }
.testimonial-card .name { font-family: var(--tfs-head); color: var(--tfs-ink); font-weight: 700; display: flex; align-items: center; gap: .7rem; padding-top: 1rem; border-top: 1px dashed var(--tfs-line); }
.testimonial-card .name .initial { width: 40px; height: 40px; border-radius: 50%; background: var(--tfs-teal); color: #fff; display: grid; place-items: center; font-family: var(--tfs-body); font-size: .95rem; }
.testimonial-card .q { position: absolute; right: 1.4rem; top: 1rem; font-size: 3rem; color: var(--tfs-teal-soft); line-height: 1; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--tfs-line); border-radius: 12px !important; margin-bottom: .9rem; overflow: hidden; background: #fff; }
.faq .accordion-button { font-family: var(--tfs-head); font-weight: 700; color: var(--tfs-ink); font-size: 1rem; padding: 1.15rem 1.3rem; background: #fff; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--tfs-teal); background: var(--tfs-frost); }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { color: var(--tfs-muted); padding: 1rem 1.3rem 1.3rem; }
.faq-aside { background: var(--tfs-teal); color: rgba(255,255,255,.85); border-radius: var(--tfs-radius); padding: 2.4rem 2rem; height: 100%; }
.faq-aside h2 { color: #fff; }
.faq-aside .eyebrow { color: var(--tfs-ochre); }
.faq-aside .phone { display: flex; gap: .8rem; align-items: center; color: #fff; font-weight: 700; font-size: 1.15rem; margin: 1.4rem 0; }
.faq-aside .phone i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.faq-aside .btn-tfs { background: var(--tfs-ochre); border-color: var(--tfs-ochre); color: var(--tfs-ink); }
.faq-aside .btn-tfs:hover { background: #fff; border-color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 100px 0; color: rgba(255,255,255,.85); overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,29,54,.94) 0%, rgba(31,29,54,.78) 55%, rgba(15,113,115,.6) 100%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Blog cards ---------- */
.blog-card { background: #fff; border-radius: var(--tfs-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--tfs-line); transition: box-shadow .3s ease, transform .3s ease; }
.blog-card:hover { box-shadow: var(--tfs-shadow); transform: translateY(-4px); }
.blog-card .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .cat { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tfs-ochre-dark); margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.12rem; margin-bottom: .7rem; line-height: 1.45; }
.blog-card h3 a { color: var(--tfs-ink); }
.blog-card h3 a:hover { color: var(--tfs-teal); }
.blog-card p { color: var(--tfs-muted); font-size: .95rem; flex: 1; }
.read-more { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.read-more i { transition: transform .2s ease; }
.read-more:hover i { transform: translateX(4px); }

/* ---------- Newsletter band ---------- */
.newsletter-band { background: var(--tfs-ink); border-radius: 20px; padding: 3rem 2.6rem; color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.newsletter-band::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(15,113,115,.35); }
.newsletter-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.newsletter-band .row { position: relative; z-index: 1; }
.inline-subscribe { display: flex; gap: .6rem; background: #fff; border-radius: 50px; padding: .4rem; }
.inline-subscribe .form-control { border: 0; border-radius: 50px; padding: .7rem 1.2rem; box-shadow: none; }
.inline-subscribe .form-control.is-invalid { background-color: #fff3f3; }
.inline-subscribe .btn-tfs { white-space: nowrap; }
@media (max-width: 575.98px) {
  .inline-subscribe { flex-direction: column; border-radius: 16px; }
  .inline-subscribe .btn-tfs { justify-content: center; }
  .newsletter-band { padding: 2.2rem 1.4rem; }
}

/* ---------- Forms ---------- */
.form-control, .form-select { border: 1.5px solid var(--tfs-line); border-radius: 10px; padding: .75rem 1rem; font-size: .97rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--tfs-teal); box-shadow: 0 0 0 .2rem rgba(15,113,115,.15); }
.form-label { font-weight: 600; color: var(--tfs-ink); font-size: .93rem; }
.form-check-input:checked { background-color: var(--tfs-teal); border-color: var(--tfs-teal); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(15,113,115,.15); }
.form-alert { display: none; margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 10px; font-size: .94rem; font-weight: 600; }
.form-alert.show { display: block; }
.form-alert.success { background: #e3f4ee; color: #135c43; border: 1px solid #b6e0cf; }
.form-alert.error { background: #fdecea; color: #9b2c22; border: 1px solid #f4c4be; }
.form-alert.info { background: #fdf3e2; color: #7a5313; border: 1px solid #f1d7a7; }
.form-panel { background: #fff; border-radius: 18px; padding: 2.4rem; border: 1px solid var(--tfs-line); box-shadow: var(--tfs-shadow); }
.form-panel h2 { font-size: 1.6rem; }
@media (max-width: 575.98px) { .form-panel { padding: 1.6rem 1.2rem; } }

/* ---------- Page banner ---------- */
.page-banner { position: relative; padding: 110px 0 90px; color: #fff; overflow: hidden; }
.page-banner .bg { position: absolute; inset: 0; }
.page-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(31,29,54,.93) 0%, rgba(31,29,54,.75) 60%, rgba(15,113,115,.55) 100%); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 900px; }
.page-banner p { color: rgba(255,255,255,.8); max-width: 640px; font-size: 1.05rem; }
.crumbs { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }
.crumbs li { color: var(--tfs-ochre); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: rgba(255,255,255,.5); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }

/* ---------- About page ---------- */
.value-card { background: #fff; border-radius: var(--tfs-radius); padding: 2rem 1.6rem; height: 100%; border: 1px solid var(--tfs-line); text-align: center; }
.value-card .ic { width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--tfs-teal-soft); color: var(--tfs-teal); display: grid; place-items: center; font-size: 1.6rem; }
.value-card h3 { font-size: 1.12rem; }
.value-card p { color: var(--tfs-muted); margin: 0; font-size: .95rem; }
.mv-box { border-left: 4px solid var(--tfs-ochre); padding: .4rem 0 .4rem 1.4rem; margin-bottom: 1.8rem; }
.mv-box h3 { font-size: 1.2rem; }
.mv-box p { margin: 0; }

/* ---------- Services page ---------- */
.service-detail { padding: 70px 0; border-bottom: 1px solid var(--tfs-line); scroll-margin-top: 90px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail .photo { border-radius: var(--tfs-radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--tfs-shadow); }
.service-detail .photo img { width: 100%; height: 100%; object-fit: cover; }
.service-detail .tag { display: inline-flex; gap: .5rem; align-items: center; background: var(--tfs-teal-soft); color: var(--tfs-teal-dark); font-weight: 700; font-size: .8rem; padding: .35rem .85rem; border-radius: 50px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.service-detail h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-detail ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.service-detail ul li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.service-detail ul li::before { content: '\F633'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--tfs-ochre-dark); }

/* ---------- Blog article ---------- */
.article-hero { border-radius: var(--tfs-radius); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 2.2rem; box-shadow: var(--tfs-shadow); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.04rem; }
.article-body .lead-para { font-size: 1.15rem; color: var(--tfs-ink); }
.article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 1rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--tfs-frost); border-left: 4px solid var(--tfs-teal); border-radius: 0 12px 12px 0; font-family: var(--tfs-head); font-style: italic; color: var(--tfs-ink); font-size: 1.1rem; }
.article-cta { background: var(--tfs-ink); color: rgba(255,255,255,.8); border-radius: var(--tfs-radius); padding: 1.8rem; margin-top: 2.5rem; }
.article-cta h3 { color: #fff; font-size: 1.2rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--tfs-line); }
.post-nav a { font-weight: 600; max-width: 48%; color: var(--tfs-ink); font-size: .95rem; }
.post-nav a:hover { color: var(--tfs-teal); }
@media (max-width: 575.98px) { .post-nav { flex-direction: column; } .post-nav a { max-width: 100%; } }
.sidebar-box { background: #fff; border: 1px solid var(--tfs-line); border-radius: var(--tfs-radius); padding: 1.6rem; margin-bottom: 1.6rem; }
.sidebar-box h3 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--tfs-ochre); display: inline-block; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { border-bottom: 1px solid var(--tfs-line); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box li a { display: flex; gap: .6rem; padding: .7rem 0; color: var(--tfs-text); font-weight: 600; font-size: .94rem; line-height: 1.45; }
.sidebar-box li a i { color: var(--tfs-teal); margin-top: .15rem; }
.sidebar-box li a:hover { color: var(--tfs-teal); }
.sidebar-box.dark { background: var(--tfs-teal); border-color: var(--tfs-teal); color: rgba(255,255,255,.85); }
.sidebar-box.dark h3 { color: #fff; }
.sidebar-box.dark .btn-tfs { background: var(--tfs-ochre); border-color: var(--tfs-ochre); color: var(--tfs-ink); }
.sidebar-box.dark .btn-tfs:hover { background: #fff; border-color: #fff; }
.sidebar-box.dark .form-alert.success, .sidebar-box.dark .form-alert.error, .sidebar-box.dark .form-alert.info { color: var(--tfs-ink); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 12px; background: #fff; border: 1px solid var(--tfs-line); margin-bottom: 1rem; }
.contact-card .ic { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px; background: var(--tfs-teal); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; }
.map-wrap { border-radius: var(--tfs-radius); overflow: hidden; border: 1px solid var(--tfs-line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Newsletter pages ---------- */
.side-photo { border-radius: var(--tfs-radius); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--tfs-shadow); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
.perk { display: flex; gap: .9rem; margin-bottom: 1.1rem; }
.perk i { color: var(--tfs-teal); font-size: 1.3rem; }
.perk h3 { font-size: 1rem; margin-bottom: .2rem; }
.perk p { margin: 0; font-size: .94rem; color: var(--tfs-muted); }
.topic-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; }
@media (max-width: 575.98px) { .topic-checks { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal .updated { display: inline-block; background: var(--tfs-frost); padding: .4rem .9rem; border-radius: 50px; font-size: .88rem; font-weight: 600; color: var(--tfs-teal-dark); margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tfs-ink); color: rgba(255,255,255,.7); padding: 80px 0 0; font-size: .95rem; }
.site-footer .logo { height: 40px; width: auto; margin-bottom: 1.3rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.3rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--tfs-ochre); }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact i { color: var(--tfs-ochre); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.footer-social a:hover { background: var(--tfs-teal); border-color: var(--tfs-teal); color: #fff; }
.footer-subscribe { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-subscribe .form-control { flex: 1 1 160px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.footer-subscribe .form-control::placeholder { color: rgba(255,255,255,.5); }
.footer-subscribe .btn-tfs { padding: .7rem 1.1rem; }
.footer-subscribe .form-alert { flex-basis: 100%; }
.footer-bottom { margin-top: 60px; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom .links a { margin-left: 1.2rem; }
.footer-bottom .links a:first-child { margin-left: 0; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--tfs-ochre); color: var(--tfs-ink); font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease; z-index: 1040; box-shadow: var(--tfs-shadow); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--tfs-teal); color: #fff; }

@media (max-width: 767.98px) {
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 100px; }
  .about-stack { padding-right: 40px; padding-bottom: 50px; }
}

/* Keep wide gutters from causing sideways scroll on phones */
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
