/**
 * ToughBlue IT Health Check — public home / landing page
 */

body.tb-home {
  background: var(--tb-surface);
}

.tb-home .container {
  max-width: 1080px;
}

.home-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(20, 71, 143, 0.2);
  min-height: 320px;
}

.home-hero-photo {
  position: absolute;
  inset: 0;
  background: url('../brand/uganda/clock-tower-flyover.jpg') center 42% / cover no-repeat;
  z-index: 0;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    var(--tb-primary-dark) 0%,
    rgba(13, 50, 102, 0.96) 32%,
    rgba(20, 71, 143, 0.72) 58%,
    rgba(20, 71, 143, 0.35) 100%
  );
}

.home-hero-bg {
  padding: 2.5rem 2rem 2rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.home-hero-bg::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(245, 166, 35, 0.35);
  pointer-events: none;
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 55%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(107, 183, 232, 0.12);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.home-logo-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.home-logo-roundel {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.home-logo-roundel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-brand-name .blue {
  color: var(--tb-secondary);
}

.home-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.home-tagline .sep {
  color: var(--tb-accent);
  margin: 0 0.35em;
}

.home-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.75rem;
  color: #fff;
}

.home-hero h1 span {
  color: var(--tb-secondary);
}

.home-lead {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 52ch;
  margin-bottom: 1.35rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero-actions .btn-accent {
  font-weight: 700;
}

.home-motto-badge {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--tb-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  align-self: center;
}

.home-motto-badge .think { color: var(--tb-accent); }
.home-motto-badge .act { color: var(--tb-accent-act); }
.home-motto-badge .solve { color: var(--tb-primary); }
.home-motto-badge .sep { color: var(--tb-muted); opacity: 0.5; font-weight: 300; margin: 0 0.2em; }

.home-linien {
  display: block;
  width: 100%;
  height: 5px;
  object-fit: cover;
  position: relative;
  z-index: 3;
}

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

.home-card {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(20, 71, 143, 0.06);
}

.home-card.vision {
  background: linear-gradient(150deg, var(--tb-primary-dark), var(--tb-primary));
  color: #fff;
  border: none;
}

.home-card.mission {
  background: linear-gradient(150deg, #fff8ea, #fdeecf);
  border-color: rgba(245, 166, 35, 0.45);
}

.home-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.home-card.mission .home-label {
  color: #a86f0a;
}

.home-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tb-primary);
  margin-bottom: 0.65rem;
}

.home-card.vision h2 {
  color: #fff;
}

.home-card blockquote {
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.home-card .vm-short {
  font-size: 0.85rem;
  font-weight: 700;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(20, 71, 143, 0.2);
}

.home-card.vision .vm-short {
  color: var(--tb-accent);
  border-top-color: rgba(255, 255, 255, 0.25);
}

.home-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-accent);
  margin-bottom: 0.5rem;
}

.home-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.home-why {
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem;
  background: var(--tb-surface);
  border-radius: 10px;
  border: 1px solid var(--tb-border);
}

.home-why .ico {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--tb-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.home-why strong {
  display: block;
  font-size: 0.88rem;
  color: var(--tb-primary);
  margin-bottom: 0.15rem;
}

.home-why span {
  font-size: 0.82rem;
  color: var(--tb-muted);
  line-height: 1.4;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.home-product-step {
  text-align: center;
  padding: 1rem 0.85rem;
  background: var(--tb-surface);
  border-radius: 10px;
  border: 1px solid var(--tb-border);
}

.home-product-step strong {
  display: block;
  font-size: 0.88rem;
  color: var(--tb-primary);
  margin-bottom: 0.35rem;
}

.home-product-step span {
  font-size: 0.8rem;
  color: var(--tb-muted);
  line-height: 1.4;
}

.home-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.home-service-block {
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  overflow: hidden;
}

.home-service-head {
  background: linear-gradient(135deg, var(--tb-primary-dark), var(--tb-primary));
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-service-head img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.home-service-body {
  padding: 0.5rem 1rem;
  background: #fff;
}

.home-service-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--tb-border);
  font-size: 0.84rem;
  display: flex;
  gap: 0.5rem;
}

.home-service-item:last-child {
  border-bottom: none;
}

.home-service-item strong {
  color: var(--tb-primary);
  min-width: 5.5rem;
  flex-shrink: 0;
}

.home-service-item span {
  color: var(--tb-muted);
}

.home-cta {
  background: linear-gradient(135deg, var(--tb-primary) 0%, #1a5aa8 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.home-cta h2 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.home-cta p {
  opacity: 0.92;
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-cta-highlight {
  background: var(--tb-accent);
  color: var(--tb-primary-dark);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
}

.home-cta-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
  color: var(--tb-primary-dark);
}

.home-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.home-contact strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-right: 0.35rem;
}

.home-footnote {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.85rem;
}

@media (max-width: 768px) {
  .home-hero-inner,
  .home-grid-2,
  .home-why-grid,
  .home-product-grid,
  .home-services,
  .home-cta {
    grid-template-columns: 1fr;
  }

  .home-motto-badge {
    justify-self: start;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-inner {
    padding: 1.75rem 1.1rem 2rem;
  }

  .home-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .home-lead {
    font-size: 0.92rem;
  }

  .home-card {
    padding: 1.15rem 1.1rem;
  }

  .home-contact {
    grid-template-columns: 1fr;
  }
}
