/**
 * ToughBlue Uganda — marketing landing page
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--tb-surface);
  color: var(--tb-text);
  line-height: 1.5;
}

a { color: var(--tb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--tb-primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--tb-accent), var(--tb-secondary), var(--tb-primary)) 1;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  margin-right: auto;
}

.site-brand:hover { text-decoration: none; opacity: 0.95; }

.site-brand img {
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.site-brand-text span { color: var(--tb-secondary); }

.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-nav a:hover { color: #fff; text-decoration: none; }

.header-cta { flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover { text-decoration: none; opacity: 0.95; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #1a5cad 0%, var(--tb-primary) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 71, 143, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--tb-primary);
  border: 1px solid var(--tb-border);
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  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%);
}

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

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

.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);
}

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

.brand-name { font-size: 1.65rem; font-weight: 800; }
.brand-name .blue { color: var(--tb-secondary); }

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

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

.eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tb-accent); margin-bottom: 0.35rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800; line-height: 1.12;
  margin-bottom: 0.75rem;
}

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

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

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

.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;
}

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

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

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

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

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

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

.section-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;
}

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

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

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

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

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

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

.lead {
  color: var(--tb-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.lead:last-child { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

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

.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;
}

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

.service-list {
  list-style: none;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--tb-muted);
}

.service-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--tb-border);
}

.service-list li:last-child { border-bottom: none; }

.service-list strong { color: var(--tb-primary); }

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

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

.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;
}

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

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

.it-health { border-left: 4px solid var(--tb-accent); }

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

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

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

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

.it-health-note { margin-top: 0.5rem; }

.it-health-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-top: 1rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--tb-primary-dark), var(--tb-primary));
  color: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 28px rgba(20, 71, 143, 0.22);
}

.cta-band h2 {
  font-size: 1.25rem; font-weight: 800;
  margin-bottom: 0.5rem; color: #fff;
}

.cta-band p { opacity: 0.92; font-size: 0.92rem; margin-bottom: 0.85rem; }

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

.contact-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 0.85rem 0 0.75rem;
}

.contact-items-light .contact-item strong {
  color: rgba(255, 255, 255, 0.75);
}

.contact-items-light .contact-item a {
  color: var(--tb-secondary);
}

.contact-items-light .contact-item span {
  color: rgba(255, 255, 255, 0.92);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.contact-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tb-muted);
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item span {
  color: var(--tb-text);
  line-height: 1.4;
}

.contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(20, 71, 143, 0.08);
  color: var(--tb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-items-light .contact-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.contact-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.page-contact {
  padding-top: 1.25rem;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-header-icon {
  width: 52px;
  height: 52px;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(20, 71, 143, 0.12);
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tb-primary);
  margin-bottom: 0.35rem;
}

.contact-form {
  margin-top: 1rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tb-primary);
}

.form-field .required {
  color: #c0392b;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: var(--tb-text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(20, 71, 143, 0.25);
  border-color: var(--tb-primary);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.contact-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-alert-success {
  background: #e8f5ec;
  color: #1e6b3a;
  border: 1px solid #b8dfc4;
}

.contact-alert-error {
  background: #fdecea;
  color: #9b2c1f;
  border: 1px solid #f5c6c0;
}

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

.contact-grid a { color: var(--tb-secondary); }

.footnote { font-size: 0.78rem; opacity: 0.7; }

.cta-band .footnote a {
  color: var(--tb-secondary);
  font-weight: 600;
}

.cta-pill {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  min-width: 7rem; min-height: 7rem;
  padding: 1rem;
  border-radius: 50%;
  background: var(--tb-accent);
  color: var(--tb-primary-dark);
  font-weight: 800; font-size: 0.85rem;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.cta-pill-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  min-width: 6.25rem;
  min-height: 6.25rem;
  font-size: 0.72rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.5);
}

.cta-pill-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cta-pill-float.is-visible:hover {
  transform: translateY(-2px) scale(1.02);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--tb-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-motto .think { color: var(--tb-accent); }
.footer-motto .act { color: var(--tb-accent-act); }
.footer-motto .solve { color: var(--tb-secondary); }
.footer-motto .sep { opacity: 0.5; margin: 0 0.3em; }

.footer-copy { color: rgba(255, 255, 255, 0.65); font-weight: 500; }
