/* Ufuq «أفق» (general/GN1000): the neutral, light one-page design.
   --primary / --secondary / --on-primary / --on-secondary are printed by the sw-palette block in index.php (data.json
   common.color / common.accent). Every other colour here is mixed from them with color-mix() or is a neutral ink, grey
   or white. Logical properties keep the Arabic and English pages mirrored. */

:root {
    --ink: #0f1729;
    --ink-2: #344054;
    --muted: #5b6474;
    --line: #e6e8ee;
    --surface: #f6f7f9;
    --primary-ink: color-mix(in oklab, var(--primary) 88%, #0b1220);
    --tint: color-mix(in oklab, var(--primary) 7%, #ffffff);
    --tint-2: color-mix(in oklab, var(--primary) 13%, #ffffff);
    --sec-tint: color-mix(in oklab, var(--secondary) 18%, #ffffff);
    --sec-ink: color-mix(in oklab, var(--secondary) 62%, #0b1220);
    --soft: color-mix(in oklab, var(--primary) 3%, var(--surface));
    --line-tint: color-mix(in oklab, var(--primary) 22%, var(--line));
    /* Functional colours, not the brand: WhatsApp's own green; the form's success / error notes below. */
    --wa: #25d366;
    --wa-ink: #128c4a;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 20px -12px color-mix(in oklab, var(--primary) 22%, transparent);
    --shadow: 0 2px 6px rgba(16, 24, 40, .04), 0 24px 48px -26px color-mix(in oklab, var(--primary) 32%, transparent);
    --shadow-lg: 0 8px 24px -12px rgba(16, 24, 40, .12), 0 40px 72px -34px color-mix(in oklab, var(--primary) 40%, transparent);
    --r: 22px;
    --r-lg: 28px;
    --container: 1200px;
    --gutter: 24px;
    --header-h: 84px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

[lang="en"] h1,
[lang="en"] h2,
[lang="en"] h3 {
    line-height: 1.18;
    letter-spacing: -.02em;
}

:where(a, button, input, textarea):focus-visible {
    outline: 3px solid color-mix(in oklab, var(--primary) 55%, transparent);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: translate .3s var(--ease), box-shadow .3s, background-color .3s, color .3s, border-color .3s;
}

.btn-lg {
    min-height: 56px;
    padding: 12px 30px;
    font-size: 1.03rem;
}

.btn-sm {
    min-height: 44px;
    padding: 8px 18px;
    font-size: .92rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 14px 28px -14px color-mix(in oklab, var(--primary) 80%, transparent);
}

.btn-primary:hover {
    background: color-mix(in oklab, var(--primary) 88%, #0b1220);
    translate: 0 -2px;
}

.btn-ghost {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    color: var(--primary-ink);
    border-color: color-mix(in oklab, var(--primary) 40%, var(--line));
    translate: 0 -2px;
}

.dir-icon {
    font-size: .9em;
    transition: transform .3s var(--ease);
}

[dir="rtl"] .dir-icon {
    transform: scaleX(-1);
}

.btn:hover .dir-icon,
.mobile-menu ul a:hover .dir-icon {
    transform: translateX(3px);
}

[dir="rtl"] .btn:hover .dir-icon,
[dir="rtl"] .mobile-menu ul a:hover .dir-icon {
    transform: scaleX(-1) translateX(3px);
}

.wa-ico {
    color: var(--wa-ink);
    font-size: 1.15em;
}

/* ---------- Section heads ---------- */
.section {
    padding-block: clamp(68px, 8vw, 112px);
}

.section-soft {
    background: var(--soft);
}

.sec-head {
    max-width: 720px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 5px 15px 5px 13px;
    border-radius: 999px;
    background: var(--tint);
    border: 1px solid color-mix(in oklab, var(--primary) 16%, #ffffff);
    color: var(--primary-ink);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.5;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.sec-title {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
    text-wrap: balance;
}

.sec-sub {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    text-wrap: pretty;
}

.lead {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

[lang="en"] .lead,
[lang="en"] .hero-sub {
    line-height: 1.7;
}

.tick {
    width: 24px;
    height: 24px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sec-tint);
    color: var(--sec-ink);
    font-size: .68rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.bar {
    width: min(calc(var(--container) + 32px), calc(100% - 2 * var(--gutter) + 32px));
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline: 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: height .3s var(--ease), background-color .3s, border-color .3s, box-shadow .3s;
}

.site-header.scrolled .bar,
.site-header.menu-open .bar {
    height: 60px;
    background: rgba(255, 255, 255, .86);
    border-color: color-mix(in oklab, var(--primary) 10%, var(--line));
    box-shadow: 0 12px 30px -18px color-mix(in oklab, var(--primary) 40%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    min-width: 0;
    color: var(--ink);
    font-size: 1.28rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-tile {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 1.05rem;
    box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--primary) 80%, transparent);
}

.brand-name {
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-logo {
    height: 40px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.main-nav {
    margin-inline: auto;
}

.main-nav ul,
.mobile-menu ul,
.feature-list,
.card-list,
.steps,
.info-list,
.foot-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul {
    display: flex;
    gap: 2px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .25s, background-color .25s;
}

.main-nav a:hover {
    color: var(--primary-ink);
    background: var(--tint);
}

.bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .25s, color .25s;
}

.lang-switch:hover {
    border-color: var(--line-tint);
    color: var(--primary-ink);
}

.lang-switch img {
    width: 20px;
    height: 10px;
    border-radius: 2px;
    object-fit: cover;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    inset-inline-start: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}

.menu-toggle span:nth-child(1) {
    top: 16px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: calc(100% - 6px);
    inset-inline: 10px;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid color-mix(in oklab, var(--primary) 10%, var(--line));
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s;
}

.mobile-menu li+li {
    border-top: 1px solid var(--line);
}

.mobile-menu ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu ul a:hover {
    background: var(--tint);
    color: var(--primary-ink);
}

.mobile-menu ul a i {
    color: var(--muted);
}

.mobile-actions {
    display: grid;
    gap: 10px;
    padding: 12px 4px 4px;
}

/* ---------- Hero: a still soft glow from the two colours ---------- */
.hero {
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(64px, 8vw, 104px);
    background:
        linear-gradient(180deg, transparent 62%, #ffffff),
        radial-gradient(55% 70% at 88% 0%, color-mix(in oklab, var(--primary) 17%, transparent), transparent 72%),
        radial-gradient(42% 55% at 4% 55%, color-mix(in oklab, var(--secondary) 15%, transparent), transparent 72%),
        linear-gradient(180deg, color-mix(in oklab, var(--primary) 4%, #ffffff), #ffffff);
}

[dir="rtl"] .hero {
    background:
        linear-gradient(180deg, transparent 62%, #ffffff),
        radial-gradient(55% 70% at 12% 0%, color-mix(in oklab, var(--primary) 17%, transparent), transparent 72%),
        radial-gradient(42% 55% at 96% 55%, color-mix(in oklab, var(--secondary) 15%, transparent), transparent 72%),
        linear-gradient(180deg, color-mix(in oklab, var(--primary) 4%, #ffffff), #ffffff);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
}

.hero-title {
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 1.3rem + 3.1vw, 3.9rem);
    line-height: 1.25;
    text-wrap: balance;
}

[lang="en"] .hero-title {
    line-height: 1.08;
    letter-spacing: -.03em;
}

.hl {
    color: var(--primary-ink);
    background: linear-gradient(90deg, color-mix(in oklab, var(--secondary) 24%, #ffffff), color-mix(in oklab, var(--primary) 14%, #ffffff)) no-repeat 0 90% / 100% .34em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-sub {
    max-width: 36em;
    margin: 0 0 34px;
    color: var(--muted);
    font-size: clamp(1.04rem, .98rem + .35vw, 1.2rem);
    line-height: 1.85;
    text-wrap: pretty;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 1 / .92;
    object-fit: cover;
    object-position: 58% 55%;
    border: 8px solid #ffffff;
    border-radius: 32px;
    background: var(--soft);
    box-shadow: var(--shadow-lg);
}

/* ---------- Services (cards from the panel) ---------- */
.cards {
    --cols: 3;
    --gap: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.cards>.card {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    min-width: 0;
}

.cols-1>.card {
    flex-basis: min(100%, 540px);
}

.cols-2 {
    --cols: 2;
    max-width: 920px;
    margin-inline: auto;
}

.cols-4 {
    --cols: 4;
}

.card {
    padding: 30px 28px 32px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow-wrap: anywhere;
    transition: translate .35s var(--ease), box-shadow .35s, border-color .35s;
}

.card:hover {
    translate: 0 -5px;
    border-color: var(--line-tint);
    box-shadow: var(--shadow-lg);
}

.icon-tile {
    width: 56px;
    height: 56px;
    flex: none;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 1.3rem;
    box-shadow: 0 14px 26px -14px color-mix(in oklab, var(--primary) 75%, transparent);
}

.icon-tile.soft {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 15px;
    background: var(--tint-2);
    color: var(--primary-ink);
    font-size: 1.05rem;
    box-shadow: none;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.45;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.8;
}

.card-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.6;
}

.card-list i {
    flex: none;
    margin-top: .5em;
    color: var(--sec-ink);
    font-size: .7rem;
}

/* ---------- About ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
}

.split-media {
    position: relative;
}

.split-media img {
    width: 100%;
    aspect-ratio: 1 / .9;
    object-fit: cover;
    object-position: 34% 50%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: 24px;
    inset-inline-end: 24px;
    display: grid;
    padding: 14px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.about-badge strong {
    color: var(--primary-ink);
    font-size: 1.9rem;
    line-height: 1.15;
}

.about-badge span {
    color: var(--muted);
    font-size: .88rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.stats {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    margin-top: clamp(40px, 5vw, 64px);
    padding: 26px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.stats-1 {
    --n: 1;
}

.stats-2 {
    --n: 2;
}

.stats-3 {
    --n: 3;
}

.stat {
    padding: 4px 16px;
    text-align: center;
}

.stat+.stat {
    border-inline-start: 1px solid var(--line);
}

.stat strong {
    display: block;
    color: var(--primary-ink);
    font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}

/* ---------- How we work ---------- */
.steps {
    --n: 3;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    gap: 28px;
}

.steps-1 {
    --n: 1;
}

.steps-2 {
    --n: 2;
    max-width: 760px;
    margin-inline: auto;
}

.steps::before {
    content: "";
    position: absolute;
    top: 32px;
    inset-inline: calc(100% / var(--n) / 2);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-tint) 0 8px, transparent 8px 14px);
}

.steps-1::before {
    display: none;
}

.step {
    position: relative;
    text-align: center;
}

.step-num {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border: 1px solid var(--line-tint);
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-ink);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 0 0 8px #ffffff, var(--shadow);
    transition: background-color .3s, color .3s;
}

.step:hover .step-num {
    background: var(--primary);
    color: var(--on-primary);
}

.step h3 {
    margin-bottom: 8px;
    font-size: 1.16rem;
}

.step p {
    max-width: 30ch;
    margin: 0 auto;
    color: var(--muted);
    font-size: .97rem;
    line-height: 1.75;
}

/* ---------- Testimonials ---------- */
.quotes {
    --n: 3;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    gap: 24px;
}

.q-1 {
    --n: 1;
    max-width: 680px;
    margin-inline: auto;
}

.q-2 {
    --n: 2;
    max-width: 940px;
    margin-inline: auto;
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow-wrap: anywhere;
    transition: translate .35s var(--ease), box-shadow .35s;
}

.quote:hover {
    translate: 0 -4px;
    box-shadow: var(--shadow);
}

.stars {
    display: inline-flex;
    gap: 3px;
    color: color-mix(in oklab, var(--primary) 78%, var(--secondary));
    font-size: .88rem;
}

.quote blockquote {
    flex: 1;
    margin: 0;
}

.quote blockquote p {
    margin: 0;
    color: var(--ink-2);
    font-size: 1.03rem;
    line-height: 1.9;
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.quote figcaption strong,
.quote figcaption small {
    display: block;
}

.quote figcaption small {
    color: var(--muted);
    font-size: .88rem;
}

.avatar {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
}

.av-1 {
    background: var(--tint-2);
    color: var(--primary-ink);
}

.av-2 {
    background: var(--sec-tint);
    color: var(--ink);
}

.av-3 {
    background: var(--primary);
    color: var(--on-primary);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "info form" "map form";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 16px 32px;
}

.contact-info {
    grid-area: info;
}

.form-card {
    grid-area: form;
}

.map-card {
    grid-area: map;
}

.info-list {
    padding: 8px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--soft);
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.info-list li+li {
    border-top: 1px solid var(--line);
}

.info-list div {
    min-width: 0;
}

.info-list small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.info-list p {
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.info-list a {
    color: inherit;
    text-decoration: none;
}

.info-list a:hover {
    color: var(--primary-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wa-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #ffffff;
}

.wa-copy {
    min-width: 0;
}

.wa-copy strong,
.wa-copy small {
    display: block;
}

.wa-copy small {
    color: var(--muted);
    font-size: .88rem;
}

.map-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.form-card h3 {
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}

.contact-form input[type="tel"],
.contact-form input[type="email"] {
    unicode-bidi: plaintext;
    text-align: start;
}

[dir="rtl"] .contact-form input[type="tel"],
[dir="rtl"] .contact-form input[type="email"] {
    direction: rtl;
    text-align: right;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form ::placeholder {
    color: var(--muted);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 15%, transparent);
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.form-alert i {
    margin-top: .3em;
}

.form-alert.ok {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #14532d;
}

.form-alert.err {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: clamp(52px, 6vw, 80px) 0 28px;
    border-top: 1px solid var(--line);
    background: var(--soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1.1fr);
    gap: 40px;
}

.foot-brand p {
    max-width: 34em;
    margin: 16px 0 20px;
    color: var(--muted);
    line-height: 1.85;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.socials a,
.to-top {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink-2);
    text-decoration: none;
    transition: background-color .25s, color .25s, border-color .25s;
}

.socials a:hover,
.to-top:hover {
    border-color: transparent;
    background: var(--primary);
    color: var(--on-primary);
}

.foot-col h4 {
    margin: 6px 0 12px;
    font-size: 1rem;
}

.foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
}

.foot-links a:hover {
    color: var(--primary-ink);
}

.foot-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.foot-contact i {
    width: 16px;
    flex: none;
    margin-top: .3em;
    color: var(--primary-ink);
    text-align: center;
}

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

.foot-bottom p {
    margin: 0;
}

.to-top {
    margin-inline-start: auto;
}

.wa-float {
    position: fixed;
    bottom: 22px;
    z-index: 40;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wa);
    color: #ffffff;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 14px 28px -12px rgba(18, 140, 74, .6);
    transition: translate .3s var(--ease);
}

.wa-float.right {
    right: 22px;
}

.wa-float.left {
    left: 22px;
}

.wa-float:hover {
    translate: 0 -3px;
}

/* ---------- Fade-up on scroll (only with the script) ---------- */
.js .rv {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), translate .35s var(--ease), box-shadow .35s, border-color .35s;
}

.js .rv.in {
    opacity: 1;
    transform: none;
}

.js .rv:nth-child(3n+2) {
    transition-delay: .08s, .08s, 0s, 0s, 0s;
}

.js .rv:nth-child(3n) {
    transition-delay: .16s, .16s, 0s, 0s, 0s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .cols-4 {
        --cols: 2;
        max-width: 920px;
        margin-inline: auto;
    }
}

@media (max-width: 1060px) {

    .main-nav,
    .bar-actions .lang-switch {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .bar-actions {
        margin-inline-start: auto;
    }
}

@media (max-width: 960px) {

    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy {
        text-align: center;
    }

    .hero-sub {
        margin-inline: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-media,
    .split-media {
        width: min(100%, 600px);
        margin-inline: auto;
    }

    .hero-media img,
    .split-media img {
        aspect-ratio: 4 / 3;
    }

    .contact-grid {
        grid-template-areas: "info" "form" "map";
        grid-template-rows: none;
        row-gap: 24px;
    }

    .quotes {
        --n: 1;
        max-width: 640px;
        margin-inline: auto;
    }
}

@media (max-width: 860px) {
    .cards {
        --cols: 2;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }

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

    .stat:nth-child(odd) {
        border-inline-start: 0;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 540px;
        margin-inline: auto;
    }

    .steps::before {
        top: 32px;
        bottom: 32px;
        inset-inline: 31px auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--line-tint) 0 8px, transparent 8px 14px);
    }

    .step {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 18px;
        text-align: start;
    }

    .step-num {
        grid-row: span 2;
        margin: 0;
    }

    .step h3 {
        margin: 12px 0 6px;
    }

    .step p {
        max-width: none;
        margin: 0;
    }

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

    .foot-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 16px;
        --header-h: 72px;
    }

    .bar {
        width: calc(100% - 12px);
        height: 60px;
        gap: 10px;
        padding-inline: 10px;
    }

    .site-header.scrolled .bar,
    .site-header.menu-open .bar {
        height: 56px;
    }

    .bar-cta {
        display: none;
    }

    .brand {
        font-size: 1.15rem;
    }

    .brand-name {
        max-width: 52vw;
    }
}

@media (max-width: 640px) {
    .cards[class*="cols-"] {
        --cols: 1;
    }

    .card {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 16px;
        align-content: start;
        padding: 22px 20px 24px;
    }

    .card .icon-tile {
        grid-row: span 3;
        width: 52px;
        height: 52px;
        margin: 0;
        border-radius: 16px;
        font-size: 1.15rem;
    }

    .card h3 {
        margin: 2px 0 6px;
        font-size: 1.12rem;
    }

    .card>p,
    .card-list {
        grid-column: 2;
    }

    .feature-list,
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-btns .btn,
    .wa-card .btn {
        flex: 1 1 100%;
    }

    .about-badge {
        bottom: 14px;
        inset-inline-end: 14px;
        padding: 10px 16px;
    }

    .about-badge strong {
        font-size: 1.5rem;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .foot-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 20px;
    }

    .wa-float {
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .wa-float.right {
        right: 16px;
    }

    .wa-float.left {
        left: 16px;
    }
}

/* ---------- Reduced motion: everything still and visible ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }

    .js .rv {
        opacity: 1;
        transform: none;
    }
}
