/* About Us (content/about.php). Scoped to .ab because the old theme's stylesheets are still on the page. Colors follow css/home.css. */
.ab { --ink: #0f172a; --muted: #5b6b7d; --line: #e3e8f0; --brand: #0b6b78; --dark: #0b2534; --mint: #5eead4; --soft: #e6f4f5; --ease: cubic-bezier(.2, .7, .2, 1); font-family: "Inter", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #f4f7f9; overflow-x: clip; }
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }
.ab a { text-decoration: none; }
.ab h1, .ab h2, .ab h3 { margin: 0; color: inherit; font-family: inherit; letter-spacing: 0; }
.ab h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; font-weight: 700; }
.ab h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.ab img { display: block; }
.ab p { margin: 0; }
.ab-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ab-sec { padding: 88px 0; scroll-margin-top: 60px; }
.ab-kicker { display: block; margin-bottom: 12px; color: var(--brand); font-size: 14px; font-weight: 700; }
.ab-head { max-width: 720px; margin-bottom: 38px; }

/* Buttons */
.ab-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 11px; font-size: 15.5px; font-weight: 700; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.ab-btn:hover { transform: translateY(-2px); }
.ab a.ab-btn-main { background: var(--mint); color: var(--dark); }
.ab a.ab-btn-main:hover { background: #99f6e4; color: var(--dark); }
.ab a.ab-btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.ab a.ab-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.ab a.ab-btn-line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ab a.ab-btn-line:hover { border-color: var(--brand); color: var(--brand); }
.ab a.ab-btn-wa { background: var(--brand); color: #fff; }
.ab a.ab-btn-wa:hover { background: #095965; color: #fff; }
.ab a.ab-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--brand); }
.ab a.ab-link i { transition: transform .2s var(--ease); }
.ab a.ab-link:hover i { transform: translateX(4px); }
.ab[dir="rtl"] a.ab-link:hover i { transform: scaleX(-1) translateX(4px); }

/* Hero */
.ab-hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 84px; background: radial-gradient(circle at 80% 15%, #12707d 0, transparent 48%), var(--dark); }
.ab-hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.ab-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mint); }
.ab-eyebrow i { width: 26px; height: 2px; background: var(--mint); }
.ab-hero h1 { margin-top: 16px; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.06; font-weight: 700; color: #fff; }
.ab-hero p { margin-top: 22px; max-width: 560px; font-size: 18px; line-height: 1.65; color: #c6d4de; }
.ab-hero-media { position: relative; justify-self: center; width: min(100%, 340px); }
.ab-phoneframe { aspect-ratio: 9 / 15; border-radius: 26px; overflow: hidden; background: #0a1c27; box-shadow: 0 36px 70px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14); }
.ab-phoneframe video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-float { position: absolute; display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-radius: 13px; background: #fff; color: var(--muted); font-size: 12.5px; line-height: 1.3; white-space: nowrap; box-shadow: 0 16px 34px rgba(0,0,0,.28); animation: ab-bob 6s ease-in-out infinite; }
.ab-float i { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: 15px; }
.ab-float b { display: block; color: var(--ink); font-size: 14px; }
.ab-float-a { top: 44px; inset-inline-start: -64px; }
.ab-float-b { bottom: 54px; inset-inline-end: -44px; animation-delay: -3s; }
@keyframes ab-bob { 50% { transform: translateY(-8px); } }

/* Entrance on load and on scroll. Only hidden when the script is running, so the page reads fine without it. */
.ab-rise { animation: ab-rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes ab-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.ab-js .ab-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.ab-js .ab-reveal.ab-in { opacity: 1; transform: none; }

/* Figures */
.ab-stats { position: relative; z-index: 1; margin-top: -38px; }
.ab-stats-in > * { min-width: 0; }
.ab-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1168px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.ab-stat { padding: 26px 24px; border-inline-start: 1px solid var(--line); }
.ab-stat:first-child { border-inline-start: 0; }
.ab-stat b { display: block; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 700; color: var(--brand); }
.ab[dir="rtl"] .ab-stat b { text-align: right; }
.ab-stat > span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Story */
.ab-story { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.ab-story-media { position: relative; padding-bottom: 60px; padding-inline-end: 70px; }
.ab-shot { margin: 0; border-radius: 18px; overflow: hidden; translate: 0 var(--y, 0); }
.ab-shot img { width: 100%; height: 100%; object-fit: cover; }
.ab-shot-main { aspect-ratio: 4 / 5; box-shadow: 0 24px 50px rgba(15,23,42,.16); }
.ab-shot-side { position: absolute; bottom: 0; inset-inline-end: 0; width: 44%; aspect-ratio: 3 / 4; border: 6px solid #f4f7f9; box-shadow: 0 20px 40px rgba(15,23,42,.2); }
.ab-story-copy h2 { margin-bottom: 20px; }
.ab-story-copy p { margin-bottom: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.ab-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.ab-checks li { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15.5px; }
.ab-checks i { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: 12px; }

/* Why */
.ab-why { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ab-js .ab-card.ab-reveal.ab-in { transition: opacity .8s var(--ease) var(--d, 0s), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.ab .ab-card.ab-in:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 18px 34px rgba(11,107,120,.12); }
.ab-card > i { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: var(--soft); color: var(--brand); font-size: 20px; }
.ab-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Bench photos */
.ab-bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 270px; gap: 14px; }
.ab-tile { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--dark); }
.ab-tile-tall { grid-row: span 2; }
.ab-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ab-tile:hover img { transform: scale(1.06); }
.ab-tile figcaption { position: absolute; inset: auto 0 0 0; padding: 44px 18px 16px; color: #dbe7ee; font-size: 13.5px; line-height: 1.4; background: linear-gradient(transparent, rgba(6,20,29,.86)); }
.ab-tile figcaption b { display: block; color: #fff; font-size: 16px; font-weight: 700; }
.ab-services { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ab-services h3 { margin-bottom: 12px; }
.ab-services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; }
.ab-services > div:first-child ul { grid-template-columns: 1fr 1fr; }
.ab-services li { position: relative; padding-inline-start: 16px; }
.ab-services li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.ab-services-cta p { margin-bottom: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Steps */
.ab-journey { padding-top: 0; }
.ab-stepswrap { position: relative; max-width: 760px; }
.ab-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.ab-line { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 21px; width: 2px; background: var(--line); }
.ab .ab-line span { display: block; height: 100%; background: var(--brand); transform: scaleY(0); transform-origin: top; }
.ab-steps li { position: relative; display: flex; gap: 22px; align-items: flex-start; }
.ab-steps b { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 16px; box-shadow: 0 0 0 6px #f4f7f9; }
.ab-steps h3 { font-size: 20px; margin-top: 8px; }
.ab-steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* Promise */
.ab-promise { padding: 88px 0; overflow: hidden; color: #fff; background: radial-gradient(circle at 12% 90%, #12707d 0, transparent 45%), var(--dark); }
.ab-promise-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.ab-promise .ab-kicker { color: var(--mint); }
.ab-promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; }
.ab-promise-grid i.fa-shield, .ab-promise-grid i.fa-tag { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: rgba(94,234,212,.14); color: var(--mint); font-size: 19px; }
.ab-promise-grid p { margin: 8px 0 14px; color: #c6d4de; font-size: 15px; line-height: 1.65; }
.ab-promise a.ab-link { color: var(--mint); }
.ab-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-pills li { padding: 6px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.ab-promise-img { margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; translate: 0 var(--y, 0); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.ab-promise-img img { width: 100%; height: 100%; object-fit: cover; }

/* Visit */
.ab-visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ab-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--dark); cursor: pointer; }
.ab-video img { width: 100%; height: 100%; object-fit: cover; }
.ab-video span { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--dark); font-size: 24px; transition: transform .25s var(--ease); }
.ab-video span i { margin-left: 4px; }
.ab-video:hover span { transform: scale(1.1); }
.ab-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.ab-visit-copy > p { display: flex; gap: 11px; margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.ab-visit-copy > p i { margin-top: 5px; color: var(--brand); }

/* Closing */
.ab-final { padding: 72px 0; text-align: center; color: #fff; background: linear-gradient(120deg, #075e69, #0b3b5c); }
.ab-final p { margin-top: 12px; color: #d3e3ea; font-size: 17px; }
.ab-final .ab-cta { justify-content: center; }

/* Arabic */
.ab[dir="rtl"] { font-family: "Rubik", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; }
.ab[dir="rtl"] .fa-arrow-right { transform: scaleX(-1); }

/* Extra motion */
.ab-hero::before, .ab-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: ab-drift 16s ease-in-out infinite alternate; }
.ab-hero::before { width: 420px; height: 420px; top: -120px; inset-inline-start: -100px; background: rgba(94,234,212,.18); }
.ab-hero::after { width: 360px; height: 360px; bottom: -160px; inset-inline-end: 8%; background: rgba(18,112,125,.55); animation-duration: 20s; animation-direction: alternate-reverse; }
@keyframes ab-drift { to { transform: translate(80px, 50px) scale(1.15); } }
.ab-hero-in { position: relative; z-index: 1; }
.ab-eyebrow i { animation: ab-grow 1s var(--ease) .3s both; transform-origin: left; }
.ab[dir="rtl"] .ab-eyebrow i { transform-origin: right; }
@keyframes ab-grow { from { transform: scaleX(0); } }
.ab-hero-media::before { content: ""; position: absolute; inset: 8% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(94,234,212,.35), transparent); animation: ab-glow 5s ease-in-out infinite; }
@keyframes ab-glow { 50% { opacity: .45; transform: scale(.9); } }
.ab a.ab-btn-main { position: relative; overflow: hidden; }
.ab a.ab-btn-main::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: ab-shine 4.5s ease-in-out 1.2s infinite; }
@keyframes ab-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Photos wipe open and settle */
/* Clip the image, not the observed figure: a fully clipped target never reports as intersecting. */
.ab-js .ab-shot.ab-reveal, .ab-js .ab-tile.ab-reveal, .ab-js .ab-promise-img.ab-reveal { opacity: 1; transform: none; }
.ab-js .ab-shot.ab-reveal img, .ab-js .ab-tile.ab-reveal img, .ab-js .ab-promise-img.ab-reveal img { transition: clip-path 1.1s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.ab-js .ab-reveal:not(.ab-in) img { clip-path: inset(100% 0 0 0); transform: scale(1.18); }

/* Staggered details */
.ab-js .ab-card > i { opacity: 0; transform: scale(.4) rotate(-25deg); transition: opacity .6s var(--ease), transform .6s cubic-bezier(.3, 1.6, .5, 1), background .3s, color .3s; transition-delay: calc(var(--d, 0s) + .25s), calc(var(--d, 0s) + .25s), 0s, 0s; }
.ab-js .ab-card.ab-in > i { opacity: 1; transform: none; }
.ab .ab-card:hover > i { background: var(--brand); color: #fff; }
.ab-js .ab-checks li, .ab-js .ab-services li, .ab-js .ab-pills li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ab-js .ab-in .ab-pills li, .ab-js .ab-checks.ab-in li, .ab-js .ab-services.ab-in li { opacity: 1; transform: none; }
.ab-checks li:nth-child(2), .ab-services li:nth-child(2), .ab-pills li:nth-child(2) { transition-delay: .12s; }
.ab-checks li:nth-child(3), .ab-services li:nth-child(3), .ab-pills li:nth-child(3) { transition-delay: .24s; }
.ab-services li:nth-child(4) { transition-delay: .36s; }
.ab-services li:nth-child(5) { transition-delay: .48s; }
.ab-services li:nth-child(6) { transition-delay: .6s; }
.ab-steps b { transition: background .4s; }
.ab-steps li.ab-on b { background: var(--brand); animation: ab-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ab-pop { 50% { transform: scale(1.2); } }
.ab-video span::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: ab-ping 2.2s ease-out infinite; }
@keyframes ab-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.ab-final { background: linear-gradient(120deg, #075e69, #0b3b5c, #0b6b78, #075e69); background-size: 300% 300%; animation: ab-flow 14s ease-in-out infinite alternate; }
@keyframes ab-flow { to { background-position: 100% 50%; } }

@media (max-width: 980px) {
  .ab-sec, .ab-promise { padding: 64px 0; }
  .ab-hero { padding: 48px 0 76px; }
  .ab-hero-in, .ab-story, .ab-promise-in, .ab-visit { grid-template-columns: 1fr; gap: 44px; }
  .ab-float-a { inset-inline-start: -40px; }
  .ab-float-b { inset-inline-end: -40px; }
  .ab-stats-in { grid-template-columns: 1fr 1fr; margin-inline: 16px; }
  .ab-stat:nth-child(odd) { border-inline-start: 0; }
  .ab-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-cards { grid-template-columns: 1fr 1fr; }
  .ab-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .ab-tile-tall { grid-column: span 2; grid-row: span 1; }
  .ab-services { grid-template-columns: 1fr 1fr; }
  .ab-services > div:first-child { grid-column: span 2; }
  .ab-promise-img { aspect-ratio: 16 / 10; }
  .ab-story-media { max-width: 520px; }
}
@media (max-width: 600px) {
  .ab-hero p { font-size: 16px; }
  .ab-cta .ab-btn { flex: 1 1 100%; }
  .ab-hero-media { width: min(100%, 270px); }
  .ab-float { padding: 8px 11px; font-size: 11.5px; }
  .ab-float i { width: 28px; height: 28px; font-size: 13px; }
  .ab-float b { font-size: 12.5px; }
  .ab-float-a { inset-inline-start: -14px; top: 24px; }
  .ab-float-b { inset-inline-end: -14px; bottom: 30px; }
  .ab-stat { padding: 20px 16px; }
  .ab-cards, .ab-promise-grid, .ab-services { grid-template-columns: 1fr; }
  .ab-services > div:first-child { grid-column: auto; }
  .ab-bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .ab-tile-tall { grid-column: auto; }
  .ab-story-media { padding-inline-end: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab *, .ab *::before, .ab *::after { animation: none !important; transition: none !important; }
  .ab-js .ab-reveal { opacity: 1; transform: none; clip-path: none !important; }
}
