/* Kapwa — kapwa.ie. Colours, type and spacing from the Kapwa design system. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --linen: #f5efe6;
  --linen-deep: #eae1d3;
  --ink: #1e1a16;
  --moss: #2e4636;
  --moss-dark: #243a2c;
  --moss-line: #4b6353;
  --clay: #a54f2c;
  --ember: #d9825b;
  --sand: #dcc3a0;
  --stone: #675e55;
  --rule: #cdbfab;
  --muted-on-ink: #b3a898;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--font); font-weight: 500; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--moss); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.on-moss a:focus-visible, .on-moss button:focus-visible { outline-color: var(--ember); }
.on-moss .form-card a:focus-visible, .on-moss .form-card button:focus-visible, .on-moss .form-card input:focus-visible, .on-moss .form-card select:focus-visible { outline-color: var(--moss); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--moss); color: var(--linen); padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { left: 16px; color: var(--linen); }

.wrap { max-width: 1328px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.band-deep { background: var(--linen-deep); }
.band-moss { background: var(--moss); color: var(--linen); }

/* Type */
.label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .02em; color: var(--stone); }
.display { margin: 0; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.h1 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.h2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.02em; }
.h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.body { margin: 0; font-size: 17px; line-height: 26px; font-weight: 500; }
.lead { margin: 0; font-size: 19px; line-height: 30px; font-weight: 500; }
.small { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--stone); }
.stat-xl { margin: 0; font-size: clamp(56px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--clay); }
.stat { margin: 0; font-size: clamp(32px, 2.8vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.band-moss .label, .band-moss .small { color: var(--sand); }
.band-moss .h1, .band-moss .h2, .band-moss .h3, .band-moss .body, .band-moss .lead { color: var(--linen); }
.band-moss .form-card .small, .band-moss .form-card .label { color: var(--stone); }
.band-moss .form-card .h2, .band-moss .form-card .h3, .band-moss .form-card .body { color: var(--ink); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 12px; font: 700 16px/24px var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--moss); color: var(--linen); border: 2px solid var(--moss); }
.btn-primary:hover { background: var(--moss-dark); border-color: var(--moss-dark); color: var(--linen); }
.btn-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-secondary:hover { background: var(--linen-deep); color: var(--ink); }
.btn-linen { background: var(--linen); color: var(--moss); border: 2px solid var(--linen); }
.btn-linen:hover { background: var(--linen-deep); color: var(--moss); }
.btn-block { width: 100%; }
.tlink { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; padding: 8px 0; }
.logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.navlink { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 24px; padding: 12px 0; }
.navlink:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .nav .navlink { display: none; }
  .logo img { height: 26px; }
  .site-header .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
}

/* Layout helpers */
.row { display: flex; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; min-width: 0; }
.card { border: 1px solid var(--rule); border-radius: 12px; }
.card-pad { padding: clamp(24px, 3vw, 40px); }
.divider { border-top: 1px solid var(--rule); }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 26px; font-weight: 500; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; flex: none; background: var(--moss); }
.band-moss .ticks li { color: var(--linen); }
.band-moss .ticks li::before { background: var(--sand); }
.ticks.light li::before { background: var(--sand); }
.struck li { color: var(--stone); text-decoration: line-through; text-decoration-color: #a8998a; }
.struck li::before { background: var(--rule); }
.strong li { font-weight: 700; }
.kinds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.kinds li { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; line-height: 26px; letter-spacing: -.01em; }
.kinds li::before { content: ""; width: 6px; height: 6px; background: var(--moss); flex: none; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 16px; font-size: 15px; line-height: 22px; font-weight: 700; }

/* Steps on moss */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.steps > li { flex: 1 1 300px; min-width: 0; border: 1px solid var(--moss-line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.steps .get { border-top: 1px solid var(--moss-line); padding-top: 14px; margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; }
.included li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 26px; color: var(--linen); }
.included li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; flex: none; background: var(--sand); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline li:first-child { border-top: 0; padding-top: 0; }

/* Forms */
.form-card { background: var(--linen); color: var(--ink); border-radius: 12px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.form-card.on-deep { background: var(--linen-deep); border: 1px solid var(--rule); }
.flabel { display: block; margin: 0 0 6px; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--stone); border-radius: 12px; background: #ffffff; color: var(--ink); font: 500 16px/24px var(--font); -webkit-appearance: none; appearance: none; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e1a16' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: var(--linen); }
.site-footer .navlink { color: var(--linen); }
.site-footer .small { color: var(--muted-on-ink); }
.site-footer .tagline { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--sand); }

/* Sticky call bar on phones */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--linen); border-top: 1px solid var(--rule); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); transition: transform .2s ease; }
  .callbar.is-hidden { transform: translateY(110%); }
  .callbar .small { text-align: center; font-size: 13px; line-height: 18px; }
  body.has-callbar .site-footer { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }

/* Proof strip under the hero */
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.proof-strip .stat { font-size: clamp(30px, 2.6vw, 40px); }
@media (max-width: 760px) { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brandline { margin: 0; font-size: 15px; line-height: 24px; color: var(--stone); }
.brandline strong { color: var(--ink); font-weight: 700; }

/* Case studies with a client video */
.case { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.case-video { margin: 0; flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.case-video[hidden] { display: none; }
.case-video video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--ink); }
.video-start { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; overflow: hidden; }
.video-start[hidden], .case-video video[hidden] { display: none; }
.video-start img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.video-start:hover img { filter: brightness(1.05); }
.video-start:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.bars-plot.up { height: 130px; }
.bars-plot.up .zero { bottom: 0; }
.bars-plot.up .bar span { bottom: 0; }
.bars-plot.up .bar.none span { height: 3px; background: var(--stone); border-radius: 0; }
.about-photo { margin: 0; flex: 1 1 340px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.case-body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* Before and after bars (ED3N) */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars-plot { position: relative; display: flex; gap: 6px; height: 150px; }
.bars-plot .zero { position: absolute; left: 0; right: 0; bottom: 36px; border-top: 2px solid var(--stone); }
.bars-plot .bar { flex: 1 1 0; position: relative; height: 100%; }
.bars-plot .bar span { position: absolute; left: 0; right: 0; bottom: 36px; border-radius: 4px 4px 0 0; }
.bars-plot .bar.before span { background: var(--stone); }
.bars-plot .bar.after span { background: var(--moss); }
.bars-plot .bar.neg span { top: 114px; bottom: auto; border-radius: 0 0 4px 4px; }
.bars-plot .bar.capped span::after { content: ""; position: absolute; left: -3px; right: -3px; top: 16px; height: 5px; background: var(--linen); transform: skewY(-14deg); }
.bars-plot .split { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--clay); }
.bars-months { display: flex; gap: 6px; }
.bars-months span { flex: 1 1 0; text-align: center; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--stone); }
.bars-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.bars-key p { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; }

/* Track record */
.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.track-card { background: var(--linen); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.track-card .src { margin-top: auto; padding-top: 14px; }

/* Also list */
.also { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 48px; }
.also li { border-top: 1px solid var(--rule); padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }

/* Colour bands to break up the page */
.band-ink { background: var(--ink); color: var(--linen); }
.band-ink .label, .band-ink .small { color: var(--muted-on-ink); }
.band-ink .h1, .band-ink .h2, .band-ink .h3, .band-ink .body, .band-ink .stat { color: var(--linen); }
.band-ink .track-card { background: #262119; border-color: #3a332b; }
.band-ink .track-card .label { color: var(--sand); }
.band-moss .proof-strip .stat { color: var(--linen); }
.band-moss .brandline { color: var(--sand); }
.band-moss .brandline strong { color: var(--linen); }
.band-sand { background: var(--sand); }
.band-sand .label, .band-sand .small { color: #4a4139; }

/* Coloured tags on case studies */
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--sand); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .02em; padding: 5px 10px; border-radius: 4px; }
.tag.moss { background: var(--moss); color: var(--linen); }
.tag.ink { background: var(--ink); color: var(--linen); }

/* Hero proof line */
.hero-proof { margin: 0; font-size: 19px; line-height: 28px; font-weight: 700; color: var(--moss); }
.clients-row { margin: 0; font-size: 15px; line-height: 24px; font-weight: 700; color: var(--linen); }

/* Behind-the-ads panel */
.panel { background: var(--linen-deep); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }

/* Quotes */
.quote { margin: 0; background: var(--linen); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: auto; }
