/* ============================================================
   KHEVNA INFRASTRUCTURE — Monochrome Website Theme
   White & black, premium infrastructure brand.
   Display: Playfair Display (echoes the serif "Ki" logo)
   UI/Body: Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap');

:root {
  /* ---- ink / paper ---- */
  --ink:        #15171D;
  --ink-800:    #1D2027;
  --ink-700:    #2A2E37;
  --white:      #FFFFFF;
  --paper:      #FFFFFF;
  --tint:       #F6F5F2;   /* warm off-white section */
  --tint-2:     #EFEEEA;

  /* ---- warm neutrals ---- */
  --n-50:   #F4F3F0;
  --n-100:  #E9E7E2;
  --n-200:  #D9D6CF;
  --n-300:  #BDB9B0;
  --n-400:  #948F85;
  --n-500:  #6C6760;
  --n-600:  #423F39;

  /* ---- yellow accent (brand) ---- */
  --leaf:   #FFE700;
  --leaf-700: #B8860B;

  /* ---- semantic ---- */
  --fg-1: var(--ink);
  --fg-2: var(--n-600);
  --fg-3: var(--n-500);
  --fg-on-dark:   #F3F1ED;
  --fg-on-dark-2: #ABA69D;
  --border-1: var(--n-100);
  --border-2: var(--n-200);

  /* ---- type ---- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs: .75rem;  --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.375rem; --text-2xl: 1.75rem; --text-3xl: 2.25rem; --text-4xl: 3rem;
  --text-5xl: 4rem;   --text-6xl: 5rem;

  /* ---- radii ---- */
  --r-xs:6px; --r-sm:10px; --r-md:16px; --r-lg:24px; --r-xl:32px; --r-pill:999px;

  /* ---- spacing ---- */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px;
  --sp-6:32px; --sp-7:48px; --sp-8:64px; --sp-9:96px; --sp-10:128px;

  /* ---- elevation ---- */
  --shadow-sm: 0 1px 2px rgba(21,23,29,.06), 0 1px 3px rgba(21,23,29,.07);
  --shadow-md: 0 4px 14px rgba(21,23,29,.08), 0 2px 4px rgba(21,23,29,.05);
  --shadow-lg: 0 20px 48px rgba(21,23,29,.14), 0 6px 14px rgba(21,23,29,.07);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .26s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg-2);
  background: var(--paper);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); color: var(--fg-1); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h4, h5, h6 { font-family: var(--font-sans); color: var(--fg-1); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

/* ---- layout helpers ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.bg-tint { background: var(--tint); }
.bg-ink  { background: var(--ink); color: var(--fg-on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }

/* ---- eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fg-1);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--ink); display: inline-block; }
.eyebrow .leaf { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.bg-ink .eyebrow { color: #fff; }
.bg-ink .eyebrow::before { background: rgba(255,255,255,.6); }

/* display emphasis: italic serif word */
.display-em { font-style: italic; font-weight: 600; }

/* section heading */
.section-head { max-width: 680px; }
.section-head h2 { font-size: var(--text-4xl); margin-bottom: 16px; }
.section-head p { color: var(--fg-3); font-size: var(--text-lg); max-width: 60ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease); white-space: nowrap; text-decoration: none;
  padding: 13px 14px 13px 26px;
}
.btn .badge {
  width: 32px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center;
  transition: transform var(--dur) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .badge { background: #fff; color: var(--ink); }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark:hover .badge { transform: rotate(45deg); }
.btn-dark:active { transform: scale(.97); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light .badge { background: var(--ink); color: #fff; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-light:hover .badge { transform: rotate(45deg); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--border-2);
  padding: 12px 24px;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.bg-ink .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.bg-ink .btn-ghost:hover { background: #fff; color: var(--ink); border-color:#fff; }

/* ---- navbar ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-1);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; max-width: 1200px; margin: 0 auto; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; color: var(--fg-2);
  padding: 9px 16px; border-radius: var(--r-pill); transition: all var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: #fff; background: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.nav__burger svg { width: 26px; height: 26px; }

/* ---- cards ---- */
.card {
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-md);
  padding: 32px 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-sans); font-size: var(--text-xl); font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.card p { color: var(--fg-3); font-size: var(--text-sm); margin: 0; }
.card__num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--n-300); font-weight: 600; line-height: 1; margin-bottom: 18px; }

/* ---- image placeholder ---- */
.imgph {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink);
  display: grid; place-items: center; color: var(--fg-on-dark-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
}
.imgph__label { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .04em; text-align: center; padding: 24px; }
.imgph__label svg { width: 34px; height: 34px; opacity: .7; }
.imgph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- stat ---- */
.stat__num { font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 700; line-height: .95; color: #fff; letter-spacing: -.02em; }
.stat__label { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--fg-on-dark-2); margin-top: 10px; letter-spacing: .03em; }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--fg-on-dark-2); padding: 80px 0 36px; }
.footer a { color: var(--fg-on-dark-2); transition: color var(--dur) var(--ease); }
.footer a:hover { color: #fff; }
.footer h5 { color: #fff; font-size: var(--text-sm); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.footer__logo img { height: 90px; width: auto; margin-bottom: 22px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-1); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  padding: 13px 15px; outline: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,23,29,.08); }

/* ---- chips ---- */
.chip {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border-1);
  border-radius: var(--r-sm); padding: 16px 18px; font-size: 14.5px; color: var(--fg-1); font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- page hero ---- */
.pagehero { padding: 80px 0 64px; background: var(--tint); border-bottom: 1px solid var(--border-1); }
.pagehero .eyebrow { margin-bottom: 18px; }
.pagehero h1 { font-size: var(--text-5xl); margin-bottom: 18px; }
.pagehero p { max-width: 64ch; color: var(--fg-3); font-size: var(--text-lg); }
.crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 26px; letter-spacing: .04em; }
.crumbs a { color: var(--fg-3); } .crumbs a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --text-5xl: 2.9rem; --text-4xl: 2.25rem; }
  .section { padding: 64px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border-1); padding: 16px 24px 24px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav__links a { padding: 14px 16px; border-radius: var(--r-sm); }
  .nav.open .nav__links a.active { background: var(--ink); }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  :root { --text-5xl: 2.5rem; --text-4xl: 2rem; --text-3xl: 1.85rem; }
  .section { padding: 56px 0; }
}
