/* ============================================================
   KATUM INC. — Premium Holding Company
   Palette derived from logo:
     Dark slate:  #2b3044 (logo background)
     Katum green: #7ec740 (logo spiral/accent)
     Clean white: #f9f9f7
   Extended with professional neutrals
   ============================================================ */

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

:root {
  /* Brand from logo */
  --slate:       #2b3044;
  --slate-deep:  #1e2233;
  --slate-mid:   #353a50;
  --green:       #7ec740;
  --green-dim:   #6aad35;
  --green-glow:  rgba(126,199,64,0.12);

  /* Neutrals */
  --gray-700: #3a3f4f;
  --gray-500: #6c7082;
  --gray-400: #8e92a2;
  --gray-300: #b3b6c3;
  --gray-200: #d2d4dc;
  --gray-100: #e9eaed;
  --off-white: #f9f9f7;
  --white: #ffffff;

  /* Type */
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--off-white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hide-mobile {}

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

/* --- Shared elements --- */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.label--light { color: var(--green); }

.heading-2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--slate);
  letter-spacing: -0.01em;
}
.heading-2--light { color: var(--off-white); }

.section { padding: 120px 0; }
.section--dark {
  background: var(--slate);
  color: var(--gray-300);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--slate);
  color: var(--off-white);
  border: 1px solid var(--slate);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background: var(--slate-mid);
  border-color: var(--slate-mid);
}

.btn--hero {
  background: transparent;
  border: 1px solid rgba(126,199,64,0.4);
  color: var(--green);
  margin-top: 40px;
}
.btn--hero:hover {
  background: rgba(126,199,64,0.08);
  border-color: var(--green);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(43,48,68,0.97);
  border-bottom-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { z-index: 10; }
.nav__logo-img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s;
}
.nav__link:hover { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--slate-deep);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, var(--green-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(126,199,64,0.04) 0%, transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding: 0 32px;
}

.hero__logo {
  width: 160px;
  margin: 0 auto 48px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.1s ease forwards;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.hero__rule {
  width: 48px;
  height: 2px;
  background: var(--green);
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.8;
  color: var(--gray-400);
  font-weight: 300;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s 0.65s ease forwards;
}

.hero__actions {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s 0.85s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.about__right p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.85;
}
.about__right p:last-child { margin-bottom: 0; }

/* Metrics strip */
.metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.metric { flex: 1; text-align: center; }

.metric__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1;
  margin-bottom: 6px;
}

.metric__label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.metric__divider {
  width: 1px;
  height: 48px;
  background: var(--gray-200);
}

/* ============================================================
   DIVISIONS
   ============================================================ */
.divisions {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.div-card {
  padding: 48px;
  background: var(--slate-mid);
  border-left: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.div-card--active {
  border-left-color: var(--green);
}
.div-card--future {
  opacity: 0.55;
  background: rgba(53,58,80,0.5);
}
.div-card--future:hover { opacity: 0.75; }

.div-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.div-card__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}

.div-card__status {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.div-card__status--soon { color: var(--gray-500); }

.div-card__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 12px;
}

.div-card__desc {
  font-size: 0.95rem;
  color: var(--gray-400);
  max-width: 640px;
  line-height: 1.75;
}

.div-card__services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: rgba(255,255,255,0.04);
}

.svc {
  padding: 28px;
  background: var(--slate-mid);
  transition: background 0.2s;
}
.svc:hover { background: rgba(126,199,64,0.04); }

.svc h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 8px;
}
.svc p {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  max-width: 600px;
}

.contact__text {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-top: 24px;
  line-height: 1.85;
}

.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--slate);
  margin-top: 40px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.contact__email:hover {
  border-color: var(--green);
  color: var(--green-dim);
}

.contact__loc {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0;
  background: var(--slate-deep);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  border-radius: 3px;
  opacity: 0.7;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--green); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .div-card__services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--slate-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px;
    gap: 28px;
    transition: right 0.35s ease;
  }
  .nav__menu.open { right: 0; }
  .nav__menu .nav__link {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
  }

  .nav__toggle.active span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav__toggle.active span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hide-mobile { display: none; }

  .hero__logo { width: 120px; margin-bottom: 36px; }
  .hero__title { font-size: 2.4rem; }

  .metrics { flex-wrap: wrap; gap: 24px; padding: 32px 0; }
  .metric { flex: 0 0 calc(50% - 12px); }
  .metric__divider { display: none; }

  .div-card { padding: 28px 20px; }
  .div-card__services { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__left { flex-direction: column; gap: 4px; }
}
