/* Kelly Creative Ground Up — global site foundation */
:root {
  --kc-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oa-font-body: var(--kc-font);
  --oa-font-display: var(--kc-font);
  --oa-color-base: #fff;
  --oa-color-bg: #262626;
  --oa-color-yellow: #8ae100;
  --oa-color-lime: #8ae100;
  --oa-color-canvas: #181a1b;
  --oa-color-canvas-deep: #151716;
  --oa-color-surface: #222526;
  --oa-color-surface-soft: #292c2d;
  --oa-color-panel: #252829;
  --oa-color-panel-deep: #202324;
  --oa-color-border: #484d4f;
  --oa-color-border-soft: #393d3f;
  --oa-color-text: #fff;
  --oa-color-muted: #c8cccd;
  --oa-color-dim: #969c9e;
  --oa-color-accent: #8ae100;
	--oa-color-accent-hover: #76c400;
	--oa-color-accent-on: #111311;
	--oa-color-accent-soft: rgb(138 225 0 / 0.12);
	--oa-color-accent-border: rgb(138 225 0 / 0.45);
  --oa-color-ink: #151715;
  --kc-content-width: 1180px;
  --kc-page-gutter: clamp(1rem, 4vw, 3rem);
  --oa-container-width: var(--kc-content-width);
  --oa-container-padding: var(--kc-page-gutter);
  --oa-service-wrap: min(1180px, calc(100% - 2.5rem));
  --kc-reading-width: 760px;
  --kc-header-height: 5rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 1.5rem; }
html.kc-menu-open { overflow: hidden; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--oa-color-text);
  background: var(--oa-color-canvas);
  font-family: var(--kc-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--oa-color-accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--oa-color-accent-hover); }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--oa-color-accent);
  outline-offset: 4px;
}
::selection { color: var(--oa-color-ink); background: var(--oa-color-accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  color: var(--oa-color-text);
  font-family: var(--kc-font);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.4rem; }
ul, ol { padding-left: 1.35rem; }
hr { height: 1px; margin: 2.5rem 0; border: 0; background: var(--oa-color-border); }
blockquote { padding-left: 1.25rem; border-left: 3px solid var(--oa-color-accent); color: var(--oa-color-muted); }
code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { padding: 0.12em 0.3em; color: #fff; background: #323638; }
pre { max-width: 100%; padding: 1rem; overflow: auto; background: #111314; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border: 1px solid var(--oa-color-border); text-align: left; }

.screen-reader-text {
  position: absolute !important;
  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,
.skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--oa-color-ink);
  background: var(--oa-color-accent);
  font-weight: 800;
}
.site { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.site-main { flex: 1 0 auto; }
.kc-container { width: min(var(--kc-content-width), calc(100% - (2 * var(--kc-page-gutter)))); margin-inline: auto; }
.kc-prose { max-width: var(--kc-reading-width); }
.kc-prose > * + * { margin-top: 1.35rem; }
.kc-prose > :is(h2, h3, h4) { margin-top: 2.25rem; }

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #4e514d;
  background: #171918;
}
.site-header__inner {
  min-height: var(--kc-header-height);
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-branding { min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 3.5rem; width: auto; }
.site-branding__text { display: inline-flex; gap: 0.8rem; align-items: center; color: #fff; text-decoration: none; }
.site-branding__text:hover { color: #fff; }
.site-branding__mark {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--oa-color-accent);
  color: var(--oa-color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.site-branding__text strong { display: block; font-size: 0.93rem; letter-spacing: -0.01em; }
.site-branding__text small { display: block; margin-top: 0.1rem; color: var(--oa-color-dim); font-size: 0.63rem; letter-spacing: 0.035em; line-height: 1.35; }

.primary-navigation__menu,
.primary-navigation__menu ul,
.mobile-navigation__menu,
.mobile-navigation__menu ul,
.footer-navigation__menu { margin: 0; padding: 0; list-style: none; }
.primary-navigation__menu { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.primary-navigation__menu > li { position: relative; }
.primary-navigation__menu a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #e2e5e3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-navigation__menu a:hover,
.primary-navigation__menu .current-menu-item > a,
.primary-navigation__menu .current-menu-ancestor > a { color: var(--oa-color-accent); }

/* Primary conversion item: add "nav-btn" to the WordPress menu item. */
.primary-navigation__menu > .nav-btn > a {
  min-height: 2.5rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--oa-color-accent);
  color: var(--oa-color-ink);
  background: var(--oa-color-accent);
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.primary-navigation__menu > .nav-btn > a:hover {
	color: var(--oa-color-accent);
	background: transparent;
	transform: translateY(-1px);
}
.primary-navigation__menu .sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: -1rem;
  min-width: 15rem;
  padding: 0.55rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.4rem);
  border: 1px solid var(--oa-color-border);
  background: #1c1f20;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.3);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.primary-navigation__menu li:hover > .sub-menu,
.primary-navigation__menu li:focus-within > .sub-menu,
.primary-navigation__menu li.is-submenu-open > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.primary-navigation__menu .sub-menu a { display: flex; min-height: 2.6rem; padding-inline: 0.75rem; }
.submenu-toggle { display: none; }
.menu-toggle { display: none; width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--oa-color-border); color: #fff; background: transparent; }
.menu-toggle__bars { display: grid; gap: 0.31rem; width: 1.25rem; margin: auto; }
.menu-toggle__bars span { height: 2px; background: currentColor; }

.mobile-navigation {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 1rem;
  background: rgb(9 11 11 / 0.84);
  backdrop-filter: blur(8px);
}
.mobile-navigation[hidden] { display: none; }
.mobile-navigation__inner {
  width: min(34rem, 100%);
  min-height: 100%;
  margin-left: auto;
  padding: 1.25rem;
  border: 1px solid var(--oa-color-border);
  background: #171918;
  overflow-y: auto;
}
.mobile-navigation__close {
  display: block;
  margin: 0 0 2rem auto;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--oa-color-border);
  color: #fff;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-navigation__menu a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--oa-color-border-soft); color: #fff; font-weight: 750; text-decoration: none; }
.mobile-navigation__menu > .nav-btn { margin-top: 1.25rem; }
.mobile-navigation__menu > .nav-btn > a {
  padding: 0.95rem 1rem;
  border: 1px solid var(--oa-color-accent);
  color: var(--oa-color-ink);
  background: var(--oa-color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.mobile-navigation__menu > .nav-btn > a:hover {
	color: var(--oa-color-accent);
	background: transparent;
}
.mobile-navigation__menu .sub-menu { padding-left: 1rem; }
.mobile-navigation__menu .sub-menu a { color: var(--oa-color-muted); font-size: 0.9rem; }
.mobile-navigation .menu-item-has-children { position: relative; }
.mobile-navigation .submenu-toggle { position: absolute; top: 0.45rem; right: 0; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 0; color: var(--oa-color-accent); background: transparent; }
.mobile-navigation .menu-item-has-children > .sub-menu { display: none; }
.mobile-navigation .menu-item-has-children.is-submenu-open > .sub-menu { display: block; }

.site-footer { margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--oa-color-border-soft); background: #131515; }
.service-page-body .site-footer, .home .site-footer { margin-top: 0; }
.site-footer__grid { min-height: 12rem; padding-block: 2.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2rem; align-items: end; }
.site-footer__brand { color: #fff; font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.site-footer__copy { margin: 0.65rem 0 0; color: var(--oa-color-dim); font-size: 0.78rem; }
.footer-navigation__menu { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-navigation__menu a { color: var(--oa-color-muted); font-size: 0.72rem; text-decoration: none; }
.site-footer__meta { display: grid; gap: 0.3rem; justify-items: end; color: var(--oa-color-dim); font-size: 0.72rem; }
.site-footer__meta a { color: inherit; }

.standard-page-shell, .single-shell, .archive-shell, .index-shell, .error-404-shell { padding-block: clamp(4rem, 8vw, 7rem); }
.standard-page-shell .entry-header, .single-shell .entry-header { margin-bottom: 2.5rem; }
.entry-title { max-width: 18ch; }
.entry-meta, .post-card__meta, .eyebrow { color: var(--oa-color-accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.entry-thumbnail { margin-bottom: 2.5rem; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.post-sidebar { position: sticky; top: 1rem; }
.widget { padding: 1.25rem; border: 1px solid var(--oa-color-border); background: var(--oa-color-panel-deep); }
.widget + .widget { margin-top: 1rem; }
.widget-title { font-size: 1rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.post-card { border: 1px solid var(--oa-color-border); background: var(--oa-color-panel); }
.post-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.35rem; }
.post-card__title { font-size: 1.35rem; }
.post-card__title a { color: #fff; text-decoration: none; }
.post-card__excerpt { color: var(--oa-color-muted); font-size: 0.9rem; }
.kc-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.88rem 1.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oa-color-accent);
  border-radius: 0;
  color: var(--oa-color-ink);
  background: var(--oa-color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.kc-button:hover, .wp-block-button__link:hover { color: var(--oa-color-ink); background: var(--oa-color-accent-hover); transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link { color: #fff; background: transparent; border-color: #63696b; }

.alignwide { width: min(var(--kc-content-width), calc(100% - (2 * var(--kc-page-gutter)))); max-width: none; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-block-image img { height: auto; }
.wp-block-separator { border: 0; border-top: 1px solid var(--oa-color-border); }

@media (max-width: 68rem) {
  .primary-navigation { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__meta { grid-column: 1 / -1; justify-items: start; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .site-branding__text small { display: none; }
  .single-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 43.75rem) {
  :root { --kc-header-height: 4.5rem; }
  .site-footer__grid { grid-template-columns: 1fr; align-items: start; }
  .site-footer__meta { grid-column: auto; }
  .footer-navigation__menu { display: grid; gap: 0.5rem; }
  .post-grid { grid-template-columns: 1fr; }
}
@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; }
}

/* Global interaction layer: native details animation + back-to-top. */
details.is-kc-animating {
  will-change: height;
}

.kc-back-to-top {
  position: fixed;
  z-index: 900;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--oa-color-accent);
  border-radius: 0;
  color: var(--oa-color-ink);
  background: var(--oa-color-accent);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.28);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.kc-back-to-top[hidden] {
  display: none;
}

.kc-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kc-back-to-top:hover {
  color: var(--oa-color-accent);
  background: #171918;
}

@media (prefers-reduced-motion: reduce) {
  details.is-kc-animating,
  .kc-back-to-top {
    transition: none !important;
  }
}
