/* ============================================================
   K2 Global — Shared Stylesheet
   Modernized palette derived from brand logo (blue #4F5FC4 + orange #E89020)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette — extracted from logo */
  --blue:    #4F5FC4;          /* logo blue  */
  --orange:  #E89020;          /* logo orange */

  /* Surface & background */
  --cream:   #F5F3EC;          /* warm off-white, slightly cooler than before */
  --dark:    #0B1020;          /* deep midnight blue-black */
  --navy:    #1B2255;          /* blue-tinted dark navy */
  --white:   #ffffff;

  /* Typography */
  --text:       #1B2255;       /* navy-blue for body copy */
  --text-light: #5A6285;       /* muted blue-grey */

  /* Utility */
  --overlay:   rgba(8, 12, 38, 0.52);
  --nav-h:     72px;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(30, 40, 100, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(8, 12, 50, 0.35);
}

.nav__logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  mix-blend-mode: screen;   /* makes black background transparent on dark nav */
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover { opacity: 0.85; }

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Sections ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 5vw, 5rem) 4rem;
  max-width: 760px;
}

.hero__content h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero__content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  letter-spacing: 0.01em;
  max-width: 500px;
}

/* Shorter hero for inner pages */
.hero--short {
  min-height: 58vh;
}

.hero--short .hero__content {
  padding-bottom: 5rem;
}

/* ── Scroll-in Animations ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.24s; }
.fade-up:nth-child(4) { transition-delay: 0.36s; }

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
}

.section--cream { background: var(--cream); }

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

/* ── Team Section ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.team-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  background: #d1d5db;
}

.team-card__body {
  padding: 1.4rem 1.6rem 1.6rem;
}

.team-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.team-card__title {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 6px;
  transition: background var(--transition);
}

.team-card__linkedin:hover { background: var(--orange); }

.team-card__linkedin svg {
  width: 16px; height: 16px;
  fill: var(--white);
}

/* ── Projects Grid ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.projects-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects-grid__item:hover img {
  transform: scale(1.06);
}

/* Project hover overlay — shared by grid + featured */
.projects-grid__overlay,
.featured-projects__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.5rem;
  transition: background 0.35s ease;
}

.projects-grid__item:hover .projects-grid__overlay,
.featured-projects__item:hover .featured-projects__overlay {
  background: rgba(10, 18, 30, 0.72);
}

.projects-grid__overlay-title,
.featured-projects__overlay-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.projects-grid__overlay-type,
.featured-projects__overlay-type {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.projects-grid__overlay-desc,
.featured-projects__overlay-desc {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.projects-grid__item:hover .projects-grid__overlay-title,
.projects-grid__item:hover .projects-grid__overlay-type,
.projects-grid__item:hover .projects-grid__overlay-desc,
.featured-projects__item:hover .featured-projects__overlay-title,
.featured-projects__item:hover .featured-projects__overlay-type,
.featured-projects__item:hover .featured-projects__overlay-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,18,35,0.6);
}

.contact-form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 5vw, 5rem) 4rem;
  max-width: 720px;
}

.contact-form-wrap h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

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

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form__label span { color: var(--orange); }

.form__input,
.form__textarea {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form__input::placeholder,
.form__textarea::placeholder { color: rgba(255,255,255,0.35); }

.form__input:focus,
.form__textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.18);
}

.form__textarea { min-height: 130px; resize: vertical; }

.form__submit {
  align-self: flex-start;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2.2rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

.form__submit:hover {
  background: #e68800;
  transform: translateY(-2px);
}

.form__error {
  color: #fca5a5;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  min-height: 1em;
}

.form__input.invalid,
.form__textarea.invalid {
  border-color: #f87171;
}

.form__banner {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form__banner.success {
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid #16a34a;
  color: #bbf7d0;
}
.form__banner.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: #e68800; }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }

/* ── Hero Actions & Scroll Indicator ─────────────────────── */
.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.hero__scroll:hover { color: rgba(255,255,255,0.9); }
.hero__scroll svg { width: 30px; height: 30px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}
.hero__scroll { animation: bounce 2.2s ease infinite; }

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--navy);
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  gap: 2rem 4rem;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.stats-bar__num {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats-bar__label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Pillars (What We Do) ─────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1060px;
  margin: 0 auto;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.8rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(30,40,100,0.14);
}

.pillar__icon {
  width: 48px; height: 48px;
  background: rgba(79, 95, 196, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--blue);
  flex-shrink: 0;
}
.pillar__icon svg { width: 100%; height: 100%; }

.pillar__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.pillar__text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── Featured Projects ────────────────────────────────────── */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-projects__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.featured-projects__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-projects__item:hover img { transform: scale(1.05); }

.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.projects-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  background: var(--dark);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  text-align: center;
}

.cta-strip__content {
  max-width: 640px;
  margin: 0 auto;
}

.cta-strip h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-strip p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--cream);
  text-align: center;
  padding: 1.4rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 35, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.3rem; }

  .nav__toggle { display: flex; z-index: 101; }

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

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

  .hero__content { padding-top: calc(var(--nav-h) + 2.5rem); }

  .featured-projects { grid-template-columns: 1fr; }

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

  .stats-bar { gap: 1.5rem 2.5rem; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 340px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
