/* IT Solutions Tanzania — editorial resource site */
:root {
  --ink: #14212b;
  --ink-soft: #4a5b68;
  --accent: #0e7c66;      /* teal-green, distinct from Ellertek navy */
  --accent-dark: #0a5c4c;
  --accent-light: #e6f4f1;
  --amber: #d97a06;
  --bg: #fbfcfd;
  --card: #ffffff;
  --line: #e3e9ed;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo em { color: var(--accent); font-style: normal; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: 4px 12px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(160deg, #0e3b33 0%, #0e7c66 90%); color: #fff; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -.03em; max-width: 720px; }
.hero p.lead { margin-top: 18px; font-size: 1.15rem; max-width: 640px; color: #d9ece8; }
.hero .hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.kicker { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: .98rem; transition: all .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: #b96605; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.section-head p { color: var(--ink-soft); margin-top: 6px; }
.section-alt { background: var(--accent-light); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(20,33,43,.08); transform: translateY(-2px); }
.card h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: .93rem; flex-grow: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-soft); }
.badge { background: var(--accent-light); color: var(--accent-dark); font-weight: 700; font-size: .72rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge-sw { background: #fdf1e2; color: var(--amber); }
.read-more { font-weight: 700; font-size: .9rem; }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.article-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -.025em; }
.article-head .card-meta { margin-bottom: 14px; }
.article-head .desc { color: var(--ink-soft); font-size: 1.1rem; margin-top: 12px; }
.article-body { margin-top: 34px; }
.article-body h2 { font-size: 1.45rem; margin: 38px 0 14px; letter-spacing: -.02em; }
.article-body h3 { font-size: 1.18rem; margin: 30px 0 12px; }
.article-body h4 { font-size: 1.02rem; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 26px; }
.article-body li { margin-bottom: 7px; }
.article-body blockquote { border-left: 4px solid var(--accent); background: var(--accent-light); padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.article-body code { background: #eef2f5; padding: 2px 7px; border-radius: 5px; font-size: .88em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: #fff; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f7fafb; }

/* CTA box */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(150deg, #0e3b33, #0e7c66); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 30px 0; }
.cta-box h4 { font-size: 1.15rem; margin-bottom: 6px; }
.cta-box p { color: #d9ece8; font-size: .95rem; margin: 0; }
.cta-body { flex: 1 1 320px; }

/* Language switch + hreflang note */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; background: #fdf1e2; border: 1px solid #f3ddba; color: var(--amber); font-weight: 700; font-size: .88rem; padding: 8px 16px; border-radius: 999px; margin-top: 16px; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 34px; }
.trust-item { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 16px 18px; font-size: .9rem; color: #eaf5f2; }
.trust-item strong { display: block; font-size: 1.05rem; color: #fff; margin-bottom: 3px; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c6cf; margin-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.3fr; gap: 32px; padding: 48px 20px 28px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
.site-footer a { color: #b9c6cf; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-about .logo { color: #fff; margin-bottom: 12px; }
.footer-about .logo em { color: #5ecfb4; }
.footer-about p { margin-bottom: 12px; }
.disclosure { font-size: .8rem; color: #8fa0ac; border-top: 1px solid #2a3a47; padding-top: 12px; }
.disclosure a { display: inline; color: #b9c6cf; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #2a3a47; padding-top: 18px; padding-bottom: 24px; font-size: .82rem; color: #8fa0ac; }
.footer-bottom a { display: inline; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-bottom: 10px; }

/* Responsive */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  .site-nav.open { display: flex; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
