/*
Theme Name: BiFluence V2
Theme URI: https://bifluence.com/
Author: BiFluence
Author URI: https://bifluence.com/
Description: A custom, lightweight WordPress theme for BiFluence — professional blogger outreach and quality-focused link building for SEO agencies, digital marketers and growing businesses. Built from scratch for the V2 design direction. No page-builder dependency.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bifluence-v2
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --navy: #0B1220;
  --navy-2: #111C32;
  --blue: #526BFF;
  --blue-light: #EAF0FF;
  --white: #FFFFFF;
  --bg-light: #F7F9FC;
  --text: #344054;
  --text-muted: #667085;
  --border: #E4E7EC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-headings: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; font-family: var(--font-headings); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%); border-bottom: 1px solid rgba(11, 18, 32, .05); }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; }
.section-dark .lead { color: #C6D0E0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 600;
  font-family: var(--font-headings);
  font-size: 1rem; border: 2px solid transparent; cursor: pointer; text-align: center;
  line-height: 1.3; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(82, 107, 255, .35); }
.btn-primary:hover { background: #4258e0; }
.btn-outline { border-color: var(--border); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-light { background: var(--blue-light); color: var(--navy); }

/* Header */
.site-header {
  position: relative; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-logo img { display: block; height: 44px; width: auto; }
.site-logo .custom-logo { height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 13px; color: var(--navy); font-weight: 600;
  font-family: var(--font-headings);
  font-size: .95rem; border-radius: 8px;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; background: var(--blue-light); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a::after {
  content: "\25BE"; font-size: .7em; margin-left: 6px; color: var(--blue);
}
.main-nav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 260px; z-index: 100;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 0;
  text-align: left; align-items: stretch;
}
.main-nav .sub-menu li { width: 100%; }
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 10px 12px; display: block; width: 100%; }
.main-nav .sub-menu .menu-item-has-children { position: relative; }
/* Second-level submenu flies out to the right on desktop, not below its parent. */
.main-nav .sub-menu .sub-menu { left: 100%; top: 0; }
.main-nav .sub-menu .menu-item-has-children:hover > .sub-menu,
.main-nav .sub-menu .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.header-cta { margin-left: 8px; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 1rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #8FA3FF; }
.hero p.lead { color: #C6D0E0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; min-height: 340px; }
.hero-visual canvas { width: 100%; height: 340px; display: block; border-radius: var(--radius); }
.publisher-card {
  position: absolute; background: #111C32; border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: 12px 16px; color: #fff;
  font-size: .85rem; box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.publisher-card strong { display: block; font-size: .95rem; font-weight: 700; color: #fff; }
.publisher-card span { color: #C6D0E0; }
.pc-1 { top: 12px; left: 6%; }
.pc-2 { top: 38%; right: 2%; }
.pc-3 { bottom: 10px; left: 22%; }

/* Trust */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-list li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; font-weight: 600; color: var(--navy);
}
.trust-list li span { display: block; font-weight: 400; color: var(--text-muted); font-size: .95rem; margin-top: 4px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 2px 8px rgba(11,18,32,.04);
}
.card .card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card .card-link { font-weight: 700; }
.card .card-cta { margin-top: 16px; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
/* One visual per step (v1.0.6): a 64px gradient circle with a white icon, and
   the step number as a small badge on the circle's top-right corner. */
.step-visual { position: relative; display: inline-flex; width: 64px; height: 64px; margin-bottom: 18px; }
.step-visual .step-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #526BFF 0%, #8FA3FF 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(82, 107, 255, .45), 0 0 0 6px rgba(82, 107, 255, .15);
}
.step-visual .step-num {
  position: absolute; top: -6px; right: -8px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(11, 18, 32, .25); z-index: 2;
}
.step-label { color: var(--blue); font-family: var(--font-headings); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.process-step p { color: var(--text-muted); font-size: .96rem; }

/* Quality checks */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.check-grid li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.check-grid li strong { color: var(--navy); display: block; }
.check-grid li span { color: var(--text-muted); font-size: .95rem; }
.note-box {
  margin-top: 24px; background: var(--blue-light); border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 16px 20px; color: var(--navy);
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq-item[open ] summary::after { content: "\2013"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--text-muted); }

/* CTA + footer */
.final-cta { background: var(--blue); color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #DCE4FF; max-width: 640px; margin: 0 auto 24px; }
.site-footer { background: var(--navy); color: #C6D0E0; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C6D0E0; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 44px; width: auto; display: block; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Content pages */
.page-content { padding: 56px 0 72px; }
.page-content article { max-width: 820px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-card img { width: 100%; height: 220px; object-fit: cover; object-position: center top; display: block; }
.post-card .post-body { padding: 22px; }
.cat-chip a {
  display: inline-block; background: var(--blue-light); color: var(--navy);
  font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px;
  margin-right: 4px; line-height: 1.5;
}
.cat-chip a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.breadcrumbs { padding: 16px 0 0; font-size: .92rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--blue); }
.post-meta { color: var(--text-muted); font-size: .88rem; margin-bottom: 8px; }
.post-card h2, .post-card h3 { font-size: 1.15rem; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 20px 0; }
.search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.search-form input[type="search"]:focus { border-color: var(--blue); outline: 3px solid rgba(82,107,255,.25); outline-offset: 0; }
.search-form button, .search-form input[type="submit"] {
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; background: var(--blue);
  color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.search-form button:hover, .search-form input[type="submit"]:hover { background: #4258e0; }
/* Forms: contact form, quote form and comment form share these styles. */
.contact-form, #quote-form { margin-top: 24px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.form-field input, .form-field select, .form-field textarea,
#quote-form input, #quote-form select, #quote-form textarea,
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.form-field textarea, #quote-form textarea, .contact-form textarea { min-height: 140px; resize: vertical; }
.form-field input[type="radio"], .form-field input[type="checkbox"],
#quote-form input[type="radio"], #quote-form input[type="checkbox"],
#quote-form input[type="file"] { width: auto; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
#quote-form input:focus, #quote-form select:focus, #quote-form textarea:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--blue); outline: 3px solid rgba(82,107,255,.25); outline-offset: 0;
}
.note-error { border-left-color: #D92D20 !important; background: #FEF3F2; }
/* 404 */
.error-hero { text-align: center; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; color: var(--blue); margin: 0 0 8px; letter-spacing: -0.03em; }
.popular-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.popular-pages li { background: var(--bg-light); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.popular-pages a { font-weight: 700; color: var(--navy); }
.popular-pages a:hover { color: var(--blue); }
.comments-area { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; margin-bottom: 12px; }
.wp-block-image img, .page-content img { border-radius: 12px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Case studies placeholder */
.empty-state { background: var(--bg-light); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub-menu { position: static; display: none; border: none; box-shadow: none; padding-left: 16px; min-width: 0; }
  .main-nav .menu-item-has-children.open > .sub-menu { display: flex; }
  .main-nav .sub-menu .sub-menu { left: auto; top: auto; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .card-grid, .card-grid.two, .process-steps, .trust-list, .check-grid, .post-list, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; }
  .hero-visual canvas { height: 280px; }
  .final-cta { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- v1.0.4: breadcrumbs ---- */
.breadcrumbs-strip { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumbs-strip .breadcrumbs { padding: 12px 0; }
.breadcrumbs { padding: 16px 0 0; font-size: .92rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs .crumb-current { color: var(--navy); font-weight: 600; }
.breadcrumbs--hero { padding: 0 0 22px; font-size: .92rem; color: #AEBBD6; }
.breadcrumbs--hero a { color: #8FA3FF; }
.breadcrumbs--hero a:hover { color: #fff; }
.breadcrumbs--hero .crumb-current { color: #fff; font-weight: 600; }

/* ---- v1.0.4: card images ---- */
.card { overflow: hidden; }
.card-img { margin: -28px -24px 20px; }
.card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 0; }

/* ---- v1.0.4: service page image ---- */
.service-hero-img { margin: 0 0 32px; }
.service-hero-img img { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: var(--radius); }
.service-hero-img figcaption { font-size: .88rem; color: var(--text-muted); margin-top: 8px; }

/* ---- v1.0.4: two-column image + text ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { width: 100%; height: 380px; object-fit: cover; display: block; border-radius: var(--radius); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 24px; } .split img { height: 260px; } }

/* ---- v1.0.6: team slider — portrait photos, 3 per view ---- */
.team-slider { position: relative; max-width: 1180px; margin: 0 auto; }
.team-viewport { overflow: hidden; border-radius: var(--radius); padding: 4px 2px 20px; }
.team-track { display: flex; gap: 24px; transition: transform .35s ease; }
.team-track > .team-slide:only-child { flex: 0 0 100%; }
.team-slide { flex: 0 0 calc((100% - 48px) / 3); background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-align: left; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(11, 18, 32, .08); }
.team-slide img.team-photo { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top; display: block; }
.team-slide-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.team-slide-body h3 { margin-bottom: 2px; font-weight: 700; }
.team-slide-body > p:not(.team-role) { color: var(--text-muted); }
.team-slide-body .team-role { color: var(--blue); font-family: var(--font-headings); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.team-slide-body p:last-child { margin-bottom: 0; }
.team-placeholder { padding: 40px 32px; text-align: center; }
.team-slider--static .team-track { justify-content: center; }
@media (max-width: 960px) { .team-slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .team-slide { flex-basis: 100%; } .team-track { gap: 16px; } }
.team-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.team-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.team-arrow:hover { border-color: var(--blue); color: var(--blue); }
.team-dots { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.team-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border); padding: 0; cursor: pointer; }
.team-dots button[aria-current="true"] { background: var(--blue); }

/* ---- v1.0.4: case study filter chips ---- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.filter-chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .92rem; background: #fff; }
.filter-chips a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.filter-chips a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .95rem; color: var(--text-muted); }
.case-meta strong { color: var(--navy); }
.case-section { margin-bottom: 32px; }
.case-section h2 { font-size: 1.4rem; }

/* ---- v1.0.4: card animations (hover lift, image zoom, scroll reveal) ---- */
.card, .post-card, .process-step, .team-slide {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before, .post-card::before, .process-step::before, .team-slide::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); opacity: 0; transition: opacity .3s ease; z-index: 2;
}
.card:hover, .post-card:hover, .process-step:hover, .team-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.2);
}
.card:hover::before, .post-card:hover::before, .process-step:hover::before, .team-slide:hover::before { opacity: 1; }
.process-step { overflow: hidden; }
.card-img { overflow: hidden; }
.card-img img, .post-card img, .team-slide img { transition: transform .3s ease; }
.card:hover .card-img img, .post-card:hover img, .team-slide:hover img { transform: scale(1.05); }
/* Scroll reveal — .reveal is added by JS only, so content stays visible without JS. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .card, .post-card, .process-step, .team-slide, .card-img img, .post-card img, .team-slide img, .reveal { transition: none; }
  .card:hover, .post-card:hover, .process-step:hover, .team-slide:hover { transform: none; box-shadow: none; }
  .card:hover .card-img img, .post-card:hover img, .team-slide:hover img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- v1.0.6: layered drop shadow on section/card images ---- */
.split img, .why-media img, .quality-media img, .service-hero-img img,
.page-content img, .hero-photo,
.service-hero-visual, .related-visual, .case-visual {
  box-shadow: 0 20px 50px rgba(11, 18, 32, .18), 0 4px 12px rgba(11, 18, 32, .08);
}
/* Images inside overflow-hidden cards cannot show their own shadow, so the
   layered shadow sits on the card itself instead. */
.card, .post-card {
  box-shadow: 0 20px 50px rgba(11, 18, 32, .12), 0 4px 12px rgba(11, 18, 32, .06);
}

/* ---- v1.0.4: Why Work With BiFluence (two-column, image left) ---- */
.why-section .split { align-items: start; }
.why-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; border-radius: var(--radius); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: transform .3s ease, box-shadow .3s ease; }
.why-item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11, 18, 32, 0.12); }
.why-num { font-size: 1.5rem; font-weight: 800; color: var(--blue); line-height: 1.1; min-width: 36px; }
.why-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.why-item h3 { margin-bottom: 4px; font-size: 1.1rem; }
.why-item p { margin: 0; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 960px) { .why-media img { min-height: 240px; } }
@media (prefers-reduced-motion: reduce) { .why-item { transition: none; } .why-item:hover { transform: none; box-shadow: none; } }

/* ---- v1.0.5: defensive — a white card inside a dark section must never inherit white headings ----
   (v1.0.4 bug: .section-dark h3 { color:#fff } made white-card titles invisible.) */
.section-dark .card h1, .section-dark .card h2, .section-dark .card h3 { color: var(--navy); }
.section-dark .card p { color: var(--text-muted); }
.section-dark .card .card-link { color: var(--blue); }
.process-section .process-step h3 { color: var(--navy); }
.process-section .process-step p { color: var(--text-muted); }

/* ---- v1.0.5: "A Quality-Focused Link Building Partner" — side image + list, no white cards ----
   Titles are white here because they sit directly on the dark background
   (explicit rules below, plus the .section-dark h3 rule, both guarantee it). */
.why-bifluence { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.why-bifluence .eyebrow { color: #8FA3FF; }
.why-bifluence h2 { color: #fff; }
.why-bifluence .lead { color: #C6D0E0; }
.quality-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.quality-media img { width: 100%; height: 480px; object-fit: cover; display: block; border-radius: var(--radius); }
.quality-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.quality-item { display: flex; gap: 18px; align-items: flex-start; }
.quality-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.quality-item h3 { color: #fff; margin-bottom: 6px; }
.quality-item p { color: #C6D0E0; margin: 0; }
@media (max-width: 960px) { .quality-split { grid-template-columns: 1fr; gap: 28px; } .quality-media img { height: 280px; } }

/* ---- v1.0.4: "Our Services" — light-blue gradient, equal-height cards, pinned buttons ---- */
/* ---- v1.0.6: services section — dark navy, white cards ---- */
.services-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); position: relative; overflow: hidden; }
.services-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.services-section .container { position: relative; z-index: 1; }
.services-section h2 { color: #fff; }
.services-section .lead { color: #C6D0E0; }
.services-section .eyebrow { color: #8FA3FF; }
.services-section .card { display: flex; flex-direction: column; padding: 0 0 24px; }
.services-section .card-img { margin: 0 0 34px; overflow: visible; position: relative; }
.services-section .card-img img { height: 200px; }
.services-section .card h3 { font-weight: 700; padding: 0 24px; margin-bottom: 8px; }
.services-section .card p { padding: 0 24px; }
.service-num { position: absolute; top: 14px; right: 14px; font-family: var(--font-headings); font-weight: 700; font-size: .85rem; color: #fff; background: rgba(11, 18, 32, .55); border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 4px 10px; }
.service-badge { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(82, 107, 255, .45); border: 3px solid #fff; }
.service-features { list-style: none; margin: 0 0 18px; padding: 0 24px; display: grid; gap: 8px; }
.service-features li { position: relative; padding-left: 26px; color: var(--text); font-size: .95rem; line-height: 1.45; }
.service-features li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.services-section .card-footer { margin-top: auto; padding: 18px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); }
.services-section .card-footer .btn { padding: 10px 18px; font-size: .95rem; white-space: nowrap; }

/* ---- v1.0.6: layered inner-page hero backgrounds ---- */
.section-dark { background: linear-gradient(120deg, #0B1220 0%, #111C32 55%, #16224A 100%); }
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-hero-glow { position: absolute; top: -140px; right: -60px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 107, 255, .45), transparent 65%); filter: blur(8px); pointer-events: none; z-index: 0; }
.page-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; z-index: 0; }
.page-hero-mark { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 220px; height: 220px; color: rgba(255, 255, 255, .07); pointer-events: none; z-index: 0; }
.page-hero-mark svg { width: 100%; height: 100%; }
.page-hero-inner { position: relative; z-index: 2; }
@media (max-width: 960px) { .page-hero-mark { display: none; } }

/* ---- v1.0.6: homepage counters band ---- */
.stats-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 8px 32px; position: relative; }
.stat-item.stat-hidden { opacity: 0; transform: translateY(12px); }
.stat-item.animate { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.stat-item + .stat-item::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(255, 255, 255, .15); }
.stat-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: rgba(82, 107, 255, .18); color: #8FA3FF; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat-number { display: block; font-family: var(--font-headings); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; color: #fff; }
.stat-number.done { animation: stat-pop .35s ease; }
@keyframes stat-pop { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }
.stat-suffix { opacity: 0; transition: opacity .4s ease; }
.stat-number.done .stat-suffix { opacity: 1; }
.stat-bar { display: block; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 999px; margin: 14px auto 12px; max-width: 180px; overflow: hidden; }
.stat-fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; }
.stat-label { display: block; color: #C6D0E0; font-size: 1rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; gap: 32px; } .stat-item + .stat-item::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .stat-item.stat-hidden { opacity: 1; transform: none; }
  .stat-item.animate { transition: none; }
  .stat-number.done { animation: none; }
  .stat-suffix { opacity: 1; }
}

/* ---- v1.0.6: infinite scroll (blog / archives) ---- */
#infinite-scroll-sentinel { min-height: 1px; }
.infinite-loading, .infinite-end { text-align: center; color: var(--text-muted); margin: 24px 0; }

/* ---- v1.0.4: "Our Process" — dark navy connected flow ---- */
.process-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.process-section h2 { color: #fff; }
.process-section .lead { color: #C6D0E0; }
.process-section .process-steps { position: relative; }
.process-section .process-steps::before {
  content: ""; position: absolute; top: 54px; left: 12.5%; right: 12.5%; height: 3px; z-index: 0;
  background: linear-gradient(90deg, var(--blue), #8FA3FF);
}
.process-section .process-step { display: flex; flex-direction: column; padding: 22px; z-index: 1; background: #fff; border: 1px solid var(--border); }
.process-section .process-step::before { opacity: 1; }
.process-section .process-step p { margin-bottom: 0; }
@media (max-width: 960px) { .process-section .process-steps::before { display: none; } }

/* ---- v1.0.4: hero visual — team photo, glow, dense link-graph layer ---- */
.hero { position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-visual { position: relative; min-height: 380px; }
.hero-glow {
  position: absolute; inset: -28px -20px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 70% 25%, rgba(82,107,255,.5), transparent 70%),
    radial-gradient(50% 50% at 15% 85%, rgba(82,107,255,.28), transparent 70%);
  filter: blur(6px);
}
.hero-photo { position: relative; z-index: 1; width: 100%; height: 380px; object-fit: cover; display: block; border-radius: var(--radius); }
.hero-visual .publisher-card { z-index: 2; }
@media (max-width: 960px) {
  .hero-visual { min-height: 280px; }
  .hero-photo { height: 280px; }
}

/* v1.0.5 — designed CSS visuals (gradient + icon) used wherever a photo
   would repeat. One photo, one place: these replace photos on service page
   tops, related-service cards and case studies without their own image. */
.service-hero-visual {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, #16244a 55%, var(--blue) 130%);
  border-radius: var(--radius); padding: 28px 30px; margin: 0 0 28px; color: #fff;
}
.service-hero-visual .service-hero-icon {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.service-hero-visual p { margin: 0; font-family: var(--font-headings); font-weight: 600; font-size: 1.15rem; line-height: 1.4; color: #fff; }

.related-visual {
  display: flex; align-items: center; justify-content: center;
  height: 140px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--navy) 0%, #16244a 55%, var(--blue) 130%);
  color: #fff; margin: -28px -24px 20px;
}
.related-visual svg { opacity: .95; }

.case-visual {
  display: flex; align-items: center; justify-content: center;
  height: 220px; background: linear-gradient(135deg, var(--navy) 0%, #16244a 55%, var(--blue) 130%);
  color: #fff;
}

/* v1.0.5 — homepage team preview: real team members only, shown when
   team_member posts exist; nothing renders when there are none. */
/* ---- v1.0.8: homepage team preview — small circular avatars ---- */
.team-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin: 22px 0 6px; }
.team-preview-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.team-preview-item img.team-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; object-position: center top; display: block; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(11, 18, 32, .14); }
.team-preview-body { padding: 0; min-width: 0; }
.team-preview-item strong { display: block; color: var(--navy); font-family: var(--font-headings); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.team-preview-role { display: block; color: var(--blue); font-family: var(--font-headings); font-weight: 600; font-size: .82rem; line-height: 1.35; margin-top: 2px; }
@media (max-width: 600px) { .team-preview { grid-template-columns: 1fr; } }

/* ---- v1.0.7: single blog post redesign ---- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 200; pointer-events: none; }
.reading-progress-fill { display: block; height: 100%; width: 0; background: var(--blue); }
@media (prefers-reduced-motion: reduce) { .reading-progress { display: none; } }

/* Dark hero (reuses the v1.0.6 layered background: gradient + dot pattern +
   glow + link-graph canvas + faint mark) with category chip, Sora title
   and a date / author / reading-time meta row. */
.single-hero { padding: 56px 0 96px; }
.single-hero h1 { max-width: 860px; }
.single-cats { margin: 0 0 18px; }
.single-meta { color: #C6D0E0; font-size: .98rem; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.single-meta-sep { color: #8FA3FF; }

/* Featured image below the hero, overlapping its bottom edge. */
.single-featured { margin: -64px auto 0; position: relative; z-index: 2; }
.single-featured img { width: 100%; height: 520px; object-fit: cover; display: block; border-radius: 16px; box-shadow: 0 20px 50px rgba(11, 18, 32, .18), 0 4px 12px rgba(11, 18, 32, .08); }
@media (max-width: 960px) { .single-featured img { height: 320px; } }
@media (max-width: 600px) { .single-featured { margin-top: -48px; } .single-featured img { height: 220px; } }

/* Article typography — comfortable reading width, generous line-height. */
.single-article { padding-top: 48px; }
.single-article .article-body { max-width: 760px; margin: 0 auto; font-size: 1.06rem; line-height: 1.8; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-headings); font-weight: 800; font-size: 3.4em;
  line-height: .85; float: left; margin: 6px 12px 0 0; color: var(--blue);
}
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #4258e0; }
.article-body blockquote {
  margin: 28px 0; padding: 20px 24px; background: var(--blue-light);
  border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0;
  color: var(--navy); font-size: 1.1rem; line-height: 1.7;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 24px; }
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 8px; margin-bottom: 8px; }
.article-body ul li::before {
  content: ""; position: absolute; left: -16px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.article-body ol li { margin-bottom: 8px; padding-left: 4px; }
.article-body ol li::marker { color: var(--blue); font-weight: 700; font-family: var(--font-headings); }
.article-body figure { margin: 28px 0; }

/* Vetting / context box — light-blue card with a shield icon. */
.note-box--article { display: flex; gap: 14px; align-items: flex-start; margin: 32px 0; }
.note-box--article .note-box-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
}
.note-box--article strong { display: block; margin-bottom: 4px; }
.note-box--article p { margin: 0; color: var(--text); }

/* Tags as chips. */
.post-tags { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags-label { font-weight: 700; color: var(--navy); margin-right: 4px; }
.post-tags a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 999px; color: var(--navy); font-size: .9rem; font-weight: 600;
  background: #fff; text-decoration: none;
}
.post-tags a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Author box — initials avatar, name, short role line. */
.author-box {
  max-width: 760px; margin: 40px auto 0; display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-light); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
}
.author-avatar {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-headings);
  font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.author-role { color: var(--blue); font-family: var(--font-headings); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.author-name { font-size: 1.3rem; margin-bottom: 6px; }
.author-box-body p:last-child { margin-bottom: 0; color: var(--text-muted); }
@media (max-width: 600px) { .author-box { flex-direction: column; } }

/* Share row. */
.share-row { max-width: 760px; margin: 28px auto 0; display: flex; gap: 10px; align-items: center; }
.share-label { font-weight: 700; color: var(--navy); margin-right: 6px; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.share-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Related posts + previous / next navigation. */
.related-posts .section-head { margin-bottom: 28px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px 20px 56px; }
.post-nav-link {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; color: var(--navy);
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-nav-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 18, 32, .12); }
.post-nav-link strong { display: block; margin-top: 4px; font-family: var(--font-headings); line-height: 1.35; }
.post-nav-label { color: var(--blue); font-weight: 700; font-size: .88rem; }
.post-nav-next { text-align: right; }
.post-nav-link.post-nav-next:first-child { grid-column: 2; }
.single-comments { padding-bottom: 40px; }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-link.post-nav-next:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .post-nav-link { transition: none; }
  .post-nav-link:hover { transform: none; box-shadow: none; }
}
