/* =========================================================
   Sidal — one-page site
   Direction: tech company in the logo's colours.
   Black (wordmark) + green #28AD62 (mark) on white.
   Orange #FF7A1A is a small spark in the hero only: never on the green
   (same brightness, it vibrates) and never small text on white (2.6:1).
   Signature: 45° cut corners, from the logo's angular cuts.
   ========================================================= */

:root {
  --black: #000000;          /* logo wordmark */
  --text: #2B3230;           /* body copy on white */
  --muted: #5C6662;
  --green: #28AD62;          /* logo mark: fields, icons, accents on black */
  --green-button: #1F9152;    /* green buttons: a step darker so white text reads (4:1) */
  --green-hover: #1B7F47;
  --green-dark: #1B7F47;     /* green text/links/focus on white (AA) */
  --orange: #FF7A1A;         /* hero accent: shapes on white, anything on black */
  --white: #FFFFFF;
  --mist: #F3F5F4;
  --line: #E1E5E3;
  --line-dark: #2A2A2A;
  --on-black-muted: #A3ABA7;
  --error: #B3261E;

  --font-display: "Tajawal", Tahoma, sans-serif;
  --font-body:  "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;

  --animate-duration: .8s;   /* Animate.css */

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
  --cut: clamp(28px, 4vw, 56px);   /* size of the 45° corner cut */
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px */
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }   /* 32 → 48 */
h3 { font-size: 1.375rem; }                          /* 22 */

p { margin: 0; }

/* Icons are SVG files in assets/img used as masks, so their colour comes from background-color */
.service-icon,
.hero-mark,
.hero-bg-mark,
.contact-mark,
.ui-ai-icon,
.wa-icon,
.has-mark::before {
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.hero-mark,
.hero-bg-mark,
.contact-mark,
.has-mark::before { --icon: url("../img/sidal-icon.svg"); }
.icon-platforms { --icon: url("../img/icon-platforms.svg"); }
.icon-ai,
.ui-ai-icon { --icon: url("../img/icon-ai.svg"); }
.icon-web { --icon: url("../img/icon-web.svg"); }
.wa-icon { --icon: url("../img/icon-whatsapp.svg"); }

/* Section titles carry the logo mark beside them */
.has-mark { display: flex; align-items: center; gap: .3em; }
.has-mark::before {
  content: "";
  flex: none;
  width: .78em;
  height: .78em;
  background: var(--green);
}
#contact-title::before { background: var(--white); }

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.55em 1.5em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary { background: var(--green-button); color: var(--white); }
.btn-primary:hover { background: var(--green-hover); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #262626; }

.btn-sm { min-height: 42px; padding: 0.4em 1.15em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex: none; }
.brand img { width: 135px; height: 48px; }

.site-nav { display: flex; align-items: center; gap: 36px; }

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  display: block;
  padding-block: 6px;
  color: var(--black);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-nav ul a:hover { border-bottom-color: var(--green); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .site-nav ul a:hover { border-bottom-color: var(--line); color: var(--green-dark); }
  .site-nav .btn { margin-top: 20px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
}

/* Logo mark as a faint green texture, bottom right */
.hero-bg-mark {
  position: absolute;
  top: 20%;
  right: -11%;
  width: clamp(200px, 26vw, 340px);
  aspect-ratio: 1;
  background: rgba(40, 173, 98, .05);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  max-width: 11em;
  font-size: clamp(2.375rem, 1.1rem + 3.0vw, 3.75rem);   /* 38 → 68 */
  font-weight: 800;
  line-height: 1.3;
}

/* Orange marker under "ذكية" */
.hero-hl {
  padding-inline: .06em;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 100% 92% / 100% .28em;
}

.hero-lead {
  max-width: 32em;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: .9375rem;
}
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--green) url("../img/icon-check.svg?v=2") center / 18px no-repeat;
  border-radius: 2px;
}

/* A moment from a platform we'd build, on a green field.
   Sizes use container units so the composition scales as one piece. */

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
}

.hero-block {
  position: absolute;
  inset: 6% 6% 7% 7%;
  overflow: hidden;
  /* faint dot grid over a light-to-dark green, so the field isn't flat */
  background:
    radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(to bottom left, #36C574, var(--green) 50%, #1D8A4D);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

/* Logo mark as a quiet texture in the field */
.hero-mark {
  position: absolute;
  right: -12%;
  bottom: -16%;
  width: 62%;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, .14);
}

.ui {
  --ui-cut: 3cqw;
  position: absolute;
  clip-path: polygon(var(--ui-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--ui-cut));
}

/* Registrations card, inside the field */
.ui-dash {
  top: 13%;
  right: 13%;
  width: 56%;
  padding: 4.4cqw 4.8cqw 3.6cqw;
  background: var(--white);
}
.ui-label { color: var(--muted); font-size: 2.8cqw; font-weight: 500; line-height: 1.4; }
.ui-num {
  margin-top: .8cqw;
  color: var(--black);
  font-size: 9.5cqw;
  font-weight: 800;
  line-height: 1;
}
.ui-num span { color: var(--muted); font-size: 2.8cqw; font-weight: 500; }

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.6cqw;
  height: 15cqw;
  margin-top: 4cqw;
}
.ui-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  background: var(--green);
  transform-origin: bottom;
}
.ui-bars i:last-child { background: var(--orange); }   /* today */

.ui-days { display: flex; gap: 1.6cqw; margin-top: 1.2cqw; }
.ui-days span {
  flex: 1;
  color: var(--muted);
  font-size: 2.3cqw;
  line-height: 1;
  text-align: center;
}

/* AI assistant card, breaking out of the field */
.ui-chat {
  bottom: 0;
  left: 0;
  width: 64%;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 4cqw;
  background: var(--black);
}
.ui-chat-head {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  color: var(--green);
  font-size: 2.7cqw;
  font-weight: 700;
  line-height: 1;
}
.ui-ai-icon {
  flex: none;
  width: 3.6cqw;
  height: 3.6cqw;
  background: var(--orange);
}
/* "Live" dot at the far end of the assistant's header */
.ui-chat-head::after {
  content: "";
  flex: none;
  width: 1.5cqw;
  height: 1.5cqw;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--orange);
}

.ui-msg {
  --tail: 1.6cqw;
  max-width: 86%;
  padding: 1.8cqw 2.6cqw;
  font-size: 3cqw;
  font-weight: 500;
  line-height: 1.55;
}
/* Question from the user (left), answer from the assistant (right); the cut corner is the bubble's tail */
.ui-q {
  align-self: flex-end;
  background: #262626;
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--tail) 100%, 0 calc(100% - var(--tail)));
}
.ui-a {
  align-self: flex-start;
  background: var(--green);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tail)), calc(100% - var(--tail)) 100%, 0 100%);
}

/* Phone widths: larger cards and type, taller field so the cards don't collide */
@container (max-width: 440px) {
  .ui-dash { top: 10%; right: 10%; width: 68%; }
  .ui-chat { width: 76%; }
  .ui-label,
  .ui-num span { font-size: 3.5cqw; }
  .ui-num { font-size: 11cqw; }
  .ui-days span { font-size: 3cqw; }
  .ui-chat-head { font-size: 3.4cqw; }
  .ui-ai-icon { width: 4.4cqw; height: 4.4cqw; }
  .ui-msg { font-size: 3.7cqw; }
}

/* One load sequence: field, card, bars, then the question and its answer */
@media (prefers-reduced-motion: no-preference) {
  .hero-block { animation: block-in 1s cubic-bezier(.2, .7, .2, 1) both; }
  .ui-dash { animation: rise .8s .35s cubic-bezier(.2, .7, .2, 1) both; }
  .ui-bars i { animation: bar-grow .6s calc(.75s + var(--i) * .06s) cubic-bezier(.2, .7, .2, 1) both; }
  .ui-chat { animation: rise .8s 1s cubic-bezier(.2, .7, .2, 1) both; }
  .ui-q { animation: rise .5s 1.5s cubic-bezier(.2, .7, .2, 1) both; }
  .ui-a { animation: rise .5s 2.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-hl { animation: marker .7s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .ui-chat-head::after { animation: live 1.8s ease-out infinite; }
}
@keyframes marker {
  from { background-size: 0 .28em; }   /* draws in from the right */
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); }
  70%  { box-shadow: 0 0 0 1.6cqw rgba(255, 122, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}
@keyframes block-in {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bar-grow {
  from { transform: scaleY(0); }
}

/* Hero text: Animate.css fadeInUp, one line after another */
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(100%, 560px); justify-self: center; }
}
@media (max-width: 480px) {
  .hero-visual { aspect-ratio: 1 / 1.2; }
}

/* ---------- Clients ---------- */

.clients {
  padding-block: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.clients-title { margin-bottom: clamp(32px, 4vw, 48px); }

/* Logo row: the list holds the logos twice and slides by half its width, so the loop is seamless.
   Edges fade so logos slide in and out softly; hovering pauses it. */
.logo-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

.client-logos {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: logo-slide 45s linear infinite;
}
.logo-carousel:hover .client-logos { animation-play-state: paused; }

.client-logos li {
  flex: 0 0 auto;
  padding-inline: clamp(24px, 3.5vw, 44px);
}
.client-logos img {
  max-width: none;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .75;
}

@keyframes logo-slide {
  to { transform: translateX(50%); }   /* RTL: the row overflows to the left, so it moves right */
}

/* Reduced motion: no sliding; show each logo once, wrapped and centred */
@media (prefers-reduced-motion: reduce) {
  .logo-carousel { -webkit-mask-image: none; mask-image: none; }
  .client-logos {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 28px;
    width: auto;
    animation: none;
  }
  .client-logos li[aria-hidden="true"] { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 9vw, 120px); }

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

.section-black {
  background: var(--black);
  color: var(--white);
  clip-path: polygon(0 var(--cut), var(--cut) 0, 100% 0, 100% 100%, 0 100%);
}
.section-black h2,
.section-black h3 { color: var(--white); }
.section-black :focus-visible { outline-color: var(--green); }

.section-green {
  background: var(--green);
  color: var(--black);
  clip-path: polygon(0 var(--cut), var(--cut) 0, 100% 0, 100% 100%, 0 100%);
}
.section-green :focus-visible { outline-color: var(--black); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.1875rem;
}
.section-black .section-head p { color: var(--on-black-muted); }

/* Square green bullets */
.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.6;
}
.ticks li {
  position: relative;
  padding-inline-start: 20px;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  background: var(--green);
}

/* Logo-mark bullets instead of the squares.
   To go back to the squares, remove the "bullets-logo" class from <body> in index.html. */
.bullets-logo .ticks li { padding-inline-start: 26px; }
.bullets-logo .ticks li::before {
  top: .33em;
  width: 15px;
  height: 15px;
  -webkit-mask: url("../img/sidal-icon.svg") center / contain no-repeat;
  mask: url("../img/sidal-icon.svg") center / contain no-repeat;
}

/* Underlined text link: service requests, project links */
.text-link {
  align-self: flex-start;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.text-link:hover { color: var(--black); }
.section-black .text-link { color: var(--green); }
.section-black .text-link:hover { color: var(--white); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px clamp(20px, 3vw, 40px) 8px;
  border-inline-start: 1px solid var(--line-dark);
}
.service:first-child { border-inline-start: 0; padding-inline-start: 0; }
.service:last-child { padding-inline-end: 0; }

.service-icon {
  display: block;
  width: 48px;
  height: 48px;
  background: var(--green);
}
.service h3 { margin-top: 8px; font-size: 1.625rem; }
.service > p { color: var(--on-black-muted); }
.service .ticks { flex: 1; margin-top: 8px; color: var(--white); }
.service .text-link { margin-top: 8px; }

@media (max-width: 900px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service,
  .service:first-child,
  .service:last-child { padding: 36px 0; border-inline-start: 0; }
  .service + .service { border-top: 1px solid var(--line-dark); }
}

/* ---------- Work ---------- */

/* Site screenshot */
.shot {
  display: block;
  overflow: hidden;
  border: 1px solid #BFC7C3;   /* a step darker than --line so light screenshots keep their edge */
  border-radius: 6px;
  background: var(--mist);
}
.shot img {
  width: 100%;
  aspect-ratio: 1200 / 617;
  object-fit: cover;
  object-position: top;
  transition: transform .4s;
}
a.shot:hover img { transform: scale(1.02); }

/* Featured project */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.feature-body {
  order: -1;   /* text first (right), screenshot second, as in the hero */
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eyebrow { color: var(--green-dark); font-size: .9375rem; font-weight: 700; }
.feature h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.feature-body > p:not(.eyebrow) { color: var(--muted); }
.feature .ticks { margin-top: 4px; }
.feature .text-link { margin-top: 8px; }

/* Recent projects */
.recent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(24px, 3.5vw, 48px);
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
.recent li { display: flex; flex-direction: column; gap: 8px; }
.recent .shot { margin-bottom: 10px; }
.recent h3 { font-size: 1.25rem; }
.recent p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.recent .text-link { margin-top: auto; }
.recent .soon {
  align-self: flex-start;
  margin-top: auto;
  padding: 2px 10px;
  background: var(--mist);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
}

/* Earlier projects, as a compact list */
.projects-title {
  margin: clamp(64px, 8vw, 96px) 0 16px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.projects li {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.project-name {
  color: var(--black);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-align: right;
}
.project-type { margin-top: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

@media (max-width: 960px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-body { order: 0; }
}
@media (max-width: 600px) {
  .recent,
  .projects { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Process ---------- */

.steps {
  --steps-gap: clamp(24px, 4vw, 56px);
  --num: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--steps-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* line from the first number to the last */
.steps::before {
  content: "";
  position: absolute;
  top: calc(var(--num) / 2);
  inset-inline: calc(var(--num) / 2) calc((100% - 2 * var(--steps-gap)) / 3 - var(--num) / 2);
  height: 2px;
  background: var(--black);
}

.step { position: relative; }

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--num);
  height: var(--num);
  margin-bottom: 24px;
  background: var(--green);
  color: var(--white);
  font: 800 1.5rem/1 var(--font-display);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 22em; }

@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps::before {
    top: calc(var(--num) / 2);
    bottom: calc(var(--num) / 2);
    inset-inline: calc(var(--num) / 2 - 1px) auto;
    width: 2px;
    height: auto;
  }
  .step {
    display: grid;
    grid-template-columns: var(--num) minmax(0, 1fr);
    column-gap: 20px;
  }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; margin-top: 6px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* White text on the green field, with the logo mark as a faint texture */
.contact { position: relative; color: var(--white); }
.contact h2 { color: var(--white); }
.contact-grid { position: relative; }

.contact-mark {
  position: absolute;
  right: -10%;
  bottom: -12%;
  width: clamp(260px, 34vw, 460px);
  aspect-ratio: 1;
  background: rgba(0, 0, 0, .1);
  pointer-events: none;
}

.contact-lead {
  max-width: 28em;
  margin-top: 14px;
  color: rgba(255, 255, 255, .92);
  font-size: 1.1875rem;
}

.contact-list {
  display: grid;
  gap: 24px;
  margin: 40px 0 0;
}
.contact-list dt { color: rgba(255, 255, 255, .82); font-size: .9375rem; }
.contact-list dd {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin: 2px 0 0;
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 600;
}
.contact-list a {
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .45);
  transition: border-color .2s;
}
.contact-list a:hover { border-bottom-color: var(--white); }
.contact-note {
  max-width: 28em;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font-size: .9375rem;
  line-height: 1.7;
}
.contact-note a { color: var(--white); font-weight: 700; text-underline-offset: 5px; }

.contact-list .sub-link,
.contact-list .address { font-size: .9375rem; font-weight: 500; }

.request-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--white);
  color: var(--text);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
}
.request-form :focus-visible { outline-color: var(--green-dark); }

.field { display: grid; gap: 8px; }
.field label { color: var(--black); font-weight: 500; font-size: 1rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #8A948F;   /* 3:1 against white (WCAG 1.4.11) */
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--green-dark); }

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("../img/icon-chevron.svg");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

.field [aria-invalid="true"] { border-color: var(--error); }

.form-error { color: var(--error); font-size: .9375rem; }
.form-hint { color: var(--muted); font-size: .9375rem; text-align: center; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--black); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 32px;
  background: var(--black);
  color: var(--on-black-muted);
  font-size: .9375rem;
}
.site-footer :focus-visible { outline-color: var(--green); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-inner img { width: 170px; height: auto; }
.site-footer a { color: var(--white); text-underline-offset: 5px; }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  z-index: 60;
  inset-inline-end: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .22));
}
/* The cut-corner shape sits on a pseudo-element so the focus outline isn't clipped */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #25D366;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: background-color .2s;
}
.wa-float:hover::before { background: #1EBE5A; }
.wa-icon { width: 30px; height: 30px; background: currentColor; }

/* Keep the footer's last link clear of the button */
@media (min-width: 700px) {
  .footer-inner { padding-inline-end: calc(var(--gutter) + 72px); }
}

/* ---------- Scroll reveal (Animate.css) ---------- */

/* [data-animate] stays hidden until main.js adds the Animate.css classes */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate]:not(.animate__animated) { opacity: 0; }
}

/* Only the two Animate.css classes the page uses, so the CDN stylesheet is not needed */
.animate__animated { animation-duration: var(--animate-duration); animation-fill-mode: both; }
.animate__fadeInUp { animation-name: fadeInUp; }

/* Animate.css's fadeInUp travels 100% of the element's height; keep it light */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Turkish page (tr/, left-to-right) ---------- */

/* Tajawal has no ğ, ş, İ: the Turkish page loads Rubik instead */
html[lang="tr"] {
  --font-display: "Rubik", system-ui, "Segoe UI", sans-serif;
  --font-body: "Rubik", system-ui, "Segoe UI", sans-serif;
}
html[lang="tr"] body { line-height: 1.65; }

/* Mirror the parts written with physical left/right */
[dir="ltr"] .field select { background-position: right 16px center; }
[dir="ltr"] .project-name { text-align: left; }
/* Chat bubbles swap sides in LTR, so their tails swap too */
[dir="ltr"] .ui-q { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tail)), calc(100% - var(--tail)) 100%, 0 100%); }
[dir="ltr"] .ui-a { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--tail) 100%, 0 calc(100% - var(--tail))); }
/* The contact mark sits at right: -10%; RTL pages clip that side, LTR would scroll sideways */
[dir="ltr"] .contact { overflow-x: clip; }
