/* ITECH MICROSYSTEMS — company website
   Bootstrap (vendored under wwwroot/lib) supplies the grid, responsive
   columns, and the mobile nav-collapse behavior. Everything below is
   custom branding/layout on top of that. */

:root {
  --color-navy: #0f172a;
  --color-navy-soft: #1e2a45;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden; /* belt-and-braces: nothing here should cause horizontal scroll, but guard against it anyway */
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-blue-dark); text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 10px;
}

/* ===============================================================
   Header / navigation
   =============================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header .navbar { padding: 14px 0; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: .02em;
}
.brand-text strong { font-weight: 800; }

.navbar-nav .nav-link {
  color: var(--color-text);
  font-weight: 600;
  padding: 8px 14px;
}
.navbar-nav .nav-link:hover { color: var(--color-blue); }

.btn-cta {
  display: inline-block;
  background: var(--color-blue);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  transition: background .15s ease, transform .1s ease;
}
.btn-cta:hover { background: var(--color-blue-dark); }
.btn-cta:active { transform: scale(.98); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-navy) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  text-decoration: none !important;
}
.btn-outline:hover { border-color: var(--color-navy); }

.btn-lg { padding: 13px 26px; font-size: 16px; }

/* ===============================================================
   Hero
   =============================================================== */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #fff 100%);
  padding: 72px 0 56px;
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: 42px; margin: 0 0 18px; }
.hero .lead { font-size: 18px; color: var(--color-muted); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: var(--color-navy);
  color: #fff;
  padding: 56px 0;
}
.page-hero .eyebrow { color: #93c5fd; }
.page-hero h1 { color: #fff; margin: 0 0 14px; font-size: 34px; }
.page-hero .lead { color: #cbd5e1; font-size: 17px; max-width: 640px; margin: 0; }

/* ===============================================================
   Sections
   =============================================================== */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-heading { max-width: 640px; margin: 0 0 36px; }
.section-heading h2 { font-size: 28px; margin: 0; }

.feature-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { color: var(--color-muted); font-size: 14px; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--color-text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-blue);
  font-weight: 800;
}

.cta-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.cta-panel h3 { font-size: 20px; margin: 0 0 8px; }
.cta-panel p { color: var(--color-muted); margin-bottom: 18px; }

.cta-panel-centered {
  max-width: 560px;
  margin: 48px auto 0;
  text-align: center;
}

/* ===============================================================
   Services page
   =============================================================== */
.service-list { display: flex; flex-direction: column; gap: 28px; }
.service-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.service-row:last-child { border-bottom: none; }
.service-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.service-row h3 { font-size: 19px; margin: 0 0 8px; }
.service-row p { color: var(--color-muted); margin: 0; }

/* ===============================================================
   Contact page
   =============================================================== */
.contact-details { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-details li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-details li:first-child { padding-top: 0; }
.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.form-label { font-weight: 600; color: var(--color-navy); }
.form-control {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 10px 14px;
}
.form-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ===============================================================
   Footer
   =============================================================== */
.site-footer {
  background: var(--color-navy);
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { color: #fff; margin-bottom: 10px; }
.footer-legal { font-size: 13px; color: #94a3b8; margin: 0 0 10px; }
.footer-tagline { font-size: 14px; color: #94a3b8; margin: 0; max-width: 320px; }
.site-footer h6 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* ===============================================================
   Responsive — tablet + mobile
   =============================================================== */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 26px; }

  .section { padding: 44px 0; }

  .service-row { flex-direction: column; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; }

  .brand-text { font-size: 14px; }
}
