/* The Third Man — brand overrides on top of the Agenio theme (style.css). */

:root {
  --font-primary: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-secondary: "Urbanist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ttm-wa: #25D366;
}

/* Chinese reads badly with the theme's tight negative tracking */
.wpr-banner-area .banner-content-area .section-title .text,
.wpr-banner-area.breadcrumb .banner-content-area .section-title { letter-spacing: 0; }
.section-title, .title, h1, h2, h3, h4, h5, h6 { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- logo ---------- */
.ttm-logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--color-heading-1); white-space: nowrap; line-height: 1; }
.ttm-logo img { width: 34px; height: 34px; }
.ttm-logo:hover { color: var(--color-heading-1); }
.ttm-logo--xl { font-size: clamp(34px, 9vw, 132px); gap: 0.18em; letter-spacing: -0.04em; }
.ttm-logo--xl img { width: 0.78em; height: 0.78em; }
.ttm-logo--xl span { background: linear-gradient(137.66deg, #55595C 21.13%, #000 80.53%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ttm-logo--light { color: #F9FAFB; }
.ttm-logo--light:hover { color: #F9FAFB; }

/* hero eyebrow (visible Chinese positioning line) */
.ttm-eyebrow { display: inline-block; font-size: 14px; letter-spacing: 0.08em; color: var(--color-heading-1); background: #fff; border: 1px solid var(--color-border); padding: 6px 14px; margin-bottom: 18px; }
.ttm-eyebrow b { color: #030712; background: var(--color-primary); padding: 0 6px; margin-right: 6px; font-weight: 600; }

/* platform marquee — text instead of logos */
.ttm-brand-text { font-family: var(--font-secondary); font-weight: 700; font-size: 24px; color: var(--color-heading-1); }

/* ---------- generic section helpers ---------- */
.ttm-pad { padding: 80px 60px; }
.ttm-lead { font-size: 18px; line-height: 1.8; color: var(--color-body-1); }
.ttm-center { text-align: center; }
.ttm-mw { max-width: 760px; margin-left: auto; margin-right: auto; }

.ttm-crumbs { margin-top: 24px; font-size: 14px; color: var(--color-body-1); text-align: center; }
.ttm-crumbs a { color: var(--color-heading-1); }
.ttm-crumbs a:hover { color: #000; text-decoration: underline; }
.ttm-h1-sm { font-size: clamp(30px, 4.2vw, 56px) !important; line-height: 1.25 !important; max-width: 980px; margin-left: auto; margin-right: auto; }

/* card grid (pain points, values, steps) */
.ttm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); margin-top: 50px; }
.ttm-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ttm-card { background: #fff; padding: 34px 28px; display: flex; flex-direction: column; gap: 14px; transition: background .3s; }
.ttm-card:hover { background: var(--color-bg-1); }
.ttm-card .num { font-family: var(--font-primary); font-size: 13px; font-weight: 600; color: var(--color-primary); background: var(--color-secondary); width: 44px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.ttm-card h3 { font-size: 20px; line-height: 1.35; margin: 0; color: var(--color-heading-1); text-transform: none; font-weight: 600; }
.ttm-card p { margin: 0; font-size: 15px; line-height: 1.7; }

/* story block on about page */
.ttm-story p { font-size: 17px; line-height: 1.9; margin-bottom: 18px; }
.ttm-story strong { color: var(--color-heading-1); }

/* ---------- blog list ---------- */
.ttm-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ttm-post-card { background: #fff; border: 1px solid var(--color-border); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.ttm-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(3, 7, 18, .08); }
.ttm-post-card .thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-bg-1); }
.ttm-post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ttm-post-card:hover .thumb img { transform: scale(1.06); }
.ttm-post-card .body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ttm-post-card .meta { font-size: 13px; color: var(--color-body-1); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ttm-post-card .cat { background: var(--color-primary); color: #030712; padding: 2px 8px; font-weight: 600; }
.ttm-post-card h2, .ttm-post-card h3 { font-size: 21px; line-height: 1.45; margin: 0; text-transform: none; font-weight: 600; }
.ttm-post-card h2 a, .ttm-post-card h3 a { color: var(--color-heading-1); }
.ttm-post-card p { margin: 0; font-size: 15px; line-height: 1.75; }
.ttm-post-card .more { margin-top: auto; font-weight: 600; color: var(--color-heading-1); font-size: 15px; }
.ttm-post-card .more:hover { text-decoration: underline; }
.ttm-post-card.featured { grid-column: span 2; }
.ttm-post-card.featured h2 { font-size: 28px; }

/* ---------- article ---------- */
.ttm-article { font-size: 17px; line-height: 1.95; color: #374151; }
.ttm-article .cover { margin-bottom: 36px; }
.ttm-article .cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ttm-article h2 { font-size: 28px; line-height: 1.4; margin: 48px 0 16px; color: var(--color-heading-1); text-transform: none; font-weight: 600; }
.ttm-article h3 { font-size: 21px; line-height: 1.45; margin: 32px 0 12px; color: var(--color-heading-1); text-transform: none; font-weight: 600; }
.ttm-article p { margin: 0 0 18px; font-size: 17px; line-height: 1.95; }
.ttm-article ul, .ttm-article ol { padding-left: 22px; margin: 0 0 20px; }
.ttm-article li { margin-bottom: 8px; padding: 0; }
.ttm-article strong { color: var(--color-heading-1); }
.ttm-article blockquote { margin: 28px 0; padding: 20px 26px; border-left: 4px solid var(--color-primary); background: var(--color-bg-1); color: var(--color-heading-1); font-size: 18px; }
.ttm-article table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 15px; }
.ttm-article th, .ttm-article td { border: 1px solid var(--color-border); padding: 12px 14px; text-align: left; vertical-align: top; }
.ttm-article th { background: #030712; color: #F9FAFB; font-weight: 600; }
.ttm-table-wrap { overflow-x: auto; }
.ttm-article-meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--color-body-1); margin-top: 6px; }

.ttm-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.ttm-side-box { border: 1px solid var(--color-border); padding: 26px; background: #fff; }
.ttm-side-box h2 { font-size: 18px; margin: 0 0 16px; text-transform: none; font-weight: 600; color: var(--color-heading-1); }
.ttm-side-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ttm-side-box li { margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.ttm-side-box li a { color: var(--color-heading-1); }
.ttm-side-box li a:hover { text-decoration: underline; }
.ttm-side-cta { background: #030712; color: #D1D5DB; padding: 30px 26px; }
.ttm-side-cta h2 { color: #F9FAFB; font-size: 22px; line-height: 1.4; margin: 0 0 12px; text-transform: none; }
.ttm-side-cta p { font-size: 15px; margin-bottom: 20px; }

/* inline CTA band inside articles / pages */
.ttm-cta-band { background: #030712; color: #D1D5DB; padding: 34px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 40px; }
.ttm-cta-band h2, .ttm-cta-band h3 { color: #F9FAFB; margin: 0 0 6px; font-size: 22px; text-transform: none; }
.ttm-cta-band p { margin: 0; }

/* ---------- forms (dark contact block) ---------- */
.wpr-contact-area .section-inner .contact-form-area form select {
  width: 100%; height: 40px; background: transparent; color: #F9FAFB; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3);
  font-weight: 600; font-family: var(--font-secondary); font-size: 15px; padding: 0; border-radius: 0; outline: none;
}
.wpr-contact-area .section-inner .contact-form-area form select:focus { border-bottom-color: var(--color-primary); }
.wpr-contact-area .section-inner .contact-form-area form select option { color: #030712; }
.wpr-contact-area .section-inner .contact-form-area form .single-input label { display: block; }
.wpr-contact-area .section-inner .contact-form-area form .single-input { margin-bottom: 26px; }
.wpr-contact-area .section-inner .contact-form-area form .form-btn-area { margin-top: 30px; }
.wpr-contact-area .contact-form-area .form-title { color: #F9FAFB; font-size: 24px; text-transform: none; margin-bottom: 6px; font-weight: 600; }
.wpr-contact-area .contact-form-area .form-sub { color: rgba(249, 250, 251, .6); font-size: 14px; margin-bottom: 30px; }
.ttm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ttm-consent { display: flex; gap: 10px; align-items: flex-start; color: rgba(249, 250, 251, .7); font-size: 13px; line-height: 1.6; cursor: pointer; }
.ttm-consent input { opacity: 1 !important; position: static !important; appearance: auto; -webkit-appearance: checkbox; width: 16px !important; height: 16px !important; margin-top: 3px; accent-color: var(--color-primary); flex-shrink: 0; }
.ttm-invalid { border-bottom-color: #FF5A5F !important; }
.ttm-consent input.ttm-invalid { outline: 2px solid #FF5A5F; }
.form-messages { display: none; margin-top: 20px; padding: 14px 16px; font-size: 15px; line-height: 1.7; }
.form-messages.success { display: block; background: rgba(152, 255, 3, .1); color: #CFFF8A; border: 1px solid rgba(152, 255, 3, .45); }
.form-messages.error { display: block; background: rgba(255, 90, 95, .1); color: #FFB3B5; border: 1px solid rgba(255, 90, 95, .45); }
.wpr-contact-area .wpr-btn[disabled] { opacity: .6; cursor: wait; }
.wpr-contact-area .section-inner .left-content-area .get-in-touch ul li a { font-size: clamp(22px, 2.6vw, 36px); word-break: break-all; }
.ttm-hours { color: rgba(249, 250, 251, .6); font-size: 14px; margin-top: 10px; }

/* ---------- footer extras ---------- */
.ttm-footer-info { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--color-border); }
.ttm-footer-info > div { padding: 30px 40px; border-right: 1px solid var(--color-border); font-size: 15px; line-height: 1.8; }
.ttm-footer-info > div:last-child { border-right: 0; }
.ttm-footer-info strong { display: block; color: var(--color-heading-1); font-size: 13px; letter-spacing: .08em; margin-bottom: 6px; }
.ttm-footer-info a { color: var(--color-heading-1); }

/* ---------- WhatsApp float ---------- */
.ttm-wa-float { position: fixed; right: 12px; bottom: 92px; z-index: 998; width: 58px; height: 58px; border-radius: 50%; background: var(--ttm-wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0, 0, 0, .2); transition: transform .3s; }
.ttm-wa-float:hover { transform: scale(1.08); }
.ttm-wa-float svg { width: 30px; height: 30px; fill: #fff; }
.ttm-btn-wa { background: var(--ttm-wa) !important; color: #fff !important; border-color: var(--ttm-wa) !important; }

/* ---------- landing pages ---------- */
.ttm-lp-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 99; }
.ttm-lp-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.ttm-lp-header .actions { display: flex; gap: 10px; align-items: center; }
.ttm-lp-header .wpr-btn { padding: 12px 18px; font-size: 15px; }
.ttm-lp-hero .section-inner { align-items: stretch !important; }
.ttm-lp-hero .left-content-area { justify-content: center; padding: 60px 0; gap: 26px !important; }
.ttm-lp-hero .badge-line { display: inline-block; align-self: flex-start; background: var(--color-primary); color: #030712; font-weight: 600; font-size: 14px; padding: 6px 12px; }
.ttm-lp-hero h1 { color: #F9FAFB; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.2; margin: 0; text-transform: none; font-weight: 600; }
.ttm-lp-hero h1 span { color: var(--color-primary); }
.ttm-lp-hero .lead { color: rgba(249, 250, 251, .75); font-size: 18px; line-height: 1.8; margin: 0; }
.ttm-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ttm-checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 0; color: #F9FAFB; font-size: 16px; line-height: 1.6; }
.ttm-checks li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; background: var(--color-primary); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.ttm-checks.dark li { color: var(--color-heading-1); }
.ttm-trust { display: flex; gap: 28px; flex-wrap: wrap; color: rgba(249, 250, 251, .6); font-size: 14px; }
.ttm-trust b { display: block; color: #F9FAFB; font-size: 26px; font-family: var(--font-secondary); }
.ttm-price-tag { font-family: var(--font-secondary); font-size: clamp(36px, 4vw, 54px); font-weight: 700; color: var(--color-heading-1); line-height: 1; }
.ttm-price-tag small { font-size: 16px; font-weight: 500; color: var(--color-body-1); }
.ttm-offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--color-border); margin-top: 50px; }
.ttm-offer > div { padding: 44px; }
.ttm-offer > div + div { background: #030712; color: #D1D5DB; }
.ttm-offer > div + div h3 { color: #F9FAFB; text-transform: none; }
.ttm-offer .ttm-price-tag { color: #F9FAFB; margin: 16px 0 10px; }
.ttm-offer .ttm-price-tag small { color: #9CA3AF; }
.ttm-offer .note { font-size: 13px; color: #9CA3AF; margin: 14px 0 0; }
.ttm-mobile-cta { display: none; }
.ttm-lp-footer { padding: 30px 0 40px; text-align: center; font-size: 13px; color: var(--color-body-1); }
.ttm-lp-footer a { color: var(--color-heading-1); text-decoration: underline; }

/* ---------- responsive ---------- */
@media only screen and (max-width: 1199px) {
  .ttm-cards { grid-template-columns: repeat(2, 1fr); }
  .ttm-offer { grid-template-columns: 1fr; }
}
@media only screen and (max-width: 991px) {
  .ttm-pad { padding: 60px 30px; }
  .ttm-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .ttm-sidebar { position: static; margin-top: 50px; }
  .ttm-footer-info { grid-template-columns: 1fr; }
  .ttm-footer-info > div { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .wpr-contact-area .section-inner { flex-direction: column; align-items: stretch !important; }
  .wpr-contact-area .section-inner .left-content-area { margin: 0; padding: 50px 30px; max-width: 100%; }
  .wpr-contact-area .section-inner .contact-form-area { max-width: 100%; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); padding: 40px 30px; }
}
@media only screen and (max-width: 767px) {
  .ttm-pad { padding: 44px 18px; }
  .ttm-cards, .ttm-cards.cols-3 { grid-template-columns: 1fr; }
  .ttm-blog-grid { grid-template-columns: 1fr; }
  .ttm-post-card.featured { grid-column: auto; }
  .ttm-post-card.featured h2 { font-size: 21px; }
  .ttm-row-2 { grid-template-columns: 1fr; }
  .ttm-offer > div { padding: 30px 20px; }
  .ttm-cta-band { padding: 26px 20px; }
  .ttm-lp-header .hide-sm { display: none; }
  .ttm-lp-hero .left-content-area { padding: 40px 18px; }
  .wpr-contact-area .section-inner .left-content-area { padding: 40px 18px; gap: 40px; }
  .wpr-contact-area .section-inner .left-content-area .get-in-touch,
  .wpr-contact-area .section-inner .left-content-area .location-area { flex-direction: column; gap: 18px; }
  .wpr-contact-area .section-inner .contact-form-area { padding: 36px 18px; }
  .ttm-mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #030712; padding: 10px; gap: 10px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
  .ttm-mobile-cta a { flex: 1; text-align: center; padding: 14px 10px; font-weight: 600; font-size: 15px; }
  .ttm-mobile-cta .go { background: var(--color-primary); color: #030712; }
  .ttm-mobile-cta .wa { background: var(--ttm-wa); color: #fff; }
  body.ttm-lp { padding-bottom: 70px; }
  body.ttm-lp .ttm-wa-float, body.ttm-lp #goTop { display: none; }
  .ttm-article h2 { font-size: 23px; }
}

/* service card big number: theme styles `.mid h2`; we use a <p class="h2"> to keep the heading outline clean */
.service-wrapper .mid .h2 { font-size: 200px; line-height: 1; color: rgba(3, 7, 18, 0.1); margin-bottom: 0; transition: var(--transition); }
.service-wrapper:hover .mid .h2 { color: rgba(249, 250, 251, 0.8); }

/* service detail: theme lets the image squeeze the approach list */
.services-details-banner .service-overview .approach-area > div { flex: 1 1 50%; max-width: none !important; }
.services-details-banner .service-overview .approach-area .left h3 { margin-bottom: 24px; }
.services-details-banner .service-overview .approach-area .right img { width: 100%; }
@media only screen and (max-width: 767px) {
  .services-details-banner .section-inner { padding: 24px 16px; }
  .services-details-banner .service-overview .approach-area,
  .services-details-banner .service-overview .feature-wrapper-area { flex-direction: column; }
}
.wpr-banner-area.breadcrumb .banner-content-area .desc { max-width: 760px; padding: 0 16px; }
.wpr-banner-area.breadcrumb .banner-content-area .section-title.ttm-h1-sm { text-transform: none; }
