/* ==========================================================================
   BUSINESS TACTS INTERNATIONAL (BTI) — FLAGSHIP v3 KNOWLEDGE BASE & BLOG THEME
   ARCHITECTURAL CLINICAL ENTERPRISE STANDARD
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  /* Surface & Background Hierarchy */
  --bg-pure: #ffffff;
  --bg-cleanroom: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);

  /* Borders */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-accent: rgba(79, 70, 229, 0.28);

  /* Primary Brand & Clinical Colors */
  --primary-indigo: #4f46e5;
  --primary-indigo-hover: #4338ca;
  --primary-indigo-light: #eef2ff;
  
  --medical-emerald: #059669;
  --medical-emerald-light: #ecfdf5;
  
  --aerospace-cyan: #0284c7;
  --warning-amber: #d97706;

  /* Typography Colors */
  --text-headline: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Typography Stacks */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Legacy Mapping for 100% Backward Compatibility */
  --bti-navy: var(--text-headline);
  --bti-navy-light: #1e293b;
  --bti-blue: var(--primary-indigo);
  --bti-blue-dark: var(--primary-indigo-hover);
  --bti-amber: var(--warning-amber);
  --bti-dark: var(--text-headline);
  --bti-gray-bg: var(--bg-cleanroom);
  --bti-card-bg: var(--bg-pure);
  --bti-border: var(--border-subtle);
  --bti-text-main: var(--text-body);
  --bti-text-muted: var(--text-muted);
  --bti-text-light: var(--text-subtle);
  --bti-green: var(--medical-emerald);
  --font-heading: var(--font-display);
  --font-body: var(--font-sans);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  --shadow-indigo: 0 10px 25px -3px rgba(79, 70, 229, 0.2);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset for Blog Pages */
body.blog-article-page {
  font-family: var(--font-sans);
  background-color: var(--bg-cleanroom);
  color: var(--text-body);
  line-height: 1.68;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Flagship v3 Header & Top Ribbon for Blog Articles
   ========================================================================== */
.top-bar {
  background: var(--bg-pure);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-contact-item {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.top-contact-item:hover {
  color: var(--primary-indigo);
}
.top-vault-btn {
  color: var(--text-headline);
  text-decoration: none;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  transition: all 0.2s;
}
.top-vault-btn:hover {
  background: var(--primary-indigo-light);
  color: var(--primary-indigo);
}
.top-rfq-btn {
  background: var(--primary-indigo);
  color: #ffffff;
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.top-rfq-btn:hover {
  background: var(--primary-indigo-hover);
  box-shadow: var(--shadow-indigo);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo-link img, .main-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (max-width: 860px) {
  .nav-menu { display: none; }
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-indigo);
  background: var(--primary-indigo-light);
}

/* Breadcrumb Bar */
.blog-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.blog-breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-breadcrumb-bar a:hover {
  color: var(--primary-indigo);
}
.blog-breadcrumb-bar .sep {
  margin: 0 8px;
  color: var(--text-subtle);
}

/* ==========================================================================
   Article Hero Section
   ========================================================================== */
.article-hero {
  background: linear-gradient(180deg, var(--bg-cleanroom) 0%, #ffffff 100%);
  color: var(--text-headline);
  padding: 50px 0 40px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.article-hero .badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-indigo-light);
  border: 1px solid var(--border-accent);
  color: var(--primary-indigo);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  max-width: 980px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Article Layout & Main Content
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-top: 36px;
  margin-bottom: 60px;
}
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-main-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 640px) {
  .article-main-card {
    padding: 24px;
  }
}

/* Quick Specs Card */
.quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--bg-cleanroom);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary-indigo);
}
.quick-spec-item {
  display: flex;
  flex-direction: column;
}
.quick-spec-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.quick-spec-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-headline);
  margin-top: 4px;
}

/* Table of Contents */
.toc-box {
  background: var(--bg-cleanroom);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc-box h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
@media (max-width: 640px) {
  .toc-list { grid-template-columns: 1fr; }
}
.toc-list li a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: inline-block;
}
.toc-list li a:hover {
  color: var(--primary-indigo);
  text-decoration: underline;
}

/* Article Headings & Body Copy */
.article-main-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.015em;
  scroll-margin-top: 90px;
}
.article-main-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-top: 28px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}
.article-main-card p {
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
}
.article-main-card ul, .article-main-card ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-body);
}
.article-main-card li {
  margin-bottom: 8px;
}

/* Equipment Featured Image */
.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 20px 0 28px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-cleanroom);
}

/* Technical Specification Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 36px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.specs-table th, .specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 0.88rem;
}
.specs-table th {
  background: var(--bg-cleanroom);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 35%;
}
.specs-table td {
  font-weight: 600;
  color: var(--text-headline);
}
.specs-table tr:last-child th, .specs-table tr:last-child td {
  border-bottom: none;
}

/* Engineering Protocol Alert Box */
.protocol-box {
  background: var(--medical-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-left: 4px solid var(--medical-emerald);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.protocol-box h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #065f46;
  margin: 0 0 8px;
}
.protocol-box p {
  color: #047857;
  font-size: 0.92rem;
  margin: 0;
}

/* FAQ Accordion Section */
.faq-block {
  margin: 36px 0;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--primary-indigo);
}
.faq-question {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-headline);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-cleanroom);
  user-select: none;
}
.faq-answer {
  padding: 16px 20px;
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */
.sidebar-sticky-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headline);
  margin: 0 0 12px;
}
.sidebar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.sidebar-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--primary-indigo);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.sidebar-btn-primary:hover {
  background: var(--primary-indigo-hover);
  box-shadow: var(--shadow-indigo);
}
.sidebar-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  margin-top: 10px;
  box-sizing: border-box;
}
.sidebar-btn-whatsapp:hover {
  background: #1eb956;
}

/* ==========================================================================
   Main Footer for Blog Pages
   ========================================================================== */
.main-footer {
  background: var(--bg-pure);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: center;
}
.main-footer a {
  color: var(--primary-indigo);
  text-decoration: none;
}
.main-footer a:hover {
  text-decoration: underline;
}
