/* ===== Extra styles for the CMS-driven version ===== */

/* form feedback */
.form-status { min-height: 20px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2, #555); }
.form-status.ok { color: #12A36B; }
.form-status.err { color: #E5484D; }
.form-submit[disabled], .news-btn[disabled] { opacity: .6; pointer-events: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* team grid: column count follows number of members (desktop only) */
@media (min-width: 1101px) {
  .team-grid { grid-template-columns: repeat(var(--team-cols, 6), 1fr); }
}
/* tooltip side is decided by the server (first half → right, second half → left) */
.team-grid .team-card.tip-right .team-detail { left: calc(100% + 20px); right: auto; transform: translateX(-14px) scale(0.96); }
.team-grid .team-card.tip-right .team-detail::before { left: -6px; right: auto; box-shadow: -1px 1px 0 -0.5px rgba(10,10,20,0.06); }
.team-grid .team-card.tip-left .team-detail { right: calc(100% + 20px); left: auto; transform: translateX(14px) scale(0.96); }
.team-grid .team-card.tip-left .team-detail::before { right: -6px; left: auto; box-shadow: 1px -1px 0 -0.5px rgba(10,10,20,0.06); }
.team-grid .team-card:hover .team-detail { transform: translateX(0) scale(1); }

/* stats rows for any count */
.stats-row-1 { grid-template-columns: 1fr; width: 33.33%; margin: 0 auto; }
.stats-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .stats-row-1, .stats-row-4 { grid-template-columns: 1fr; width: 100%; } }

/* testimonial brand logo backgrounds */
.testi-brand-logo.bg-purple { background: linear-gradient(135deg, #7C5CFF, #FF5CB0); }
.testi-brand-logo.bg-sky { background: linear-gradient(135deg, #4CD7FF, #0028F9); }
.testi-brand-logo.bg-sun { background: linear-gradient(135deg, #FFDB3B, #FB923C); }
.testi-brand-logo.bg-green { background: linear-gradient(135deg, #4ADE80, #14B8A6); }
.testi-brand-logo.bg-white { background: #FFFFFF; }
.testi-brand-logo.bg-dark { background: #0A1533; }

/* testimonials accent is yellow */
.testimonials .section-title .brand-accent { color: var(--yellow); }

/* case study + icon colour presets */
.c-blue   { background: linear-gradient(135deg, var(--brand) 0%, #1E3AFF 100%); }
.c-indigo { background: linear-gradient(135deg, var(--brand) 0%, #4360FF 100%); }
.c-pink   { background: linear-gradient(135deg, #FF8AB4 0%, #FF6A5C 100%); }
.c-dark   { background: linear-gradient(135deg, #0A1533 0%, #1a2550 100%); }
.c-sun    { background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%); color: var(--ink-0); }
.c-sky    { background: linear-gradient(135deg, #4CD7FF 0%, #0028F9 100%); }
.c-mint   { background: linear-gradient(135deg, #26D9A0 0%, #14B8A6 100%); }
.c-lavender { background: linear-gradient(135deg, var(--lavender) 0%, var(--brand) 100%); }
.what-ic.i-blue { background: linear-gradient(135deg, var(--brand), #4360FF); }
.what-ic.i-pink { background: linear-gradient(135deg, var(--pink), var(--coral)); }
.what-ic.i-mint { background: linear-gradient(135deg, #26D9A0, #14B8A6); }
.what-ic.i-sun  { background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.what-ic.i-lavender { background: linear-gradient(135deg, var(--lavender), var(--brand)); }
.what-ic.i-sky { background: linear-gradient(135deg, var(--sky), var(--brand)); }

/* blog cover images */
.post-img.has-cover, .featured-img.has-cover { background-size: cover !important; background-position: center !important; }
a.post-card, a.featured-card { color: inherit; text-decoration: none; display: block; }
a.featured-card { display: grid; }
.posts-empty { text-align: center; padding: 40px 0; color: var(--ink-2, #666); }

/* ===== blog detail ===== */
.article-hero { padding: 150px 24px 40px; }
.article-hero-inner { max-width: 820px; margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2, #555); text-decoration: none; margin-bottom: 28px; }
.article-back:hover { color: var(--brand); }
.article-back svg { width: 16px; height: 16px; }
.article-cat { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(0,40,249,0.08); color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; margin-bottom: 18px; }
.article-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 20px; }
.article-excerpt { font-size: 19px; line-height: 1.6; color: var(--ink-2, #555); margin-bottom: 28px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2, #555); flex-wrap: wrap; }
.article-meta .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; background: linear-gradient(135deg, var(--brand), var(--pink)); background-size: cover; background-position: center; }
.article-meta strong { color: var(--ink-0); }
.article-cover { max-width: 1100px; margin: 0 auto 56px; padding: 0 24px; }
.article-cover-img { aspect-ratio: 16/8; border-radius: 28px; background: linear-gradient(135deg, var(--brand) 0%, #4360FF 50%, var(--pink) 100%); background-size: cover; background-position: center; }
.article-body { max-width: 720px; margin: 0 auto; padding: 0 24px 80px; font-size: 18px; line-height: 1.75; color: var(--ink-1, #222); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin-top: 1.8em; color: var(--ink-0); }
.article-body h3 { font-size: 22px; font-weight: 800; margin-top: 1.5em; color: var(--ink-0); }
.article-body a { color: var(--brand); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .4em; }
.article-body img { max-width: 100%; height: auto; border-radius: 18px; }
.article-body blockquote { border-left: 4px solid var(--brand); padding: 6px 0 6px 22px; font-size: 20px; font-weight: 600; color: var(--ink-0); }
.article-body pre { background: #0A1533; color: #fff; padding: 18px; border-radius: 14px; overflow: auto; font-size: 14px; }
.article-body hr { border: 0; height: 1px; background: rgba(10,10,20,.1); margin: 2em 0; }
.article-related { padding: 0 24px 100px; }
.article-related-inner { max-width: 1200px; margin: 0 auto; }
.article-related h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 26px; }

/* ===== 404 ===== */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 80px; }
.nf h1 { font-size: clamp(80px, 14vw, 160px); font-weight: 900; letter-spacing: -0.05em; color: var(--brand); line-height: 1; }
.nf p { font-size: 18px; color: var(--ink-2, #555); margin: 16px 0 28px; }
.nf a { display: inline-flex; padding: 14px 26px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.newsletter .form-status { color: rgba(255,255,255,.85); }
.newsletter .form-status.ok { color: #4ADE80; }
.newsletter .form-status.err { color: #FF8A8A; }
