/* ============================================================
   KTS PROPERTIES — design tokens
   Primary brand: #1E7C78  (30, 124, 120)
   ============================================================ */
:root {
  --brand-primary: #1E7C78;
  --brand-primary-rgb: 30, 124, 120;
  --brand-soft: #CFE4E1;
  --brand-soft-bg: #F2F8F7;

  --bg: #FFFFFF;
  --bg-tint: #F7F7F6;
  --text: #000209;
  --text-soft: #3D404B;
  --muted: #7F8189;
  --line: #EAE9E6;
  --line-strong: #D4D7E1;

  --font-heading: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 2, 9, 0.06);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Base / Reset
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: var(--brand-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.site-root { overflow-x: clip; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   Button system
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(var(--brand-primary-rgb), .28);
  background: #176a67;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

/* Animated "Explore Services" button (KTS teal) */
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  border: 3px solid;
  border-color: transparent;
  font-size: 14px;
  font-family: var(--font-heading);
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 12px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 12px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  stroke: #212121;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px var(--brand-primary);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-name-accent { color: var(--brand-primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-soft);
  padding: 6px 0;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--brand-primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  padding: 0 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 28px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 110px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-align: left;
  text-wrap: balance;
}
.hero-sub {
  max-width: 520px;
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; padding: 30px; }
.hero-art-rotor {
  width: 100%;
  max-width: 640px;
  transform-origin: center;
  will-change: transform;
}
.hero-art .illu {
  width: 100%;
  height: auto;
  display: block;
}
.illu {
  width: min(100%, 420px);
  height: auto;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-tint); }
.section-head.center, .center { text-align: center; }
.section-head { margin-bottom: 60px; }
.section-head .lede { max-width: 620px; margin: 0 auto; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lede { font-size: 17px; color: var(--text-soft); }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.art-col { display: flex; justify-content: center; }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--brand-primary-rgb), .3);
}
.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft-bg);
  border-radius: 16px;
  margin-bottom: 22px;
}
.card-icon svg { width: 32px; height: 32px; }
.card-title { font-size: 21px; margin-bottom: 10px; }
.card-text { font-size: 15px; color: var(--text-soft); }

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

/* Profile card (converted from Uiverse "TamaniPhiri" hover card) */
.profile-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  min-height: 290px;
  overflow: hidden;
  text-align: center;
  padding: 28px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.5s ease, transform 0.5s ease, min-height 0.5s ease, padding 0.5s ease;
}
.profile-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
  min-height: 340px;
  padding-bottom: 64px;
}
.avatar {
  color: #6b7280;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.avatar svg { width: 64px; height: 64px; }
.profile-card:hover .avatar { transform: scale(1.05); }

.profile-info { transition: all 0.5s ease 0.2s; }
.profile-card:hover .profile-info { padding-bottom: 12px; }

.profile-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: #374151;
}
.profile-handle { font-size: 14px; color: #6b7280; margin-top: 4px; }

.profile-social {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: all 0.5s ease 0.1s;
}
.profile-card:hover .profile-social { bottom: 22px; }
.social-pill {
  display: flex;
  gap: 12px;
  background: #374151;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: padding 0.5s ease 0.2s;
}
.profile-card:hover .social-pill { padding: 10px 14px; }
.social-link {
  display: inline-flex;
  font-size: 22px;
  color: #fff;
  transition: transform 0.5s ease 0.2s;
}
.social-link:hover { transform: scale(1.1); color: #CFE4E1; }

/* Founder info */
.founder-info { padding: 20px 0; }
.founder-name {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.founder-role {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 22px;
}
.founder-tagline {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 18px;
}
.founder-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.founder-body strong { color: var(--brand-primary); font-weight: 600; }

/* Loader (animated) */
.loader {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0 auto;
  transform: scale(1.5);
}
.loader .loader-ball {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #2a9d8f;
  animation: loading-bounce 0.5s ease-in-out infinite alternate;
}
.loader .loader-steps {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 7px;
  width: 45px;
  border-radius: 4px;
  box-shadow: 0 5px 0 #cfd1d6, -35px 50px 0 #cfd1d6, -70px 95px 0 #cfd1d6;
  animation: loading-step 1s ease-in-out infinite;
}
@keyframes loading-bounce {
  0% { transform: scale(1, 0.7); }
  40% { transform: scale(0.8, 1.2); }
  60% { transform: scale(1, 1); }
  100% { bottom: 140px; }
}
@keyframes loading-step {
  0% {
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 #cfd1d6, -35px 50px 0 #cfd1d6, -70px 90px 0 #cfd1d6;
  }
  100% {
    box-shadow: 0 10px 0 #cfd1d6, -35px 50px 0 #cfd1d6, -70px 90px 0 #cfd1d6, -70px 90px 0 rgba(0, 0, 0, 0);
  }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-list { margin-top: 8px; }
.contact-label { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary); }
.contact-item { display: block; color: var(--text-soft); font-size: 17px; padding: 10px 0; }
.contact-item:hover { color: var(--brand-primary); }

.contact-card {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 28px 0 auto;
  border-radius: 24px;
  line-height: 1.6;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card-inner {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 36px 34px;
  border-radius: 22px;
  color: #ffffff;
  text-align: left;
  background: var(--brand-primary);
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card-inner::before {
  position: absolute;
  content: "";
  top: -4%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%);
  background: #CFE4E1;
  z-index: -1;
  transform-origin: bottom;
  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card-inner::after {
  position: absolute;
  content: "";
  top: -8%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%);
  background: #E7F1EF;
  z-index: -2;
  transform-origin: bottom;
  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card-inner svg {
  width: 46px;
  height: 46px;
  flex: none;
  stroke: #fff;
}

.contact-card-title {
  z-index: 1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.contact-card-para {
  z-index: 1;
  opacity: 1;
  max-width: 30ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  text-align: left;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card-para-link {
  color: #DFF3F0;
  font-weight: 600;
  text-decoration: underline;
}

.contact-card:hover {
  transform: translate(0px, -16px);
}

.contact-card:hover .contact-card-inner::before {
  rotate: -8deg;
  top: 0;
  left: 50%;
  width: 112%;
  height: 108%;
  transform: translate(-50%, -2%);
}

.contact-card:hover .contact-card-inner::after {
  rotate: 8deg;
  top: 0;
  left: 50%;
  width: 112%;
  height: 108%;
  transform: translate(-50%, -2%);
}

/* Contact card flash when arriving from the profile mail link */
.contact-card.flash {
  animation: contactFlash 1.5s ease;
}
@keyframes contactFlash {
  0% { box-shadow: 0 0 0 0 rgba(207, 228, 225, 0); }
  30% { box-shadow: 0 0 0 10px rgba(207, 228, 225, 0.85), 0 0 50px rgba(30, 124, 120, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(207, 228, 225, 0); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 30px; height: 30px; object-fit: contain; }
.footer-brand .brand-name { font-size: 19px; }
.footer-slogan {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-primary);
}
.footer-copy { font-size: 14px; color: var(--muted); }

/* ============================================================
   Reveal animations (Wix-style scroll enter)
   ============================================================ */
/* Slow continuous rotation for decorative elements */
.spin {
  transform-origin: center;
  animation: spin-slow var(--spin-dur, 40s) linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow { animation-duration: 60s; }
.spin-slower { animation-duration: 90s; }
.spin-slowest { animation-duration: 140s; }
.spin-reverse { animation-direction: reverse; }

[data-anim] {
  opacity: 0;
  will-change: transform, opacity;
}
[data-anim].is-visible {
  animation: fade-in 1.3s var(--reveal-ease) both;
  opacity: 1;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-anim="fade-in"].is-visible {
  animation-name: fade-in;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; animation: none !important; }
  .loader .loader-ball, .loader .loader-steps, .spin { animation: none !important; }
  .contact-card { transition: none; }
  .contact-card:hover { transform: none; }
  .contact-card.flash { animation: none; }
  .contact-card-inner::before, .contact-card-inner::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 72px; }
  .hero-art { order: -1; }
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 76px 0; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { height: 68px; }
  .brand-name { font-size: 19px; }
  .brand-logo { width: 38px; height: 38px; }
}
