/* ============================================
   BizTech Theme - Warm Minimal (Theme C)
   Fonts: Fraunces (headings) + DM Sans (body)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bt-navy: #1C2541;
  --bt-teal: #0B7A75;
  --bt-warm: #F7F3EE;
  --bt-cream: #FFFDF8;
  --bt-text: #3D3D3D;
  --bt-text-dim: #7A7A7A;
  --bt-border: #E5DFD5;
  --bt-white: #FFFFFF;
  --bt-heading: 'Fraunces', Georgia, serif;
  --bt-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bt-max-width: 1060px;
  --bt-narrow: 720px;
  --bt-radius: 10px;
  --bt-shadow: 0 2px 12px rgba(0,0,0,0.04);
  --bt-shadow-hover: 0 4px 20px rgba(0,0,0,0.06);
  --bt-transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 100px; }
[id] { scroll-margin-top: 100px; }

body {
  font-family: var(--bt-font);
  color: var(--bt-text);
  background: var(--bt-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bt-teal); text-decoration: none; transition: color var(--bt-transition); }
a:hover { color: var(--bt-navy); }

.container { max-width: var(--bt-max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--bt-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all var(--bt-transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--bt-teal);
  color: var(--bt-white);
  border-color: var(--bt-teal);
}
.btn-primary:hover {
  background: var(--bt-navy);
  border-color: var(--bt-navy);
  color: var(--bt-white);
}

.btn-accent {
  background: var(--bt-teal);
  color: var(--bt-white);
  border-color: var(--bt-teal);
}
.btn-accent:hover {
  background: var(--bt-navy);
  border-color: var(--bt-navy);
  color: var(--bt-white);
}

.btn-outline {
  background: transparent;
  color: var(--bt-navy);
  border-color: var(--bt-navy);
}
.btn-outline:hover {
  background: var(--bt-navy);
  color: var(--bt-white);
}

/* --- Header --- */
.site-header {
  background: var(--bt-cream);
  border-bottom: 1px solid var(--bt-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--bt-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.logo-city { color: var(--bt-navy); }
.logo-biztech { color: var(--bt-teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  color: var(--bt-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--bt-teal); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bt-text);
  border-radius: 2px;
  transition: all var(--bt-transition);
}

/* --- Hero --- */
.hero {
  background: var(--bt-warm);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 {
  font-family: var(--bt-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--bt-navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--bt-text-dim);
  margin-bottom: 2rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Header --- */
.page-header {
  background: var(--bt-warm);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--bt-border);
}
.page-header h1 {
  font-family: var(--bt-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bt-navy);
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--bt-text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Article Grid --- */
.latest-articles, .article-listing { padding: 4rem 0; }
.latest-articles h2, .article-listing h2 {
  font-family: var(--bt-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--bt-navy);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  overflow: hidden;
  transition: box-shadow var(--bt-transition);
}
.article-card:hover {
  box-shadow: var(--bt-shadow-hover);
}
.article-card a { text-decoration: none; color: inherit; display: block; }
.article-card-body { padding: 1.5rem; }
.article-card h3 {
  font-family: var(--bt-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bt-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--bt-text-dim);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.article-tag {
  display: inline-block;
  background: var(--bt-white);
  border: 1px solid var(--bt-border);
  color: var(--bt-teal);
  padding: 0.15rem 0.65rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--bt-text-dim);
}

.section-cta { text-align: center; margin-top: 2rem; }

/* --- Article Card Image --- */
.article-card-image {
  overflow: hidden;
  border-radius: var(--bt-radius) var(--bt-radius) 0 0;
  aspect-ratio: 1200 / 630;
  background: var(--bt-warm);
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Article Hero Image --- */
.article-hero-image {
  padding: 2rem 0 0;
  background: var(--bt-cream);
}
.article-hero-image img {
  width: 100%;
  border-radius: var(--bt-radius);
  border: 1px solid var(--bt-border);
}

/* --- Article Single --- */
.article-header {
  background: var(--bt-warm);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--bt-border);
}
.article-header h1 {
  font-family: var(--bt-heading);
  font-size: 2.2rem;
  color: var(--bt-navy);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.25;
}
.article-header .article-meta {
  justify-content: center;
}

.article-body {
  padding: 3rem 0;
}
.article-body h2 {
  font-family: var(--bt-heading);
  font-size: 1.4rem;
  color: var(--bt-navy);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--bt-heading);
  font-size: 1.15rem;
  color: var(--bt-text);
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}
.article-body p {
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body blockquote {
  border-left: 3px solid var(--bt-teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bt-warm);
  border-radius: 0 var(--bt-radius) var(--bt-radius) 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.article-body th, .article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--bt-border);
  text-align: left;
}
.article-body th {
  background: var(--bt-warm);
  font-weight: 600;
  color: var(--bt-navy);
}
.article-body strong { color: var(--bt-text); }

/* --- Industry Strip --- */
.industry-strip {
  background: var(--bt-warm);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--bt-border);
}
.industry-strip h2 {
  font-family: var(--bt-heading);
  font-size: 1.5rem;
  color: var(--bt-navy);
  margin-bottom: 2rem;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
.industry-card {
  background: var(--bt-white);
  padding: 1.5rem 1rem;
  border-radius: var(--bt-radius);
  border: 1px solid var(--bt-border);
  text-decoration: none;
  color: var(--bt-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--bt-transition);
}
.industry-card:hover {
  border-color: var(--bt-teal);
  box-shadow: var(--bt-shadow);
  color: var(--bt-teal);
}
.industry-card svg { color: var(--bt-teal); }
.industry-card span { font-weight: 600; font-size: 0.9rem; }

/* --- Coming Soon --- */
.coming-soon {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bt-warm);
  color: var(--bt-text);
}
.coming-soon h1 {
  font-family: var(--bt-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--bt-navy);
}
.coming-soon .logo-city { color: var(--bt-navy); }
.coming-soon .logo-biztech { color: var(--bt-teal); }
.coming-soon-tagline {
  font-family: var(--bt-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--bt-text-dim);
}
.coming-soon p { color: var(--bt-text-dim); margin-bottom: 1.5rem; font-size: 1.1rem; }

/* --- Footer --- */
.site-footer {
  background: var(--bt-navy);
  color: var(--bt-white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-city { color: var(--bt-white); }
.footer-brand .logo-biztech { color: var(--bt-teal); }
.footer-brand p {
  margin-top: 0.75rem;
  opacity: 0.6;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.footer-links a {
  display: block;
  color: var(--bt-white);
  opacity: 0.7;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.footer-links a:hover { opacity: 1; color: var(--bt-teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  opacity: 0.5;
  text-align: center;
}
.footer-bottom a { color: var(--bt-teal); }

/* --- Table of Contents --- */
.toc {
  background: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-family: var(--bt-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bt-navy);
  cursor: pointer;
  list-style: none;
}
.toc-title::-webkit-details-marker { display: none; }
.toc-title::before {
  content: "▸ ";
  font-size: 0.8rem;
}
details[open] > .toc-title::before {
  content: "▾ ";
}
.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}
.toc li {
  margin-bottom: 0.35rem;
}
.toc li li {
  padding-left: 1.25rem;
}
.toc a {
  color: var(--bt-text-dim);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--bt-transition);
}
.toc a:hover {
  color: var(--bt-teal);
}

/* --- Stat Callout --- */
.stat-callout {
  background: var(--bt-navy);
  color: var(--bt-white);
  border-radius: var(--bt-radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}
.stat-number {
  font-family: var(--bt-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Callout Box --- */
.callout {
  border-radius: var(--bt-radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout strong {
  display: block;
  margin-bottom: 0.25rem;
}
.callout-info {
  background: #EBF5FB;
  border-left: 4px solid var(--bt-teal);
}
.callout-warning {
  background: #FEF9E7;
  border-left: 4px solid #D4AC0D;
}
.callout-tip {
  background: #EAFAF1;
  border-left: 4px solid #27AE60;
}

/* --- Comparison Table --- */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--bt-radius);
  border: 1px solid var(--bt-border);
}
.compare-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.88rem;
}
.compare-table-wrapper th {
  background: var(--bt-navy);
  color: var(--bt-white);
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: left;
  border: none;
  font-size: 0.85rem;
}
.compare-table-wrapper td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bt-border);
  border-right: 1px solid var(--bt-border);
  vertical-align: top;
}
.compare-table-wrapper td:last-child {
  border-right: none;
}
.compare-table-wrapper tr:last-child td {
  border-bottom: none;
}
.compare-table-wrapper tr:nth-child(even) {
  background: var(--bt-warm);
}
.compare-table-wrapper tr:hover {
  background: #EBF5FB;
}

/* --- Author Bio --- */
.author-bio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bt-border);
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bt-teal);
  color: var(--bt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bt-heading);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-name {
  font-weight: 700;
  color: var(--bt-navy);
  font-size: 0.95rem;
  display: block;
}
.author-desc {
  font-size: 0.85rem;
  color: var(--bt-text-dim);
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

/* --- Related Articles --- */
.related-articles {
  background: var(--bt-warm);
  padding: 4rem 0;
  border-top: 1px solid var(--bt-border);
}
.related-articles h2 {
  font-family: var(--bt-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--bt-navy);
}

/* --- About Contact --- */
.about-contact {
  background: var(--bt-warm);
  border-top: 1px solid var(--bt-border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bt-cream);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
  }
  .site-nav.active { display: flex; }
  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bt-border);
  }

  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-tagline { font-size: 1rem; }

  .article-grid { grid-template-columns: 1fr; }

  .industry-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-header h1, .article-header h1 { font-size: 1.7rem; }

  .stat-callout { padding: 1.25rem 1.5rem; }
  .stat-number { font-size: 1.8rem; }

  .compare-table-wrapper { font-size: 0.82rem; }
  .compare-table-wrapper th, .compare-table-wrapper td { padding: 0.6rem 0.75rem; }

  .author-bio { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}
