/* ==========================================================================
   101 Keys Design — WordPress layer
   Loaded after main.css. Three jobs:
     1. Section variants that exist only in the WordPress build.
     2. Typography for post content WordPress renders.
     3. Living alongside the theme: content built in Avada Builder keeps its
        layout and is re-skinned through the builder's own CSS variables.
   ========================================================================== */

/* ---------- Admin bar ------------------------------------------------ */
.admin-bar .hdr, .admin-bar .reading { top: 32px; }
.admin-bar .mnav { padding-top: calc(var(--hdr-h) + 44px); }
@media (max-width: 782px) {
  .admin-bar .hdr, .admin-bar .reading { top: 46px; }
  .admin-bar .mnav { padding-top: calc(var(--hdr-h) + 58px); }
}

/* ---------- Home: hero ---------------------------------------------- */
.hero__main { margin-top: clamp(6px, 1.5vh, 20px); }
.hero__h1 { display: block; margin: 0; font: inherit; letter-spacing: normal; }
.hero__kicker { display: flex; margin-bottom: clamp(20px, 3.2vh, 38px); }
.hero__title { display: block; }
.hero__actions { gap: 18px 26px; }
.hero__body { max-width: 47rem; gap: 26px; }
.hero__body .lede { max-width: 50ch; }

/* Links inside designed copy carried over from the live pages */
.rich a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: rgba(20, 19, 17, 0.32); transition: text-decoration-color 0.2s, color 0.2s; }
.rich a:hover { text-decoration-color: var(--amber); }
.dark .rich a { text-decoration-color: rgba(237, 234, 227, 0.4); }

/* ---------- Home: statement ---------------------------------------- */
.statement__h { max-width: 28ch; color: var(--ink-2); }
.statement__h a { color: var(--ink); }
.statement__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(20px, 4vw, 72px); margin-top: clamp(36px, 5vw, 64px); max-width: 1180px; }
.stats--1 { grid-template-columns: minmax(0, 1fr); }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .statement__body { grid-template-columns: 1fr; }
  .stats--3 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Home: services list (full page titles as link text) ---- */
.svc-row { grid-template-columns: minmax(0, 4.6fr) minmax(0, 4.6fr) minmax(0, 1.2fr) auto; }
.svc-row__t { white-space: normal; font-size: clamp(1.3rem, 1.95vw, 2.05rem); line-height: 1; }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr auto; } }

/* ---------- Home: why us (text variant, no photo) ------------------ */
.h2--sm { font-size: clamp(2rem, 3.7vw, 3.75rem); }
.spec--text .spec__intro { grid-column: 1 / 6; position: sticky; top: calc(var(--hdr-h) + 32px); align-self: start; }
.spec--text .spec__body { grid-column: 7 / 13; }
.spec--text .spec__table { margin-top: 0; }
.spec--text .spec__row { grid-template-columns: 6.25rem minmax(0, 1fr) auto; align-items: start; padding: 22px 0; }
.spec--text .spec__row dt { padding-top: 0.45em; }
.spec--text .spec__row dd { display: grid; gap: 6px; font-size: 1rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
.spec--text .spec__row dd strong { font-size: clamp(1.15rem, 1.55vw, 1.42rem); font-weight: 650; font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.2; }
.spec--text .spec__row dd span { color: var(--ink-2); line-height: 1.5; }
.spec--text .partner { margin-top: 28px; }
@media (max-width: 900px) {
  .spec--text .spec__intro, .spec--text .spec__body { grid-column: 1 / -1; position: relative; top: 0; }
  .spec--text .spec__intro { margin-bottom: 40px; }
  .spec--text .spec__row { grid-template-columns: 5rem minmax(0, 1fr) auto; }
}

/* ---------- Home: reviews (no photo column) ----------------------- */
.quotes--solo .quote blockquote { max-width: 31ch; font-size: clamp(1.55rem, 3.15vw, 3.2rem); line-height: 1.08; }
.quotes__ctrl { flex-wrap: wrap; row-gap: 22px; }
.quotes__all { margin-left: auto; color: var(--on-dark); }

/* ---------- FAQ: answers can hold paragraphs and lists ------------ */
.qa__a .qa__body { padding: 0 3.2rem clamp(22px, 2.6vw, 32px) calc(3.2rem + 14px); color: var(--ink-2); max-width: 68ch; font-size: 1.06rem; }
.qa__a .qa__body p { padding: 0; max-width: none; font-size: inherit; }
.qa__body > * + * { margin-top: 0.75em; }
.qa__body ul, .qa__body ol { display: grid; gap: 0.45em; }
.qa__body li { position: relative; padding-left: 1.35em; }
.qa__body li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
@media (max-width: 900px) { .qa__a .qa__body { padding: 0 0 24px calc(2.2rem + 14px); } }

/* ---------- Footer: service areas column -------------------------- */
.ftr__cols--5 { grid-template-columns: 1.25fr 1.3fr 1.3fr 0.8fr 1.25fr; }
.ftr__cols--4 { grid-template-columns: 1.3fr 1.2fr 1.2fr 1.3fr; }
.ftr__cols--3 { grid-template-columns: 1.3fr 1fr 1.3fr; }
.ftr__addr a, .ftr__addr { color: var(--on-dark-2); line-height: 1.45; }
@media (max-width: 1100px) { .ftr__cols--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ftr__cols--5, .ftr__cols--4, .ftr__cols--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__cols--5, .ftr__cols--4, .ftr__cols--3 { grid-template-columns: 1fr; } }

/* ---------- Services overview cards (no photo) -------------------- */
.scard--text .scard__in { min-height: min(60vh, 540px); }
.scard--text .scard__side { justify-content: flex-end; gap: 14px; }
.scard__t a { transition: color 0.25s; }
.scard__t a:hover { color: var(--amber); }
.phero--compact { padding-bottom: clamp(20px, 3vw, 44px); }

/* ---------- Contact: embedded form -------------------------------- */
.form--embed { display: block; padding: clamp(12px, 1.8vw, 26px); }
.form--embed iframe { display: block; width: 100%; min-height: 380px; background: transparent; }
.cinfo__big--sm { font-size: clamp(1.15rem, 1.55vw, 1.4rem); line-height: 1.25; }
.search { display: flex; gap: 10px; max-width: 540px; }

/* ---------- Real screenshots and photos --------------------------- */
.wcard__media img { object-position: 50% 0; }
.cover--photo img { width: 100%; height: 100%; object-fit: cover; }
.frame--cover { aspect-ratio: 16 / 8; }
.frame--cover img { width: 100%; height: 100%; object-fit: cover; }
.browser__view--shot { aspect-ratio: 16 / 9.6; }
.browser__view--shot img { width: 100%; height: 100%; margin-top: 0; object-fit: cover; object-position: 50% 0; }
.nextproj .frame img { object-position: 50% 0; }

/* ---------- Pagination ------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(48px, 7vw, 96px); }
.pager .page-numbers { --s: 46px; width: auto; min-width: var(--s); padding-inline: 12px; }
.pager a.page-numbers:hover { transform: translateY(2px); }
.pager .page-numbers.current { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); color: var(--amber-ink); transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(130,78,0,.2), 0 0 0 var(--amber-lo); }
.pager .page-numbers.dots { background: none; box-shadow: none; }
a.chip { text-decoration: none; }
.jgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .jgrid--2 { grid-template-columns: 1fr; } }

/* ---------- Article: table of contents --------------------------- */
.toc ol { display: grid; gap: 9px; }
.toc a { display: block; font-size: 0.92rem; line-height: 1.3; color: var(--ink-3); transition: color 0.2s, transform 0.3s var(--ease-out); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { transform: translateX(6px); }
.toc .is-sub { padding-left: 14px; }
@media (max-width: 900px) { .toc { display: none; } }

/* ---------- Article body (content written in WordPress) ---------- */
/* Blog posts use the full site width: text runs from the sidebar to the right edge. */
.k101-article .prose { grid-column: 4 / -1; max-width: none; }
@media (max-width: 900px) { .k101-article .prose { grid-column: 1 / -1; } }
.prose .post-content > * + * { margin-top: 1.1em; }
.prose .post-content > p:first-of-type { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; color: var(--ink); letter-spacing: -0.012em; }
.prose :is(h2, h3, h4) { color: var(--ink); font-family: var(--f-sans); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.prose h3 { margin-top: 1.8em; font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 680; font-stretch: 106%; letter-spacing: -0.025em; line-height: 1.15; }
.prose h4 { margin-top: 1.6em; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.prose p { margin: 0; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--amber); }
.prose a:hover { background: rgba(239, 163, 27, 0.18); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 3px solid var(--amber); font-size: 1.18em; line-height: 1.45; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose :is(th, td) { padding: 0.65em 0.6em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 650; color: var(--ink); border-bottom-color: var(--line-2); }
.prose :is(iframe, video) { max-width: 100%; border-radius: 12px; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.2em 0; }
.prose .alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.prose .alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin-top: 0.6em; }
.frame--cover + * { margin-top: 0; }

/* ==========================================================================
   Content built in Avada Builder
   The builder's stylesheet sits in a cascade layer (see assets.php), so its
   rules still shape this content while the new design wins everywhere else.
   ========================================================================== */
.k101-legacy { position: relative; }
.k101-legacy #wrapper { display: block; min-height: 0; background: transparent; box-shadow: none; }
.k101-legacy #main { padding-top: 0; padding-bottom: 0; background: transparent; }
.k101-legacy #content { float: none; width: 100%; min-height: 0; }
.k101-legacy--lead { padding-top: var(--hdr-h); }
.admin-bar .k101-legacy--lead { padding-top: calc(var(--hdr-h) + 0px); }
.k101-legacy--prose #main { padding: 0; }

/* Re-skin: point the builder's own variables at the new type and accent. */
.k101-legacy {
  --awb-typography1-font-family: var(--f-sans);
  --awb-typography2-font-family: var(--f-sans);
  --awb-typography3-font-family: var(--f-sans);
  --awb-typography4-font-family: var(--f-sans);
  --awb-typography5-font-family: var(--f-sans);
  --awb-typography1-letter-spacing: -0.03em;
  --awb-color4: #efa31b;
  --awb-color8: #141311;
  --content_bg_color: transparent;
  --bg_color: transparent;
}
.k101-legacy :is(h1, h2, h3, h4, h5, h6) { font-stretch: 108%; }
.k101-legacy :is(h1, h2) { font-weight: 720; }
.k101-legacy .fusion-button { border-radius: 12px; font-weight: 650; font-stretch: 106%; letter-spacing: -0.01em; }
.k101-legacy .fusion-imageframe img, .k101-legacy .fusion-image-element img { border-radius: 10px; }

/* Pages without a designed layout keep a solid header so the menu reads over any content. */
.k101-view-page .hdr::before, .k101-view-single-post .hdr::before { opacity: 1; }

/* The background canvas never intercepts builder content. */
.k101 #scene { z-index: 0; }
.k101 .page { z-index: 2; }

/* ==========================================================================
   About (the live page's copy and photos in the new layout)
   ========================================================================== */
.ab-hero { padding-bottom: clamp(36px, 5vw, 64px); }
.ab-banner { aspect-ratio: 21 / 8; }

.ab-intro { row-gap: 48px; align-items: center; }
.ab-intro__text { grid-column: 1 / 6; }
.ab-intro__media { grid-column: 7 / 13; }
.ab-frame--photo { aspect-ratio: 3 / 2; }

.ab-quote { padding-bottom: 0; }
.ab-quote .statement__text { max-width: 24ch; }

.ab-creds { row-gap: 48px; align-items: center; }
.ab-creds__media { grid-column: 1 / 6; }
.ab-creds__body { grid-column: 7 / 13; display: grid; gap: clamp(28px, 3vw, 40px); }
.ab-cred { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; padding-top: 26px; border-top: 1px solid var(--line-2); }
.ab-cred .kc { --s: 44px; grid-row: span 3; }
.ab-cred p { margin-top: 10px; }
.ab-partners { grid-column: 2; margin-top: 18px; }
.ab-partners .chip { cursor: default; }
.ab-partners .chip:hover { transform: none; }
.ab-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.ab-badge { display: block; transition: transform 0.4s var(--ease-out); }
.ab-badge img { height: 110px; width: auto; }
a.ab-badge:hover { transform: translateY(-3px); }

.ab-idea { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--paper-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 0 var(--line-2); }
.ab-idea__h { max-width: 17ch; font-size: clamp(1.9rem, 3.6vw, 3.4rem); }
.ab-idea__btns { display: flex; flex-wrap: wrap; gap: 14px; }

.team--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .ab-banner { aspect-ratio: 4 / 3; }
  .ab-intro__text, .ab-intro__media, .ab-creds__media, .ab-creds__body { grid-column: 1 / -1; }
  .ab-creds__media { order: 2; }
  .team--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .team--3 { grid-template-columns: 1fr; }
  .ab-badge img { height: 88px; }
}
