/* ==========================================================================
   TechBrights LLC — modern stylesheet
   Plain CSS, no dependencies. Responsive, accessible, light/dark aware.
   ========================================================================== */

:root {
  --navy-900: #0b1b34;
  --navy-800: #0f2547;
  --navy-700: #143059;
  --blue-600: #1f6feb;
  --blue-500: #2f81f7;
  --cyan-400: #35c4e8;
  --ink: #10233f;
  --body: #33465f;
  --muted: #6b7c93;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-softer: #eef3fa;
  --white: #ffffff;
  --accent-grad: linear-gradient(135deg, var(--blue-600), var(--cyan-400));

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, .06), 0 2px 8px rgba(16, 35, 63, .06);
  --shadow-md: 0 10px 30px rgba(16, 35, 63, .10);
  --shadow-lg: 0 24px 60px rgba(11, 27, 52, .18);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .75rem;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--body); max-width: 65ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--accent-grad);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 111, 235, .35);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(31, 111, 235, .45); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { border-color: var(--blue-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(31, 111, 235, .4);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand .brand-name span { color: var(--blue-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .25s;
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: .35rem;
  margin: 0; padding: 0;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}
.main-nav a:hover { background: var(--bg-softer); text-decoration: none; }
.main-nav a.active { color: var(--blue-600); }
.main-nav .btn { margin-left: .5rem; color: #fff; }
.main-nav .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #eaf2ff;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 400px at 80% -10%, rgba(53, 196, 232, .25), transparent 60%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(3.5rem, 9vw, 6rem);
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-visual { justify-self: center; width: 100%; max-width: 350px; }
.hero-visual svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 16px 44px rgba(53, 196, 232, .45));
  animation: brightPulse 4.5s ease-in-out infinite;
}
@keyframes brightPulse {
  0%, 100% { filter: drop-shadow(0 16px 40px rgba(53, 196, 232, .35)); }
  50%      { filter: drop-shadow(0 16px 54px rgba(53, 196, 232, .65)); }
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--cyan-400); }
.hero p { color: #cdddf5; max-width: 58ch; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* Home two-column intro */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Cards / features ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfe0f7;
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-softer);
  color: var(--blue-600);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .98rem; }

/* Service list columns */
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.service-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.service-panel h3 {
  display: flex; align-items: center; gap: .5rem;
  color: var(--blue-600);
  margin-bottom: 1rem;
}
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li {
  background: var(--bg-softer);
  color: var(--ink);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .92rem;
  font-weight: 500;
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; text-align: center; }
.stat .num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat .label { color: var(--muted); font-size: .95rem; margin-top: .35rem; }

/* CTA band */
.cta {
  background: var(--navy-800);
  color: #eaf2ff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(53,196,232,.25), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #c7d6ee; max-width: 55ch; margin-inline: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .ic {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  display: grid; place-items: center;
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list .v { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}
.contact-card .icon-lg {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 16px;
  background: var(--accent-grad);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(31,111,235,.4);
}
.contact-card .icon-lg svg { width: 30px; height: 30px; }
.contact-card--form { text-align: left; }

/* Contact form */
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.contact-form .req { color: #e5484d; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, .18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button[type="submit"] { width: 100%; justify-content: center; margin-top: .25rem; }
.form-status { margin: .9rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.is-success { color: #1a7f37; }
.form-status.is-error { color: #e5484d; }

/* Page banner (inner pages) */
.page-banner {
  background:
    radial-gradient(680px 240px at 50% -20%, rgba(53, 196, 232, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner-emblem {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto .5rem;
  filter: drop-shadow(0 8px 22px rgba(53, 196, 232, .5));
}
/* Tighten the gap between the banner/hero and the first content section */
.page-banner + .section,
.hero + .section { padding-top: clamp(1.6rem, 3.5vw, 2.5rem); }
.page-banner .container { padding-top: clamp(1.4rem, 3.5vw, 2.2rem); padding-bottom: clamp(1.4rem, 3.5vw, 2.2rem); }
.page-banner h1 { color: #fff; margin-bottom: .35rem; }
.page-banner p { color: #c7d6ee; max-width: 60ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #aebfd6;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #aebfd6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand .brand .brand-name { color: #fff; }
.footer-brand p { color: #8ba0bd; max-width: 38ch; font-size: .95rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .88rem; color: #7e93b1;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1, .hero p { margin-inline: auto; }
  .hero .eyebrow { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 220px; order: -1; }
  .service-cols { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem; gap: .2rem; }
  .main-nav a { padding: .8rem 1rem; }
  .main-nav .btn { margin: .4rem 0 0; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

/* ---------- SVG illustrations (Services / Careers) ---------- */
.illus {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

/* ---------- Scroll reveal (progressive enhancement via .js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Dark mode (follows system preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf1fb;
    --body: #b3c2d6;
    --muted: #8598b1;
    --line: #243549;
    --bg: #0d1826;
    --bg-soft: #101f31;
    --bg-softer: #17293d;
    --blue-600: #4f9bff;
    --blue-500: #5aa6ff;
  }
  body { background: var(--bg); }
  .site-header { background: rgba(13, 24, 38, .85); }
  .main-nav { background: var(--bg); }
  .main-nav a { color: var(--ink); }
  .main-nav a:hover { background: var(--bg-softer); }
  .card:hover { border-color: rgba(79, 155, 255, .5); }
  .btn--outline { background: var(--bg-soft); color: var(--blue-500); border-color: var(--line); }
  .btn--outline:hover { border-color: var(--blue-500); }
  .form-status.is-success { color: #3fb950; }
  .form-status.is-error { color: #ff7b72; }
}
