/* JeffreyWartman.com v3 additions. Loaded after site.css; same palette and type. */

/* ---------- Navigation ---------- */
.nav { gap: 24px; }
.nav a[aria-current="page"]:not(.nav-contact) { color: var(--cyan); }
.nav .nav-contact[aria-current="page"] { background: #0b2f4d; }

/* ---------- Hub diagram: travelling message pulses ---------- */
.connections .pulses path {
  stroke: #bff1ff; stroke-width: 3; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 6px #4fdcff);
  stroke-dasharray: 10 340; stroke-dashoffset: 350; animation: jw-pulse 4.8s linear infinite;
}
.connections .pulses path:nth-child(2) { animation-delay: -.7s; }
.connections .pulses path:nth-child(3) { animation-delay: -1.4s; }
.connections .pulses path:nth-child(4) { animation-delay: -2.1s; }
.connections .pulses path:nth-child(5) { animation-delay: -2.8s; }
.connections .pulses path:nth-child(6) { animation-delay: -3.5s; }
.connections .pulses path:nth-child(7) { animation-delay: -4.2s; }
@keyframes jw-pulse { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .connections .pulses { display: none; } }

.diagram-mobile { display: none; }
@media (max-width: 650px) {
  .diagram { display: none; }
  .diagram-mobile {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; margin: 4px 0 8px;
  }
  .diagram-mobile li {
    border: 1px solid #33ceff; border-radius: 8px; padding: 9px 4px; text-align: center; font-size: 12px; font-weight: 700;
    background: linear-gradient(150deg, #0c395a, #061c34);
  }
  .diagram-mobile li.hub { grid-column: 1 / -1; order: -1; font-size: 15px; border-width: 2px; box-shadow: 0 0 20px #04b3e055; }
}

/* ---------- Interior page heroes ---------- */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero-split .page-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.page-hero .page-hero-sub { font-size: 18px; color: #c9d9e8; max-width: 750px; margin-bottom: 0; }
.page-hero-aside { display: flex; justify-content: flex-end; }
.service-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
.hero-icon { color: #43d8ff; opacity: .9; filter: drop-shadow(0 0 18px #1caaf066); }
.hero-icon svg { width: 120px; height: 120px; }

.glance-card {
  width: 100%; max-width: 380px; background: linear-gradient(160deg, #0c3556, #061a30); border: 1px solid #2c6d93;
  border-radius: 14px; padding: 22px 24px; box-shadow: 0 0 40px #04b3e022;
}
.glance-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; }
.glance-row { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid #1f4a6a; }
.glance-row:first-of-type { border-top: 0; }
.glance-row strong { font-size: 24px; min-width: 136px; letter-spacing: -.5px; white-space: nowrap; }
.glance-row span { font-size: 14px; color: #c6d7e6; }

/* ---------- Report illustration (fictional data) ---------- */
.report-illus {
  width: 100%; max-width: 470px; background: #fff; color: #102039; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px #02101f66, 0 0 0 1px #c7dbe9; font-size: 12px;
}
.ri-bar { display: flex; align-items: center; gap: 6px; background: #0b2744; color: #cfe3f2; padding: 9px 12px; }
.ri-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2f5677; }
.ri-bar em { font-style: normal; margin-left: 8px; font-weight: 600; font-size: 12px; }
.ri-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #eef5fa; border-bottom: 1px solid #c9dbe8; }
.ri-tabs b, .ri-tabs i { font-style: normal; padding: 6px 10px; border-radius: 6px 6px 0 0; font-size: 11.5px; color: #53647b; }
.ri-tabs b { background: #fff; color: #006fb9; border: 1px solid #c9dbe8; border-bottom-color: #fff; margin-bottom: -1px; }
.ri-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .95fr; gap: 6px; padding: 7px 12px; border-bottom: 1px solid #e3edf4; font-variant-numeric: tabular-nums; }
.ri-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-head { font-weight: 800; color: #53647b; background: #f7fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.ri-row .ok { color: #08734a; font-weight: 700; }
.ri-row .warn { color: #a35a00; font-weight: 700; }
.ri-flow { display: flex; align-items: center; gap: 8px; padding: 14px 12px 16px; background: #f7fafc; }
.ri-flow span { border: 1.5px solid #0d91d5; color: #005f9e; border-radius: 6px; padding: 5px 10px; font-weight: 700; font-size: 11.5px; background: #fff; }
.ri-flow i { flex: 1; height: 2px; background: #0d91d5; position: relative; }
.ri-flow i:after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #0d91d5; border-right: 0; }

/* ---------- Homepage: assessment band ---------- */
.assessment-band { background: #fff; border-bottom: 1px solid #dbe8f1; }
.assessment-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.assessment-band h2 { max-width: 560px; }
.assessment-band .rich p { color: #3d526b; }
.check-list { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; color: #233a52; font-weight: 600; font-size: 15px; }
.check-list li:before { content: '✓'; position: absolute; left: 0; color: #007ac0; font-weight: 900; }

/* Service grid: five cards center the last row */
.service-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.service-grid .service-card { flex: 1 1 300px; max-width: calc((100% - 32px) / 3); }

/* ---------- Stories ---------- */
.stories-section { background: #f4f8fb; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.story-card { background: #fff; border: 1px solid #cddfec; border-radius: 12px; padding: 26px 28px; margin-top: 18px; }
.story-grid .story-card { margin-top: 0; }
.story-card h3 { margin-bottom: 12px; }
.story-card dl { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: 14.5px; }
.story-card dt { font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #006fb9; padding-top: 3px; }
.story-card dd { margin: 0; color: #3d526b; }

/* ---------- Rich text ---------- */
.rich p { margin: 0 0 14px; }
.rich ul { margin: 0 0 14px; padding-left: 22px; }
.rich li { margin-bottom: 6px; }
.about-band .rich p { color: #cbdbea; }
.rich-quiet p, .rich-quiet li { font-size: 14.5px; color: #5a6b80; }
.h-quiet { font-size: 20px !important; color: #405269; }
.lead-rich p { font-size: 18px; line-height: 1.8; color: #324a60; }
.note-panel { margin: 30px 0 10px; padding: 22px 26px; background: #eff8fe; border-left: 4px solid #0798dc; border-radius: 0 10px 10px 0; }
.note-panel h3 { margin-bottom: 8px; }
.note-panel ul { margin-bottom: 0; }
.prose-wide { max-width: 900px; margin-bottom: 36px; }
.prose-dark h2 { color: #fff; }
.prose-dark .rich li { color: #cbdbea; }
.capabilities-rich p { margin-bottom: 10px; }

/* ---------- Service detail ---------- */
.service-article .lead-detail p { font-size: 18px; line-height: 1.85; color: #324a60; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 6px 0 30px; }
.two-col h3 { font-size: 17px; }
.plain-list { margin: 0; padding-left: 18px; color: #3d526b; }
.plain-list li { margin-bottom: 7px; }
.aside-quiet { margin-top: 20px; box-shadow: none; }
.aside-quiet h3 { font-size: 16px; }
.aside-quiet .plain-list { list-style: none; padding: 0; }
.aside-quiet a { font-weight: 700; font-size: 14px; }
.services-closing { text-align: center; color: #41536a; margin-top: 18px; }

/* ---------- Assessment page ---------- */
.deliverable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.deliverable { background: #fff; border: 1px solid #cddfec; border-top: 3px solid #0d91d5; border-radius: 12px; padding: 22px 24px; }
.deliverable h3 { font-size: 17px; margin-bottom: 6px; }
.deliverable p { margin: 0; font-size: 14.5px; color: #3d526b; }
.steps-section { background: #fff; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 58px 4px 0; border-top: 2px solid #b5d7ef; }
.steps li:before {
  content: counter(step); position: absolute; top: -20px; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #0b2744; color: #56dcff; font-weight: 800; box-shadow: 0 0 0 5px #fff;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; color: #3d526b; font-size: 14.5px; }
.privacy-note { display: flex; gap: 14px; align-items: flex-start; margin: 36px auto 0; max-width: 820px; padding: 18px 22px; background: #eff8fe; border-radius: 10px; color: #006fb9; }
.privacy-note .rich p { margin: 0; color: #233a52; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid #cddfec; border-radius: 12px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: #3d526b; }
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.usecase-grid article { border-left: 3px solid #0d91d5; padding: 4px 0 4px 18px; }
.usecase-grid h3 { font-size: 16px; margin-bottom: 4px; }
.usecase-grid p { margin: 0; font-size: 14.5px; color: #3d526b; }
.sample-download { text-align: center; margin-top: 36px; color: #3d526b; }
.btn-outline-dark { border-color: #0d91d5; color: #005f9e; background: #fff; margin-left: 10px; }

/* Web Monitor Console panel (dark card on a light section) */
.monitor-panel { background: linear-gradient(140deg, #07172a, #0b2b4a); color: #fff; border-radius: 16px; padding: 40px 44px; max-width: 980px; margin: 0 auto; }
.monitor-panel h2 { color: #fff; }
.monitor-panel .rich p, .monitor-panel .rich li { color: #cbdbea; }

/* ---------- Contact ---------- */
.form-title { font-size: 24px; margin-bottom: 4px; }
.form-note { margin-top: 0; color: #53647b; font-size: 14px; }
.form-panel select {
  display: block; width: 100%; padding: 12px; border: 1px solid #b8c9d7; border-radius: 5px; margin-top: 6px;
  color: var(--ink); background: #fff; font: inherit; font-weight: 400;
}
.form-panel select:focus { outline: 2px solid #42c7fa; }

/* ---------- Footer ---------- */
.footer-v3 { padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-v3 .brand { margin-bottom: 14px; }
.footer-v3 .brand-symbol { width: 36px; height: 36px; }
.footer-v3 .brand strong { font-size: 18px; }
.footer-v3 p { font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-v3 .footer-links a { margin: 0; font-size: 14px; }
.footer-v3 .copyright { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-v3 .trademark { max-width: 560px; text-align: right; }

/* ---------- Readability: lift the smallest text on dark bands ---------- */
.metrics span { font-size: 13px; }
.strengths p { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-hero-split .page-hero-grid, .assessment-band-grid { grid-template-columns: 1fr; }
  .page-hero-aside { justify-content: flex-start; }
  .service-grid .service-card { max-width: calc((100% - 16px) / 2); }
  .steps, .deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .deliverable-grid { row-gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .nav { gap: 14px; }
  .page-hero-aside { display: none; }
  .service-hero .page-hero-grid { grid-template-columns: 1fr; }
  .service-grid .service-card { max-width: 100%; }
  .story-grid, .two-col, .steps, .deliverable-grid { grid-template-columns: 1fr; }
  .monitor-panel { padding: 26px 22px; }
  .story-card dl { grid-template-columns: 1fr; gap: 2px; }
  .story-card dd { margin-bottom: 8px; }
  .report-illus { font-size: 11px; }
  .ri-row { grid-template-columns: 1.3fr 1fr .9fr; }
  .ri-row span:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-v3 .trademark { text-align: left; }
  .btn-outline-dark { margin: 12px 0 0; }
}

/* ---------- v3.3: galleries and full-screen viewer ---------- */
.gallery a { display: block; position: relative; cursor: zoom-in; }
.gallery a:after {
  content: '⤢'; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: #07172acc; color: #fff; font-size: 16px; opacity: 0; transition: opacity .2s;
}
.gallery a:hover:after, .gallery a:focus-visible:after { opacity: 1; }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.monitor-gallery-intro { margin: 26px 0 14px; font-size: 14px; color: #9fc0da; }
.gallery-dark { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-dark figure { background: #0a2440; border-color: #24557a; }
.gallery-dark figcaption { color: #cbdbea; }

body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 12, 24, .97); backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 24px 12px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-height: 100%; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px #000a; background: #fff; }
.lb-figure figcaption { color: #e1eaf5; margin-top: 12px; font-size: 15px; text-align: center; }
.lightbox button {
  background: #10304fcc; color: #fff; border: 1px solid #36597a; border-radius: 50%; width: 46px; height: 46px;
  font-size: 28px; line-height: 1; display: grid; place-items: center; cursor: pointer; justify-self: center;
}
.lightbox button:hover, .lightbox button:focus-visible { background: #0d91d5; outline: none; }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 30px !important; }
.lb-count { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: #9fc0da; font-size: 14px; margin: 0; pointer-events: none; }
.lb-single .lb-prev, .lb-single .lb-next { visibility: hidden; }
@media (max-width: 650px) {
  .lightbox { grid-template-columns: 1fr; padding: 60px 8px 70px; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-figure img { max-height: calc(100vh - 170px); }
}
@media (prefers-reduced-motion: reduce) { .gallery a:after { transition: none; } }
