/* =========================================================
   KS Technology Solutions LLC — Corporate Website
   Edit the variables below to rebrand the whole site.
   ========================================================= */

:root {
  /* Brand palette (deep blue + rust/orange, matching the KS Tech logo) */
  --navy:      #10233f;   /* primary dark */
  --navy-2:    #1b3a5f;   /* secondary dark */
  --accent:    #d2491b;   /* bright accent (links, highlights) */
  --accent-2:  #b32d00;   /* accent hover / original brand rust */
  --ink:       #1e293b;   /* body text */
  --muted:     #64748b;   /* secondary text */
  --line:      #e2e8f0;   /* borders */
  --bg:        #ffffff;
  --bg-alt:    #f6f9fc;
  --white:     #ffffff;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 40px -18px rgba(11, 31, 58, 0.30);
  --shadow-sm: 0 8px 24px -12px rgba(11, 31, 58, 0.25);
  --maxw:      1140px;
  --font:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.18; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 10px 24px -10px rgba(179,45,0,.55); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--accent-2); margin-bottom: .6rem;
}
.eyebrow.light { color: var(--accent); }
.accent { color: var(--accent-2); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .14em; }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-menu a:hover { color: var(--accent-2); text-decoration: none; }
.nav-menu .btn:hover { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.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); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(56,189,248,.18), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #eef5fb 100%);
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-copy .lead { font-size: 1.18rem; color: var(--muted); max-width: 38ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin-top: 1.8rem; color: var(--muted); font-size: .92rem; font-weight: 500; }

/* Hero visual */
.hero-visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.orb {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--navy-2));
  filter: blur(8px); opacity: .25;
}
.glass-card {
  position: relative; width: min(100%, 360px); background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9); border-radius: 18px; padding: 1.4rem;
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.dot-row { display: flex; gap: .4rem; margin-bottom: 1rem; }
.dot-row span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dot-row span:first-child { background: #fca5a5; }
.dot-row span:nth-child(2) { background: #fcd34d; }
.dot-row span:nth-child(3) { background: #86efac; }
.glass-card .line { height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--line), #f1f5f9); margin-bottom: .7rem; }
.glass-card .w80 { width: 80%; } .glass-card .w60 { width: 60%; } .glass-card .w90 { width: 90%; }
.bars { display: flex; align-items: flex-end; gap: .55rem; height: 90px; margin-top: 1.1rem; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 6px 6px 0 0; opacity: .85; }

/* ===== Trust strip ===== */
.trust { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: .25rem; }
.stat { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--accent); }
.stat-label { font-size: .9rem; color: #c7d6ea; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-intro { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; background: linear-gradient(135deg, #fde3d6, #fff4ef); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-copy p { color: var(--muted); margin-top: 1rem; }
.about-copy .btn { margin-top: 1.6rem; }
.about-panel {
  position: relative; background: linear-gradient(160deg, var(--navy), var(--navy-2));
  border-radius: 20px; padding: 2.4rem 2rem; color: #fff; box-shadow: var(--shadow);
}
.badge-float {
  position: absolute; top: -16px; left: 24px; background: var(--accent);
  color: var(--navy); font-weight: 700; font-size: .82rem; padding: .45rem 1rem; border-radius: 999px;
}
.check-list { list-style: none; padding: 0; margin-top: .6rem; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 2rem; color: #dbe7f5; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(210,73,27,.25);
  color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ===== Capabilities (services sub-list) ===== */
.capabilities { margin-top: 2.8rem; text-align: center; }
.capabilities-title { color: var(--navy); margin-bottom: 1.2rem; font-size: 1.1rem; }

/* ===== Vision / Mission / Values ===== */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.vision-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; height: 100%;
}
.vision-card h3 { margin-bottom: .8rem; position: relative; padding-bottom: .7rem; }
.vision-card h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px;
  border-radius: 3px; background: var(--accent);
}
.vision-feature { background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-color: transparent; }
.vision-feature h3 { color: #fff; }
.vision-feature p { color: #dbe7f5; }
.vision-feature h3::after { background: var(--accent); }
.mini-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.mini-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .96rem; }
.mini-list li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: .75rem; }

/* ===== Clients note ===== */
.clients-note { text-align: center; max-width: 680px; margin: 2rem auto 0; color: var(--muted); font-style: italic; }

/* ===== Process steps ===== */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: .6rem; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ===== Industries pills ===== */
.pill-grid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.pill {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.4rem; font-weight: 500; color: var(--ink); font-size: .95rem;
  transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.pill:hover { transform: translateY(-2px); border-color: var(--accent-2); color: var(--accent-2); }

/* ===== Contact ===== */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-copy p { color: #c7d6ea; margin-top: 1rem; }
.contact-list { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; color: #dbe7f5; }
.contact-list a { color: #fff; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(179,45,0,.15);
}
.field textarea { resize: vertical; }
.form-note { margin-top: .9rem; font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.form-note.success { color: #15803d; font-weight: 600; }
.form-note.error { color: #b91c1c; font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: #081628; color: #c7d6ea; padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-name { color: #fff; font-weight: 700; }
.footer-tag { font-size: .88rem; color: #8ba6c4; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: #c7d6ea; font-size: .94rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; font-size: .86rem; color: #8ba6c4; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 240px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 380px; }
  .nav-menu li { padding: .2rem 0; }
  .nav-menu .btn { margin-top: .6rem; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .pill:hover { transform: none; }
}
