/*
Theme Name: tekAssembly
Theme URI: https://tekassembly.com
Author: tekAssembly Corporation
Description: Modern block theme for tekAssembly: AI, digital engineering, IT staffing and consulting.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tekassembly
*/

:root {
  --tek-ink: #070B18;
  --tek-navy: #0B1226;
  --tek-indigo: #4F46E5;
  --tek-violet: #7C5CFF;
  --tek-cyan: #22D3EE;
  --tek-text: #1A2138;
  --tek-muted: #5A647C;
  --tek-mist: #F4F6FB;
  --tek-line: #E3E7F0;
  --tek-radius: 18px;
  --tek-grad: linear-gradient(120deg, #7C5CFF 0%, #4F46E5 40%, #22D3EE 100%);
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--tek-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--tek-cyan); outline-offset: 3px; }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.12; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.tek-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tek-section { padding: clamp(64px, 8vw, 112px) 0; }
.tek-alt { background: var(--tek-mist); }
.tek-dark { background: var(--tek-navy); color: #fff; }
.tek-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0 0 16px; max-width: 24ch; }
.tek-section h3 { margin: 0; }
.tek-lead { font-size: 1.15rem; line-height: 1.6; color: var(--tek-muted); max-width: 64ch; margin: 0; }
.tek-kicker { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tek-indigo); }
.tek-dark h2, .tek-dark h3 { color: #fff; }
.tek-dark .tek-lead { color: rgba(255,255,255,.72); }
.tek-dark .tek-kicker { color: #67E8F9; }

/* ---------- Header ---------- */
.tek-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 24, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.admin-bar .tek-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tek-header { top: 46px; } }
.tek-header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; }
.tek-header a { color: #fff; text-decoration: none; }
.tek-brand { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.tek-brand a { color: #fff; }
.tek-header .wp-block-navigation { font-size: .95rem; font-weight: 500; }
.tek-header .wp-block-navigation-item__content { padding: 8px 12px; border-radius: 8px; }
.tek-header .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.09); }
.tek-header .wp-block-navigation__submenu-container {
  background: #0D1530 !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important; border-radius: 14px;
  padding: 8px; min-width: 250px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.6);
}
.tek-header .wp-block-navigation__submenu-icon svg { stroke: #fff; }
.tek-header .wp-block-navigation__responsive-container-open svg,
.tek-header .wp-block-navigation__responsive-container-close svg { fill: #fff; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--tek-ink) !important; color: #fff !important; }
.tek-header .tek-header-cta .wp-block-button__link { background: #fff; color: var(--tek-ink); padding: .55rem 1.1rem; font-size: .9rem; }
.tek-nav-contact { display: none; }
.is-menu-open .tek-nav-contact { display: block; }
@media (max-width: 640px) { .tek-header-cta { display: none; } }

/* ---------- Hero ---------- */
.tek-hero {
  position: relative; overflow: hidden; background: var(--tek-ink); color: #fff;
  padding: clamp(88px, 12vw, 160px) 0 clamp(72px, 9vw, 120px);
}
.tek-hero--page { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); }
.tek-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%; pointer-events: none;
  background:
    radial-gradient(620px 420px at 18% 20%, rgba(124,92,255,.5), transparent 62%),
    radial-gradient(540px 400px at 84% 8%, rgba(34,211,238,.3), transparent 62%);
}
.tek-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.tek-hero > .tek-wrap { position: relative; z-index: 1; }
.tek-eyebrow {
  display: inline-block; margin: 0 0 24px; padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.05);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C7D2FE;
}
.tek-hero h1 { margin: 0 0 22px; color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); max-width: 18ch; }
.tek-hero--page h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 24ch; }
.tek-hero h1 strong { font-weight: 800; background: var(--tek-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.tek-hero .tek-lead { color: rgba(255,255,255,.76); font-size: 1.22rem; }
.tek-hero .wp-block-buttons { margin-top: 32px; }
.tek-trust { margin: 40px 0 0; font-size: .9rem; color: rgba(255,255,255,.55); }

/* ---------- Buttons ---------- */
.wp-block-button__link { border-radius: 999px; font-weight: 600; padding: .85rem 1.6rem; background: var(--tek-ink); color: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(79,70,229,.6); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--tek-ink); border: 1px solid var(--tek-line); box-shadow: none; }
.tek-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.tek-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.tek-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--tek-ink); }
.tek-hero .is-style-outline .wp-block-button__link,
.tek-cta .is-style-outline .wp-block-button__link,
.tek-dark .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- Grids and cards ---------- */
.tek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 40px; }
.tek-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tek-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tek-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tek-grid > * { margin: 0 !important; }
.tek-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: #fff; border: 1px solid var(--tek-line); border-radius: var(--tek-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tek-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(20,30,70,.28); border-color: #CBD3EA; }
.tek-card h3 { font-size: 1.2rem; margin: 0; }
.tek-card p { margin: 0; color: var(--tek-muted); line-height: 1.55; }
.tek-card .tek-link { margin-top: auto; padding-top: 8px; }
.tek-card .tek-link a { font-weight: 600; color: var(--tek-indigo); text-decoration: none; }
.tek-card .tek-link a::after { content: " \2192"; }
.tek-dark .tek-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.tek-dark .tek-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); box-shadow: none; }
.tek-dark .tek-card p { color: rgba(255,255,255,.7); }
.tek-dark .tek-card .tek-link a { color: #67E8F9; }
.tek-icon {
  width: 46px; height: 46px; border-radius: 12px; margin: 0 0 6px !important;
  display: grid; place-items: center; background: var(--tek-grad);
  color: #fff !important; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.tek-step-num { font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--tek-indigo) !important; }
.tek-dark .tek-step-num { color: #67E8F9 !important; }

/* Two-column split */
.tek-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.tek-split > * { margin: 0 !important; }
.tek-split h2 { max-width: 20ch; }

/* Chips */
.tek-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tek-chips > * { margin: 0 !important; }
.tek-chip { padding: 8px 16px; background: #fff; border: 1px solid var(--tek-line); border-radius: 999px; font-weight: 500; font-size: .92rem; }
.tek-chip a { color: inherit; text-decoration: none; }
.tek-alt .tek-chip { background: #fff; }
.tek-dark .tek-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }

/* Check list */
.tek-checks { list-style: none; padding: 0; margin: 20px 0 0; }
.tek-checks li { position: relative; padding-left: 30px; margin: 14px 0; line-height: 1.55; }
.tek-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--tek-indigo); font-weight: 800; }
.tek-dark .tek-checks li::before { color: #67E8F9; }
.tek-dark .tek-checks li { color: rgba(255,255,255,.85); }

/* Job rows */
.tek-job { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; margin: 0 0 12px !important; background: #fff; border: 1px solid var(--tek-line); border-radius: 14px; }
.tek-job > * { margin: 0 !important; }
.tek-job strong { font-size: 1.05rem; }
.tek-job .wp-block-button__link { padding: .55rem 1.2rem; font-size: .9rem; }
.tek-legal { font-size: .85rem; color: var(--tek-muted); line-height: 1.6; margin-top: 32px; }

/* Closing CTA */
.tek-cta { position: relative; overflow: hidden; background: var(--tek-ink); color: #fff; text-align: center; padding: clamp(64px, 8vw, 104px) 0; }
.tek-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 20% 100%, rgba(124,92,255,.45), transparent 65%),
    radial-gradient(520px 320px at 80% 100%, rgba(34,211,238,.28), transparent 65%);
}
.tek-cta > .tek-wrap { position: relative; z-index: 1; }
.tek-cta h2 { color: #fff; margin: 0 auto 16px; max-width: 20ch; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.tek-cta p { color: rgba(255,255,255,.75); max-width: 56ch; margin: 0 auto 28px; font-size: 1.1rem; }
.tek-cta .wp-block-buttons { justify-content: center; }

/* ---------- Footer ---------- */
.tek-footer { background: var(--tek-ink); color: rgba(255,255,255,.72); padding: 64px 0 32px; font-size: .95rem; }
.tek-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.tek-footer a:hover { color: #fff; }
.tek-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.tek-footer p { margin: 0 0 12px; line-height: 1.6; }
.tek-footer .tek-brand a { color: #fff; }
.tek-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.tek-footer-grid > * { margin: 0 !important; }
.tek-footer ul { list-style: none; padding: 0; margin: 0; }
.tek-footer li { margin: 0 0 8px; }
.tek-footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tek-footer-bottom p { margin: 0; }

/* ---------- Contact form ---------- */
.tek-form { display: grid; gap: 18px; }
.tek-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tek-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.tek-form input, .tek-form select, .tek-form textarea {
  width: 100%; box-sizing: border-box; padding: 13px 15px; font: inherit; color: var(--tek-text);
  background: #fff; border: 1px solid var(--tek-line); border-radius: 12px;
}
.tek-form input:focus, .tek-form select:focus, .tek-form textarea:focus { outline: 2px solid var(--tek-indigo); outline-offset: 1px; border-color: transparent; }
.tek-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tek-submit { justify-self: start; padding: .9rem 1.8rem; border: 0; border-radius: 999px; background: var(--tek-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.tek-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(79,70,229,.6); }
.tek-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.tek-notice--ok { background: #ECFDF5; color: #065F46; }
.tek-notice--err { background: #FEF2F2; color: #991B1B; }

/* ---------- Blog / generic ---------- */
.tek-blog { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.tek-blog .wp-block-post-title a { color: inherit; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tek-split { grid-template-columns: 1fr; gap: 32px; }
  .tek-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tek-footer-grid, .tek-form-row { grid-template-columns: 1fr; }
  .tek-hero .wp-block-buttons .wp-block-button { width: 100%; }
  .tek-hero .wp-block-button__link { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
