/*
Theme Name: Karriway
Description: Karriway's public marketing website.
Template: twentytwentyfive
Version: 1.0.3
Text Domain: karriway
*/

:root {
  --paper: #fbf7ef; --mist: #e4efe9; --ink: #14201c; --slate: #4a5a55;
  --green: #1e4b3e; --eucalypt: #2f7a5f; --clay: #b0502b; --wattle: #f2b84b;
  --line: #b8cfc3;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Fraunces, Georgia, serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); }
body { margin: 0; overflow-wrap: anywhere; font: 1.125rem/1.6 var(--body); }
h1, h2, h3, h4 { margin-block: 0 0.8em; color: var(--green); }
h1, h2 { font-family: var(--display); font-weight: 600; }
h1 { max-width: 25ch; font-size: clamp(2.5rem, 4.1vw, 3rem); line-height: 1.14; letter-spacing: -0.027em; }
h2 { font-size: clamp(1.75rem, 3vw, 2rem); line-height: 1.22; letter-spacing: -0.016em; }
h3 { font-size: 1.4rem; line-height: 1.3; }
p, ul, ol, figure { margin-block: 0 1.05em; }
a { color: var(--green); text-decoration-thickness: 0.085em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper); }
img { max-width: 100%; height: auto; }
button, summary { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
.kw-shell { width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
.kw-skip { position: absolute; left: 1rem; top: 0.5rem; z-index: 5; padding: 0.65rem 1rem; background: white; }
.kw-skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.kw-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.kw-header-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 5.8rem; }
.kw-brand, .kw-footer-brand { display: inline-flex; align-items: center; flex: 0 0 auto; padding-block: 0.65rem; max-width: 100%; }
.kw-brand img { width: clamp(8.25rem, 12vw, 10.25rem); }
.kw-primary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.35rem 0.75rem; }
.kw-primary a, .kw-primary summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.kw-primary .kw-button { min-height: 48px; }
.kw-primary a:hover, .kw-primary [aria-current="page"] { text-decoration: underline; }
.kw-primary details { position: relative; }
.kw-primary summary { list-style: none; gap: 0.55rem; }
.kw-primary summary::-webkit-details-marker { display: none; }
.kw-primary summary::after { content: ""; width: 0.43rem; height: 0.43rem; transform: translateY(-0.12rem) rotate(45deg); border: solid currentColor; border-width: 0 2px 2px 0; }
.kw-primary details[open] summary::after { transform: rotate(225deg); }
.kw-submenu { position: absolute; top: 100%; left: -0.65rem; z-index: 2; min-width: min(18rem, 80vw); padding: 0.45rem; border: 1px solid var(--line); border-radius: 0.65rem; background: white; box-shadow: 0 0.55rem 1.4rem #14201c20; }
.kw-submenu a { display: flex; padding-inline: 0.65rem; }
.kw-button.kw-menu-toggle { display: none; }
.kw-button, .kw-cta-links a { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0.62rem 1rem; border: 2px solid var(--green); border-radius: 0.625rem; max-width: 100%; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.kw-button--solid, .kw-cta-links a:first-child { background: var(--green); color: white; }
.kw-button:hover, .kw-cta-links a:hover { text-decoration: underline; }
.kw-intro { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(2.4rem, 6vw, 6rem) var(--gutter); }
.kw-intro-inner { width: min(100%, 78rem); margin: 0 auto; }
.kw-intro p { max-width: 66ch; font-size: 1.2rem; }
.kw-intro p:last-child, .kw-intro .kw-cta-links:last-child { margin-bottom: 0; }
.kw-home .kw-intro-inner { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,0.94fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.kw-home h1 { max-width: 16ch; margin-bottom: 0.5em; }
.kw-content { width: min(calc(100% - 2 * var(--gutter)), 48rem); margin: 0 auto; padding-block: clamp(2.35rem, 5vw, 5rem); overflow-wrap: anywhere; }
.kw-content h2 { margin-top: 2.1em; }
.kw-content h2:first-child { margin-top: 0; }
.kw-content h3 { margin-top: 1.5em; }
.kw-content > ul, .kw-content > ol, .kw-intro ul { padding-inline-start: 1.45rem; }
.kw-content li + li { margin-top: 0.35em; }
.kw-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.kw-content .wp-block-table { border: 1px solid var(--line); border-radius: 0.6rem; overflow: auto; }
.kw-content .wp-block-table table { width: 100%; min-width: 30rem; border-collapse: collapse; }
.kw-content .wp-block-table th, .kw-content .wp-block-table td { border: 0; text-align: left; padding: 0.65rem 0.8rem; vertical-align: top; }
.kw-content .wp-block-table thead { background: var(--green); color: white; }
.kw-content .wp-block-table tr:nth-child(even) { background: var(--mist); }
.kw-cta-links { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin-block: 1.25rem; }
.kw-shots { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 15rem),1fr)); gap: 1rem; margin-block: 1.6rem 2.15rem; }
.kw-home .kw-intro .kw-shots { margin: 0; }
.kw-shot { display: flex; flex-direction: column; justify-content: center; gap: 1.35rem; min-height: 11rem; padding: 1rem; margin: 0; border: 1px solid var(--line); border-radius: 0.85rem; color: var(--green); background: white; font: 700 1rem/1.45 var(--body); }
.kw-intro .kw-shot { min-height: 20rem; padding: clamp(1rem, 4vw, 2.5rem); background: var(--green); color: var(--paper); border-color: var(--green); }
.kw-shot-label { display: block; }
.kw-shot-art { display: block; width: 100%; height: 5rem; border: 1px solid currentColor; border-radius: 0.6rem; opacity: 0.65; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), currentColor calc(20% - 1px) 20%) 0 0 / 100% 100%, repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), currentColor calc(25% - 1px) 25%) 0 0 / 100% 100%; }
.kw-intro .kw-shot-art { height: 10rem; color: #b1d5c1; }
.kw-footer { background: var(--green); color: var(--paper); padding-block: clamp(2.25rem, 5vw, 4rem) 1.5rem; }
.kw-footer a { color: white; }
.kw-footer :focus-visible { outline-color: var(--wattle); box-shadow: 0 0 0 3px var(--green); }
.kw-footer-intro { display: flex; gap: 1.15rem 2.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 2.5rem; }
.kw-footer-brand img { width: 9.75rem; }
.kw-footer-intro p { margin: 0; }
.kw-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.kw-footer h2 { color: var(--paper); font: 700 1.2rem/1.3 var(--body); }
.kw-footer ul { padding: 0; margin: 0; list-style: none; }
.kw-footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.kw-footer-bottom { color: var(--mist); font-size: 1rem; border-top: 1px solid #8aaf9d; padding-top: 1.4rem; margin-top: 2rem; }
.kw-footer-bottom p { margin: 0 0 0.45rem; }
@media (max-width: 73rem) {
  .kw-header-row { flex-wrap: wrap; padding-block: 0.4rem; min-height: 4.6rem; }
  .kw-js .kw-menu-toggle { display: inline-flex; background: transparent; }
  .kw-js .kw-primary:not(.kw-open) { display: none; }
  .kw-primary { flex-basis: 100%; display: grid; align-items: start; justify-content: start; padding-bottom: 1rem; min-width: 0; }
  .kw-submenu { position: static; box-shadow: none; min-width: 0; }
  .kw-primary .kw-button { justify-self: start; }
}
@media (max-width: 48rem) {
  .kw-home .kw-intro-inner { grid-template-columns: minmax(0,1fr); }
  .kw-intro .kw-shot { min-height: 13rem; }
  .kw-intro .kw-shot-art { height: 6rem; }
  .kw-footer-nav { grid-template-columns: repeat(auto-fit, minmax(min(100%,13rem),1fr)); }
}
@media (forced-colors: active) {
  .kw-button, .kw-cta-links a, .kw-shot { border: 2px solid ButtonText; }
  :focus-visible, .kw-footer :focus-visible { outline: 3px solid Highlight; }
}

/* Real product screenshots (replaces the coming-soon grid art) */
.kw-shot:has(img) {
  padding: 0;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  background: white;
  color: var(--ink, #1a1a1a);
  border: 1px solid var(--line);
}
.kw-intro .kw-shot:has(img) {
  min-height: 0;
  padding: 0;
  background: white;
  color: var(--ink, #1a1a1a);
  border-color: var(--line);
}
.kw-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0.85rem 0.85rem 0 0;
}
.kw-shot:has(img) .kw-shot-label,
.kw-shot figcaption.kw-shot-label {
  display: block;
  padding: 0.7rem 1rem 0.9rem;
  font: 700 0.95rem/1.4 var(--body);
  color: var(--green);
}
