/* ==========================================================================
   TurtleCore — shared site styles (every page)
   1) One font system: Raleway for headings, Roboto for everything else
   2) The shared footer
   Loaded after theme.min.css / user.min.css.
   ========================================================================== */

/* --- 1) Fonts ------------------------------------------------------------- */
:root {
  --tc-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --tc-font-head: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body { font-family: var(--tc-font-body); }

/* theme.min.css sets p { font-family: fangsong } — put paragraphs back on the body font */
p, li, dd, dt, td, th, label, blockquote, figcaption, small,
input, textarea, select, button, .btn, .form-control { font-family: var(--tc-font-body); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand, .display-1, .display-2, .display-3, .display-4 { font-family: var(--tc-font-head); }

/* blog posts pasted from Word carry inline Arial / Calibri — make them follow the site fonts */
[style*="font-family"] { font-family: inherit !important; }
h1[style*="font-family"], h2[style*="font-family"], h3[style*="font-family"],
h4[style*="font-family"], h5[style*="font-family"], h6[style*="font-family"] { font-family: var(--tc-font-head) !important; }

/* keep code blocks monospace */
code, kbd, pre, samp { font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }

/* ==========================================================================
   SITE FOOTER (shared by every page)
   ========================================================================== */
.tc-footer {
  --f-ink: #07090d;
  --f-line: rgba(255, 255, 255, .08);
  --f-muted: #97a3b4;
  position: relative;
  overflow: hidden;
  background: var(--f-ink);
  color: #e8ecf1;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding: 80px 0 28px;
  border-top: 1px solid var(--f-line);
}
.tc-footer__glow {
  position: absolute; left: 50%; top: -260px; width: 900px; height: 460px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(52, 211, 153, .16), transparent);
  pointer-events: none;
}
.tc-footer .container { position: relative; }
.tc-footer h2, .tc-footer h3 { font-family: 'Raleway', sans-serif; text-transform: none; letter-spacing: -.01em; }
.tc-footer p { font-family: inherit; }
.tc-footer ul { list-style: none; margin: 0; padding: 0; }
.tc-footer a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

.tc-footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 32px 36px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(214, 41, 118, .14), rgba(0, 132, 255, .12) 50%, rgba(37, 211, 102, .14));
  border: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 64px;
}
.tc-footer__cta h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0 0 .35rem; }
.tc-footer__cta p { color: var(--f-muted); margin: 0; font-size: 1rem; }
.tc-footer__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 12px;
  background: #fff; color: #07090d !important; font-weight: 600; white-space: nowrap;
}
.tc-footer__btn:hover { background: #e9fff5; }

.tc-footer__grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 992px) { .tc-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.tc-footer__brand { grid-column: 1 / -1; }
@media (min-width: 992px) { .tc-footer__brand { grid-column: auto; padding-right: 24px; } }
.tc-footer__logo { display: inline-block; font-family: 'Raleway', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 14px; }
.tc-footer__brand p { color: var(--f-muted); font-size: .95rem; line-height: 1.65; margin: 0 0 20px; max-width: 380px; }
.tc-footer__social { display: flex; gap: 10px; }
.tc-footer__social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--f-line); background: rgba(255, 255, 255, .03); color: #dfe5ec;
}
.tc-footer__social a:hover { background: #fff; color: #07090d; border-color: #fff; }

.tc-footer__col h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.tc-footer__col li + li { margin-top: 10px; }
.tc-footer__col a { color: var(--f-muted); font-size: .95rem; }
.tc-footer__col a:hover { color: #fff; }
.tc-footer__posts li + li { margin-top: 14px; }
.tc-footer__posts a { display: block; color: #e8ecf1; font-weight: 500; }
.tc-footer__posts small { display: block; color: #6b7686; font-size: .8rem; margin-top: 2px; }

.tc-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--f-line);
}
.tc-footer__bottom p { margin: 0; color: #6b7686; font-size: .88rem; }
.tc-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tc-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--f-muted); }
.tc-footer__contact a:hover { color: #fff; }
.tc-footer a:focus-visible { outline: 2px solid #34d399; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 575.98px) { .tc-footer__cta { padding: 24px; } }

/* ==========================================================================
   BLOG — "Share your opinion on WhatsApp" card (replaces the comment form)
   ========================================================================== */
.tc-op {
  position: relative; overflow: hidden;
  margin-top: 48px; padding: 34px 32px 30px;
  border-radius: 24px; color: #e8ecf1;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(37, 211, 102, .28), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(18, 140, 126, .3), transparent 60%),
    #07120d;
  border: 1px solid rgba(37, 211, 102, .25);
  box-shadow: 0 30px 70px -30px rgba(7, 18, 13, .7);
  font-family: var(--tc-font-body);
}
.tc-op::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.tc-op > * { position: relative; }
.tc-op__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tc-op__ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; color: #fff; background: #25d366; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .7); }
.tc-op h4 { font-family: var(--tc-font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: #fff; margin: 0 0 4px; }
.tc-op p.tc-op__sub { margin: 0; color: #a7b8b0; font-size: .97rem; line-height: 1.55; }
.tc-op__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; padding: 0; list-style: none; }
.tc-op__chip {
  font: inherit; font-size: .88rem; font-weight: 600; color: #dff7ea; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.tc-op__chip:hover { background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .5); transform: translateY(-1px); }
.tc-op__chip.is-on { background: #25d366; border-color: #25d366; color: #052e16; }
.tc-op__field { position: relative; }
.tc-op textarea {
  width: 100%; min-height: 120px; resize: vertical;
  font: inherit; font-size: 1rem; line-height: 1.5; color: #0b0f15;
  padding: 14px 16px; border-radius: 16px; border: 0; outline: none;
  background: #fff; box-shadow: inset 0 0 0 1px #e5eaf0;
}
.tc-op textarea:focus { box-shadow: inset 0 0 0 2px #25d366; }
.tc-op textarea::placeholder { color: #94a3b8; }
.tc-op__count { position: absolute; right: 14px; bottom: 10px; font-size: .72rem; color: #94a3b8; }
.tc-op__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.tc-op__note { font-size: .82rem; color: #8aa096; display: inline-flex; align-items: center; gap: 8px; }
.tc-op__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; color: #052e16; background: #25d366;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .8);
  transition: transform .2s ease, background-color .2s ease;
}
.tc-op__btn:hover { background: #3ee07a; transform: translateY(-1px); }
.tc-op__btn svg, .tc-op__btn .fab { font-size: 1.25rem; }
.tc-op__err { display: none; margin-top: 8px; font-size: .85rem; color: #fca5a5; }
.tc-op.is-invalid .tc-op__err { display: block; }
.tc-op.is-invalid textarea { box-shadow: inset 0 0 0 2px #f87171; }
@media (max-width: 575.98px) {
  .tc-op { padding: 26px 18px 22px; border-radius: 20px; }
  .tc-op__head { align-items: flex-start; }
  .tc-op__ic { width: 46px; height: 46px; font-size: 23px; border-radius: 13px; }
  .tc-op h4 { font-size: 1.2rem; }
  .tc-op__btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   QUICK CONTACT — floating button on every page (WhatsApp · Call · Email · Slack)
   ========================================================================== */
.btn-back-to-top { right: auto !important; left: .75rem; }
.tcq { position: fixed; right: 20px; bottom: 20px; z-index: 1040; font-family: var(--tc-font-body); }
.tcq__main {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 24px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 30px -8px rgba(18, 140, 126, .65);
  transition: transform .25s ease, background .25s ease;
}
.tcq__main:hover { transform: scale(1.06); }
.tcq__main::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: tcq-pulse 2.4s infinite; }
.tcq__main .tcq__x { display: none; }
.tcq.is-open .tcq__main { background: #0b0f15; box-shadow: 0 14px 30px -8px rgba(0,0,0,.5); }
.tcq.is-open .tcq__main::before { animation: none; }
.tcq.is-open .tcq__main .tcq__chat { display: none; }
.tcq.is-open .tcq__main .tcq__x { display: block; }
.tcq__badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; }
.tcq.is-open .tcq__badge, .tcq.seen .tcq__badge { display: none; }

.tcq__panel {
  position: absolute; right: 0; bottom: 74px; width: 300px;
  padding: 16px; border-radius: 20px; background: #fff;
  box-shadow: 0 2px 6px rgba(16,24,40,.08), 0 30px 60px -20px rgba(16,24,40,.45);
  opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.tcq.is-open .tcq__panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.tcq__head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid #eef1f4; margin-bottom: 10px; }
.tcq__dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); flex: none; }
.tcq__head b { display: block; font-family: var(--tc-font-head); font-size: 1rem; font-weight: 800; color: #0b0f15; line-height: 1.2; }
.tcq__head small { font-size: .78rem; color: #64748b; }
.tcq__opt {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px;
  color: #0b0f15 !important; text-decoration: none !important;
  transition: background-color .18s ease, transform .18s ease;
}
.tcq__opt:hover { background: #f4f6f9; transform: translateX(2px); }
.tcq__opt + .tcq__opt { margin-top: 2px; }
.tcq__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: #fff; }
.tcq__opt--wa .tcq__ic { background: #25d366; font-size: 22px; }
.tcq__opt--call .tcq__ic { background: #2563eb; }
.tcq__opt--mail .tcq__ic { background: #ea580c; }
.tcq__opt--slack .tcq__ic { background: #4a154b; font-size: 20px; }
.tcq__txt { min-width: 0; line-height: 1.25; }
.tcq__txt b { display: block; font-size: .95rem; font-weight: 700; }
.tcq__txt small { display: block; font-size: .78rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcq__opt em { margin-left: auto; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #15803d; background: #dcfce7; padding: 3px 7px; border-radius: 999px; }
.tcq__hint {
  position: absolute; right: 72px; bottom: 12px; white-space: nowrap;
  padding: 9px 14px; border-radius: 12px; background: #0b0f15; color: #fff; font-size: .85rem; font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.tcq__hint::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: #0b0f15; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.tcq.show-hint .tcq__hint { opacity: 1; transform: none; }
.tcq.is-open .tcq__hint { opacity: 0; }
.tcq a:focus-visible, .tcq button:focus-visible { outline: 3px solid #34d399; outline-offset: 3px; }
@keyframes tcq-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 575.98px) {
  .tcq { right: 14px; bottom: 14px; }
  .tcq__main { width: 56px; height: 56px; }
  .tcq__panel { width: min(300px, calc(100vw - 28px)); bottom: 68px; }
  .tcq__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tcq__main::before { animation: none; } .tcq__panel { transition: none; } }
