/*
Theme Name: Just Another Kreative
Theme URI: https://justanotherkreative.com/
Author: Joshua Rojas / Codex
Author URI: https://justanotherkreative.com/
Description: Professional services theme for CRM automation, monday.com, Medilink, APIs, webhooks, AI and HealthTech operations.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: just-another-kreative
*/

:root {
  --jak-ink: #17191f;
  --jak-text: #31343b;
  --jak-muted: #69707d;
  --jak-line: #dde1e7;
  --jak-soft: #f5f7fa;
  --jak-panel: #ffffff;
  --jak-blue: #0073ea;
  --jak-green: #00a96b;
  --jak-purple: #7f4cc2;
  --jak-yellow: #f4b400;
  --jak-red: #d83a52;
  --jak-radius: 8px;
  --jak-shadow: 0 18px 60px rgba(23, 25, 31, 0.1);
  --jak-max: 1180px;
  --jak-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--jak-text);
  background: #ffffff;
  font-family: var(--jak-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--jak-ink);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 225, 231, 0.9);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--jak-max));
  min-height: 72px;
  margin: 0 auto;
  gap: 22px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--jak-ink);
  font-weight: 800;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--jak-ink);
  border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.12);
}

.site-brand .custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 48px;
}

.site-brand__text {
  display: grid;
  line-height: 1.05;
}

.site-brand__name {
  font-size: 0.98rem;
}

.site-brand__tagline {
  color: var(--jak-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  margin: 0;
  color: #ffffff;
  background: var(--jak-ink);
  border-radius: 6px;
  z-index: 1000;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--jak-muted);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--jak-ink);
  background: var(--jak-soft);
  outline: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--jak-ink);
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.nav-toggle span {
  margin: 4px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn--primary {
  color: #ffffff;
  background: var(--jak-blue);
  box-shadow: 0 12px 22px rgba(0, 115, 234, 0.18);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #005fc4;
}

.btn--ghost {
  color: var(--jak-ink);
  background: #ffffff;
  border-color: var(--jak-line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--jak-ink);
  box-shadow: 0 10px 22px rgba(23, 25, 31, 0.08);
}

.main {
  overflow: clip;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding: 86px 0 78px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.68) 100%),
    linear-gradient(#f1f3f6 1px, transparent 1px),
    linear-gradient(90deg, #f1f3f6 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.8fr);
  gap: 46px;
  align-items: center;
  width: min(100% - 32px, var(--jak-max));
  margin: 0 auto;
}

.hero__content {
  width: 100%;
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 12px;
  color: var(--jak-ink);
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--jak-green);
  border-radius: 50%;
  content: "";
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--jak-ink);
  font-size: 4.85rem;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: #39404a;
  font-size: 1.12rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(650px, 100%);
  margin-top: 38px;
}

.proof-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--jak-line);
  border-radius: var(--jak-radius);
}

.proof-item strong {
  display: block;
  color: var(--jak-ink);
  font-size: 1.28rem;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--jak-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.workflow-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  opacity: 1;
}

.board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(221, 225, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--jak-shadow);
}

.board__column {
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
}

.board__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0 0 10px;
  color: var(--jak-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.board__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.board__card {
  display: grid;
  gap: 9px;
  min-height: 88px;
  margin-top: 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-left: 4px solid var(--jak-blue);
  border-radius: 8px;
}

.board__card strong {
  color: var(--jak-ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.board__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--jak-ink);
  background: #eef3f9;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.pill--blue {
  color: #ffffff;
  background: var(--jak-blue);
  border-color: var(--jak-blue);
}

.pill--green {
  color: #ffffff;
  background: var(--jak-green);
  border-color: var(--jak-green);
}

.pill--purple {
  color: #ffffff;
  background: var(--jak-purple);
  border-color: var(--jak-purple);
}

.pill--yellow {
  background: #fff2bf;
  border-color: #f3d463;
}

.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--jak-soft);
  border-block: 1px solid var(--jak-line);
}

.section__inner {
  width: min(100% - 32px, var(--jak-max));
  margin: 0 auto;
}

.section__head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section__head h2 {
  margin: 0;
  color: var(--jak-ink);
  font-size: 3.25rem;
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section__head p {
  margin: 0;
  color: var(--jak-muted);
  font-size: 1.06rem;
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.tool-chip {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 14px;
  color: var(--jak-ink);
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tool-chip span {
  display: block;
  margin-top: 6px;
  color: var(--jak-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

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

.service-card {
  position: relative;
  min-height: 290px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 25, 31, 0.06);
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 24px;
  width: 72px;
  height: 4px;
  background: var(--accent, var(--jak-blue));
  content: "";
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: #ffffff;
  background: var(--accent, var(--jak-blue));
  border-radius: 8px;
}

.service-card h3 {
  margin: 0;
  color: var(--jak-ink);
  font-size: 1.24rem;
  line-height: 1.18;
}

.service-card__title-link {
  color: inherit;
  text-decoration: none;
}

.service-card__title-link:hover,
.service-card__title-link:focus-visible {
  color: var(--accent, var(--jak-blue));
  outline: none;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--jak-muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 8px;
  color: #444b56;
  font-size: 0.92rem;
  font-weight: 650;
}

.service-card li::before {
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  background: var(--accent, var(--jak-blue));
  border-radius: 50%;
  flex: 0 0 auto;
  content: "";
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.process-panel {
  padding: 28px;
  color: #ffffff;
  background: var(--jak-ink);
  border-radius: 8px;
}

.process-panel h2 {
  margin: 0;
  font-size: 2.85rem;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.process-panel p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
}

.process-item__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: var(--jak-blue);
  border-radius: 8px;
  font-weight: 900;
}

.process-item h3 {
  margin: 0;
  color: var(--jak-ink);
  font-size: 1.05rem;
}

.process-item p {
  margin: 5px 0 0;
  color: var(--jak-muted);
  font-size: 0.92rem;
}

.process-item__status {
  min-width: 94px;
  text-align: center;
}

.use-case-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.case-table {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
}

.case-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.2fr) minmax(104px, 0.55fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  border-top: 1px solid var(--jak-line);
}

.case-row:first-child {
  border-top: 0;
}

.case-row strong {
  color: var(--jak-ink);
}

.case-row span {
  color: var(--jak-muted);
  font-size: 0.92rem;
}

.insight-card {
  padding: 26px;
  color: #ffffff;
  background: #262a33;
  border-radius: 8px;
}

.insight-card h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.insight-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.insight-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.metric-box {
  min-height: 96px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.metric-box strong {
  display: block;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
}

.metric-box span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.3;
}

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

.faq-item {
  min-height: 180px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 25, 31, 0.05);
}

.faq-item h3 {
  margin: 0;
  color: var(--jak-ink);
  font-size: 1.12rem;
  line-height: 1.24;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--jak-muted);
  font-size: 0.96rem;
}

.cta-band {
  padding: 56px;
  color: #ffffff;
  background: var(--jak-ink);
  border-radius: 8px;
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.cta-band p {
  max-width: 690px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-band .btn--primary {
  background: #ffffff;
  color: var(--jak-ink);
  box-shadow: none;
}

.site-footer {
  padding: 42px 0;
  background: #ffffff;
  border-top: 1px solid var(--jak-line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(100% - 32px, var(--jak-max));
  margin: 0 auto;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--jak-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  color: var(--jak-muted);
  font-weight: 750;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-page {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.content-page h1 {
  margin: 0 0 22px;
  color: var(--jak-ink);
  font-size: 4.2rem;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.content-page :where(h2, h3) {
  color: var(--jak-ink);
  line-height: 1.18;
}

.content-page a {
  color: var(--jak-blue);
  font-weight: 800;
}

.content-page__article {
  color: #3b424c;
  font-size: 1.06rem;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--jak-line);
  border-radius: 8px;
}

.post-card h2 {
  margin: 0;
  color: var(--jak-ink);
  font-size: 1.35rem;
  line-height: 1.18;
}

.post-card p {
  margin: 12px 0 0;
  color: var(--jak-muted);
}

.wp-block-button__link {
  border-radius: 8px;
}

.alignwide {
  width: min(100%, var(--jak-max));
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .workflow-stage {
    width: 100%;
  }

  .tool-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-grid,
  .process-layout,
  .use-case-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 66px);
    padding: 14px 16px 22px;
    overflow: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--jak-line);
    box-shadow: 0 18px 36px rgba(23, 25, 31, 0.1);
  }

  .site-nav__menu {
    display: grid;
    gap: 0;
  }

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

  .site-nav a {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
  }

  .site-header__actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 54px;
  }

  .hero h1 {
    font-size: 3rem;
    line-height: 0.98;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .section__head h2,
  .process-panel h2,
  .insight-card h2,
  .cta-band h2 {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .content-page h1 {
    font-size: 2.55rem;
  }

  .hero__proof,
  .tool-strip,
  .board,
  .faq-grid,
  .insight-card__metrics,
  .cta-band__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .process-item__status {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-band {
    padding: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-links ul {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
