/* ============================================================
   KL Global Technologies — Stylesheet
   Palette: deep navy -> electric blue on white
   ============================================================ */

:root {
  --navy: #0a2472;
  --navy-800: #123a8f;
  --blue: #1d4ed8;
  --blue-500: #2b6fd6;
  --blue-300: #6aa4ee;
  --ink: #0f1728;
  --slate: #4b5568;
  --muted: #6b7280;
  --line: #e5e9f2;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 36, 114, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 36, 114, 0.16);
  --grad: linear-gradient(135deg, #2b6fd6 0%, #0a2472 100%);
  --container: 1160px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Skip link — hidden until focused by keyboard */
.skip-link {
  position: absolute; top: -80px; left: 12px; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  border-radius: 8px; font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }

/* Visible keyboard-focus indicator for interactive elements */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }

.container { width: min(var(--container), 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  line-height: normal;
  cursor: pointer; border: 2px solid transparent; transition: .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29, 78, 216, .38); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue); }
.btn-sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .8rem; }
/* Keep the header <picture> wrapper layout-transparent so the <img> aligns exactly as a bare image */
.brand picture { display: contents; }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); letter-spacing: .2px; }
.brand-text small { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--slate); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); font-weight: 600; }
.nav .nav-cta { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 85% 15%, rgba(43, 111, 214, .18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(10, 36, 114, .12), transparent 60%);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; font-size: .78rem; color: var(--blue);
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 1.4rem 0 2rem; font-size: 1.1rem; color: var(--slate); max-width: 40ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { list-style: none; display: flex; gap: 2.4rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* Hero visual */
.hero-visual { display: grid; place-items: center; position: relative; }

/* Floating service chips */
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; font-size: .82rem; color: var(--navy);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(4px);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--blue); }
.chip-1 { top: 6%;  left: 2%;  animation-delay: 0s; }
.chip-2 { top: 20%; right: -2%; animation-delay: 1.4s; }
.chip-3 { bottom: 16%; left: -4%; animation-delay: .7s; }
.chip-4 { bottom: 4%; right: 6%;  animation-delay: 2.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.orbit {
  position: relative; width: min(360px, 80%); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff, #eaf1fc);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.orbit::before, .orbit::after {
  content: ""; position: absolute; border: 1.5px dashed rgba(43, 111, 214, .35);
  border-radius: 50%;
}
.orbit::before { inset: 12%; animation: spin 26s linear infinite; }
.orbit::after { inset: 26%; border-color: rgba(10, 36, 114, .25); animation: spin 18s linear infinite reverse; }
.orbit-logo { width: 38%; height: auto; position: relative; z-index: 2; }
.dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(43, 111, 214, .12); }
.dot-1 { top: 10%; left: 48%; }
.dot-2 { bottom: 16%; left: 14%; background: var(--navy); }
.dot-3 { top: 40%; right: 8%; background: var(--blue-300); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
/* Offset anchor targets so headings clear the sticky header */
.hero, .section, .banner { scroll-margin-top: 84px; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; font-size: .74rem; color: var(--blue); margin-bottom: .8rem;
}
.section-eyebrow.light { color: var(--blue-300); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
.section-sub { color: var(--slate); margin-top: .8rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 3rem; align-items: start; }
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--slate); margin-bottom: 1rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.value { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.value h3 { color: var(--blue); font-size: 1.05rem; margin-bottom: .3rem; }
.value p { font-size: .88rem; color: var(--muted); margin: 0; }

.about-card {
  background: var(--grad); color: #fff; padding: 2.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); position: sticky; top: 96px;
}
.about-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: .8rem; }
.about-card > p { color: rgba(255, 255, 255, .85); margin-bottom: 1.4rem; }
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: rgba(255, 255, 255, .95); font-size: .95rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); border-radius: 50%; font-size: .75rem;
}

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: .28s ease; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43,111,214,.12), rgba(10,36,114,.1));
  color: var(--blue); margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .95rem; }
.card-cta {
  background: var(--grad); color: #fff; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: .8rem;
}
.card-cta::after { display: none; }
.card-cta h3, .card-cta p { color: #fff; }
.card-cta p { color: rgba(255,255,255,.85); }
.card-cta .btn-primary { background: #fff; color: var(--navy); }

/* ---------- Why / features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.feature { padding: 1.8rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.feature-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--blue-300); }
.feature h3 { margin: .6rem 0 .4rem; font-size: 1.12rem; }
.feature p { color: var(--slate); font-size: .92rem; }

/* ---------- Container width helper ---------- */
.container.narrow { width: min(820px, 92%); }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.6rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff;
  background: var(--grad); margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .92rem; }
/* connector line between steps (desktop) */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -0.9rem; width: 1.8rem; height: 2px;
  background: linear-gradient(90deg, var(--blue-300), transparent);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.3rem; transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--blue-300); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-family: var(--font-head);
  font-weight: 600; color: var(--navy); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue);
  transition: transform .25s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--slate); font-size: .95rem; line-height: 1.6; }

/* ---------- Contact ---------- */
.section-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 80% 10%, rgba(43,111,214,.35), transparent 60%);
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .8rem; }
.contact-lead { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.contact-list span, .contact-list a { color: rgba(255,255,255,.8); font-size: .95rem; }
.contact-list a:hover { color: #fff; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fbfcfe; transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,111,214,.15); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin-top: .9rem; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #071a52; color: rgba(255,255,255,.75); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; padding: 3.2rem 0 2.4rem; }
.footer-brand-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-logo { height: 52px; width: auto; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand-text strong { font-family: var(--font-head); font-size: 1.08rem; color: #fff; letter-spacing: .2px; }
.footer-brand-text small { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer-brand p { font-size: .92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.footer-nav h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-nav a, .footer-nav span { display: block; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; flex-wrap: wrap; gap: .6rem; }
.footer-bottom p { font-size: .85rem; }
.to-top { font-size: .85rem; color: rgba(255,255,255,.8); }
.to-top:hover { color: #fff; }

/* ---------- Skyline banner ---------- */
.banner {
  position: relative; overflow: hidden; color: #fff;
  background: #071a52 url("../images/skyline.jpg") center/cover no-repeat;
  background-attachment: fixed;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,82,.94), rgba(10,36,114,.68) 50%, rgba(7,26,82,.94));
}
.banner-inner {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 1.6rem;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0; flex-wrap: wrap;
}
.banner-globe {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.banner-globe svg { width: 34px; height: 34px; }
.banner-text { flex: 1 1 340px; }
.banner-text h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.banner-text p { color: rgba(255,255,255,.82); margin-top: .5rem; max-width: 62ch; }
.grad-light { background: linear-gradient(90deg, #7fb0f2, #cfe0fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.3); }
.banner-cta { flex: 0 0 auto; }

/* ---------- Decorative dot texture ---------- */
.hero-bg::after, .section-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(43,111,214,.22) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
}
.hero-bg::after {
  -webkit-mask-image: radial-gradient(58% 58% at 72% 32%, #000, transparent 72%);
  mask-image: radial-gradient(58% 58% at 72% 32%, #000, transparent 72%);
  opacity: .7;
}
.section-dark::after {
  background-image: radial-gradient(rgba(255,255,255,.09) 1.1px, transparent 1.2px);
  -webkit-mask-image: radial-gradient(50% 60% at 15% 85%, #000, transparent 75%);
  mask-image: radial-gradient(50% 60% at 15% 85%, #000, transparent 75%);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit { width: min(280px, 70%); }
  .about-card { position: static; }
  .cards, .features, .process { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  .banner { background-attachment: scroll; }
  .banner-inner { flex-direction: column; align-items: flex-start; }

  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 6%; transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow); align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: .8rem; border: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .values, .cards, .features, .process { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .float-chip { display: none; }
  /* Scale the brand back down so the logo + name don't crowd the menu toggle */
  .brand-logo { height: 42px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .66rem; letter-spacing: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
