/* ============================================================
   CARRIER HUB — Shared Site Stylesheet
   Used by: blog.html, all blog post pages
   Homepage (carrierhub-homepage-rebrand.html) is self-contained
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0a1628;
  --navy-mid: #112040;
  --blue: #1a6ddb;
  --blue-light: #2f8ef4;
  --blue-glow: rgba(26,109,219,0.15);
  --teal: #00c2d1;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --gray-light: #e8edf5;
  --gray: #8a96a8;
  --text: #1c2535;
  --text-light: #4a5568;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --shadow-card: 0 2px 16px rgba(10,22,40,0.08);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { line-height: 1.75; color: var(--text-light); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; font-family: var(--font); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,109,219,0.35); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline-dark:hover { background: var(--blue); color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px; height: 68px;
  display: flex; align-items: center;
}
.navbar-inner { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 32px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.navbar-logo-icon { width: 34px; height: 34px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link { color: rgba(255,255,255,0.75); padding: 7px 13px; border-radius: 6px; font-size: 0.88rem; font-weight: 500; transition: all 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-cta { margin-left: auto; }
@media (max-width: 640px) { .nav-links { display: none; } .navbar { padding: 0 16px; } }

/* ===== FOOTER ===== */
.footer { background: #050e1c; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.82rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: rgba(255,255,255,0.45); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.83rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,0.28); font-size: 0.76rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== BLOG INDEX ===== */
.blog-hero { background: var(--navy); padding: 120px 0 72px; position: relative; overflow: hidden; }
.blog-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 40%, rgba(26,109,219,0.18) 0%, transparent 60%); }
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero h1 { color: var(--white); margin-bottom: 16px; }
.blog-hero p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 520px; }

.blog-grid-section { padding: 72px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 16px; overflow: hidden; transition: all 0.22s; box-shadow: var(--shadow-card); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(10,22,40,0.12); }
.blog-card-img {
  height: 200px; overflow: hidden; position: relative;
  /* Adobe Stock image placeholder — replace src on <img> inside */
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.blog-card-body { padding: 24px 28px 28px; }
.blog-card-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); background: var(--blue-glow); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }
.blog-card h2 { font-size: 1.08rem; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 0.87rem; color: var(--text-light); margin-bottom: 20px; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; }
.blog-card-date { font-size: 0.77rem; color: var(--gray); }
.blog-card-read { font-size: 0.8rem; font-weight: 700; color: var(--blue); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== BLOG POST ===== */
.post-hero {
  padding: 120px 0 64px;
  position: relative; overflow: hidden;
  /* Adobe Stock: add background-image here */
  background: linear-gradient(135deg, var(--navy) 0%, #0d2248 100%);
}
.post-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,22,40,0.6); }
.post-hero-inner { position: relative; z-index: 1; }
.post-hero-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.post-hero-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); background: rgba(0,194,209,0.15); border: 1px solid rgba(0,194,209,0.25); padding: 5px 12px; border-radius: 100px; }
.post-hero h1 { color: var(--white); max-width: 760px; }
.post-hero-meta { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.post-hero-meta span { color: rgba(255,255,255,0.5); font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }
.post-hero-meta span::before { content: ''; width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; display: inline-block; }
.post-hero-meta span:first-child::before { display: none; }

/* Post body layout */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding: 64px 0 80px; align-items: start; }
.post-body { min-width: 0; }
.post-body h2 { color: var(--navy); margin: 40px 0 16px; font-size: 1.45rem; }
.post-body h3 { color: var(--navy); margin: 28px 0 12px; font-size: 1.15rem; }
.post-body p { margin-bottom: 20px; color: var(--text-light); font-size: 0.97rem; }
.post-body ul, .post-body ol { margin: 0 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.post-body ul li { list-style: disc; color: var(--text-light); font-size: 0.97rem; }
.post-body ol li { list-style: decimal; color: var(--text-light); font-size: 0.97rem; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--blue-light); }
.post-body blockquote { border-left: 4px solid var(--blue); padding: 16px 24px; background: var(--off-white); border-radius: 0 8px 8px 0; margin: 28px 0; }
.post-body blockquote p { color: var(--text); font-style: italic; font-size: 1.05rem; margin: 0; }
.post-divider { border: none; border-top: 1px solid var(--gray-light); margin: 40px 0; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 28px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-light); }
.compare-table th { background: var(--navy); color: var(--white); padding: 14px 20px; text-align: left; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table td { padding: 14px 20px; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; color: var(--text-light); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--off-white); }
.compare-table td:first-child { font-weight: 600; color: var(--text); }

/* Callout box */
.callout { background: var(--blue-glow); border: 1px solid rgba(26,109,219,0.25); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.callout-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 10px; }
.callout p { color: var(--text); margin: 0; font-size: 0.94rem; }
.callout.callout--teal { background: rgba(0,194,209,0.08); border-color: rgba(0,194,209,0.25); }
.callout.callout--teal .callout-label { color: #009aa7; }

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.sidebar-widget { background: var(--off-white); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-widget h4 { color: var(--navy); margin-bottom: 14px; font-size: 0.92rem; }
.sidebar-toc { display: flex; flex-direction: column; gap: 8px; }
.sidebar-toc a { font-size: 0.83rem; color: var(--text-light); padding: 6px 10px; border-radius: 6px; display: block; border-left: 2px solid transparent; transition: all 0.15s; }
.sidebar-toc a:hover { color: var(--blue); border-left-color: var(--blue); background: var(--white); }
.sidebar-cta { background: var(--navy); border-radius: var(--radius); padding: 24px; text-align: center; }
.sidebar-cta h4 { color: var(--white); margin-bottom: 10px; font-size: 0.95rem; }
.sidebar-cta p { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 0.85rem; padding: 11px 16px; }

/* Related posts */
.related-section { background: var(--off-white); padding: 64px 0; border-top: 1px solid var(--gray-light); }
.related-section h2 { color: var(--navy); margin-bottom: 32px; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 24px; transition: all 0.2s; }
.related-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.related-card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 8px; display: block; }
.related-card h3 { font-size: 0.97rem; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.related-card p { font-size: 0.83rem; color: var(--text-light); margin-bottom: 12px; }
.related-card-link { font-size: 0.82rem; font-weight: 700; color: var(--blue); }

/* Post CTA bar */
.post-cta-bar { background: var(--navy); padding: 56px 0; text-align: center; }
.post-cta-bar h2 { color: var(--white); margin-bottom: 12px; font-size: 1.5rem; }
.post-cta-bar p { color: rgba(255,255,255,0.6); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.post-cta-bar .btn { margin: 0 auto; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}
