/* ============================================================
   LOGICWISE — Computer Systems Design and Integration
   Light theme: cool-white, deep ink, ultramarine accent
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: #F7F9FC;
  color: #16213A;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #3B5BDB;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2A44B4;
}

p {
  margin: 0 0 1.1em;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #16213A;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* ---------------- Layout helpers ---------------- */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3B5BDB;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------------- Centered wordmark nav ---------------- */

.center-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #F7F9FC;
  border-bottom: 1px solid #DDE3EE;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: #16213A;
  letter-spacing: 0.04em;
  justify-self: center;
  white-space: nowrap;
}

.nav-brand:hover {
  color: #3B5BDB;
}

.nav-links-left,
.nav-links-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links-left {
  justify-content: flex-start;
}

.nav-links-right {
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  font-size: 13px;
  color: #5A6478;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: #3B5BDB;
}

.nav-link:hover::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #3B5BDB;
}

.nav-link.active {
  color: #16213A;
  text-decoration: underline;
  text-decoration-color: #3B5BDB;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #DDE3EE;
  background-color: #FFFFFF;
  color: #16213A;
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  justify-self: end;
}

.mobile-menu {
  display: none;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #3B5BDB;
  color: #FFFFFF;
  border: 1px solid #3B5BDB;
}

.btn-primary:hover {
  background-color: #2A44B4;
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: #3B5BDB;
  border: 1px solid #3B5BDB;
}

.btn-outline:hover {
  background-color: #3B5BDB;
  color: #FFFFFF;
}

.btn-ink {
  background-color: #16213A;
  color: #FFFFFF;
  border: 1px solid #16213A;
}

.btn-ink:hover {
  background-color: #0E1630;
  color: #FFFFFF;
}

/* ---------------- Text-only stat hero ---------------- */

.stat-hero {
  background-color: #F7F9FC;
  padding: 84px 0 0;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  background-color: #3B5BDB;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 40px;
  margin-bottom: 26px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: #16213A;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 18px;
  color: #5A6478;
  max-width: 720px;
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 70px;
}

.stat-strip {
  border-top: 1px solid #DDE3EE;
  border-bottom: 1px solid #DDE3EE;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #FFFFFF;
}

.stat-cell {
  padding: 30px 28px;
  border-right: 1px solid #DDE3EE;
  text-align: center;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-numeral {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  color: #3B5BDB;
  margin: 0 0 6px;
  display: block;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A6478;
  font-weight: 600;
}

/* ---------------- Capability columns ---------------- */

.capability-columns {
  background-color: #FFFFFF;
  padding: 96px 0;
}

.columns-head {
  max-width: 720px;
  margin-bottom: 60px;
}

.columns-head h2 {
  font-size: 38px;
  margin-bottom: 18px;
}

.columns-head p {
  color: #5A6478;
  font-size: 17px;
}

.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cap-col {
  padding: 10px 40px 10px 0;
  border-right: 1px solid #DDE3EE;
}

.cap-col:not(:last-child) {
  margin-right: 40px;
}

.cap-icon {
  width: 22px;
  height: 22px;
  background-color: #3B5BDB;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 22px;
}

.cap-col h3 {
  font-size: 22px;
  color: #16213A;
  margin-bottom: 14px;
}

.cap-col p {
  color: #5A6478;
  font-size: 15px;
}

/* ---------------- Metric band ---------------- */

.metric-band {
  background-color: #3B5BDB;
  padding: 70px 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
  text-align: center;
  padding: 10px 24px;
  border-right: 1px solid #FFFFFF;
}

.metric-cell:last-child {
  border-right: none;
}

.metric-numeral {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 600;
}

/* ---------------- Editorial chapters ---------------- */

.editorial-chapters {
  background-color: #FFFFFF;
  padding: 96px 0;
}

.editorial-head {
  margin-bottom: 80px;
}

.editorial-head h2 {
  font-size: 38px;
}

.chapter {
  margin-bottom: 84px;
}

.chapter:last-child {
  margin-bottom: 0;
}

.chapter-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 700;
  color: #3B5BDB;
  line-height: 1;
  margin-bottom: 14px;
}

.chapter-title {
  font-size: 28px;
  color: #16213A;
  margin-bottom: 18px;
}

.chapter-body {
  color: #5A6478;
  font-size: 16px;
  max-width: 760px;
}

/* ---------------- Statement band ---------------- */

.statement-band {
  background-color: #E9EEF7;
  padding: 96px 0;
}

.statement-band .statement {
  font-size: 30px;
  color: #16213A;
  font-weight: 700;
  line-height: 1.3;
  max-width: 860px;
  margin-bottom: 20px;
}

.statement-band .statement-support {
  color: #5A6478;
  font-size: 17px;
  max-width: 760px;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background-color: #3B5BDB;
  padding: 96px 0;
  text-align: center;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: 38px;
  margin-bottom: 20px;
}

.cta-band p {
  color: #FFFFFF;
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 34px;
}

/* ---------------- Two-column wide footer ---------------- */

.two-col-footer {
  background-color: #F7F9FC;
  border-top: 1px solid #DDE3EE;
  padding: 70px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
}

.footer-main {
  padding-right: 60px;
  border-right: 1px solid #DDE3EE;
}

.footer-side {
  padding-left: 60px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #16213A;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand:hover {
  color: #3B5BDB;
}

.footer-blurb {
  color: #5A6478;
  font-size: 15px;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

.footer-links a {
  color: #16213A;
  font-size: 15px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #3B5BDB;
}

.footer-contact {
  color: #5A6478;
  font-size: 15px;
}

.footer-contact a {
  color: #3B5BDB;
}

.footer-legal {
  border-top: 1px solid #DDE3EE;
  margin-top: 46px;
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #5A6478;
}

.footer-legal a {
  color: #3B5BDB;
}

/* ---------------- Secondary page header ---------------- */

.page-header {
  background-color: #F7F9FC;
  border-bottom: 1px solid #DDE3EE;
  padding: 72px 0 64px;
}

.page-header .eyebrow {
  margin-bottom: 20px;
}

.page-title {
  font-size: 44px;
  color: #16213A;
  margin-bottom: 18px;
}

.page-intro {
  font-size: 18px;
  color: #5A6478;
  max-width: 760px;
}

/* ---------------- Services page ---------------- */

.services-page {
  background-color: #FFFFFF;
}

.service-block {
  padding: 80px 0;
  border-bottom: 1px solid #DDE3EE;
}

.service-block:nth-of-type(odd) {
  background-color: #FFFFFF;
}

.service-block:nth-of-type(even) {
  background-color: #E9EEF7;
}

.service-tag {
  display: inline-block;
  background-color: #3B5BDB;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 18px;
}

.service-block h2 {
  font-size: 30px;
  color: #16213A;
  margin-bottom: 18px;
}

.service-block p {
  color: #5A6478;
  font-size: 16px;
  max-width: 820px;
}

.process-section {
  background-color: #F7F9FC;
  padding: 96px 0;
}

.process-section h2 {
  font-size: 38px;
  margin-bottom: 14px;
}

.process-section .section-lead {
  color: #5A6478;
  font-size: 17px;
  max-width: 760px;
  margin-bottom: 56px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-step {
  border-top: 3px solid #3B5BDB;
  padding-top: 22px;
}

.process-step .step-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: #3B5BDB;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 19px;
  color: #16213A;
  margin-bottom: 10px;
}

.process-step p {
  color: #5A6478;
  font-size: 14px;
}

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

.contact-page {
  background-color: #F7F9FC;
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-size: 28px;
  color: #16213A;
  margin-bottom: 20px;
}

.contact-info p {
  color: #5A6478;
  font-size: 16px;
}

.info-card {
  background-color: #FFFFFF;
  border: 1px solid #DDE3EE;
  border-left: 4px solid #3B5BDB;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.info-card .info-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3B5BDB;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card .info-value {
  color: #16213A;
  font-weight: 600;
  font-size: 16px;
}

.info-card .info-value a {
  color: #3B5BDB;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #DDE3EE;
  color: #5A6478;
  font-size: 15px;
}

.hours-list li span:last-child {
  color: #16213A;
  font-weight: 600;
}

.contact-form-wrap {
  background-color: #FFFFFF;
  border: 1px solid #DDE3EE;
  border-top: 5px solid #3B5BDB;
  padding: 40px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #16213A;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #DDE3EE;
  background-color: #FFFFFF;
  color: #16213A;
  font-size: 15px;
  font-family: inherit;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3B5BDB;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  background-color: #E9EEF7;
  border-left: 4px solid #3B5BDB;
  color: #16213A;
  font-size: 15px;
}

.form-status.visible {
  display: block;
}

/* ---------------- FAQ (contact page) ---------------- */

.faq-section {
  background-color: #FFFFFF;
  border-top: 1px solid #DDE3EE;
  padding: 80px 0;
}

.faq-section h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.faq-section .section-lead {
  color: #5A6478;
  font-size: 17px;
  max-width: 720px;
  margin-bottom: 44px;
}

.faq-item {
  border: 1px solid #DDE3EE;
  border-left: 4px solid #3B5BDB;
  background-color: #F7F9FC;
  margin-bottom: 18px;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #16213A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .faq-ind {
  font-size: 22px;
  color: #3B5BDB;
  font-weight: 700;
  line-height: 1;
}

.faq-a {
  display: none;
  padding: 0 24px 22px;
  color: #5A6478;
  font-size: 15px;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-ind {
  transform: rotate(45deg);
}

/* ---------------- Scroll reveal ---------------- */

.fade-up {
  opacity: 1;
}

.js .fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-toggle {
    display: inline-block;
    grid-column: 3;
  }

  .nav-links-left,
  .nav-links-right {
    display: none;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 24px 22px;
    border-top: 1px solid #DDE3EE;
    background-color: #F7F9FC;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu .nav-link {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #DDE3EE;
    color: #5A6478;
  }

  .mobile-menu .nav-link.active {
    color: #16213A;
  }

  .stat-strip,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    border-bottom: 1px solid #DDE3EE;
  }

  .metric-cell {
    border-bottom: 1px solid #FFFFFF;
  }

  .columns-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cap-col {
    border-right: none;
    border-bottom: 1px solid #DDE3EE;
    padding: 0 0 30px;
    margin-right: 0 !important;
  }

  .cap-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    border-right: none;
    border-bottom: 1px solid #DDE3EE;
    padding: 0 0 34px;
    margin-bottom: 34px;
  }

  .footer-side {
    padding-left: 0;
  }

  .hero-title {
    font-size: 40px;
  }

  .page-title {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  .stat-strip,
  .metric-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .chapter-num {
    font-size: 48px;
  }

  .chapter-title {
    font-size: 24px;
  }

  .statement-band .statement {
    font-size: 24px;
  }

  .contact-form-wrap {
    padding: 28px 22px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}
