/* ===== Teknik Engineers: brand tokens ===== */
:root {
  --blue: #4472c4;        /* primary brand blue from the deck */
  --blue-dark: #2f5597;
  --navy: #3b5a8a;        /* logo blue */
  --ink: #111827;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f2f4f8;
  --line: #dde3ee;
  --dark: #0b0f17;
  --red: #9b2335;
  --green: #4a9a2f;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 .75rem;
}
.eyebrow.light { color: #b8cdf2; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--blue); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-light:hover { background: #e8eefa; border-color: #e8eefa; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 23, .96); backdrop-filter: blur(8px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-size: 1.15rem; }
.brand img { border-radius: 3px; background: #fff; }
.brand strong { color: #8fb0ea; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: #d6dcea; text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--dark); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem 0; width: 100%; }
  .site-nav .btn { margin-top: .5rem; width: auto; }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(143,176,234,.35), transparent 55%),
    linear-gradient(135deg, #1d3461 0%, var(--blue) 100%);
  color: #fff; padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero .eyebrow { color: #cfdcf5; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { color: #b8cdf2; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 640px; color: #e4ebf8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-cta .btn:first-child { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* ===== Facts ===== */
.facts { background: var(--dark); color: #fff; padding: 2rem 0; }
.facts-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; text-align: center; }
.fact strong { display: block; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #8fb0ea; }
.fact span { font-size: .85rem; color: #aab3c5; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #e4e8f0; }
.section-dark a { color: #a9c2f0; }
.section-lead { color: var(--muted); max-width: 720px; font-size: 1.05rem; margin-bottom: 2.5rem; }
.sub-heading { margin-top: 3rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.about-grid p { color: #374151; }
.mission-card {
  background: linear-gradient(160deg, var(--blue) 0%, #1d3461 100%);
  color: #fff; border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow);
}
.mission-card h3 { font-size: 1.6rem; }
.mission-card p:last-child { color: #e1e8f6; margin-bottom: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(17,24,39,.12); }
.product-badge {
  height: 130px; display: flex; flex-direction: column; justify-content: center;
  padding: 0 1.5rem; color: #fff; line-height: 1.05;
}
.product-badge span { font-size: 1.6rem; font-weight: 800; }
.product-badge em { font-style: normal; font-size: 1.15rem; opacity: .85; }
.badge-blue  { background: linear-gradient(135deg, #1e4fa0, #4f86d9); }
.badge-navy  { background: linear-gradient(135deg, #123a7a, #2f6bc4); }
.badge-red   { background: linear-gradient(135deg, #6e1424, #b33246); }
.badge-green { background: linear-gradient(135deg, #2f6e1d, #66b443); }
.product-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-for { color: var(--blue-dark); font-weight: 600; font-size: .92rem; margin-top: -.25rem; }
.product ul { padding-left: 1.1rem; margin: 0 0 1rem; color: #374151; font-size: .93rem; }
.product li { margin-bottom: .35rem; }
.product-meta { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); margin-bottom: 0; }
.product-meta strong { color: var(--ink); }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .product-grid { grid-template-columns: 1fr; } }

.clickdata {
  margin-top: 2.5rem; border-radius: var(--radius); padding: 2.25rem;
  background: linear-gradient(120deg, #1d3461, var(--blue)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.clickdata p:last-child { margin-bottom: 0; color: #e1e8f6; max-width: 680px; }
@media (max-width: 720px) { .clickdata { flex-direction: column; align-items: flex-start; } }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.checks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.checks li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; break-inside: avoid; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/80% no-repeat;
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .checks { columns: 1; } }

/* ===== Clients ===== */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.stats-row div { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.stats-row strong { display: block; font-size: 1.75rem; color: var(--blue-dark); }
.stats-row span { color: var(--muted); }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr; } }

.segments { display: flex; flex-wrap: wrap; gap: .75rem; }
.segment {
  background: var(--blue); color: #fff; padding: .7rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: .93rem;
}
.client-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1.5rem;
}
.client-list li {
  background: #fff; border-left: 3px solid var(--blue); padding: .65rem 1rem;
  border-radius: 6px; font-weight: 600; font-size: .93rem;
}
@media (max-width: 860px) { .client-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .client-list { grid-template-columns: 1fr; } }

/* ===== Team ===== */
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; margin: 0 auto 1rem;
}
.avatar-lg { width: 110px; height: 110px; font-size: 2rem; margin: 0; background: linear-gradient(135deg, #1d3461, var(--blue)); }
.ceo {
  display: flex; align-items: center; gap: 1.5rem; margin: 2rem 0 2.5rem;
  padding: 1.75rem; border-radius: var(--radius); background: var(--bg-alt);
}
.ceo h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.ceo p { margin: 0; color: var(--muted); }
.team-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; text-align: center;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; }
.team-grid h4 { margin-bottom: .2rem; font-size: 1.02rem; }
.team-grid p { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.section-dark h2 { color: #fff; }
.contact-list { margin: 1.5rem 0; }
.contact-list dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fb0ea; margin-top: 1.1rem; }
.contact-list dd { margin: .25rem 0 0; }
.contact-list address { font-style: normal; }
.social { display: flex; flex-wrap: wrap; gap: .6rem; }
.social a {
  border: 1px solid #2c3546; border-radius: 999px; padding: .45rem 1rem;
  text-decoration: none; font-size: .9rem;
}
.social a:hover { border-color: #a9c2f0; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #1a2130; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: #000; color: #8a93a6; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 0; }
.footer-inner p { margin: 0; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== 404 ===== */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: clamp(4rem, 12vw, 7rem); color: var(--blue); margin: 0; }
