/*
Theme Name: The Change Agency
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for The Change Agency: Home, Who We Are, Services (+ detail pages), Testimonials, Client List, Insights, articles and Contact. Content is edited with ACF (free) fields on each page, menus in Appearance → Menus.
Version: 2.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: changeagency
*/

/* ==========================================================================
   HOW TO EDIT
   - Colours and fonts: change the variables in :root below.
   - Layout breakpoints used throughout (mobile first):
       640px  = large phone / small tablet
       768px  = tablet
       1024px = laptop
       1280px = desktop
   - Two style files:
       assets/css/site.css – layout utility classes used in the templates
                             (generated, don't edit; see dev/README.md)
       style.css (this file) – the design's own styles: Home page sections
                             first, then the shared pieces of the other pages.
   ========================================================================== */

:root {
	--terra: #8A3A22;        /* main accent (buttons, italics) */
	--terra-dark: #6F2E1B;   /* button hover */
	--teal: #1E5E66;         /* second accent */
	--ink: #1F3440;          /* text, dark sections */
	--cream: #F7F3EE;        /* page background */
	--sand: #E9E0D4;         /* soft panels */
	--peach: #E4A88F;        /* italic text on dark backgrounds */
	--mint: #7FBCC3;
	--step-mid: #5A4A44;     /* middle step colour */

	--font-display: "Cormorant Garamond", Georgia, serif;
	--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1280px;
	--gutter: 20px;          /* side padding on phones (32px from 640px) */
	--radius-lg: 28px;
	--shadow-card: 0 30px 50px -28px rgba(31, 52, 64, .45);
	--ease: cubic-bezier(.6, .1, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.ca {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
/* Resets use :where() so they have zero specificity: any class below overrides them. */
:where(body.ca) img { max-width: 100%; display: block; }
:where(body.ca) a { color: inherit; text-decoration: none; }
:where(body.ca) :is(h1, h2, h3, h4, p, ul, figure, blockquote) { margin: 0; }
:where(body.ca) ul { padding: 0; list-style: none; }
:where(body.ca) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(body.ca) :is(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: 500; letter-spacing: normal; line-height: 1.1; }
:where(body.ca) em { font-style: italic; }
[hidden] { display: none !important; }
.ca-hidden-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.ca-break { overflow-wrap: anywhere; }
.is-terra { color: var(--terra); }
.is-teal { color: var(--teal); }
.is-peach { color: var(--peach); }
.is-mint { color: var(--mint); }
.ca-strong { color: var(--ink); font-weight: 600; }

.ca-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }

/* WordPress admin bar */
.admin-bar .ca-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ca-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ca-header { top: 0; } }

/* ---------- Shared pieces ---------- */
.ca-section { padding: 96px 0; position: relative; }
@media (min-width: 1024px) { .ca-section { padding: 128px 0; } }
.ca-section--sand { background: rgba(233, 224, 212, .6); }

.ca-eyebrow { color: var(--teal); font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.ca-eyebrow--split span:first-child { color: var(--terra); }

.ca-h2 { font-size: 36px; line-height: 1.05; }
@media (min-width: 640px) { .ca-h2 { font-size: 48px; } }
@media (min-width: 1024px) { .ca-h2 { font-size: 60px; } }
.ca-h2--large { line-height: 1.02; }
@media (min-width: 640px) { .ca-h2--large { font-size: 60px; } }

.ca-lead { font-size: 18px; line-height: 1.65; color: rgba(31, 52, 64, .7); }

/* Two-tone bar (terracotta | teal) */
.ca-duo-bar { display: flex; width: 64px; height: 4px; border-radius: 999px; overflow: hidden; margin-bottom: 20px; background: linear-gradient(90deg, var(--terra) 50%, var(--teal) 50%); }
.ca-duo-bar--spaced { margin: 40px 0; }
.ca-duo-bar--full { width: 100%; border-radius: 0; margin: 0; }
.ca-duo-line { display: inline-block; width: 40px; height: 2px; background: linear-gradient(90deg, #C8714F 50%, #5FA3AB 50%); flex-shrink: 0; }

/* Buttons */
.ca-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	background: var(--terra); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2;
	padding: 16px 28px; border-radius: 999px; transition: background-color .3s ease, box-shadow .3s ease;
}
.ca-btn:hover { background: var(--terra-dark); box-shadow: 0 10px 20px -8px rgba(138, 58, 34, .45); }
.ca-btn i { font-size: 14px; transition: transform .3s ease; }
.ca-btn:hover i { transform: translateX(4px); }
.ca-btn--small { font-size: 15px; padding: 12px 20px; }
.ca-btn--block { width: 100%; margin-top: 16px; padding: 14px 20px; }
.ca-btn--nowrap { white-space: nowrap; }
.ca-btn[disabled] { opacity: .65; cursor: wait; }

.ca-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; white-space: nowrap; }
.ca-text-link i { font-size: 14px; transition: transform .3s ease; }
.ca-text-link:hover i.fa-arrow-right { transform: translateX(4px); }

.ca-round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(31, 52, 64, .2); display: inline-flex; align-items: center; justify-content: center; transition: all .3s ease; }
.ca-round-btn:hover { background: var(--ink); color: #fff; }
.ca-round-btn--light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.ca-round-btn--light:hover { background: #fff; color: var(--ink); }

/* Scroll reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.ca-hero { position: relative; height: 640px; overflow: hidden; background: var(--ink); }
@media (min-width: 640px) { .ca-hero { height: 720px; } }
@media (min-width: 1024px) { .ca-hero { height: 800px; } }

.ca-slide { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 1.2s ease; }
.ca-slide.active { opacity: 1; z-index: 10; }
.ca-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.ca-slide.active .ca-slide__img { animation: ca-kenburns 9s ease-out forwards; }
@keyframes ca-kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.ca-slide__shade { position: absolute; inset: 0; background:
	linear-gradient(0deg, rgba(31, 52, 64, .6) 0, rgba(31, 52, 64, 0) 160px),
	linear-gradient(90deg, rgba(31, 52, 64, .9) 0%, rgba(31, 52, 64, .55) 50%, rgba(31, 52, 64, 0) 100%); }
.ca-slide__content { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; padding-top: 64px; }
.ca-slide__inner { max-width: 672px; }
.ca-slide__inner.is-long { max-width: 768px; }

.ca-slide .s-anim { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.ca-slide.active .s-anim { opacity: 1; transform: none; }
.ca-slide.active .s-anim.d1 { transition-delay: .25s; }
.ca-slide.active .s-anim.d2 { transition-delay: .45s; }
.ca-slide.active .s-anim.d3 { transition-delay: .65s; }

.ca-slide__eyebrow { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 24px; }
.ca-slide__title { color: #fff; font-size: 48px; line-height: .98; font-weight: 500; }
.ca-slide__title em { font-weight: 400; }
.ca-slide__inner.is-long .ca-slide__title { font-size: 42px; line-height: 1.02; }
@media (min-width: 640px) { .ca-slide__title, .ca-slide__inner.is-long .ca-slide__title { font-size: 60px; } }
@media (min-width: 1024px) { .ca-slide__title { font-size: 84px; } .ca-slide__inner.is-long .ca-slide__title { font-size: 72px; } }
.ca-slide__text { margin-top: 24px; max-width: 576px; color: rgba(255, 255, 255, .8); font-size: 18px; font-weight: 300; line-height: 1.6; }
@media (min-width: 640px) { .ca-slide__text { font-size: 20px; } }
.ca-slide__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ca-slide__link { color: rgba(255, 255, 255, .9); font-weight: 500; text-decoration: underline; text-underline-offset: 8px; text-decoration-color: rgba(255, 255, 255, .4); }
.ca-slide__link:hover { color: #fff; text-decoration-color: #fff; }

.ca-hero__controls { position: absolute; z-index: 20; left: 0; right: 0; bottom: 32px; }
@media (min-width: 640px) { .ca-hero__controls { bottom: 40px; } }
.ca-hero__controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ca-hero__progress { display: flex; align-items: center; gap: 20px; }
.ca-hero__count { font-family: var(--font-display); color: #fff; font-size: 24px; }
.ca-hero__total { color: rgba(255, 255, 255, .4); font-size: 18px; }
.ca-hero__dots { display: flex; align-items: center; gap: 8px; }
.ca-hero__dot { position: relative; width: 32px; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
@media (min-width: 640px) { .ca-hero__dot { width: 48px; } }
.ca-hero__dot::before { content: ""; position: absolute; inset: -10px 0; } /* bigger tap area */
.ca-hero__dot-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: #fff; }
.ca-hero__arrows { display: flex; gap: 12px; }
@media (max-width: 400px) { .ca-hero__arrows .ca-round-btn { width: 42px; height: 42px; } .ca-hero__progress { gap: 12px; } }

/* ==========================================================================
   CLIENT LOGOS
   ========================================================================== */
.ca-clients { background: var(--cream); border-bottom: 1px solid var(--sand); }
.ca-clients__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ca-clients__label { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(31, 52, 64, .5); text-align: center; }
.ca-clients__row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; }
@media (min-width: 1280px) { .ca-clients__row { flex-wrap: nowrap; justify-content: space-between; } }
.ca-client { display: inline-flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; filter: grayscale(1); opacity: .55; transition: filter .5s ease, opacity .5s ease; }
.ca-client:hover { filter: none; opacity: 1; }
.ca-client--wordmark { font-size: 28px; font-weight: 800; letter-spacing: -.05em; }
.ca-client--serif { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ca-client--bold { font-size: 20px; font-weight: 700; letter-spacing: .025em; }
.ca-client--plain { font-size: 18px; font-weight: 600; }
.ca-client--logo img { max-height: 36px; width: auto; }

/* ==========================================================================
   ABOUT (who / what / why)
   ========================================================================== */
.ca-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 64px; }
.ca-intro--services { margin-bottom: 56px; }
@media (min-width: 1024px) {
	.ca-intro { grid-template-columns: 7fr 5fr; gap: 48px; }
	.ca-intro--services { gap: 32px; }
}

.ca-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .ca-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ca-cards { gap: 32px; } }
.ca-card { background: rgba(255, 255, 255, .7); border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 32px; transition: transform .5s ease, box-shadow .5s ease, background-color .5s ease; }
@media (min-width: 1024px) { .ca-card { padding: 40px; } }
.js-reveal .ca-card.reveal.in:hover, .ca-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); background: #fff; }
.ca-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.ca-card__num { font-family: var(--font-display); font-size: 60px; font-weight: 600; line-height: 1; color: rgba(31, 52, 64, .15); transition: color .5s ease; }
.ca-card:hover .ca-card__num { color: rgba(30, 94, 102, .25); }
.ca-card__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(138, 58, 34, .1); color: var(--terra); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all .5s ease; }
.ca-card:hover .ca-card__icon { background: rgba(30, 94, 102, .1); color: var(--teal); }
.ca-card__label { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; transition: color .5s ease; }
.ca-card:hover .ca-card__label { color: var(--teal); }
.ca-card__title { font-size: 30px; font-weight: 600; line-height: 1.15; margin-bottom: 16px; }
.ca-card__text { color: rgba(31, 52, 64, .7); line-height: 1.65; }

/* Director strip */
.ca-person { margin-top: 40px; background: var(--sand); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .ca-person { flex-direction: row; align-items: center; padding: 32px; } }
@media (min-width: 1024px) { .ca-person { margin-top: 48px; } }
.ca-person__photo { position: relative; flex-shrink: 0; width: 96px; }
.ca-person__photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--cream); }
.ca-person__badge { position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 0 0 4px var(--sand); }
.ca-person__body { flex: 1; min-width: 0; }
.ca-person__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ca-person__name span { color: rgba(31, 52, 64, .5); font-weight: 400; font-style: italic; }
.ca-person__bio { color: rgba(31, 52, 64, .7); margin-top: 4px; line-height: 1.65; }
.ca-person__side { display: flex; align-items: center; gap: 32px; }
@media (min-width: 640px) { .ca-person__side { padding-left: 32px; border-left: 1px solid rgba(31, 52, 64, .1); } }
.ca-person__stat { display: none; text-align: center; }
@media (min-width: 768px) { .ca-person__stat { display: block; } }
.ca-person__stat-num { font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--terra); line-height: 1; }
.ca-person__stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: rgba(31, 52, 64, .6); margin-top: 4px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.ca-services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .ca-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ca-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* Card with a two-tone border on hover */
.ca-service { position: relative; border-radius: 28px; padding: 2px; background: rgba(31, 52, 64, .08); transition: transform .45s ease, box-shadow .45s ease; }
.ca-service::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--terra) 0 50%, var(--teal) 50% 100%); opacity: 0; transition: opacity .45s ease; }
.js-reveal .ca-service.reveal.in:hover, .ca-service:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(31, 52, 64, .45); }
.ca-service:hover::before { opacity: 1; }
.ca-service__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; background: var(--cream); border-radius: 26px; overflow: hidden; }
.ca-service__media { position: relative; aspect-ratio: 4 / 3; }
.ca-service__img { position: absolute; inset: 0; overflow: hidden; } /* keeps the hover zoom inside the photo */
.ca-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ca-service:hover .ca-service__img img { transform: scale(1.05); }
.ca-service__icon { position: absolute; left: 24px; bottom: 0; transform: translateY(50%); width: 56px; height: 56px; border-radius: 16px; background: var(--cream); color: var(--terra); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 2; transition: color .3s ease; }
.ca-service:hover .ca-service__icon { color: var(--teal); }
.ca-service__body { padding: 40px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.ca-service__title { font-size: 28px; font-weight: 600; line-height: 1.2; }
.ca-service__text { color: rgba(31, 52, 64, .7); margin-top: 12px; line-height: 1.65; flex: 1; }
.ca-service__link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; transition: opacity .4s ease, transform .4s ease; }
.ca-service__link i { font-size: 14px; }
@media (min-width: 1024px) {
	.ca-service__link { opacity: 0; transform: translateY(8px); }
	.ca-service:hover .ca-service__link, .ca-service__link:focus { opacity: 1; transform: none; }
}

/* Dark "let's talk" band */
.ca-band { position: relative; overflow: hidden; margin-top: 56px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: 40px 32px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .ca-band { padding: 40px 48px; } }
@media (min-width: 768px) { .ca-band { flex-direction: row; align-items: center; justify-content: space-between; } }
.ca-band__faces { position: absolute; right: -24px; bottom: -40px; height: 224px; width: auto; opacity: .08; pointer-events: none; }
.ca-band__text { position: relative; font-family: var(--font-display); font-size: 30px; line-height: 1.2; max-width: 672px; }
@media (min-width: 640px) { .ca-band__text { font-size: 36px; } }
.ca-band__text em { color: var(--peach); }
.ca-band__btn { position: relative; align-self: flex-start; white-space: nowrap; }
@media (min-width: 768px) { .ca-band__btn { align-self: auto; } }

/* ==========================================================================
   CAN PEOPLE REALLY CHANGE?
   ========================================================================== */
.ca-change { overflow: hidden; }
.ca-change__tint { position: absolute; top: 0; bottom: 0; width: 50%; }
.ca-change__tint--left { left: 0; background: rgba(138, 58, 34, .07); }
.ca-change__tint--right { right: 0; background: rgba(30, 94, 102, .08); }
.ca-change__face { display: none; position: absolute; top: 96px; height: 520px; width: auto; pointer-events: none; }
@media (min-width: 1024px) { .ca-change__face { display: block; } }
.ca-change__face--left { left: -40px; opacity: .06; }
.ca-change__face--right { right: -40px; opacity: .07; transform: scaleX(-1); }
.ca-change__container { position: relative; }

.ca-change__intro { text-align: center; max-width: 768px; margin: 0 auto; }
.ca-change__title { font-size: 48px; line-height: 1; }
@media (min-width: 640px) { .ca-change__title { font-size: 60px; } }
@media (min-width: 1024px) { .ca-change__title { font-size: 80px; } }
.ca-change__subhead { margin-top: 24px; font-family: var(--font-display); font-size: 24px; font-style: italic; color: rgba(31, 52, 64, .85); }
@media (min-width: 640px) { .ca-change__subhead { font-size: 30px; } }
.ca-change__intro .ca-lead { margin-top: 24px; }

/* Before / after slider */
.ca-ba { position: relative; margin-top: 56px; height: 420px; border-radius: 32px; overflow: hidden; user-select: none; cursor: ew-resize; touch-action: pan-y; box-shadow: 0 40px 80px -40px rgba(31, 52, 64, .5); }
@media (min-width: 640px) { .ca-ba { height: 440px; } }
.ca-ba__side { position: absolute; inset: 0; color: #fff; }
.ca-ba__side--after { background: var(--teal); }
.ca-ba__side--before { background: var(--terra); clip-path: inset(0 50% 0 0); }
.ca-ba__face { position: absolute; bottom: 0; height: 85%; width: auto; opacity: .12; }
.ca-ba__face--right { right: 24px; }
.ca-ba__face--left { left: 24px; }
@media (min-width: 640px) { .ca-ba__face--right { right: 64px; } .ca-ba__face--left { left: 64px; } }
.ca-ba__panel { position: absolute; top: 0; bottom: 0; width: 50%; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 640px) { .ca-ba__panel { padding: 40px; } }
@media (min-width: 1024px) { .ca-ba__panel { padding: 56px; } }
.ca-ba__panel--right { right: 0; }
.ca-ba__panel--left { left: 0; }
.ca-ba__label { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
@media (min-width: 640px) { .ca-ba__label { font-size: 14px; margin-bottom: 12px; } }
.ca-ba__title { font-size: 24px; line-height: 1.15; margin-bottom: 20px; }
@media (min-width: 640px) { .ca-ba__title { font-size: 36px; margin-bottom: 32px; } }
@media (min-width: 1024px) { .ca-ba__title { font-size: 48px; } }
.ca-ba__list { font-size: 14px; }
.ca-ba__list li { display: flex; align-items: center; gap: 12px; }
.ca-ba__list li + li { margin-top: 10px; }
@media (min-width: 640px) { .ca-ba__list { font-size: 18px; } .ca-ba__list li + li { margin-top: 16px; } }
.ca-ba__tick { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-size: 10px; }
@media (min-width: 640px) { .ca-ba__tick { width: 32px; height: 32px; font-size: 12px; } }
.ca-ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--cream); z-index: 10; }
.ca-ba__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .2); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; cursor: ew-resize; }
.ca-ba__knob .fa-chevron-left { color: var(--terra); }
.ca-ba__knob .fa-chevron-right { color: var(--teal); }
.ca-ba__hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; background: rgba(31, 52, 64, .4); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.ca-ba__hint i { margin-right: 6px; }

/* Three steps */
.ca-flow { position: relative; margin-top: 80px; }
.ca-flow__track { display: none; position: absolute; top: 28px; left: 16.66%; right: 16.66%; height: 2px; background: rgba(31, 52, 64, .1); border-radius: 999px; overflow: hidden; }
@media (min-width: 768px) { .ca-flow__track { display: block; } }
.ca-flow__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--terra), var(--teal)); transition: width 1.8s var(--ease) .2s; }
.ca-flow.in .ca-flow__fill { width: 100%; }
.ca-flow__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 768px) { .ca-flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.ca-step { position: relative; text-align: center; padding: 0 16px; }
.ca-step__dot { position: relative; margin: 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(31, 52, 64, .15); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .5s ease; }
.ca-flow.in .ca-step--1 .ca-step__dot { background: var(--terra); border-color: var(--terra); color: #fff; transition-delay: .2s; }
.ca-flow.in .ca-step--2 .ca-step__dot { background: var(--step-mid); border-color: var(--step-mid); color: #fff; transition-delay: 1s; }
.ca-flow.in .ca-step--3 .ca-step__dot { background: var(--teal); border-color: var(--teal); color: #fff; transition-delay: 1.8s; }
.ca-step__num { margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.ca-step--1 .ca-step__num { color: var(--terra); }
.ca-step--2 .ca-step__num { color: var(--step-mid); }
.ca-step--3 .ca-step__num { color: var(--teal); }
.ca-step__title { font-size: 30px; font-weight: 600; margin-top: 4px; }
.ca-step__text { color: rgba(31, 52, 64, .7); margin: 8px auto 0; max-width: 320px; }

/* Pull quote */
.ca-pullquote { margin-top: 80px; background: var(--cream); border: 1px solid var(--sand); border-radius: 32px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 640px) { .ca-pullquote { padding: 48px; } }
@media (min-width: 1024px) { .ca-pullquote { grid-template-columns: minmax(0, 1fr) auto; } }
.ca-pullquote__body { display: flex; gap: 20px; }
@media (min-width: 640px) { .ca-pullquote__body { gap: 32px; } }
.ca-pullquote__mark { font-family: var(--font-display); color: var(--terra); font-size: 96px; line-height: .7; user-select: none; }
@media (min-width: 640px) { .ca-pullquote__mark { font-size: 128px; } }
.ca-pullquote__text { font-family: var(--font-display); font-size: 24px; line-height: 1.35; font-weight: 500; }
@media (min-width: 640px) { .ca-pullquote__text { font-size: 36px; } }
.ca-pullquote__source { margin-top: 20px; color: var(--teal); font-weight: 600; font-size: 18px; letter-spacing: .05em; font-variant: small-caps; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.ca-testimonials { background: var(--sand); }
.ca-testimonials__inner { max-width: 1024px; text-align: center; }
.ca-tcar { position: relative; margin-top: 24px; }
.ca-tcar__mark { display: block; font-family: var(--font-display); color: var(--terra); font-size: 140px; line-height: .6; height: 80px; user-select: none; }
@media (min-width: 640px) { .ca-tcar__mark { font-size: 180px; height: 96px; } }
.ca-tcar__viewport { overflow: hidden; }
.ca-tcar__track { display: flex; transition: transform .7s var(--ease); }
.ca-tcar__slide { width: 100%; flex-shrink: 0; padding: 0 8px; }
@media (min-width: 640px) { .ca-tcar__slide { padding: 0 32px; } }
.ca-tcar__quote { font-family: var(--font-display); font-size: 30px; line-height: 1.18; font-weight: 500; }
@media (min-width: 640px) { .ca-tcar__quote { font-size: 36px; } }
@media (min-width: 1024px) { .ca-tcar__quote { font-size: 48px; } }
.ca-tcar__by { margin-top: 32px; color: var(--teal); font-weight: 600; font-size: 20px; letter-spacing: .05em; font-variant: small-caps; }
.ca-tcar__controls { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.ca-tcar__dots { display: flex; align-items: center; gap: 10px; }
.t-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(31, 52, 64, .2); transition: all .5s ease; }
.t-dot:hover { background: rgba(31, 52, 64, .4); }
.t-dot.is-active { width: 32px; background: linear-gradient(90deg, var(--terra) 50%, var(--teal) 50%); }

/* ---------- Reduced motion ----------
   The hero auto-slide and zoom always run (as in the design). Remove the
   comment marks below to stop the zoom for visitors who turn animations off.
   @media (prefers-reduced-motion: reduce) { .ca-slide.active .ca-slide__img { animation: none; } }
---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js-reveal .reveal, .ca-slide .s-anim { opacity: 1; transform: none; transition: none; }
	.ca-flow__fill { transition: none; }
}

/* ==========================================================================
   SHARED – every page (header, buttons, animations)
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.no-scrollbar, #subnav-scroll, #filter-scroll, #cat-scroll, .rel-scroll { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar, #subnav-scroll::-webkit-scrollbar, #filter-scroll::-webkit-scrollbar, #cat-scroll::-webkit-scrollbar, .rel-scroll::-webkit-scrollbar { display: none; }
body.admin-bar #header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #header { top: 0; } }

/* Centred scrolling rows: centred when they fit, scrollable from the first item when they don't */
.safe-center > :first-child { margin-left: auto; }
.safe-center > :last-child { margin-right: auto; }

/* Header links: teal underline grows on hover / current page */
.nav-link { position: relative; transition: color .25s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--teal); transition: right .35s ease; }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link:hover { color: var(--teal); }
.dropdown { opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s ease; }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }

/* Outline buttons */
.btn-outline { border: 1px solid var(--ink); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: 13px; transition: all .3s ease; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-w { border: 1px solid rgba(255, 255, 255, .8); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: 13px; color: #fff; transition: all .3s ease; }
.btn-outline-w:hover { background: #fff; color: var(--ink); }

/* Card with a two-tone border on hover */
.duo { position: relative; border-radius: 12px; padding: 2px; background: transparent; transition: transform .45s ease, box-shadow .45s ease; }
.duo.duo-lg { border-radius: 16px; }
.duo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--terra) 0 50%, var(--teal) 50% 100%); opacity: 0; transition: opacity .4s ease; }
.duo:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -28px rgba(31, 52, 64, .45); }
.duo:hover::before { opacity: 1; }

/* Spinning text badge */
@keyframes ca-spin { to { transform: rotate(360deg); } }
.spin-slow { animation: ca-spin 22s linear infinite; transform-origin: center; }

/* Associates “Read more” */
.bio-more { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.bio-more.open { max-height: 320px; }

/* Approach steps + dashed curve (draws itself when scrolled into view) */
.step-circle { transform: scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .5s ease; }
.flow.in .step-circle { transform: none; opacity: 1; }
.flow.in .s1 .step-circle { transition-delay: .1s; }
.flow.in .s2 .step-circle { transition-delay: .7s; }
.flow.in .s3 .step-circle { transition-delay: 1.3s; }
.flow.in .s4 .step-circle { transition-delay: 1.9s; }
.dash-path { stroke-dasharray: 8 9; }
.dash-mask { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s ease .1s; }
.flow.in .dash-mask { stroke-dashoffset: 0; }

/* Mobile testimonial dots */
.t-dot.is-on { background: linear-gradient(90deg, var(--terra) 50%, var(--teal) 50%); }

/* Lists of names with thin dividers (“Trusted by”, client strips); plain gaps on phones */
.name-list li { padding: 0 20px; border-left: 1px solid rgba(31, 52, 64, .2); }
.name-list li:first-child { padding-left: 0; border-left: 0; }
.name-strip li { padding: 0 22px; border-left: 1px solid rgba(31, 52, 64, .2); }
.name-strip li:first-child { border-left: 0; }
@media (max-width: 639px) {
	.name-list li, .name-list li:first-child, .name-strip li { border-left: 0; padding: 0 18px 0 0; }
	.name-strip li { padding: 0 9px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.pill { transition: all .3s ease; }
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.pill.on i { color: #fff; }
.svc { scroll-margin-top: 150px; }

/* Service detail: modules = accordion on phones */
.mod-body { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.mod-body.open { max-height: 640px; }
@media (min-width: 768px) { .mod-body { max-height: none !important; } .mod-chev { display: none; } }
.mod-btn.open .mod-chev { transform: rotate(180deg); }
@media (max-width: 767px) { body.single-ca_service #footer { padding-bottom: 56px; } }

/* ==========================================================================
   TESTIMONIALS PAGE
   ========================================================================== */
#filter-bar .pill { border: 1px solid rgba(31, 52, 64, .25); }
.masonry { column-gap: 1.5rem; }
.masonry .t-card { break-inside: avoid; margin-bottom: 1.5rem; transition: opacity .3s ease, transform .4s ease, box-shadow .4s ease; }
.masonry .t-card:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -28px rgba(31, 52, 64, .45); }
.masonry .t-card.fading { opacity: 0; transform: scale(.97); }
.quote-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
mark.hl { background: linear-gradient(transparent 62%, rgba(229, 201, 160, .75) 62%); color: inherit; font-weight: 600; padding: 0 1px; }
.on-dark mark.hl { background: linear-gradient(transparent 62%, rgba(255, 255, 255, .22) 62%); }
.explore { transition: background .35s ease, transform .4s ease; }
.explore:hover { background: var(--sand); transform: translateY(-4px); }

/* ==========================================================================
   CLIENT LIST
   ========================================================================== */
.cpill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid rgba(31, 52, 64, .2); border-radius: 999px; padding: 8px 10px 8px 16px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .5); transition: all .25s ease; }
.cpill span { min-width: 24px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(31, 52, 64, .08); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.cpill:hover { border-color: var(--teal); color: var(--teal); }
.cpill.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.cpill.on span { background: rgba(255, 255, 255, .2); }
.client-group { scroll-margin-top: 160px; }
.client-card { transition: box-shadow .3s ease, transform .3s ease; }
.client-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(31, 52, 64, .45); }

/* ==========================================================================
   CONTACT PAGE (dark form)
   ========================================================================== */
.f { position: relative; }
.f label.fl { position: absolute; left: 20px; top: 9px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8FBFC2; opacity: 0; transform: translateY(4px); transition: all .25s ease; pointer-events: none; }
.f:focus-within label.fl, .f.filled label.fl { opacity: 1; transform: none; }
.fi { width: 100%; background: #172833; color: var(--cream); border: 0; border-bottom: 1px solid var(--sand); border-radius: 2px; padding: 26px 20px 12px; font-size: 18px; outline: none; transition: box-shadow .2s ease; box-shadow: inset 0 -1px 0 transparent; font-family: inherit; }
.fi::placeholder { color: rgba(233, 224, 212, .6); }
.fi:focus { border-bottom-color: var(--terra); box-shadow: inset 0 -2px 0 var(--terra); }
select.fi { appearance: none; -webkit-appearance: none; cursor: pointer; color: rgba(233, 224, 212, .6); }
select.fi.has-val { color: var(--cream); }
select.fi option { background: #172833; color: var(--cream); }
textarea.fi { resize: none; }
.f .err { display: none; color: #E3977D; font-size: 14px; margin-top: 6px; align-items: center; gap: 6px; }
.f.bad .err { display: flex; }
.f.bad .fi { border-bottom-color: #E3977D; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; padding: 11px 20px; border: 1px solid rgba(233, 224, 212, .35); border-radius: 999px; font-size: 16px; color: var(--sand); cursor: pointer; transition: all .25s ease; }
.opt:hover span { border-color: #8FBFC2; color: #fff; }
.opt input:checked + span { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.opt input:focus-visible + span { outline: 2px solid #8FBFC2; outline-offset: 2px; }
.chk input { position: absolute; opacity: 0; }
.chk .box { width: 22px; height: 22px; border: 1px solid rgba(233, 224, 212, .5); border-radius: 2px; background: #172833; display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .2s ease; flex-shrink: 0; }
.chk input:checked + .box { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.chk input:focus-visible + .box { outline: 2px solid #8FBFC2; outline-offset: 2px; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(201, 120, 92, .55); } 100% { box-shadow: 0 0 0 26px rgba(201, 120, 92, 0); } }
.pulse { animation: pulse-ring 1.8s ease-out 3; }
.c-val { background-image: linear-gradient(#8FBFC2, #8FBFC2); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; }
.c-val:hover { background-size: 100% 2px; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-body.open { max-height: 320px; }
.fade-out { opacity: 0; transition: opacity .4s ease; }
.fade-in { animation: ca-fade .6s ease both; }
@keyframes ca-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   INSIGHTS + ARTICLE
   ========================================================================== */
.cat-link { position: relative; transition: color .25s ease, padding .25s ease; }
.cat-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 999px; background: var(--terra); opacity: 0; transform: scale(.4); transition: all .25s ease; }
@media (min-width: 1024px) {
	.cat-link:hover, .cat-link.on { color: var(--teal); padding-left: 16px; }
	.cat-link:hover::before, .cat-link.on::before { opacity: 1; transform: none; }
}
@media (max-width: 1023px) { .cat-link.on { background: var(--teal); border-color: var(--teal); color: #fff; } }
.art img { transition: transform .7s ease; }
.art:hover img { transform: scale(1.03); }
.art .ttl { transition: color .25s ease; }
.art:hover .ttl { color: var(--teal); }
.art .arr { transition: transform .3s ease, color .3s ease; }
.art:hover .arr { transform: translate(3px, -3px); color: var(--terra); }
.clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pg-nums .page-numbers { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background .25s ease; }
.pg-nums a.page-numbers:hover { background: var(--sand); }
.pg-nums .page-numbers.current { background: var(--teal); color: #fff; }
.pg-nums .page-numbers.dots { color: rgba(31, 52, 64, .5); }
.pg-prev:hover .a { transform: translateX(-4px); }
.pg-next:hover .a { transform: translateX(4px); }
.pg-btn .a { transition: transform .3s ease; }
@keyframes ca-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: ca-marquee 38s linear infinite; width: max-content; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.toc-link { position: relative; transition: color .25s ease, padding .25s ease; }
.toc-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 999px; background: var(--terra); opacity: 0; transform: scale(.4); transition: all .25s ease; }
.toc-link:hover, .toc-link.on { color: var(--teal); padding-left: 16px; }
.toc-link:hover::before, .toc-link.on::before { opacity: 1; transform: none; }
.ca-model .node { cursor: pointer; }
.ca-model .node:hover, .ca-model .node.on, .ca-model .node:focus { stroke: var(--ink); stroke-width: 3; outline: none; }

/* Article body (also plain pages). Block styles: see inc/content.php */
.ca-article { color: var(--ink); }
.ca-article > * + * { margin-top: 1.25rem; }
.ca-article > p, .ca-article > ul > li, .ca-article > ol > li { font-size: 19px; line-height: 1.7; }
.ca-article a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.ca-article h2 { margin-top: 3.5rem; font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 500; scroll-margin-top: 130px; }
@media (min-width: 640px) { .ca-article h2 { font-size: 44px; } }
.ca-article h2 em { color: var(--teal); }
.ca-article h3 { margin-top: 2.5rem; font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 600; }
.ca-article ul { list-style: disc; padding-left: 1.4em; }
.ca-article ol { list-style: decimal; padding-left: 1.4em; }
.ca-article li + li { margin-top: .4em; }
.ca-article img { height: auto; border-radius: 4px; }
.ca-article figcaption { margin-top: .75rem; font-size: 14px; color: rgba(31, 52, 64, .55); }
.ca-article .is-style-ca-lead { font-size: 21px; }
.ca-article blockquote:not(.is-style-ca-pull) { border-left: 2px solid var(--terra); padding-left: 24px; font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.35; }
.ca-article blockquote:not(.is-style-ca-pull) p { font-size: inherit; line-height: inherit; }
/* Pull quote */
.ca-article .is-style-ca-pull { margin: 3rem 0; padding: 36px 0; border-top: 1px solid var(--teal); border-bottom: 1px solid var(--teal); text-align: center; }
.ca-article .is-style-ca-pull::before { content: "\201C"; display: block; height: 32px; font-family: var(--font-display); font-size: 90px; line-height: .6; color: var(--terra); }
.ca-article .is-style-ca-pull p { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.2; }
.ca-article .is-style-ca-pull p:last-of-type::after { content: "\201D"; font-style: normal; color: var(--terra); }
.ca-article .is-style-ca-pull cite { display: block; margin-top: 16px; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--teal); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
@media (min-width: 640px) { .ca-article .is-style-ca-pull p { font-size: 38px; } }
/* Callout (teal) and Note (sand) */
.ca-article .is-style-ca-callout { margin: 2.5rem 0; border-left: 4px solid var(--teal); background: rgba(30, 94, 102, .1); border-radius: 0 4px 4px 0; padding: 20px 24px; font-weight: 500; }
.ca-article .is-style-ca-note { background: var(--sand); border-radius: 4px; padding: 20px 24px; font-size: 17px; font-style: italic; color: rgba(31, 52, 64, .8); }
/* Numbered points: big terracotta numbers, bold first words = title */
.ca-article ol.is-style-ca-numbered { list-style: none; padding: 0; margin-top: 2rem; border-top: 1px solid rgba(31, 52, 64, .4); counter-reset: ca-num; }
.ca-article ol.is-style-ca-numbered > li { counter-increment: ca-num; position: relative; padding: 32px 0 32px 80px; margin: 0; border-bottom: 1px solid rgba(31, 52, 64, .25); }
.ca-article ol.is-style-ca-numbered > li::before { content: counter(ca-num, decimal-leading-zero); position: absolute; left: 0; top: 30px; font-family: var(--font-display); font-weight: 600; font-size: 60px; line-height: 1; color: var(--terra); }
.ca-article ol.is-style-ca-numbered > li > strong:first-child { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 600; }
@media (min-width: 640px) { .ca-article ol.is-style-ca-numbered > li { padding-left: 100px; } .ca-article ol.is-style-ca-numbered > li::before { font-size: 72px; } }
.ca-article .ca-model { margin-top: 2.5rem; margin-bottom: 2.5rem; }
