/* tedmorgan.ca styles
   Colours: navy #1C2B3A, ocean blue #2F6690, pale blue #EEF3F7,
   beige #FAF9F6, light gray-blue #F7F9FB */

/* ---------- Base ---------- */
body {
  margin: 0;
  background: #FAF9F6;
  color: #1C2B3A;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: #2F6690; }
a:hover { color: #1F4766; }
img { max-width: 100%; }

/* Shared page width and side padding */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Shared text styles */
.muted { color: #3B4B5C; }
.meta { font-size: 15px; color: #4E5E6E; }
.section-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.01em;
}
.section-intro {
  margin: 0 0 40px;
  font-size: 19px;
  color: #3B4B5C;
  max-width: 40em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
}
.btn-dark { background: #1C2B3A; color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: #1C2B3A; }
.btn-light:hover { color: #1C2B3A; }

/* Line icons in the accent blue */
.icon {
  position: absolute;
  right: 28px;
  width: 28px;
  height: 28px;
}

/* ---------- Header and hero ---------- */
.hero { background: #EEF3F7; }

.site-header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1C2B3A;
  text-decoration: none;
}
.logo:hover { color: #1C2B3A; }
.site-nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
  flex-wrap: wrap;
}
.site-nav a { color: #3B4B5C; text-decoration: none; }


.hero-body {
  padding-top: 40px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1 1 520px; min-width: 0; }
.eyebrow {
  margin: 0 0 18px;
  display: inline-block;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
  color: #3B4B5C;
}
.hero h1 {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.accent { color: #2F6690; }
.hero-lead {
  margin: 0 0 32px;
  font-size: 20px;
  color: #3B4B5C;
  max-width: 32em;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-portrait {
  flex: 0 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.portrait-circle {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #FAF9F6;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-circle img {
  width: 92%;
  height: auto;
  mix-blend-mode: multiply;
}

/* ---------- Stats band ---------- */
.stats { background: #1C2B3A; color: #FFFFFF; }
.stats-row {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.stat { flex: 1 1 200px; }
.stat-number { font-size: 36px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 16px; color: #C9D6E2; }

/* ---------- Approach ---------- */
.approach { padding-top: 104px; padding-bottom: 88px; }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E3E8EE;
  border-radius: 16px;
  padding: 28px;
}
.card .icon { top: 34px; }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EEF3F7;
  color: #2F6690;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: #3B4B5C; font-size: 17px; }

.ai-block {
  position: relative;
  margin-top: 20px;
  background: #EEF3F7;
  border-radius: 16px;
  padding: 32px 0;
}
.ai-block .icon { top: 36px; }
.ai-intro { padding: 0 72px 0 28px; margin-bottom: 24px; }
.ai-intro h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.ai-intro p { margin: 0; font-size: 17px; color: #3B4B5C; }
.ai-columns { display: flex; flex-wrap: wrap; gap: 24px 20px; }
.ai-column { flex: 1 1 280px; min-width: 0; padding: 0 28px; }
.ai-label {
  border-top: 2px solid #2F6690;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2F6690;
  margin-bottom: 6px;
}
.ai-column p { margin: 0; color: #3B4B5C; font-size: 16px; }

/* ---------- Clients ---------- */
.clients { background: #F7F9FB; }
.clients-inner { padding-top: 96px; padding-bottom: 96px; }
.client-list { display: flex; flex-wrap: wrap; gap: 32px; }
.client {
  flex: 1 1 280px;
  min-width: 0;
  border-top: 3px solid #2F6690;
  padding-top: 20px;
}
.client h3 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.client .meta { margin-bottom: 10px; }
.client p { margin: 0; font-size: 17px; color: #3B4B5C; }

/* ---------- Experience ---------- */
.experience { padding-top: 104px; padding-bottom: 72px; }
.experience .section-title { margin-bottom: 48px; }

.job {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  padding: 32px 0;
  border-top: 1px solid #E3E8EE;
}
.job-current { padding-top: 0; padding-bottom: 40px; border-top: 0; }
.job-company { flex: 0 0 220px; }
.company-name { font-size: 22px; font-weight: 700; }
.job-detail { flex: 1 1 520px; min-width: 0; }
.job-detail h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.job-detail h3 + h3 { margin-top: 16px; }
.job-detail h3 span { font-weight: 400; color: #4E5E6E; }
.job-detail ul {
  margin: 8px 0 28px;
  padding-left: 20px;
  color: #3B4B5C;
  font-size: 17px;
}
.job-detail p { margin: 0; color: #3B4B5C; font-size: 17px; }
.more-link { margin: 24px 0 0; }
.more-link a { font-weight: 600; }

/* ---------- Recognition and credentials ---------- */
.extras {
  padding-top: 24px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.extras > div { flex: 1 1 420px; min-width: 0; }
.extras h2 { margin: 0 0 12px; font-weight: 700; font-size: 24px; }
.extras ul { margin: 0; padding-left: 20px; color: #3B4B5C; font-size: 17px; }

/* ---------- Contact and footer ---------- */
.contact { background: #1C2B3A; color: #FFFFFF; }
.contact-body {
  padding-top: 88px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-text { flex: 1 1 480px; min-width: 0; }
.contact h2 { margin: 0 0 12px; font-weight: 700; font-size: 40px; }
.contact-text p { margin: 0; font-size: 19px; color: #C9D6E2; max-width: 30em; }
.btn-contact {
  display: inline-block;
  padding: 16px 30px;
  background: #FAF9F6;
  color: #1C2B3A;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}
.btn-contact:hover { color: #1C2B3A; }
.site-footer {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid #33475A;
  font-size: 14px;
  color: #A9BACB;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding-left: 20px; padding-right: 20px; }

  .site-header { padding-top: 18px; padding-bottom: 8px; gap: 8px 16px; }
  .site-nav { gap: 6px 18px; font-size: 15px; }

  .hero-body { padding-top: 24px; padding-bottom: 56px; gap: 32px; }
  .hero-text { flex-basis: 100%; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 18px; margin-bottom: 26px; }
  .hero-buttons .btn { flex: 1 1 auto; text-align: center; }
  .hero-portrait { flex-basis: 100%; }
  .portrait-circle { max-width: 260px; }

  .stats-row { padding-top: 28px; padding-bottom: 28px; gap: 20px; }
  .stat { flex: 1 1 calc(50% - 10px); }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 15px; line-height: 1.4; }

  .section-title { font-size: 30px; line-height: 1.25; }
  .section-intro { font-size: 17px; margin-bottom: 28px; }

  .approach { padding-top: 64px; padding-bottom: 56px; }
  .card { padding: 24px; }
  .card .icon { top: 30px; right: 24px; }
  .ai-block { padding: 28px 0; }
  .ai-intro { padding: 0 64px 0 24px; }
  .ai-column { padding: 0 24px; }
  .ai-block .icon { top: 32px; right: 24px; }

  .clients-inner { padding-top: 64px; padding-bottom: 64px; }
  .client-list { gap: 28px; }

  .experience { padding-top: 64px; padding-bottom: 48px; }
  .experience .section-title { margin-bottom: 32px; }
  .job { padding: 24px 0; }
  .job-current { padding-top: 0; padding-bottom: 32px; }
  .job-company { flex-basis: 100%; }
  .job-detail { flex-basis: 100%; }

  .extras { padding-bottom: 64px; gap: 32px; }
  .extras > div { flex-basis: 100%; }

  .contact-body { padding-top: 64px; padding-bottom: 44px; gap: 24px; }
  .contact-text { flex-basis: 100%; }
  .contact h2 { font-size: 32px; line-height: 1.25; }
  .contact-text p { font-size: 17px; }
  .btn-contact { flex: 1 1 100%; text-align: center; }
}
