﻿:root {
  --navy: #111e2e;
  --navy-2: #081324;
  --orange: #f18f1c;
  --blue: #1b6ce5;
  --light: #f8fafc;
  --gray: #64748b;
  --ink: #172033;
  --line: #d8e1ee;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 30, 46, .14);
  --radius: 8px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: var(--light);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }

.topbar {
  color: rgba(255,255,255,.82);
  background: var(--navy-2);
  font-size: 13px;
}
.topbar .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #dce9ff; font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 310px;
}
.brand-logo {
  width: 270px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.brand-mark {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #07152a, var(--navy) 58%, #0f326d);
  box-shadow: 0 14px 34px rgba(17, 30, 46, .22);
  font-weight: 900;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -4px;
  width: 31px;
  height: 46px;
  background: var(--orange);
  border-radius: 0 28px 28px 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 13px;
  width: 26px;
  height: 18px;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  box-shadow: 0 8px 0 rgba(255,255,255,.95);
}
.brand-copy strong { display: block; color: var(--navy); font-size: 18px; letter-spacing: .02em; }
.brand-copy span { display: block; margin-top: -2px; color: var(--gray); font-size: 12px; font-weight: 700; }
.links { display: flex; align-items: center; gap: 4px; }
.links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}
.links a:hover, .links a.active { color: var(--blue); background: #edf4ff; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1;
}
.btn.primary { color: var(--white); background: var(--blue); box-shadow: 0 16px 34px rgba(27, 108, 229, .25); }
.btn.orange { color: #1d1207; background: var(--orange); }
.btn.light { color: var(--navy); background: var(--white); border-color: var(--line); }
.btn.dark { color: var(--white); background: var(--navy); }
.btn.full { width: 100%; }

.eyebrow {
  display: inline-flex;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: #9dc2ff; }

.hero {
  min-height: calc(100vh - 120px);
  color: var(--white);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8,19,36,.96), rgba(17,30,46,.86) 49%, rgba(17,30,46,.24)),
    url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/hero-workspace-scaled.jpg") center/cover no-repeat;
}
.hero .wrap { width: min(var(--max), calc(100% - 44px)); padding: 96px 0 42px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 44px;
  align-items: center;
}
.hero h1, .page-hero h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.03;
  letter-spacing: 0;
}
.hero p, .page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.84);
  font-size: clamp(17px, 2vw, 21px);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-panel h2 { margin: 0 0 16px; font-size: 22px; }
.hero-panel .what-title {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 30px;
  line-height: 1.12;
}
.service-stack { display: grid; gap: 9px; }
.service-stack span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  font-weight: 900;
}
.service-stack span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(241,143,28,.16);
}
.hero-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,.97);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.metric { padding: 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--blue); font-size: 25px; line-height: 1; }
.metric span { display: block; color: var(--gray); font-size: 13px; margin-top: 8px; }

.section { padding: 84px 0; }
.section.white { background: var(--white); }
.section.soft { background: var(--light); }
.section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8,19,36,.97), rgba(17,30,46,.94)),
    url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/digital-operations-scaled.jpg") center/cover no-repeat;
}
.section-head {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}
.section-head h2, .split h2, .cta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}
.dark .section-head h2, .cta h2 { color: var(--white); }
.section-head p, .split p, .text-block p { max-width: 680px; margin: 10px 0 0; color: var(--gray); }
.dark .section-head p, .dark .card p, .cta p { color: rgba(255,255,255,.74); }
.section-intro {
  max-width: 820px;
  margin: -10px 0 32px;
  color: var(--gray);
  font-size: 18px;
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  min-height: 345px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(17,30,46,.06);
}
.service-card .service-emoji {
  display: block;
  margin-bottom: 34px;
  font-size: 34px;
}
.service-card h3 {
  margin: 0 0 16px;
  color: var(--navy-2);
  font-size: 25px;
  line-height: 1.35;
}
.service-card p {
  margin: 0;
  color: #5d7190;
  font-size: 19px;
  line-height: 1.45;
}
.card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17,30,46,.06);
}
.dark .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.card-body { padding: 25px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 21px; line-height: 1.25; }
.dark .card h3 { color: var(--white); }
.card p, .card li { color: var(--gray); }
.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #edf4ff;
  font-weight: 900;
}
.icon.orange { color: var(--orange); background: #fff3e4; }
.image-card img { width: 100%; height: 230px; object-fit: cover; filter: saturate(1.04) contrast(1.04) brightness(1.03); }
.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8a4d05;
  background: #fff3e4;
  font-size: 12px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.split-media {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17,30,46,.04), rgba(27,108,229,.12)),
    url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/team-collaboration-scaled.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}
.brand-board {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.official-logo-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.official-logo-card img {
  width: 100%;
  height: auto;
}
.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li { position: relative; padding-left: 30px; color: #334155; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 5px #fff3e4;
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8,19,36,.96), rgba(17,30,46,.83)),
    url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/digital-operations-scaled.jpg") center/cover no-repeat;
}
.page-hero .wrap { padding: 92px 0 82px; }
.services-page .page-hero { background-image: linear-gradient(90deg, rgba(8,19,36,.96), rgba(17,30,46,.83)), url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/software-delivery-scaled.jpg"); }
.portfolio-page .page-hero { background-image: linear-gradient(90deg, rgba(8,19,36,.96), rgba(17,30,46,.79)), url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/desa-tech-brand-board.png"); background-position: center; }
.about-page .page-hero { background-image: linear-gradient(90deg, rgba(8,19,36,.96), rgba(17,30,46,.78)), url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/team-collaboration-scaled.jpg"); }
.contact-page .page-hero { background-image: linear-gradient(90deg, rgba(8,19,36,.96), rgba(17,30,46,.8)), url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/growth-systems-scaled.jpg"); }
.breadcrumbs { color: rgba(255,255,255,.68); font-size: 14px; margin-bottom: 12px; }

.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.service-detail h3 { margin: 0; color: var(--navy); font-size: 24px; }
.service-detail ul, .price-card ul { margin: 0; padding-left: 19px; color: var(--gray); }
.service-detail li, .price-card li { margin: 7px 0; }

.price-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17,30,46,.05);
}
.price-card.featured { border-color: rgba(241,143,28,.55); box-shadow: 0 18px 46px rgba(241,143,28,.16); }
.price-card h3 { margin: 0 0 6px; color: var(--navy); }
.price { margin: 0 0 16px; color: var(--blue); font-size: 24px; font-weight: 900; }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}
.portfolio-showcase { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.portfolio-showcase img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.portfolio-list { display: grid; gap: 18px; }
.portfolio-item {
  min-height: 132px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #17345f);
}
.portfolio-item:nth-child(2) { background: linear-gradient(135deg, var(--blue), #0d3f8f); }
.portfolio-item:nth-child(3) { background: linear-gradient(135deg, #243447, var(--orange)); }
.portfolio-item h3 { margin: 0 0 8px; }
.portfolio-item p { margin: 0; color: rgba(255,255,255,.78); }

.phase {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: var(--white);
  border-radius: var(--radius);
}
.phase strong { color: var(--blue); }
.phase h3 { margin: 0 0 6px; color: var(--navy); }
.phase p { margin: 0; color: var(--gray); }

.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.client-strip span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #334155;
  font-weight: 850;
  font-size: 13px;
}

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
}
.contact-list { display: grid; gap: 14px; }
.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.contact-item strong { display: block; color: var(--blue); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #27394c; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}
textarea { min-height: 132px; resize: vertical; }

.cta {
  padding: 68px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(27,108,229,.95), rgba(17,30,46,.96)),
    url("https://desatechsolutions.co.tz/wp-content/uploads/2026/06/digital-operations-scaled.jpg") center/cover no-repeat;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta p { max-width: 650px; margin: 12px 0 0; }

.site-footer {
  padding: 56px 0 22px;
  color: rgba(255,255,255,.74);
  background: #07101d;
}
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .9fr 1fr; gap: 28px; }
.footer-grid h3, .footer-grid h4 { margin: 0 0 14px; color: var(--white); }
.footer-grid a { display: block; margin: 9px 0; color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: #dce9ff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .links {
    position: absolute;
    top: 84px;
    left: 22px;
    right: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .links.open { display: flex; }
  .links .btn { width: 100%; }
  .hero-grid, .hero-strip, .grid.four, .grid.three, .split, .portfolio-grid, .contact-panel, .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .section-head, .cta-row { align-items: start; flex-direction: column; }
  .service-detail { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wrap, .hero .wrap { width: min(100% - 32px, var(--max)); }
  .topbar .wrap { justify-content: center; text-align: center; padding-block: 8px; }
  .brand { min-width: 0; }
  .brand-logo { width: 220px; max-width: calc(100vw - 100px); }
  .brand-copy strong { font-size: 16px; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 72px; }
  .hero-grid, .hero-strip, .grid.four, .grid.three, .grid.two, .split, .portfolio-grid, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 28px; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .section { padding: 62px 0; }
  .split-media { min-height: 340px; }
  .portfolio-showcase img { min-height: auto; }
  .hero-actions .btn, .cta .btn { width: 100%; }
  .page-hero .wrap { padding-top: 72px; padding-bottom: 64px; }
}

