/* Kayan Jadwa landing – v3 (RTL). Layout modelled on the El-shoula reference. */

:root {
  --dark: #1C4B41;
  --brand: #2F7356;
  --bright: #9FCD53;
  --paper: #F6F5F1;
  --tint: #F6F5F1;
  --tint-2: #EEF6E2;
  --line: #E3E1D8;
  --text: #1B3A33;
  --muted: #5E6B66;
  --white: #FFFFFF;
  --star: #F5B301;
  --error: #C0392B;
  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 64px;
  --topbar-h: 76px;
  --panel-w: 340px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 48px -26px rgba(28, 75, 65, .38);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --tint-2: color-mix(in srgb, var(--bright) 16%, #fff);
    --line: color-mix(in srgb, var(--dark) 10%, var(--paper));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.85; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
svg { display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; right: 12px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; background: #fff; color: var(--dark); padding: 10px 16px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter))); margin-inline: auto; }

/* ---------- Type ---------- */
.h2 { font-weight: 800; font-size: clamp(27px, 2.6vw, 40px); line-height: 1.45; color: var(--dark); margin: 0 0 14px; }
.h2--light { color: #fff; }
.hl { color: inherit; padding: 0 .12em; background: linear-gradient(transparent 56%, color-mix(in srgb, var(--bright) 75%, transparent) 56%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h2--light .hl, .stats .hl { color: var(--bright); background: none; padding: 0; }
.banner .hl { color: var(--dark); background: var(--bright); padding: 0 .3em; border-radius: 8px; }
.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--dark); }
.eyebrow svg { width: 14px; height: 14px; color: var(--bright); }
.section { padding-block: clamp(64px, 7vw, 104px); }
.sec-cta { margin-top: 36px; }
.sec-cta--center { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--bright { background: var(--bright); color: var(--dark); box-shadow: 0 12px 26px -14px var(--bright); }
.btn--bright:hover { background: color-mix(in srgb, var(--bright) 82%, var(--dark)); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: color-mix(in srgb, var(--dark) 80%, var(--bright)); }
.btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .38); color: #fff; backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--dark); background: #fff; }
.btn--outline:hover { border-color: var(--bright); }
.btn--pill { border-radius: 999px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #E6EEEF; }
.admin-bar .topbar { top: 32px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--topbar-h); padding-inline: 32px; }
.topbar__brand { display: flex; align-items: center; min-width: 0; }
.topbar__brand img, .topbar__brand .custom-logo { display: block; height: 50px; width: auto; max-width: 210px; object-fit: contain; }
.topbar__brand .brand-name { font-weight: 800; color: var(--dark); font-size: 22px; text-decoration: none; }
.brand-link { display: block; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--dark); text-decoration: none; font-weight: 700; font-size: 15px; transition: border-color .2s; }
.topbar__phone svg { width: 18px; height: 18px; color: var(--brand); }
.topbar__phone:hover { border-color: var(--bright); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--dark); min-height: clamp(540px, 74vh, 720px); display: flex; align-items: center; padding: 72px 0 150px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; }
.hero.has-image::before { background: var(--hero-img) center / cover no-repeat; transform: scale(1.08); animation: hero-zoom 16s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 70%, transparent) 45%, color-mix(in srgb, var(--dark) 30%, transparent) 100%);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .hero::after { background: linear-gradient(270deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 70%, transparent) 45%, color-mix(in srgb, var(--dark) 30%, transparent) 100%); }
}
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__inner { position: relative; z-index: 2; width: min(var(--wrap), calc(100% - var(--gutter))); }

.hero__chart { position: absolute; z-index: 1; left: 0; right: 0; bottom: 34px; height: 170px; pointer-events: none; opacity: .95; }
.hero__chart svg { width: 100%; height: 100%; overflow: visible; animation: chart-reveal 2s var(--ease) .3s both; }
.hero__axis { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.hero__neg { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.hero__pos { fill: none; stroke: var(--bright); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--bright)); }
.hero__be { position: absolute; left: 60%; top: 55%; transform: translate(-8px, -8px); animation: fade-in .5s ease 1.2s both; }
.hero__be-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bright) 25%, transparent); animation: pulse 2.4s ease-in-out 1.8s infinite; }
.hero__be-label { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; background: color-mix(in srgb, var(--dark) 70%, transparent); padding: 2px 10px; border-radius: 999px; }
@keyframes chart-reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bright) 25%, transparent); } 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--bright) 0%, transparent); } }

.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.slide.is-active > * { animation: rise .8s var(--ease) both; }
.slide.is-active > :nth-child(2) { animation-delay: .12s; }
.slide.is-active > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.slide__title { font-weight: 800; font-size: clamp(30px, 3.5vw, 52px); line-height: 1.35; margin: 0 0 18px; max-width: 760px; color: #fff; }
.slide__text { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.9; color: rgba(255, 255, 255, .86); max-width: 620px; margin: 0 0 30px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slider__dots { display: flex; gap: 8px; margin-top: 34px; }
.slider__dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .35s var(--ease), background-color .35s ease; }
.slider__dot.is-active { width: 36px; background: var(--bright); }

/* ---------- Side panel form ---------- */
.side-panel {
  position: relative; z-index: 5; color: #fff;
  background: linear-gradient(180deg, var(--dark) 0%, color-mix(in srgb, var(--dark) 82%, #000) 100%);
  width: min(620px, calc(100% - 32px)); margin: -72px auto 0; border-radius: 24px;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--dark) 70%, transparent);
}
.side-panel__inner { padding: 26px 24px 20px; }
.side-panel__title { font-weight: 800; font-size: 21px; line-height: 1.5; margin: 0 0 4px; color: #fff; }
.side-panel__title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--bright); }
.side-panel__text { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .78); margin: 0 0 18px; }
.side-panel.is-flash { animation: flash 1s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--bright), 0 30px 60px -30px color-mix(in srgb, var(--dark) 70%, transparent); } }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }
.control { position: relative; }
.control__icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dark); pointer-events: none; opacity: .75; }
.control__icon svg { width: 18px; height: 18px; }
.control--area .control__icon { top: 15px; transform: none; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 10px 44px 10px 14px;
  border: 1.5px solid #D4E2E4; border-radius: 10px; background: #fff; color: var(--text);
  font-family: var(--font); font-size: 15.5px; line-height: 1.5; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6F8285; opacity: 1; }
.field input[dir="ltr"]:placeholder-shown { text-align: right; }
.field select { appearance: none; padding-left: 36px; 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='%23142B2F' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bright) 25%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__error { margin: 0; font-size: 13px; color: var(--error); line-height: 1.5; }

.stage { border: 0; padding: 0; margin: 0; }
.stage legend { padding: 0; margin-bottom: 10px; }
.stage__track { display: flex; align-items: flex-start; }
.stage__node { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; min-width: 0; }
.stage__node input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stage__node:not(:first-child):not(.stage__node--other)::before { content: ""; position: absolute; top: 11px; inset-inline-start: -50%; width: 100%; height: 2px; background: #C6D6D8; transition: background-color .25s; }
.stage__dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C6D6D8; background: #fff; transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s; }
.stage__label { font-size: 13px; line-height: 1.45; color: var(--muted); }
.stage__node:hover .stage__dot { border-color: var(--brand); transform: scale(1.08); }
.stage__node.is-on .stage__dot { border-color: var(--brand); background: var(--tint-2); }
.stage__node.is-on::before { background: var(--brand) !important; }
.stage__node input:checked + .stage__dot { background: var(--bright); border-color: var(--bright); box-shadow: inset 0 0 0 4px #fff; }
.stage__node input:checked ~ .stage__label, .stage__node.is-on .stage__label { color: var(--text); font-weight: 700; }
.stage__node input:focus-visible + .stage__dot { outline: 3px solid var(--bright); outline-offset: 2px; }
.stage__node--other { flex: 0 0 auto; margin-inline-start: 6px; padding-inline-start: 14px; border-inline-start: 1px solid #D4E2E4; }
.stage.has-error .stage__dot { border-color: var(--error); }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 14px; line-height: 1.6; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.form__done { text-align: center; padding: 18px 0 8px; }
.form__done svg { width: 48px; height: 48px; margin: 0 auto; color: var(--bright); }
.form__done p { margin: 10px 0 0; font-weight: 700; }

/* Panel: placeholders carry the labels, white fields on brand colour */
.side-panel .field > label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.side-panel .field input, .side-panel .field textarea { border-color: transparent; }
.side-panel .field__error { color: #FFC9C2; }
.side-panel .stage legend { color: #fff; }
.side-panel .stage__dot { background: transparent; border-color: rgba(255, 255, 255, .5); }
.side-panel .stage__node:not(:first-child):not(.stage__node--other)::before { background: rgba(255, 255, 255, .25); }
.side-panel .stage__label { color: rgba(255, 255, 255, .78); }
.side-panel .stage__node:hover .stage__dot { border-color: #fff; }
.side-panel .stage__node.is-on .stage__dot { border-color: var(--bright); background: color-mix(in srgb, var(--bright) 25%, transparent); }
.side-panel .stage__node.is-on::before { background: var(--bright) !important; }
.side-panel .stage__node input:checked + .stage__dot { box-shadow: inset 0 0 0 4px var(--dark); }
.side-panel .control__icon { color: var(--dark); }
.side-panel .stage__node input:checked ~ .stage__label, .side-panel .stage__node.is-on .stage__label { color: #fff; }
.side-panel .stage__node--other { border-inline-start-color: rgba(255, 255, 255, .2); }
.side-panel .form__note { color: rgba(255, 255, 255, .62); }
.side-panel .form__status.is-error { color: #FFC9C2; }
.side-panel .form__done p { color: #fff; }

/* ---------- Value line ---------- */
.value { padding: 56px 0 8px; }
.value__inner { text-align: center; max-width: 940px; }
.value__lead { font-size: clamp(18px, 1.65vw, 23px); font-weight: 700; line-height: 1.8; color: var(--dark); margin: 0 0 8px; }
.value__sub { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- Carousel (activities, portfolio) ---------- */
.carousel { position: relative; }
.carousel__track {
  --per: 4;
  display: grid; grid-auto-flow: column; gap: 24px;
  grid-auto-columns: calc((100% - (var(--per) - 1) * 24px) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 4px 26px; margin: -10px -4px 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--dark); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--bright); border-color: var(--bright); transform: scale(1.06); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #C9D7D9; cursor: pointer; transition: width .35s var(--ease), background-color .35s; }
.carousel__dots button.is-active { width: 30px; background: var(--bright); }
.carousel.is-static .carousel__nav { display: none; }

/* Activity cards */
.act-card { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid transparent; border-radius: 24px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.act-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--bright); background: #fff; }
.act-card__media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--dark) 0%, var(--brand) 70%, var(--bright) 140%); }
.act-card__media::before { content: ""; position: absolute; width: 180%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .03); top: 35%; left: -40%; }
.act-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.act-card:hover .act-card__media img { transform: scale(1.07); }
.act-card__icon { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px); transition: transform .45s var(--ease), background-color .3s; }
.act-card__icon svg { width: 38px; height: 38px; }
.act-card:hover .act-card__icon { transform: scale(1.1) rotate(-5deg); background: var(--bright); color: var(--dark); }
.act-card__media.has-img .act-card__icon { position: absolute; bottom: 12px; right: 12px; width: 50px; height: 50px; border-radius: 14px; background: var(--bright); color: var(--dark); }
.act-card__media.has-img .act-card__icon svg { width: 26px; height: 26px; }
.act-card__body { padding: 20px 20px 22px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.act-card__title { font-size: 19px; font-weight: 800; line-height: 1.5; color: var(--dark); margin: 0 0 8px; }
.act-card__text { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0; }
.act-card__case { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--dark) 20%, transparent); font-size: 13.5px; color: var(--brand); line-height: 1.7; }
.act-card__text + .act-card__case { margin-top: 14px; }

/* ---------- Numbers band ---------- */
.stats { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: 96px 0 160px; }
.stats::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bright) 28%, transparent), transparent 65%); top: -180px; left: -120px; }
.stats::after { content: ""; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02); bottom: -160px; right: 10%; }
.stats__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.stats__head p { color: rgba(255, 255, 255, .78); margin: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { text-align: center; padding: 28px 14px 24px; border-radius: 20px; background: color-mix(in srgb, var(--bright) 13%, transparent); border: 1px solid color-mix(in srgb, var(--bright) 45%, transparent); transition: transform .35s var(--ease), background-color .35s; }
.stat:hover { transform: translateY(-8px); background: color-mix(in srgb, var(--bright) 22%, transparent); }
.stat__icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--bright) 25%, transparent); border: 1px solid color-mix(in srgb, var(--bright) 60%, transparent); }
.stat__icon svg { width: 28px; height: 28px; }
.stat__value { display: block; font-size: clamp(28px, 2.5vw, 40px); font-weight: 800; line-height: 1.25; margin-bottom: 6px; direction: ltr; unicode-bidi: isolate; }
.stat__label { display: block; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .82); }

/* ---------- Services (light panel over the dark band) ---------- */
.services { position: relative; margin-top: -84px; z-index: 2; }
.services__panel { background: var(--tint); border-radius: 56px; padding: 88px 0 96px; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1.5px solid transparent; border-radius: 22px; padding: 24px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--bright); }
.svc__icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-2); color: var(--dark); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.svc__icon svg { width: 27px; height: 27px; }
.svc:hover .svc__icon { background: var(--bright); color: var(--dark); transform: rotate(-6deg); }
.svc__title { font-size: 18px; font-weight: 800; line-height: 1.5; margin: 2px 0 6px; color: var(--dark); }
.svc__text { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0; }

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.timeline { list-style: none; margin: 0 0 30px; padding: 0; }
.tl { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.tl:not(:last-child)::before { content: ""; position: absolute; right: 24px; top: 56px; bottom: 6px; width: 2px; background: linear-gradient(var(--bright), var(--line)); }
.tl__num { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bright); color: var(--dark); font-weight: 800; font-size: 15px; box-shadow: 0 0 0 7px var(--tint-2); }
.tl__title { font-size: 18px; font-weight: 800; line-height: 1.5; margin: 6px 0 4px; color: var(--dark); }
.tl__text { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.85; }
.why__media { position: relative; margin: 0; }
.why__media::before { content: ""; position: absolute; inset: 26px -20px -20px 26px; border: 2px solid var(--bright); border-radius: 32px; }
.why__img { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: linear-gradient(140deg, var(--brand), var(--dark)); box-shadow: var(--shadow); }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__badge { position: absolute; bottom: 28px; right: -26px; max-width: 290px; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--dark) 45%, transparent); font-size: 14px; font-weight: 700; line-height: 1.65; animation: float 5s ease-in-out infinite; }
.why__badge-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bright); color: var(--dark); }
.why__badge-icon svg { width: 24px; height: 24px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Dark CTA banner ---------- */
.banner-sec { padding: 8px 0 24px; }
.banner { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; background: var(--dark); border-radius: 40px; padding: 70px 48px; }
.banner::before { content: ""; position: absolute; z-index: -1; width: 600px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bright) 35%, transparent), transparent 62%); top: -300px; right: -160px; }
.banner::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 50px rgba(255, 255, 255, .025), 0 0 0 100px rgba(255, 255, 255, .02); bottom: -250px; left: -120px; }
.banner__mark { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; margin-bottom: 18px; background: color-mix(in srgb, var(--bright) 20%, transparent); color: var(--bright); }
.banner__mark svg { width: 32px; height: 32px; }
.banner__title { font-size: clamp(22px, 2.3vw, 34px); font-weight: 800; line-height: 1.6; max-width: 900px; margin: 0 auto 14px; }
.banner__text { font-size: 18px; color: rgba(255, 255, 255, .84); max-width: 760px; margin: 0 auto 28px; }

/* ---------- Partners marquee ---------- */
.partners { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.marquee { display: grid; gap: 16px; padding: 24px 0; border: 1.5px solid var(--line); border-radius: 40px; background: var(--paper); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__row { overflow: hidden; direction: ltr; }
.marquee__track { display: flex; gap: 18px; width: max-content; padding-inline: 9px; }
.marquee.is-running .marquee__track { animation: marquee var(--dur, 50s) linear infinite; }
.marquee.is-running .marquee__row--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-tile { flex: none; width: 160px; height: 88px; display: grid; place-items: center; padding: 12px 16px; background: #fff; border-radius: 16px; box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--dark) 35%, transparent); transition: transform .3s var(--ease); }
.logo-tile:hover { transform: translateY(-4px); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-tile img { font-size: 0; color: transparent; } /* the alt text is for Google; never print it inside a tile if a logo fails to load */

/* ---------- Portfolio cards ---------- */
.work { background: #fff; padding-top: 24px; }
.proj-card { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid transparent; border-radius: 24px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--bright); }
.proj-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(140deg, var(--brand), var(--dark)); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.07); }
.proj-card__body { padding: 16px 18px 20px; }
.proj-card__type { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.proj-card__title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0; color: var(--dark); }

/* ---------- Testimonials ---------- */
.testi { background: var(--paper); padding-top: 24px; }
.testi__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.testi-card { margin: 0; background: #fff; border: 1.5px solid transparent; border-radius: 22px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s; }
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testi-card__stars { display: flex; gap: 3px; color: var(--star); }
.testi-card__stars svg { width: 20px; height: 20px; }
.testi-card__text { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--text); flex: 1; }
.testi-card__who { display: flex; align-items: center; gap: 12px; }
.testi-card__who strong { display: block; font-size: 15px; }
.testi-card__who small { display: block; font-size: 13px; color: var(--muted); }
.testi-card__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand); }
.testi-card__avatar svg { width: 22px; height: 22px; }

/* ---------- FAQ (accordion; same cards and colours as the rest of the page) ---------- */
.faq { background: #fff; padding-top: 24px; }
.faq__list { max-width: 880px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; transition: border-color .3s, box-shadow .35s var(--ease), background-color .3s; }
.faq-item:hover { border-color: color-mix(in srgb, var(--bright) 60%, var(--line)); }
.faq-item[open] { background: #fff; border-color: var(--bright); box-shadow: var(--shadow); }
.faq-item__q { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }
.faq-item__title { flex: 1; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--dark); }
.faq-item__icon { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tint-2); color: var(--dark); transition: background-color .3s, transform .4s var(--ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--bright); transform: rotate(45deg); }
.faq-item__a { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.faq-item__a p { margin: 0; }
@media (max-width: 600px) {
  .faq-item__q { padding: 16px 18px; gap: 12px; }
  .faq-item__title { font-size: 15.5px; }
  .faq-item__a { padding: 0 18px 18px; font-size: 15px; }
  .faq-item__icon { width: 32px; height: 32px; }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.contact__form { order: -1; background: var(--paper); border: 1.5px solid var(--line); border-radius: 30px; padding: 34px 32px; }
.contact__form-title { font-size: 28px; font-weight: 800; line-height: 1.4; margin: 0 0 4px; color: var(--dark); }
.contact__form-text { color: var(--muted); margin: 0 0 22px; }
.contact__form .lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.contact__form .field--sector, .contact__form .field--idea, .contact__form .stage, .contact__form .form__status, .contact__form .form__note, .contact__form .lead-form__submit { grid-column: 1 / -1; }
.contact__form .lead-form__submit { justify-self: start; width: auto; min-width: 210px; }
.contact__form .form__note { text-align: start; }
.cinfo { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.cinfo li { display: flex; gap: 16px; align-items: flex-start; }
.cinfo__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--dark); background: var(--bright); box-shadow: 0 12px 24px -12px var(--bright); }
.cinfo__icon svg { width: 22px; height: 22px; }
.cinfo__label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cinfo a, .cinfo li span:not(.cinfo__label):not(.cinfo__icon) { display: block; font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; }
.cinfo a:hover { color: var(--brand); }
.cinfo a[dir="ltr"] { text-align: right; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .82); padding: 22px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; font-weight: 600; }
.footer a { color: #fff; }

/* ---------- Floating WhatsApp & mobile bar ---------- */
.wa-float { display: none; }
.mbar { display: none; }

/* ---------- Dialogs ---------- */
.modal { border: 0; padding: 0; width: min(460px, calc(100% - 28px)); max-height: calc(100% - 28px); border-radius: 26px; background: #fff; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.modal::backdrop { background: color-mix(in srgb, var(--dark) 65%, transparent); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; translate: 0 16px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.modal__body { position: relative; padding: 34px 28px 24px; }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tint); color: var(--dark); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; background: var(--bright); color: var(--dark); }
.modal__badge svg { width: 28px; height: 28px; }
.modal__title { font-size: 22px; font-weight: 800; line-height: 1.5; margin: 0 0 6px; padding-inline-end: 36px; }
.modal__text { font-size: 15px; color: var(--muted); margin: 0 0 18px; line-height: 1.75; }

/* ---------- Simple pages ---------- */
main.page { padding: 56px 0 80px; } /* main only: WordPress also puts "page" on <body> of every Page, incl. a landing page used as the homepage */
.page__inner { max-width: 780px; }
.page__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.5; margin: 0 0 24px; }
.page__content h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.thanks { padding: 80px 0 96px; text-align: center; background: linear-gradient(180deg, #fff, var(--tint)); }
.thanks__inner { max-width: 640px; }
.thanks__icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--bright); color: var(--dark); margin-bottom: 20px; animation: pop .6s var(--ease) both; }
.thanks__icon svg { width: 40px; height: 40px; }
@keyframes pop { from { scale: .5; opacity: 0; } to { scale: 1; opacity: 1; } }
.thanks__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.5; margin: 0 0 14px; }
.thanks__text { font-size: 18px; color: var(--muted); }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

img.is-broken { display: none; }
.logo-tile:has(img.is-broken) { display: none; }

/* ---------- Scroll reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; }
.js-reveal [data-reveal].is-in { animation: reveal-up .85s var(--ease) both; animation-delay: calc(min(var(--d, 0), 5) * 90ms); }
@keyframes reveal-up { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

/* =====================================================================
   Desktop: the form is a full-height column fixed to the left edge
   (like the reference), and the page content sits beside it.
   ===================================================================== */
@media (min-width: 1100px) and (min-height: 620px) {
  body.is-landing { padding-left: var(--panel-w); }
  .is-landing .side-panel {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0;
    width: var(--panel-w); margin: 0; border-radius: 0;
    overflow-y: auto; overscroll-behavior: contain; box-shadow: none;
    background: linear-gradient(180deg, var(--dark) 0%, color-mix(in srgb, var(--dark) 82%, #000) 100%);
  }
  .is-landing.admin-bar .side-panel { top: 32px; }
  .is-landing .side-panel__inner { padding: 30px 24px 24px; }
  .is-landing .side-panel.is-flash { animation: flash-fixed 1s ease; }
  @keyframes flash-fixed { 30% { box-shadow: inset 0 0 0 4px var(--bright); } }
  .is-landing .hero { border-bottom-left-radius: 64px; }
  .is-landing .hero__inner { margin-inline: auto; }
  .is-landing .wa-float {
    display: grid; place-items: center; position: fixed; z-index: 45;
    left: calc(var(--panel-w) + 22px); bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  }
  .is-landing .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
  .is-landing .wa-float svg { width: 30px; height: 30px; }
  @keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
  .is-landing .footer__inner { padding-inline-end: 80px; }
}
@media (min-width: 1100px) and (max-width: 1440px) and (min-height: 620px) {
  :root { --panel-w: 320px; --gutter: 56px; }
  .carousel__track { --per: 3; }
  .stats__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .why__grid { gap: 56px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .carousel__track { --per: 2; }
  .stats__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .why__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .why__badge { right: 12px; }
  .testi__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact__form { order: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  :root { --gutter: 36px; --topbar-h: 66px; }
  body { font-size: 16px; }
  .is-landing .footer { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .contact-sec { padding-bottom: 44px; }
  .topbar__inner { padding-inline: 18px; }
  .topbar__brand img, .topbar__brand .custom-logo { height: 42px; max-width: 150px; }
  .topbar__phone { display: none; }
  .hero { min-height: 0; padding: 48px 0 150px; border-radius: 0 0 32px 32px; }
  .hero__chart { height: 110px; bottom: 82px; }
  .slider__dots { margin-top: 24px; }
  .stats { padding: 72px 0 140px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .services__panel { border-radius: 36px; padding: 64px 0 72px; }
  .banner { border-radius: 28px; padding: 52px 24px; }
  .marquee { border-radius: 28px; }
  .logo-tile { width: 130px; height: 74px; }
  .mbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid #E2ECED; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35);
    transition: transform .3s var(--ease);
  }
  .mbar.is-hidden { transform: translateY(110%); }
  .mbar__btn { display: grid; place-items: center; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--dark); text-decoration: none; font-weight: 800; font-size: 16px; }
  .mbar__btn svg { width: 22px; height: 22px; }
  .mbar__btn--primary { background: var(--bright); border-color: var(--bright); }
}
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }
@media (max-width: 600px) {
  :root { --gutter: 28px; }
  .carousel__track { --per: 1.15; gap: 16px; grid-auto-columns: 82%; }
  .services__grid, .testi__grid { grid-template-columns: minmax(0, 1fr); }
  .slide__actions .btn--glass { display: none; }
  .slide__actions .btn--bright { width: 100%; }
  .contact__form { padding: 26px 18px; border-radius: 24px; }
  .contact__form .lead-form { grid-template-columns: minmax(0, 1fr); }
  .contact__form .lead-form__submit { width: 100%; }
  .stat { padding: 22px 10px 18px; }
  .stage__label { font-size: 12.5px; }
  .stage__node--other { padding-inline-start: 10px; margin-inline-start: 4px; }
  .btn--sm { padding: 0 14px; font-size: 14px; }
  .btn--sm svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal [data-reveal] { opacity: 1; }
}

/* Thank-you page extras */
.thanks__file { margin: 26px 0 0; }
.thanks__count { margin: 26px 0 10px; font-size: 15px; color: var(--muted); }
.thanks__count span { font-weight: 800; color: var(--dark); }
.thanks__bar { width: min(320px, 80%); height: 6px; margin: 0 auto; border-radius: 6px; background: var(--line); overflow: hidden; }
.thanks__bar span { display: block; height: 100%; background: var(--bright); transform-origin: right; animation: bar-shrink linear forwards; }
@keyframes bar-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.form__done .btn { margin-top: 14px; }

/* shown only with ?exittest=1 */
.exit-test-badge { position: fixed; z-index: 90; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); background: #FFF4CC; color: #5A4300; border: 1px solid #E8C85A; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; text-align: center; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .4); }
