:root {
  --blue-950: #082a57;
  --blue-900: #0e3d7d;
  --blue-800: #1455a3;
  --blue-700: #1d6cca;
  --blue-200: #d6e7fb;
  --blue-100: #eaf3ff;
  --blue-050: #f5f9ff;
  --white: #ffffff;
  --text-900: #11253f;
  --text-700: #4a607e;
  --line: #d4e2f6;
  --shadow: 0 18px 44px rgba(13, 51, 102, 0.1);
  --container: 1240px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  color: var(--text-900);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 40%, #ffffff 100%);
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.top-bar {
  background: var(--blue-950);
  color: #d9e9ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-row p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.top-links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.top-links a:hover {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  font-weight: 700;
}

.logo-image-wrap {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 0.18rem;
}

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

.logo-text-wrap {
  display: grid;
  line-height: 1;
  gap: 0.18rem;
}

.logo-text {
  color: var(--blue-950);
}

.logo-text-wrap small {
  color: var(--text-700);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--text-700);
  font-weight: 600;
}

.menu a {
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--blue-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.menu a:hover {
  color: var(--blue-900);
}

.menu a:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(24, 98, 191, 0.25);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-900);
  border-color: #bbd4f5;
}

.section {
  padding: 5.5rem 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(90vh, 780px);
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #cfe4ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 11ch;
  text-transform: uppercase;
}

.hero-cards {
  position: relative;
  z-index: 10;
  margin-top: -130px;
  padding-bottom: 1.4rem;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-link-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 0;
  border: 6px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 34px rgba(10, 39, 80, 0.2);
}

.hero-link-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.hero-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 48, 0.04) 45%, rgba(8, 24, 48, 0.72) 100%);
}

.hero-link-card span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.95rem;
  z-index: 1;
  color: #ffffff;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.hero-link-card:hover img {
  transform: scale(1.04);
}

.dedication {
  background: #efefef;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.dedication-copy {
  max-width: 1120px;
}

.dedication-label {
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c79200;
}

.dedication-copy h2 {
  margin: 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #1b1f24;
  max-width: 22ch;
}

.dedication-copy p {
  margin: 1.35rem 0 0;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.9vw, 1.18rem);
  line-height: 1.45;
  color: #2f343a;
}

.dedication-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem;
}

.dedication-item {
  min-height: 210px;
}

.dedication-icon {
  width: 64px;
  height: 64px;
  color: #111111;
  margin-bottom: 1.1rem;
}

.dedication-icon svg {
  width: 100%;
  height: 100%;
}

.dedication-item h3 {
  margin: 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  color: #1a1d22;
  font-size: clamp(1.18rem, 2vw, 1.85rem);
  line-height: 1.22;
}

.dedication-item p {
  margin: 0.65rem 0 0;
  color: #5a6067;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}

.offers {
  background: #efefef;
}

.offers-copy {
  max-width: 1300px;
}

.offers-label {
  margin: 0 0 0.7rem;
  color: #c79200;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  font-weight: 800;
}

.offers-copy h2 {
  margin: 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  text-transform: uppercase;
  color: #1b1f24;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.05;
  max-width: 17ch;
}

.offers-copy p {
  margin: 1.15rem 0 0;
  color: #2f343a;
  font-size: clamp(1.05rem, 1.8vw, 1.16rem);
  line-height: 1.42;
  max-width: 88ch;
}

.offers-grid {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.offer-card {
  background: linear-gradient(135deg, #1a5eb4 0%, #2f84e2 100%);
  padding: 1.3rem 1.2rem 1.1rem;
  min-height: 205px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 0.8rem;
  align-items: end;
}

.offer-text p {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 0.8;
}

.offer-text h3 {
  margin: 0.45rem 0 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2.7rem);
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.02;
  max-width: 10ch;
}

.offer-text a {
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.offer-icon {
  color: rgba(255, 255, 255, 0.95);
  width: 118px;
  height: 118px;
  align-self: center;
  justify-self: end;
}

.offer-icon svg {
  width: 100%;
  height: 100%;
}

.brands {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brands-title {
  margin: 1.2rem 0 0.7rem;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--blue-900);
  text-transform: uppercase;
}

.brands-track-wrap {
  overflow: hidden;
  padding: 0.85rem 0 1.3rem;
}

.brands-track {
  display: flex;
  width: max-content;
  gap: 0.8rem;
  animation: scrollBrands 24s linear infinite;
}

.brand-logo {
  width: 150px;
  height: 58px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbddf7;
  background: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

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

.branches {
  background: linear-gradient(110deg, #dcecff 0%, #eaf3ff 45%, #f2f7ff 100%);
  overflow: hidden;
}

.branches-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1.2fr;
  gap: 0;
  align-items: stretch;
  min-height: 520px;
  border: 1px solid #c5dbfa;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(39, 104, 190, 0.2) 0%, rgba(39, 104, 190, 0) 45%);
}

.branches-card {
  background: linear-gradient(155deg, rgba(24, 83, 164, 0.96) 0%, rgba(43, 117, 212, 0.9) 55%, rgba(71, 149, 236, 0.78) 100%);
  padding: 2.2rem 2.1rem 1.8rem;
  z-index: 2;
  align-self: stretch;
  max-width: none;
  box-shadow: inset -30px 0 46px -26px rgba(255, 255, 255, 0.25);
}

.branches-label {
  margin: 0 0 0.7rem;
  color: #c79200;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.branches-card h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  max-width: 12ch;
}

.branches-card p {
  margin: 1.1rem 0 0;
  color: #e9f2ff;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.42;
  max-width: 50ch;
}

.branches-btn {
  display: inline-block;
  margin-top: 1.4rem;
  background: linear-gradient(135deg, #1455a3 0%, #2f84e2 100%);
  color: #ffffff;
  padding: 0.95rem 1.7rem;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.branches-map {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  background: transparent;
}

.kenya-map {
  width: min(94%, 540px);
  height: auto;
  transform: scale(1.26);
  transform-origin: 50% 56%;
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: contrast(1.08) saturate(0.9);
}

.branches-map.is-visible .kenya-map {
  transform: scale(1);
}

.nairobi-marker {
  position: absolute;
  top: 56%;
  left: 51%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%);
}

.pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(220, 55, 55, 0.65);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
}

.branches-map.is-visible .pulse-1 {
  animation: pulseRing 1.8s ease-out infinite;
}

.branches-map.is-visible .pulse-2 {
  animation: pulseRing 1.8s ease-out 0.55s infinite;
}

.x-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
}

.x-mark::before,
.x-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 12px;
  border-radius: 999px;
  background: #d83434;
  transform-origin: center;
  box-shadow: 0 8px 18px rgba(170, 40, 40, 0.28);
}

.x-mark::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.x-mark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.branches-map.is-visible .x-mark {
  animation: markerFloat 1.9s ease-in-out infinite;
}

.about {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.about-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Calibri", "Candara", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.08;
  color: var(--blue-950);
}

.about-copy p {
  color: var(--text-700);
}

.about-aside {
  background: var(--white);
  border: 1px solid #cde0f8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-aside img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.stats-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.stats-grid article {
  border: 1px solid #d6e5f9;
  background: var(--blue-050);
  border-radius: 12px;
  padding: 0.72rem;
}

.stats-grid h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
}

.stats-grid p {
  margin: 0.35rem 0 0;
  color: var(--text-700);
  font-size: 0.9rem;
}

.products {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 1.8rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.product-card {
  background: var(--white);
  border: 1px solid #cbddf7;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(14, 60, 122, 0.08);
}

.product-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}

.product-content {
  padding: 0.95rem;
}

.product-content h3 {
  margin: 0;
  color: var(--blue-900);
}

.product-content p {
  margin: 0.45rem 0 0;
  color: var(--text-700);
}

.services {
  background: linear-gradient(180deg, var(--blue-050) 0%, #ffffff 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.services-grid article {
  border: 1px solid #cee0f8;
  background: var(--white);
  border-radius: 14px;
  padding: 1rem;
}

.services-grid h3 {
  margin: 0;
  color: var(--blue-900);
}

.services-grid p {
  margin: 0.4rem 0 0;
  color: var(--text-700);
}

.contact {
  background: var(--white);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  border: 1px solid #cddff8;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-copy p:last-child {
  color: var(--text-700);
  max-width: 48ch;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  border: 1px solid #d6e5f9;
  border-radius: 14px;
  background: var(--blue-050);
  padding: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--blue-900);
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #bfd5f5;
  border-radius: 10px;
  padding: 0.76rem 0.85rem;
  color: var(--text-900);
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(29, 108, 202, 0.13);
}

.site-footer {
  background: var(--blue-950);
  color: #d7e8ff;
  padding-top: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1.4rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 0.45rem;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  margin: 0.2rem 0;
  color: #d7e8ff;
}

.footer-grid a {
  display: block;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.9rem 0 1.2rem;
}

.footer-bottom p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollBrands {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes markerFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.05);
  }
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .menu {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branches-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .branches-card {
    max-width: 100%;
  }

  .branches-map {
    min-height: 360px;
  }

  .dedication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 76vh;
  }

  .hero-cards {
    margin-top: -90px;
  }

  .hero-cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-link-card {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4rem 0;
  }

  .top-bar {
    display: none;
  }

  .nav {
    min-height: 74px;
  }

  .nav > .btn {
    display: none;
  }

  .hero {
    padding-top: 2.2rem;
    min-height: 70vh;
  }

  .hero-cards {
    margin-top: -70px;
  }

  .branches-map {
    min-height: 280px;
  }

  .nairobi-marker {
    width: 90px;
    height: 90px;
    top: 62%;
    left: 54%;
  }

  .x-mark {
    width: 44px;
    height: 44px;
  }

  .x-mark::before,
  .x-mark::after {
    width: 40px;
    height: 10px;
  }

  .dedication-grid,
  .offers-grid,
  .products-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    grid-template-columns: 1fr 104px;
    min-height: 188px;
  }

  .offer-icon {
    width: 104px;
    height: 104px;
  }

  .dedication-copy h2 {
    max-width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
