/* IntegraSys site — shared styles
   Palette sampled from the logo/banner assets; adjust hexes if brand guide provides exact values. */

:root {
  --blue-900: #062654;
  --blue-700: #073A8C;
  --blue-600: #004AAD;
  --blue-500: #1660C4;
  --accent-500: #3E8EDE;
  --gray-50: #EEF4FB;
  --gray-100: #E9EDF2;
  --gray-300: #C9D2DC;
  --gray-600: #55606E;
  --ink: #14202E;
  --white: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Jump links land below the sticky header instead of under it */
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* pushes the footer to the bottom of the viewport on short pages instead of floating mid-screen */
body > section.block:last-of-type { flex: 1 0 auto; }

.site-footer { margin-top: auto; }

a { color: inherit; }

/* Inline links in body text — brand blue, underline kept so color isn't the only cue.
   Nav, buttons, and footer links aren't inside <p> and keep their own styling. */
p a { color: var(--blue-600); }

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header .logo img {
  height: 60px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a.current { color: var(--blue-600); }

.site-nav a:hover { color: var(--blue-600); }

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary.current {
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-primary:hover { background: var(--blue-600); }

.btn-secondary {
  background: var(--white);
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.btn-secondary:hover { background: #CFE0F7; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-600) 75%, var(--accent-500) 130%);
  color: var(--white);
}

/* Photo heroes (Home, Services, About, Contact) — text sits in a .hero-panel (below). Swap the image by replacing the file in assets/; images are cropped to fill
   (cover). Vertical anchor is set per page to suit each photo (Home top; Services, About, and Contact
   center); the anchored edge always shows and cropping comes off the other side. Horizontal is centered. Privacy keeps the plain gradient. */
.hero--photo {
  background-color: var(--blue-900);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero--home     { background-image: url("../assets/hero-home.jpg"); background-position: center top; }
.hero--services { background-image: url("../assets/hero-services.jpg"); }
.hero--about    { background-image: url("../assets/hero-about.jpg"); }
.hero--contact  { background-image: url("../assets/hero-contact.jpg"); }

/* Semi-transparent navy panel behind the hero text so it reads over any photo. Shrinks to fit the text
   and sits centered. A light shadow stays on the text as a backup over bright patches. */
.hero-panel {
  display: inline-block;
  max-width: 100%;
  padding: 28px 44px;
  position: relative;
  isolation: isolate;
}
/* The tint is one blurred layer behind the text, so it fades into the photo with no seam at the box edge.
   inset sets how far it reaches past the text; blur sets how soft the fade is; the alpha (last rgba value) is the darkness. */
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: 40px;
  background: rgba(6, 38, 84, 0.5);
  filter: blur(24px);
}
/* Page-title heroes (Services, About, Contact): small panels are mostly fade, so they get a darker tint
   to read as strongly as Home's larger panel. */
.hero-compact .hero-panel::before { background: rgba(6, 38, 84, 0.7); }
.hero-panel > :last-child { margin-bottom: 0; }

.hero--photo h1,
.hero--photo p { text-shadow: 0 1px 2px rgba(0,0,0,0.35); }

.hero .wrap {
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero .wrap.text-center h1,
.hero .wrap.text-center p.lede { margin-left: auto; margin-right: auto; }

.hero .wrap.text-center .cta-row { justify-content: center; }

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 950px;
}

.hero p.lede {
  font-size: 1.2rem;
  max-width: 775px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 32px;
}

.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero buttons on a photo: 1px white ring to separate them from the image, plus the same soft dark shadow as the hero text */
.hero--photo .cta-row .btn { box-shadow: 0 0 0 1px rgba(255,255,255,0.85), 0 2px 16px rgba(0,0,0,0.5); }

/* Sections */
section.block { padding: 72px 0; }

section.block.alt { background: var(--gray-50); }

h2.section-title {
  font-size: 1.9rem;
  margin: 0 0 12px;
}

p.section-lede {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 850px;
  margin: 0 0 40px;
}

/* Cards / grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 28px;
  background: var(--gray-50);
}

/* Cards on a light-blue .alt section stay white so they don't disappear into it */
section.block.alt .card { background: var(--white); }

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--blue-700);
  text-align: center;
}

.card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.97rem;
}

/* Whole card is a link (home page service cards) */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: var(--blue-600);
  box-shadow: 0 2px 12px rgba(7,58,140,0.12);
}

.card-link:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }


/* Service groups (services.html) */
.service-group { margin-bottom: 56px; }

.service-group h2 {
  font-size: 1.6rem;
  border-bottom: 3px solid var(--blue-700);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.service-group .group-note {
  color: var(--gray-600);
  margin: 0 0 28px;
  max-width: 700px;
}

/* Proof / quote block */
.proof {
  background: var(--blue-700);
  color: var(--white);
  border-radius: 12px;
  padding: 40px;
}

.proof .stat {
  margin: 0;
  line-height: inherit;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
}

.proof .stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* Tag list (About — industry experience) */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.tag-list span {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* How I work (About) */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-50);
}

.step {
  position: relative;
  padding: 24px 20px;
  border-right: 1px solid var(--gray-300);
}

.step:last-child { border-right: none; }

/* Chevron badge straddling each divider — reads the steps as a left-to-right sequence */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7l5 5-5 5' fill='none' stroke='%23073A8C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  z-index: 1;
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--blue-700);
}

.step p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin: 0;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step {
    border-right: none;
    border-bottom: 1px solid var(--gray-300);
  }
  .step:last-child { border-bottom: none; }
  /* Stacked: badge moves to the horizontal divider and points down */
  .step:not(:last-child)::after {
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translate(50%, 50%) rotate(90deg);
  }
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.8);
  padding: 20px 0;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-footer .foot-fine { justify-self: start; }
.site-footer .foot-social { justify-self: center; }
.site-footer .foot-links { justify-self: end; display: flex; align-items: center; gap: 24px; }

/* LinkedIn tile: the blue logo fills the box (white behind it shows through the "in"), with the same
   1px white ring and soft dark shadow as the home hero buttons */
.foot-linkedin {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.85), 0 2px 16px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.foot-linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.85), 0 4px 16px rgba(0,0,0,0.6);
}

.foot-linkedin img { display: block; width: 100%; height: 100%; }

.site-footer a { text-decoration: none; color: rgba(255,255,255,0.8); font-size: 0.9rem; }

.site-footer a:hover { color: var(--white); }

.foot-fine {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

@media (max-width: 600px) {
  .site-footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer .foot-fine,
  .site-footer .foot-social,
  .site-footer .foot-links { justify-self: center; }
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

form.contact-form {
  display: grid;
  gap: 18px;
}

form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

/* Honeypot — hidden from people, bots fill it in */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.ok-msg {
  display: none;
  border: 1px solid var(--blue-500);
  background: var(--gray-50);
  padding: 20px;
  border-radius: 8px;
}

.ok-msg.show { display: block; }

.ok-msg p { margin: 8px 0 0; color: var(--gray-600); }

.error-msg {
  display: none;
  border: 1px solid #B42318;
  background: #FEF3F2;
  padding: 20px;
  border-radius: 8px;
  margin-top: 18px;
}

.error-msg.show { display: block; }

.error-msg strong { color: #B42318; }

.error-msg p { margin: 8px 0 0; color: var(--ink); }

form.contact-form button[type="submit"] { justify-self: start; }

/* Utilities — replace one-off inline styles across the pages */
.text-center { text-align: center; }
/* Centered section, left-aligned body text — headings stay centered */
.prose-left p { text-align: left; }
.prose-left p.text-center { text-align: center; }

/* Tiles/lists keep left-aligned text even inside a centered section (text-align inherits otherwise) */
.card, .tag-list, .steps, .intro-photo-row { text-align: left; }
.text-muted { color: var(--gray-600); }
/* !important on these: several base component rules (p.section-lede, .group-note, h2.section-title)
   set margin via shorthand with a tag+class selector, which is more specific than a single utility
   class and silently wins the cascade otherwise — utilities are meant to always apply when present. */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.max-920 { max-width: 920px; }
.mt-md { margin-top: 40px !important; }
.mt-lg { margin-top: 56px !important; }
.mb-md { margin-bottom: 24px !important; }

/* Compact hero (page-title heroes on every page but Home) */
.hero-compact .wrap { padding-top: 64px; padding-bottom: 64px; }
.hero-compact h1 { font-size: 2.1rem; }
/* Photo page-title heroes: about halfway between the plain compact hero and the Home hero in height,
   so more of the photo shows. Shorter on phones, where a single heading doesn't need the space. */
.hero-compact.hero--photo .wrap { padding-top: 144px; padding-bottom: 144px; }
@media (max-width: 600px) {
  .hero-compact.hero--photo .wrap { padding-top: 96px; padding-bottom: 96px; }
  .hero-panel { padding: 20px 24px; }
}

/* Proof block challenge/approach/outcome detail lines */
.proof-detail { margin: 20px auto 0; display: grid; gap: 12px; max-width: 900px; }
.proof-detail p { margin: 0; color: rgba(255,255,255,0.88); }
.proof-detail strong { color: var(--white); }

/* Proof block headline numbers, and the expandable full story under them */
.proof-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin: 24px auto 0; text-align: center; }
.proof-stats > div { display: flex; flex-direction: column; min-width: 110px; }
.proof-num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.proof-more { max-width: 900px; margin: 20px auto 0; }
.proof-more summary { cursor: pointer; font-weight: 600; color: var(--white); text-align: center; }
.proof-more summary:hover { text-decoration: underline; }
.proof a { color: var(--white); }

/* Headshot */
/* Photo floats left so the bio wraps beside it and flows underneath wherever the photo ends, at any width.
   flow-root keeps the float inside the row so the next heading can't ride up beside it. */
.intro-photo-row { display: flow-root; }
.intro-photo-row p { margin-top: 0; }
.headshot { box-shadow: 0 8px 24px rgba(6, 38, 84, 0.2); }
.headshot--full { float: left; width: 300px; height: auto; border-radius: 14px; margin: 0 36px 20px 0; }

@media (max-width: 720px) {
  .headshot--full { float: none; width: 240px; margin: 0 auto 24px; }
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .site-nav { gap: 16px; }
}

@media (max-width: 600px) {
  .site-header .wrap { position: relative; }
  .site-header .logo img { height: 52px; }
  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 16px rgba(6, 38, 84, 0.08);
    padding: 12px 24px 20px;
  }

  .site-nav.open { display: flex; }

  .site-nav a { width: 100%; padding: 10px 0; text-align: center; }

  .site-nav a.btn-primary { margin-top: 8px; text-align: center; }
}
