/* ===========================================================
   BayTech MI - landing page styles
   Static CSS, no build step. Edit values in :root to retheme.
   Two accent colors on purpose: --accent carries the managed IT
   track, --accent-2 the software track.
   =========================================================== */

:root {
  --ink:        #0d1526;   /* near-black navy, page text on light */
  --ink-2:      #4a5769;   /* secondary text */
  --paper:      #ffffff;
  --paper-2:    #f3f6fa;   /* tinted section background */
  --deep:       #0a1120;   /* dark sections + header */
  --deep-2:     #101c33;
  --accent:     #4c7dff;   /* signal blue - managed IT */
  --accent-dk:  #2f5ce0;
  --accent-2:   #2fcf9e;   /* mint - software */
  --accent-2dk: #0f7d5d;
  --line:       #dde4ed;   /* subtle dividers and card edges */
  --line-input: #7f8fa8;   /* form control borders - darker on purpose, so the
                              boundary clears the WCAG 1.4.11 3:1 minimum */
  --line-dark:  rgba(255, 255, 255, .13);

  --wrap:   1140px;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(13, 21, 38, .10);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img, svg, iframe { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }

a { color: var(--accent-dk); }
a:hover { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.muted { color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin: 0 0 .8rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-dk);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

/* Accent buttons use the darker blue so white label text clears WCAG AA (5.6:1).
   The brighter --accent is kept for hover, rules and decorative accents. */
.btn-accent { background: var(--accent-dk); color: #fff; }
.btn-accent:hover { background: #3f6bf0; color: #fff; }

.btn-ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: inherit; }

.section .btn-ghost:hover { background: rgba(13, 21, 38, .06); }

.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(76, 125, 255, .38);
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 165%);
  color: #fff;
  flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.brand-accent { color: var(--accent-2); }
.brand-text em {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.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;
  color: #fff;
  background: var(--deep);
  overflow: hidden;
}

/* Layered gradients plus a faint grid stand in for a hero image.
   TODO: swap in a photo -> background-image: url("images/hero.jpg"); */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(105% 85% at 80% 4%, rgba(76, 125, 255, .34) 0%, transparent 58%),
    radial-gradient(78% 68% at 4% 100%, rgba(47, 207, 158, .20) 0%, transparent 60%),
    linear-gradient(165deg, #12203b 0%, #0b1424 60%, #080e1a 100%);
}
.hero-bg::after {
  /* faint circuit-board grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 0%, transparent 72%);
}

.hero-inner {
  position: relative;
  padding: clamp(4.5rem, 11vw, 7.5rem) 24px clamp(3.5rem, 8vw, 5.5rem);
  max-width: 920px;
  margin-inline: auto;
}

/* The page-level eyebrow blue is tuned for white backgrounds; on the dark
   hero it needs the brighter accent to stay readable. */
.hero .eyebrow { color: var(--accent); }

.hero h1 { margin-bottom: 1.2rem; }
.hero .accent { color: var(--accent-2); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: rgba(255, 255, 255, .8);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.hero-actions-center { justify-content: center; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-dark);
  font-size: .92rem;
  color: rgba(255, 255, 255, .68);
}
.hero-badges strong { color: #fff; font-weight: 600; }

/* ---------------- Contact strip ---------------- */

.strip {
  background: var(--accent-dk);
  color: #fff;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  padding-block: 1.4rem;
}
.strip-item { display: flex; flex-direction: column; }
.strip-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
}
.strip-value { font-weight: 600; font-size: 1.02rem; }
.strip-value a { color: inherit; text-decoration: none; }
.strip-value a:hover { text-decoration: underline; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-compact { padding: clamp(2.75rem, 6vw, 4.25rem) 0; }

.section-tint { background: var(--paper-2); }

.section-dark {
  background: var(--deep-2);
  color: #fff;
}
.section-dark .eyebrow { color: var(--accent-2); }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head-center {
  margin-inline: auto;
  text-align: center;
}
.section-sub { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.section-dark .section-sub { color: rgba(255, 255, 255, .7); }

/* ---------------- Track split ---------------- */

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.track {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  overflow: hidden;
}
/* Colored top rule keys each track to its accent */
.track::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}
.track-alt::before { background: var(--accent-2); }

.track p { color: var(--ink-2); }

.track-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: .5rem;
}
.track-alt .track-tag { color: var(--accent-2dk); }
.track-alt .checklist li::before { border-color: var(--accent-2); }
.track-alt .text-link {
  color: var(--accent-2dk);
  border-bottom-color: rgba(47, 207, 158, .4);
}
.track-alt .text-link:hover { border-bottom-color: var(--accent-2); }

/* ---------------- Service cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(76, 125, 255, .45);
}
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(76, 125, 255, .12);
  color: var(--accent-dk);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* Software track cards sit on the dark section and take the mint accent */
.cards-dark .card {
  background: rgba(255, 255, 255, .035);
  border-color: var(--line-dark);
}
.cards-dark .card:hover {
  border-color: rgba(47, 207, 158, .5);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.cards-dark .card p { color: rgba(255, 255, 255, .7); }
.cards-dark .card-icon {
  background: rgba(47, 207, 158, .15);
  color: var(--accent-2);
}

.cta-line {
  margin: 2.5rem 0 0;
  text-align: center;
  color: var(--ink-2);
}
.cta-line-dark { color: rgba(255, 255, 255, .7); }
.cta-line-dark a { color: var(--accent-2); }
.cta-line-dark a:hover { color: #fff; }

/* ---------------- Steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  padding-top: 1.4rem;
  border-top: 2px solid var(--line);
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .5rem;
}
.steps p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-copy p { color: var(--ink-2); }

.checklist {
  list-style: none;
  margin: 1.6rem 0 1.9rem;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .65rem;
  font-weight: 500;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 1.1rem;
  height: .58rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.photo-placeholder {
  display: grid;
  place-content: center;
  gap: .4rem;
  text-align: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-2);
  padding: 1.5rem;
}
.photo-placeholder span {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.photo-placeholder small { font-size: .85rem; opacity: .8; }

/* ---------------- Industry tags ---------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper-2);
}

/* ---------------- Contact ---------------- */

.visit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.info-block { margin-bottom: 2rem; }
.info-block h3 {
  font-size: .8rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .5rem;
}
.info-block p { margin-bottom: .4rem; }
.info-block .muted { font-size: .92rem; }

.big-phone,
.big-email {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.big-phone { font-size: 1.9rem; }
.big-email { font-size: 1.25rem; word-break: break-word; }
.big-phone a,
.big-email a { color: var(--ink); text-decoration: none; }
.big-phone a:hover,
.big-email a:hover { color: var(--accent-dk); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.hours th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
}
.hours td {
  text-align: right;
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Contact form ---------------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form-title {
  margin-bottom: 1.4rem;
  font-size: 1.4rem;
}

.field { margin-bottom: 1.1rem; }

/* Email and phone share a row on wide screens, stack on narrow ones */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .4rem;
}
.req { color: var(--accent-dk); }
.opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-input);
  border-radius: 10px;
  padding: .7rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }

/* Native select arrow varies by platform; a custom chevron keeps it consistent */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234a5769' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5L6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px 8px;
  padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 125, 255, .18);
}

/* Only flag invalid fields after a submit attempt, never while typing */
.field input.invalid,
.field textarea.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .13);
}
.field-error {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: #b02c1e;
}

/* Honeypot - off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: .4rem;
}
.form-submit[disabled] {
  opacity: .65;
  cursor: progress;
  transform: none;
}

.form-note {
  margin: .9rem 0 0;
  font-size: .88rem;
  color: var(--ink-2);
  text-align: center;
}

.form-status {
  margin: .9rem 0 0;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .93rem;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: rgba(47, 207, 158, .13);
  border: 1px solid rgba(15, 125, 93, .55);
  color: #0b6248;
}
.form-status.is-error {
  display: block;
  background: rgba(192, 57, 43, .08);
  border: 1px solid rgba(176, 44, 30, .55);
  color: #96261a;
}

/* ---------------- Map ---------------- */

.visit-map {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.visit-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------------- Final CTA ---------------- */

.final-cta {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.final-cta p { color: rgba(255, 255, 255, .72); margin-bottom: 2rem; }

/* ---------------- 404 page ---------------- */

.notfound {
  display: grid;
  align-content: center;
  text-align: center;
  min-height: 60vh;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.notfound p { color: var(--ink-2); max-width: 48ch; margin-inline: auto; }

/* Two classes, so this beats the ".notfound p" rule above - that selector is
   more specific than a lone .notfound-code and was greying out the numeral. */
.notfound .notfound-code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
  max-width: none;
  margin: 0 0 .25rem;
}
.notfound .hero-actions { justify-content: center; margin-top: 1.75rem; }

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  font-weight: 500;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #070d18;
  color: rgba(255, 255, 255, .62);
  padding: 2.5rem 0;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: #fff;
}
.footer-brand p { margin: .2rem 0 0; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.copyright {
  margin: 0;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .about-grid,
  .visit-grid { grid-template-columns: 1fr; }

  /* Keep the (currently placeholder) image from dwarfing the copy when stacked */
  .about-media { order: -1; }
  .photo-placeholder { aspect-ratio: 16 / 9; max-height: 300px; }
  .visit-map iframe { height: 340px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--deep);
    border-bottom: 1px solid var(--line-dark);
    padding: .5rem 24px 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav .btn {
    margin-top: 1rem;
    border-bottom: 0;
    justify-content: center;
  }

  .strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .track { padding: 1.75rem 1.4rem; }

  /* Email and phone need full width once the card gets narrow */
  .field-row { grid-template-columns: 1fr; }

  /* 16px keeps iOS Safari from zooming in on focus */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
