/* Bluefin Software Consulting — site styles */

:root {
  --navy: #0E2A3F;
  --blue: #1F5F8B;
  --blue-dark: #123F5E;
  --logo-blue: #34637F;
  --text: #3B4F5E;
  --muted: #4A5E6C;
  --page: #F7F9FA;
  --outside: #E4EAEE;
  --panel: #E8EEF2;
  --white: #FFFFFF;
  --line: #D5DEE4;
  --line-soft: #E1E8ED;
  --input-line: #B9C7D1;
  --tile: #E6EFF5;
  --quote-bg: #EFF5FF;
  --quote-line: #D6E4FA;
  --gutter: clamp(24px, 5vw, 48px);
  --radius: 14px;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--outside);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--white); }

.page {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--page);
  display: flex;
  flex-direction: column;
}

section[id] { scroll-margin-top: 16px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 56px;
  padding: 50px var(--gutter) 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { display: block; width: 100px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--logo-blue); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.brand-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1;
}
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }

/* ---------- Shared section pieces ---------- */
.section { padding: 50px var(--gutter); display: flex; flex-direction: column; gap: 48px; }
.section--white { background: var(--white); }

.section-intro { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); }

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.lead { font-size: 17px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h3 { font-size: 18px; font-weight: 600; color: var(--navy); }
.card p { font-size: 15px; line-height: 1.6; }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  padding: 0 var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  padding-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hero h1 span { display: block; color: var(--blue); }
.hero p { font-size: 19px; line-height: 1.6; }

/* ---------- Expertise ---------- */
.service-card { transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(14, 42, 63, .10); }

.icon-tile {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--tile);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile svg { display: block; }

/* ---------- AI ---------- */
.section-intro--wide { max-width: 820px; }
.section-intro--wide .lead { max-width: 640px; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-cell {
  padding: 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* hairlines on the right and bottom of each cell; the outer edges are clipped by the grid border */
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  transition: background-color .15s ease;
}
.ai-cell:hover { background: var(--quote-bg); }
.ai-cell h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.ai-cell p { font-size: 15px; line-height: 1.6; }

.callout {
  padding: 32px 36px;
  background: var(--quote-bg);
  border: 1px solid var(--quote-line);
  border-radius: var(--radius);
  text-align: center;
}
.callout p {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}

/* ---------- Work ---------- */
#work { padding-top: 120px; padding-bottom: 70px; }
.work-card { gap: 12px; }
.work-card p.work-desc { flex-grow: 1; }
.work-card .tools {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  background: var(--panel);
  padding: 50px var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.about-intro { display: flex; flex-direction: column; gap: 14px; }
.about-intro h2 { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.1; color: var(--navy); }
.about-intro .meta { font-size: 15px; color: var(--muted); }
.about-body { font-size: 17px; line-height: 1.65; padding-top: 28px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--white);
  padding: 40px var(--gutter) 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.contact .section-intro { align-items: center; text-align: center; max-width: 640px; }

.contact-form {
  width: 100%;
  max-width: 800px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--input-line);
  border-radius: 8px;
}
.field input { height: 46px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }

/* honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.btn {
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 24px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: .65; cursor: progress; }
.email-alt { font-size: 14px; color: var(--muted); }
.email-alt a { font-weight: 600; }

.form-status { min-height: 1.5em; font-size: 15px; line-height: 1.5; }
.form-status.is-success { color: #1B6B3A; }
.form-status.is-error { color: #B42318; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px var(--gutter);
  background: var(--navy);
  color: #C9D6DF;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.site-footer .brand-text { color: #C9D6DF; }
.site-footer .brand-name { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { padding-top: 28px; padding-bottom: 24px; }
  .site-nav ul { gap: 12px 22px; }
  .grid-3, .ai-grid, .about, .form-row { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 20px; }
  .about-body { padding-top: 0; }
  .contact-form { padding: 24px; }
  .callout { padding: 24px; }
  #work { padding-top: 50px; }
}
