/* SaasSoft — clean static rebuild
   Palette: accent #1470af · light section #eaeaee · dark hero = network banner
   Type: Source Code Pro (monospace) */

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
  --accent: #1470af;
  --gray: #eaeaee;
  --ink: #2b2b2b;
  --dark-fallback: #0d1b2a;
  --font: 'Source Code Pro', 'SFMono-Regular', Menlo, Consolas, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.logo {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a { font-size: 15px; font-weight: 700; }
.nav .nav-link { text-decoration: underline; text-underline-offset: 3px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  color: var(--accent);
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: #fff; }

/* Header variant on dark hero pages */
.on-dark .logo,
.on-dark .nav a { color: #fff; }
.on-dark .btn {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.on-dark .btn:hover { background: #fff; color: var(--accent); }

/* mobile nav toggle — two-line hamburger, becomes an X when open */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--ink);
  position: relative; z-index: 30;
  width: 44px; height: 40px;
}
.nav-toggle span {
  position: absolute; left: 50%;
  width: 28px; height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.on-dark .nav-toggle { color: #fff; }

/* ---------- Hero / dark sections ---------- */
.hero {
  position: relative;
  background: var(--dark-fallback) url('../images/hero.png') center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 22, 40, 0.35);
}
.hero .wrap { position: relative; }

.hero-home .wrap { padding-top: 150px; padding-bottom: 120px; text-align: center; }
.hero-home h1 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 auto 34px;
  max-width: 780px;
  line-height: 1.25;
}
.hero-home .lede {
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Light gray band ---------- */
.band-gray { background: var(--gray); }
.band-gray .wrap { padding: 90px 32px; }
.band-gray h2 {
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 24px;
}
.band-gray p { max-width: 1000px; margin: 0; font-size: 17px; }

/* ---------- Contact section (dark) ---------- */
.contact-section .wrap {
  position: relative;
  padding: 80px 32px 100px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}
.contact-info h2 {
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 22px;
}
.contact-info p { font-size: 16px; opacity: 0.92; }
.contact-info address { font-style: normal; font-size: 16px; line-height: 1.9; opacity: 0.92; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 22px; }
.form-label { display: block; font-size: 15px; margin-bottom: 8px; }
.form-label .req { opacity: 0.6; }
.form-row { display: flex; gap: 20px; }
.form-row .form-field { flex: 1; }
input, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 12px;
  border: 1px solid #cfd4da;
  border-radius: 2px;
  background: #fdfdfd;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 11px 26px;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.btn-submit:hover { background: #10598c; }

/* ---------- what-we-do / services ---------- */
.services { background: var(--gray); min-height: 100vh; }
.services .wrap { padding: 150px 32px 90px; }
.services h1 {
  color: var(--accent);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 64px);
  margin: 0 0 10px;
}
.services .rule { border: 0; border-top: 1px solid var(--accent); margin: 24px 0 48px; }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.service + .service { border-top: 1px solid var(--accent); padding-top: 40px; }
.service h3 { color: var(--accent); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 18px; }
.service p { margin: 0; font-size: 16px; max-width: 480px; }
.service ul { margin: 4px 0 0; padding-left: 20px; }
.service li { margin-bottom: 12px; font-size: 16px; }
.services .cta { margin-top: 40px; }

/* ---------- Contact page hero ---------- */
.hero-contact .wrap { padding-top: 150px; padding-bottom: 110px; }
.hero-contact h1 {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 44px);
  margin: 0 0 20px;
  line-height: 1.25;
}
.hero-contact .lede { font-size: clamp(17px, 2vw, 22px); margin: 0 0 40px; max-width: 820px; }
.hero-contact strong { font-weight: 700; }
.hero-contact .form-shell { max-width: 900px; margin-left: auto; }

/* ---------- Error / 404 ---------- */
.hero-error { min-height: 100vh; display: flex; align-items: center; }
.hero-error .wrap { padding: 140px 32px 120px; text-align: center; width: 100%; }
.hero-error h1 {
  font-weight: 400;
  font-size: clamp(72px, 16vw, 160px);
  line-height: 1;
  margin: 0 0 24px;
  color: #fff;
}
.hero-error .lede {
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0 auto 40px;
  max-width: 620px;
}
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .nav-toggle { display: block; }

  /* Full-screen slide-in overlay menu (matches Squarespace) */
  .nav {
    position: fixed;
    inset: 0;
    background: #8eb6dc;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 20;
    transform: translateX(100%);
    transition: transform .28s ease;
    pointer-events: none;
  }
  body.menu-open .nav { transform: none; pointer-events: auto; }
  .nav .nav-link {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 31px;
    text-decoration: none;
  }
  .nav .btn {
    position: absolute;
    left: 22px; right: 22px; bottom: 40px;
    text-align: center;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  /* Keep the logo above the overlay, and white over the blue */
  .logo { position: relative; z-index: 30; }
  body.menu-open .logo,
  body.menu-open .nav-toggle { color: #fff; }
  /* Hamburger morphs into an X — both lines cross exactly at center */
  body.menu-open .nav-toggle span { top: 50%; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

  .contact-section .wrap { grid-template-columns: 1fr; gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .form-row { flex-direction: column; gap: 0; }
  .hero-home .wrap { padding-top: 120px; padding-bottom: 80px; }
  .services .wrap, .hero-contact .wrap { padding-top: 120px; }
}
