/* Teriaqi website — one stylesheet for Arabic (RTL) and English (LTR).
   Uses logical properties (inline-start/end) so both directions share every rule. */

/* Colours taken from the 2026 company profile:
   forest #2E6B2A (headings, flag green), accent #3C7E18 (profile corner shapes), leaf #92BC5C (logo) */
:root {
  --green: #2E6B2A;
  --green-dark: #24562A;
  --green-mid: #2E6B2A;
  --accent: #3C7E18;
  --leaf: #92BC5C;
  --leaf-ink: #2E6B2A;
  --grad: linear-gradient(120deg, #24492D 0%, #2D5E31 55%, #3A7333 100%);
  --ink: #22301F;
  --heading: #1F2B24;
  --muted: #4D5A4F;
  --line: #E4E6DF;
  --mist: #F6F6F2;
  --mist-2: #FAFAF7;
  --white: #FFFFFF;
  --amber-bg: #FFF6E5; --amber-ink: #6B4A00; --amber-line: #F0D9A8;
  --red-bg: #FDECEA;   --red-ink: #7A1C14;   --red-line: #F3C4BF;
  --ok-bg: #E7F4EC;    --ok-ink: #14532D;
  --footer: #33423A;
  /* Saudi heritage motifs, kept faint:
     Sadu — the diamond weave of Bedouin tent textiles; Najdi — the stepped triangles on Najdi mud-brick walls */
  --sadu-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.045' stroke-width='1.4'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 15 41 28 28 41 15 28Z'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' fill-opacity='.04'%3E%3Cpath d='M26 26h4v4h-4zM0 0h7L0 7zM56 0h-7l7 7zM0 56h7l-7-7zM56 56h-7l7-7z'/%3E%3C/g%3E%3C/svg%3E");
  --sadu-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%236B7064' stroke-opacity='.05' stroke-width='1.4'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 15 41 28 28 41 15 28Z'/%3E%3C/g%3E%3Cg fill='%236B7064' fill-opacity='.04'%3E%3Cpath d='M26 26h4v4h-4zM0 0h7L0 7zM56 0h-7l7 7zM0 56h7l-7-7zM56 56h-7l7-7z'/%3E%3C/g%3E%3C/svg%3E");
  --najdi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 7 7h2V5h2l3-5 3 5h2v2h2l7 7Z' fill='%2392BC5C'/%3E%3C/svg%3E");
  --radius: 12px;
  --font: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --wrap: 1216px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heading); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto; padding-inline: 32px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }

.eyebrow { font-size: 17px; font-weight: 700; color: var(--accent); }
.section { padding-block: 72px; }
.section-alt { background: var(--sadu-light), var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-block-end: 36px; max-width: 820px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; color: var(--heading); }
/* Short gradient rule under section titles, as in the profile */
.section-head h2::after, .row-head h2::after, .overview h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; margin-block-start: 14px;
  background: linear-gradient(90deg, var(--accent), var(--leaf));
}
.section-head p { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-leaf { background: var(--leaf); color: var(--leaf-ink); }
.btn-leaf:hover { background: #A3CA70; color: var(--leaf-ink); }
.btn-green { background: var(--grad); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--heading); color: var(--heading); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* Header */
.site-header { background: var(--white); border-block-end: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand img { height: 70px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding-block: 10px; border-block-end: 2px solid transparent; }
.main-nav ul a:hover { color: var(--heading); }
.main-nav ul a[aria-current="page"] { color: var(--accent); border-block-end-color: var(--leaf); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--leaf); border-radius: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.nav-burger { display: none; }

/* Home hero */
.hero { background: var(--sadu-dark), var(--grad); color: var(--white); overflow: hidden; }
/* Full-bleed: text aligns with the page column, the photo runs to the screen edge */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.hero-text { padding-block: 40px; padding-inline-start: max(32px, calc((100vw - var(--wrap)) / 2)); padding-inline-end: 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero-text .eyebrow { color: var(--leaf); font-size: 15px; letter-spacing: .06em; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.hero p.lead { color: #E3EDDD; font-size: 19px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 6px; }
/* Riyadh skyline from the profile, blended into the green on its inner edge */
.hero-art { position: relative; aspect-ratio: 567 / 530; max-width: 100%; align-self: stretch; background: url(../images/riyadh-map.jpg) center / cover no-repeat; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #2D5E31 0%, rgba(45,94,49,0) 14%); }
[dir="rtl"] .hero-art::before { background: linear-gradient(to left, #2D5E31 0%, rgba(45,94,49,0) 14%); }
.hero-art::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }

/* Stats */
.stats { background: var(--mist); position: relative; }

.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding-block: 44px 52px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
/* Icon tile over each figure: soft-3D gradient tile with a white/gold drawing */
.stat .stat-icon { position: relative; display: flex; flex: 0 0 auto; line-height: 0; width: 70px; height: 70px; border-radius: 22px; margin-block-end: 14px; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #86C653 0%, #4C9424 52%, #2E6B2A 100%);
  box-shadow: 0 16px 26px -14px rgba(46,107,42,.75), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -6px 12px rgba(20,60,20,.18); overflow: hidden; }
.stat .stat-icon::before { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)); border-radius: 22px 22px 40% 40%; }
.stat .stat-icon svg { position: relative; width: 44px; height: 44px; filter: drop-shadow(0 2px 2px rgba(20,60,20,.25)); }
.stat:nth-child(3n+2) .stat-icon { background: linear-gradient(145deg, #9AD06A 0%, #5EA331 55%, #3A7A1E 100%); }
.stat:nth-child(3n) .stat-icon { background: linear-gradient(145deg, #6DB33F 0%, #3F8419 50%, #24562A 100%); }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.stat strong { display: block; font-size: 38px; font-weight: 800; color: var(--heading); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat strong.word { font-size: 28px; padding-block-start: 6px; }
.stat span { font-size: 15px; color: var(--muted); line-height: 1.55; display: block; }

/* Overview: KAFD photo running to the screen edge and dissolving into the page on its inner edge */
.overview-band { position: relative; overflow: hidden; min-height: 580px; display: flex; align-items: center; padding-block: 72px; background: var(--white); }
.band-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: 60%;
  background: url(../images/kafd.jpg) 60% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect; }
[dir="rtl"] .band-art {
  background-position: 40% center;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 38%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to left, transparent 0%, #000 38%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%); }
.overview-band .wrap { position: relative; z-index: 1; }
.overview-band .overview-body { max-width: 520px; }
.overview-band h2 { font-size: 38px; font-weight: 800; color: var(--heading); }
.overview-band h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; margin-block-start: 14px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.overview h2 { font-size: 38px; font-weight: 800; color: var(--heading); }
.overview-body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.overview-body p { font-size: 19px; color: var(--muted); }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }
.overview .photo { aspect-ratio: 416 / 540; max-width: 100%; }

/* Cards */
.card-grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card .num { font-size: 34px; font-weight: 800; color: var(--leaf); line-height: 1; font-variant-numeric: tabular-nums; }
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }
.card h3 { font-size: 20px; font-weight: 800; color: var(--heading); }
.card p { font-size: 15.5px; color: var(--muted); }
.section-alt .card { background: var(--white); }

/* Therapeutic areas, as in the company profile: white card, round photo, icon badge overlapping the top,
   and a green arc hugging the lower half of the photo */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 28px; padding-block-start: 34px; max-width: 1040px; margin-inline: auto; }
.area-card { background: var(--white); border-radius: 18px; box-shadow: 0 10px 28px rgba(46,107,42, .08); padding: 0 18px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.area-visual { position: relative; width: 100%; max-width: 196px; aspect-ratio: 1; margin-block: 0 14px; }
.area-photo { position: absolute; inset: 14px 6px 0; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--leaf), var(--green)); box-shadow: 0 0 0 5px var(--white); }
.area-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
/* the arc: a ring showing only its lower-left quarter, like the profile */
.area-visual::before { content: ""; position: absolute; inset: 6px -4px -8px; border-radius: 50%; border: 4px solid transparent; border-bottom-color: var(--accent); border-left-color: var(--heading); transform: rotate(-12deg); }
[dir="rtl"] .area-visual::before { border-left-color: transparent; border-right-color: var(--heading); transform: rotate(12deg); }
.area-badge { position: absolute; z-index: 2; top: -34px; left: 50%; transform: translateX(-50%); width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 0 0 5px var(--white), 0 6px 14px rgba(46,107,42, .18); }
.area-badge.tone-dark { background: #2E6B2A; }
.area-badge.tone-mid  { background: #5F8A49; }
.area-badge.tone-leaf { background: #7FAE47; }
.area-badge.tone-pale { background: #A3C48A; }
.area-card h3 { font-size: 21px; font-weight: 800; color: var(--heading); line-height: 1.3; }
.area-card h3::after { content: ""; display: block; width: 34px; height: 3px; border-radius: 2px; margin: 10px auto 2px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }
.area-card .area-sub { font-size: 14px; font-weight: 700; color: var(--accent); margin-block-start: -4px; }
.area-card p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Logo strip */
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin-inline: auto; }
.logo-box { height: 104px; background: var(--white); border: 1px solid #E6ECE8; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logo-box img { max-height: 72px; width: auto; object-fit: contain; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 28px; }
.row-head h2 { font-size: 36px; font-weight: 800; }
.link-arrow { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* CTA band: skyline photo under the profile gradient */
.cta { color: var(--white);
  background: var(--sadu-dark), linear-gradient(120deg, rgba(36,73,45,.95) 0%, rgba(45,94,49,.9) 50%, rgba(58,115,51,.72) 100%), url(../images/riyadh-flag.jpg) center 35% / cover no-repeat; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 80px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta p { color: #E3EDDD; font-size: 18px; max-width: 760px; margin-block-start: 12px; }

/* Inner page banner: Riyadh skyline with the green fading in from the text side */
/* Profile gradient with the Riyadh photo as a panel on the far side, faded on its inner edge */
.page-banner { color: var(--white); position: relative; overflow: hidden; background: var(--sadu-dark), var(--grad); }
.banner-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: 44%; background: url(../images/riyadh-flag.jpg) center 52% / cover no-repeat; }
.banner-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #2D5E31 0%, rgba(45,94,49,.6) 30%, rgba(45,94,49,0) 70%); }
[dir="rtl"] .banner-art::before { background: linear-gradient(to left, #2D5E31 0%, rgba(45,94,49,.6) 30%, rgba(45,94,49,0) 70%); }
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner { border-block-end: 6px solid; border-image: linear-gradient(90deg, var(--accent), var(--leaf)) 1; }
.page-banner .wrap { min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.page-banner h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.crumbs { font-size: 16px; font-weight: 600; color: #D7E7CC; }
.crumbs a { color: var(--white); text-decoration: none; }

/* About */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; }
.about-intro .text { display: flex; flex-direction: column; gap: 18px; }
.about-intro h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.about-intro p { color: var(--muted); }
.about-intro img { border-radius: var(--radius); width: 100%; }
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vm { border-radius: var(--radius); padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.vm-vision { background: var(--sadu-dark), var(--grad); color: var(--white); }
.vm-vision .label { color: var(--leaf); }
.vm-mission { background: var(--white); border: 1px solid var(--line); }
.vm-mission .label { color: var(--heading); }
.vm .label { font-size: 18px; font-weight: 700; }
.vm blockquote { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.85; }
.vm cite { font-style: normal; font-weight: 700; color: #E4F0EB; }
.value-card { border-top: 4px solid var(--leaf); background: var(--mist-2); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.value-card h3 { font-size: 21px; font-weight: 800; color: var(--heading); }
.value-card p { font-size: 15.5px; color: var(--muted); }

/* "Our story" as a journey: a winding road with a stop for each milestone, text underneath */
.journey { position: relative; }
.journey-map { position: relative; aspect-ratio: 1000 / 180; margin-block-end: 26px; }
.journey-road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .journey-road { transform: scaleX(-1); }
.jr-shadow { fill: none; stroke: #2E6B2A; stroke-opacity: .08; stroke-width: 30; vector-effect: non-scaling-stroke; transform: translateY(6px); }
.jr-base { fill: none; stroke: #E6E8E1; stroke-width: 22; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.jr-lane { fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-dasharray: 10 10; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: jr-drive 1.4s linear infinite; }
.jr-progress { fill: none; stroke: #7CC04A; stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; }
.rv-on .journey-map:not(.in) .jr-progress { stroke-dashoffset: 1; }
.rv-on .journey-map.in .jr-progress { animation: art-draw 2.6s ease-out both; }
.jr-stop { position: absolute; z-index: 1; width: 62px; height: 62px; margin-inline-start: -31px; margin-block-start: -31px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF;
  background: linear-gradient(145deg, #86C653, #3F8419 55%, #2E6B2A); border: 4px solid #FFFFFF; box-shadow: 0 12px 22px -10px rgba(46,107,42,.7); }
.jr-stop.is-now { width: 74px; height: 74px; margin-inline-start: -37px; margin-block-start: -37px; background: linear-gradient(145deg, #F8E3A0, #D9B256 55%, #A8822F); box-shadow: 0 12px 24px -10px rgba(168,130,47,.8), 0 0 0 8px rgba(217,178,86,.18); }
.jr-stop.is-now svg { width: 32px; height: 32px; }
.journey-map .jr-stop { animation: art-float 5s ease-in-out infinite; }
.journey-map .jr-stop:nth-of-type(2n) { animation-delay: -2.5s; }
.jr-stop-inline { display: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; padding: 18px 14px 20px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 14px; }
.timeline li::before { content: ""; position: absolute; top: -9px; inset-inline-start: 50%; width: 16px; height: 16px; margin-inline-start: -8px; background: inherit; border-inline-start: 1px solid var(--line); border-block-start: 1px solid var(--line); transform: rotate(45deg); background: #FFFFFF; }
[dir="rtl"] .timeline li::before { transform: rotate(-45deg); }
.timeline li:last-child { border-color: #E8D49A; background: #FFFCF2; }
.timeline li:last-child::before { background: #FFFCF2; border-color: #E8D49A; }
.timeline .year { font-size: 28px; font-weight: 800; color: var(--heading); line-height: 1.2; }
.timeline li:last-child .year { color: #A8822F; }
.timeline h3 { font-size: 18px; font-weight: 700; }
.timeline p { font-size: 15px; color: var(--muted); }

/* Partners */
.partner-group + .partner-group { margin-block-start: 52px; }
.partner-group h2 { font-size: 26px; font-weight: 800; margin-block-end: 22px; }
.partner-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; font: inherit; color: inherit; text-align: start; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.partner-card:hover { transform: translateY(-3px); border-color: var(--leaf); box-shadow: 0 14px 30px -18px rgba(46,107,42,.45); }
.partner-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.partner-card .logo-box { margin-block-end: 10px; }
.partner-card .pc-name { font-size: 18px; font-weight: 800; color: var(--heading); line-height: 1.4; text-align: start; }
.partner-card .country { font-size: 14.5px; color: var(--muted); }
.partner-card .area { font-size: 14.5px; font-weight: 700; color: var(--heading); }
.partner-card .pc-more { margin-block-start: auto; padding-block-start: 12px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.partner-card:hover .pc-more { text-decoration: underline; }
a.logo-box { transition: border-color .2s, box-shadow .2s; }
a.logo-box:hover { border-color: var(--leaf); box-shadow: 0 10px 24px -16px rgba(46,107,42,.45); }

/* Partner pop-up */
.pmodal { border: 0; padding: 0; background: transparent; width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: visible; color: var(--ink); }
.pmodal::backdrop { background: rgba(14, 32, 22, .62); backdrop-filter: blur(3px); }
.pmodal[open] { animation: pm-in .22s ease-out; }
@keyframes pm-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.pm-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--white); border-radius: 16px; overflow: hidden; max-height: calc(100dvh - 40px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.5); }
.pm-media { position: relative; background: var(--mist); min-height: 360px; display: flex; align-items: center; justify-content: center; }
.pm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-media.is-empty { background: var(--grad); }
.pm-media-logo { background: var(--white); border-radius: 14px; padding: 26px 30px; display: flex; align-items: center; justify-content: center; width: min(78%, 300px); min-height: 150px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.pm-media-logo img { max-width: 100%; height: auto; object-fit: contain; }
.pm-body { padding: 34px 34px 30px; overflow-y: auto; }
.pm-cat { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.pm-body h3 { margin: 2px 0 6px; font-size: 26px; font-weight: 800; color: var(--heading); line-height: 1.3; text-align: start; }
.pm-meta { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-meta span { font-size: 13.5px; font-weight: 700; background: var(--mist); color: var(--heading); border-radius: 999px; padding: 3px 12px; }
.pm-about { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.pm-body h4 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--heading); }
.pm-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-products li { position: relative; padding-inline-start: 22px; font-size: 15.5px; line-height: 1.6; }
.pm-products li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 9px; height: 9px; background: var(--leaf); transform: rotate(45deg); border-radius: 2px; }
.pm-site { display: inline-flex; align-items: center; margin-block-start: 20px; min-height: 44px; padding: 0 20px; border-radius: 8px; background: var(--grad); color: var(--white); font-weight: 700; text-decoration: none; }
.pm-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--heading); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.pm-close:hover { background: var(--mist); }
.pm-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .pm-card { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .pm-media { min-height: 200px; }
  .pm-media img { max-height: 260px; }
  .pm-body { padding: 24px 20px 24px; overflow: visible; }
  .pm-body h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pmodal[open] { animation: none; } .partner-card { transition: none; } }

/* Steps */
.step { flex-direction: row; gap: 18px; align-items: flex-start; }
.step .badge { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--grad); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.step h3 { color: var(--ink); font-size: 18px; }
.step > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Two-column page layouts */
.split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.panel { background: var(--mist-2); border: 1px solid #E3EAE6; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.panel-green { background: var(--sadu-dark), var(--grad); border-color: transparent; color: var(--white); overflow: hidden; }
.panel-green p { color: #E3EDDD; }
.panel-photo { margin: -36px -36px 4px; aspect-ratio: 567 / 530; overflow: hidden; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.intro-split .photo { aspect-ratio: 416 / 540; max-height: 520px; justify-self: center; }
.panel h2 { font-size: 26px; font-weight: 800; }

.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--heading); }
.info-row strong { display: block; color: var(--heading); font-size: 15px; }
.info-row a, .info-row span { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }

.alert { border-radius: 10px; padding: 16px 20px; font-size: 16px; line-height: 1.8; }
.alert-amber { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); font-weight: 700; }
.alert-red { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); }
.alert-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.alert-box strong { color: var(--heading); }

/* Forms */
.form-card { background: var(--mist-2); border: 1px solid #E3EAE6; border-radius: var(--radius); padding: 36px; }
.form-card > h2 { font-size: 26px; font-weight: 800; margin-block-end: 6px; }
.form-card > p { color: var(--muted); margin-block-end: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 700; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid #C9D6CF; border-radius: 8px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: 14px; }
.req { color: #B3261E; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400 !important; }
.choice input, .consent input { width: 20px; height: 20px; accent-color: var(--heading); flex: 0 0 20px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; line-height: 1.8; }
.consent input { margin-block-start: 5px; }
.form-grid .btn { justify-self: start; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 14px 18px; margin-block-end: 18px; font-weight: 600; }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.err { background: var(--red-bg); color: var(--red-ink); }

/* Plain text page */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; color: var(--muted); }

/* Footer */
.site-footer { position: relative; background: var(--sadu-dark), linear-gradient(160deg, #33423A 0%, #3E5046 100%); color: #E3EDDD; margin-block-start: 0; border-block-start: 6px solid; border-image: linear-gradient(90deg, var(--accent), var(--leaf)) 1; }
/* Najdi stepped triangles, a faint row along the top of the footer */

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 44px; padding-block: 56px 40px; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 78px; width: auto; }
.footer-name { font-weight: 700; color: var(--white); margin-block-start: 14px; }
.footer-note { font-size: 13.5px; color: #B9C8B3; margin-block-start: 8px; line-height: 1.7; }
.site-footer h2 { font-size: 16px; font-weight: 800; color: var(--leaf); margin-block-end: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.site-footer a { color: #DCE7D5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-block-start: 1px solid rgba(146,188,92,.25); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px; font-size: 13.5px; color: #B9C8B3; }

.wa-float { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); z-index: 30; }
.wa-float:hover { color: var(--white); background: #1EBE5B; }

/* Laptop widths: equal columns keep the photo as tall as the text */
@media (max-width: 1280px) and (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
  .hero p.lead { font-size: 17px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .stat + .stat { border-inline-start: 0; padding-inline-start: 0; }
  .main-nav ul { gap: 18px; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-5, .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-grid { row-gap: 56px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-map { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline-start: 46px; }
  .timeline::before { content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 18px; width: 14px; border-radius: 7px; background: #E6E8E1; }
  .timeline::after { content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 24px; width: 2px; background: repeating-linear-gradient(180deg, #FFFFFF 0 8px, transparent 8px 16px); }
  .timeline li { text-align: start; align-items: flex-start; margin-block-end: 18px; padding-inline-start: 20px; }
  .timeline li::before { display: none; }
  .jr-stop-inline { display: flex; position: absolute; inset-inline-start: -45px; top: 14px; width: 48px; height: 48px; margin: 0; }
  .jr-stop-inline.is-now { width: 52px; height: 52px; margin: 0; inset-inline-start: -47px; }
  .jr-stop-inline svg { width: 22px; height: 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Collapse the menu */
@media (max-width: 1060px) {
  .nav-disclosure-ready .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; cursor: pointer; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); }
  .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-disclosure-ready .main-nav { display: none; position: absolute; inset-inline: 0; top: 100%; max-height: calc(100dvh - 92px); overflow-y: auto; background: var(--white); border-block-end: 1px solid var(--line); padding: 8px 32px 20px; }
  .nav-disclosure-ready .nav-burger[aria-expanded="true"] + .main-nav { display: flex; }
  html:not(.nav-disclosure-ready) .header-row { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding-block: 12px; border-block-end: 1px solid var(--line); }
  .main-nav ul a[aria-current="page"] { border-block-end-color: var(--line); }
  .nav-actions { padding-block-start: 16px; }
  .hero-grid, .about-intro, .split, .overview, .vm-grid, .intro-split { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-block: 56px; padding-inline-end: 0; }
  .hero-text { padding-inline: 32px; }
  .banner-art { width: 100%; opacity: .35; }
  .hero-art { width: 100%; }
  /* Phones and tablets: the photo sits above the text and fades into it from below */
  .overview-band { display: block; min-height: 0; padding-block: 0 52px; }
  .band-art, [dir="rtl"] .band-art { position: relative; width: 100%; aspect-ratio: 16 / 9; background-position: center;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .overview-band .overview-body { max-width: none; margin-block-start: -12px; }
  .hero-art::before, [dir="rtl"] .hero-art::before { background: linear-gradient(to bottom, #2D5E31 0%, rgba(45,94,49,0) 30%); }
  .overview .photo, .intro-split .photo { width: 100%; max-width: 420px; justify-self: center; }
  .overview { gap: 18px; }
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .main-nav { padding-inline: 16px; }
  .header-row { min-height: 76px; }
  .brand img { height: 54px; }
  .section { padding-block: 52px; }
  .hero-text { padding-inline: 16px; }
  .panel-photo { margin: -24px -24px 4px; }
  .stats-grid, .cols-5, .cols-4, .logo-grid, .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid { gap: 48px 14px; }
  .area-card { padding: 0 10px 20px; }
  .area-card h3 { font-size: 18px; }
  .stat strong { font-size: 30px; }
  .stat strong.word { font-size: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card, .panel, .vm { padding: 24px; }
  .cta-row { padding-block: 48px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-banner .wrap { min-height: 160px; }
}
@media (max-width: 380px) {
  .cols-5, .cols-4, .area-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.pmodal:focus, .pmodal:focus-visible { outline: none; }

/* "Why Teriaqi?" statement (home) */
.diff-band { position: relative; overflow: hidden; background: var(--sadu-light), var(--mist); padding-block: 88px 96px; }
.diff-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.diff-head .eyebrow { margin: 0 0 10px; }
.diff-head h2 { margin: 0; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; line-height: 1.2; color: var(--heading); text-wrap: balance; }

.diff-lead { margin: 26px 0 0; padding-inline-start: 18px; border-inline-start: 4px solid var(--leaf); font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.6; color: var(--accent); }
.diff-body { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px 36px 30px; box-shadow: 0 22px 46px -32px rgba(46,107,42,.45); overflow: hidden; }
.diff-body::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--accent) 60%, #C9A24B); }
.diff-body p { margin: 0 0 16px; font-size: 17.5px; line-height: 1.85; color: var(--ink); }
.diff-foot { margin-block-start: 22px; padding-block-start: 20px; border-block-start: 1px solid var(--line); }
.diff-tagline { margin: 0 !important; font-size: 20px !important; font-weight: 800; color: var(--heading) !important; }
@media (max-width: 980px) {
  .diff-band { padding-block: 64px 72px; }
  .diff-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) { .diff-body { padding: 28px 20px 22px; } }
.diff-rosette { position: absolute; z-index: 0; width: 620px; height: 620px; inset-inline-end: -170px; top: 50%; margin-top: -310px; opacity: .22; pointer-events: none; }
.diff-rosette .ra-g { fill: none; stroke: #C9A24B; stroke-width: 1.4; }
.diff-rosette .ra-d { fill: none; stroke: #2E6B2A; stroke-opacity: .35; stroke-width: 1.2; }
.diff-rosette .ra-l { fill: none; stroke: #3C7E18; stroke-opacity: .45; stroke-width: 1.2; }
.diff-rosette .ra-gf { fill: #C9A24B; }
.diff-rosette .ra-lf { fill: #92BC5C; }
.diff-ornament { display: flex; align-items: center; gap: 7px; margin-block-start: 22px; }
.diff-ornament::before, .diff-ornament::after { content: ""; height: 2px; width: 34px; background: linear-gradient(90deg, transparent, #C9A24B); }
.diff-ornament::after { background: linear-gradient(90deg, #C9A24B, transparent); width: 80px; }
.diff-ornament i { width: 10px; height: 10px; transform: rotate(45deg); background: #C9A24B; border-radius: 1px; }
.diff-ornament i:nth-child(2) { width: 14px; height: 14px; background: var(--accent); }
.diff-ornament i:nth-child(3) { background: var(--leaf); }
.diff-foot { position: relative; }
.diff-tagline::before { content: ""; display: inline-block; width: 9px; height: 9px; background: #C9A24B; transform: rotate(45deg); margin-inline-end: 12px; vertical-align: middle; }
@media (max-width: 980px) { .diff-rosette { width: 420px; height: 420px; margin-top: 0; top: -120px; inset-inline-end: -150px; opacity: .16; } }
@media (prefers-reduced-motion: reduce) { .diff-rosette { animation: none; } }

/* Pillar illustrations */
.pillars-home { background: var(--sadu-light), var(--mist); padding-block-start: 8px; }
.pillars-home .section-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.pillar-card { padding-block-start: 0; transition: transform .2s, box-shadow .2s; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(46,107,42,.5); }
.pillar-art { margin-inline: -26px; margin-block-end: 6px; height: 180px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #F6F6F2 0%, #FFFFFF 100%); border-block-end: 1px solid var(--line); overflow: hidden; }
.pillar-art svg { width: 100%; max-width: 290px; height: 100%; overflow: visible; }
.pillar-art-field svg { width: 100%; height: 100%; }
.pillar-card .num { margin-block-start: 14px; }
@media (prefers-reduced-motion: reduce) { .pillar-card { transition: none; } }
.footer-bottom { padding-inline-end: 88px; }
.map-embed { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #EEF1EA; text-decoration: none; }
.map-art svg { display: block; width: 100%; height: 100%; }
.map-art .m-land { fill: #EDF0E8; }
.map-art .m-block { fill: #E2E7DC; }
.map-art .m-bld { fill: #D6DDCE; }
.map-art .m-park { fill: #CFE4B9; }
.map-art .m-main-c { stroke: #E2C878; stroke-width: 15; fill: none; }
.map-art .m-main { stroke: #F7E7B0; stroke-width: 12; fill: none; }
.map-art .m-street-c { stroke: #C9D3C2; stroke-width: 18; fill: none; }
.map-art .m-street { stroke: #FFFFFF; stroke-width: 15; fill: none; }
.map-art text { font-family: var(--font); }
.map-art .m-street-t { font-size: 10px; font-weight: 700; fill: #6B7A68; text-anchor: middle; }
.map-art .m-district { font-size: 15px; font-weight: 800; fill: #2E6B2A; fill-opacity: .55; text-anchor: middle; letter-spacing: .02em; }
.map-art .m-pulse { fill: #3C7E18; fill-opacity: .14; }
.map-art .m-dot { fill: #2E6B2A; stroke: #fff; stroke-width: 2; }
.map-art .m-pin { filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.map-art .m-tag { fill: #FFFFFF; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.map-art .m-tag-t { font-size: 12px; font-weight: 800; fill: #2E6B2A; text-anchor: middle; }
.map-open { position: absolute; inset-inline-end: 8px; bottom: 8px; background: #FFFFFF; color: var(--heading); font-size: 12.5px; font-weight: 700; line-height: 1; padding: 7px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
a.map-art:hover .map-open { background: var(--green); color: #FFFFFF; }
a.map-art:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.footer-map { height: 160px; margin-block-start: 14px; border: 1px solid rgba(255,255,255,.18); }
.contact-map { height: 240px; margin-block-start: 18px; border: 1px solid var(--line); }
.footer-contact { gap: 10px; }
.footer-contact .fc-row { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: #DCE7D5; }
.footer-contact .fc-row:hover { color: #FFFFFF; text-decoration: none; }
.footer-contact .fc-row:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.fc-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(146,188,92,.16); color: var(--leaf); margin-block-start: -3px; }
.fc-ic svg { width: 16px; height: 16px; }
.fc-ic.fc-wa { background: #25D366; color: #FFFFFF; }
.fc-row:hover .fc-ic { background: var(--leaf); color: var(--heading); }
.fc-row:hover .fc-ic.fc-wa { background: #1EBE5B; color: #FFFFFF; }
.fc-note { display: block; font-size: 12px; color: var(--leaf); margin-block-start: 1px; }

/* Heritage skyline at the top of the footer: Najdi mud-brick houses, fort towers and palms leading to today's Riyadh */
.skyline-wrap { position: relative; height: 140px; margin-block-end: -8px; overflow: hidden; pointer-events: none; }
.skyline { position: absolute; inset: 0; width: 100%; height: 100%; }
.skyline .sk-line { fill: none; stroke: #92BC5C; stroke-opacity: .55; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skyline .sk-detail { fill: none; stroke: #92BC5C; stroke-opacity: .3; stroke-width: 1.2; stroke-linejoin: round; }
.skyline .sk-gold { fill: none; stroke: #C9A24B; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rv-on .skyline .sk-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rv-on .skyline .sk-detail, .rv-on .skyline .sk-gold { opacity: 0; }
.rv-on .skyline.in .sk-line { animation: sk-draw 3.2s ease-out forwards; }
.rv-on .skyline.in .sk-detail { animation: sk-fade 1s ease-out 2.2s forwards; }
.rv-on .skyline.in .sk-gold { animation: sk-fade 1.2s ease-out 2.8s forwards; }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-fade { to { opacity: 1; } }

/* Gentle reveal while scrolling (only when JS runs; skipped for reduced motion) */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv { opacity: 1; transform: none; transition: none; }
  .rv-on .skyline .sk-line { stroke-dasharray: none; }
  .rv-on .skyline .sk-detail, .rv-on .skyline .sk-gold { opacity: 1; animation: none; }
}
@media (max-width: 600px) { .skyline-wrap { height: 80px; } }


/* Teriaq: the company character standing in the corner and "talking" in a speech bubble (replaces the WhatsApp bubble) */
.teriaq { position: fixed; inset-block-end: 0; inset-inline-end: 12px; z-index: 60; pointer-events: none; }
.teriaq-char { pointer-events: auto; display: block; width: 112px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; animation: teriaq-idle 4s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(20,46,33,.28)); }
.teriaq-char img { display: block; width: 100%; height: auto; }
.teriaq-char:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.teriaq.talking .teriaq-char { animation: teriaq-talk .42s ease-in-out infinite; }
.teriaq-bubble { pointer-events: auto; position: absolute; inset-block-end: 118px; inset-inline-end: 84px; width: min(320px, calc(100vw - 120px)); background: #FFFFFF; color: var(--ink); border-radius: 20px; padding: 14px 18px 16px; box-shadow: 0 22px 48px -18px rgba(20,46,33,.45); border: 1px solid var(--line); animation: teriaq-pop .3s ease-out; transform-origin: 100% 100%; }
[dir="rtl"] .teriaq-bubble { transform-origin: 0 100%; }
.teriaq-bubble::before { content: ""; position: absolute; inset-inline: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--green), var(--accent), #C9A24B); }
.teriaq-bubble::after { content: ""; position: absolute; inset-block-end: -9px; inset-inline-end: 22px; width: 18px; height: 18px; background: #FFFFFF; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); transform: rotate(45deg); }
[dir="rtl"] .teriaq-bubble::after { transform: rotate(-45deg); }
.teriaq-name { display: block; font-size: 15px; font-weight: 800; color: var(--accent); margin-block-end: 4px; padding-inline-end: 30px; }
.teriaq-msg { margin: 0; font-size: 15px; line-height: 1.85; white-space: pre-line; }
.teriaq.talking .teriaq-msg::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -2px; background: var(--accent); animation: teriaq-caret .8s steps(1) infinite; }
.teriaq-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--mist); color: var(--heading); font-size: 19px; line-height: 1; cursor: pointer; }
.teriaq-x:hover { background: #E3ECDA; }
@keyframes teriaq-idle { 50% { transform: translateY(-3px); } }
@keyframes teriaq-talk { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-1.6deg) translateY(-2px); } 65% { transform: rotate(1.2deg) translateY(-1px); } }
@keyframes teriaq-pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@keyframes teriaq-caret { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .teriaq-char { width: 78px; }
  .teriaq-bubble { inset-block-end: 88px; inset-inline-end: 50px; width: min(290px, calc(100vw - 70px)); }
}
@media (prefers-reduced-motion: reduce) { .teriaq-char, .teriaq.talking .teriaq-char, .teriaq-bubble { animation: none; } }

/* Small looping motions for the illustrations (all off for reduced motion) */
.a-float, .a-float-slow, .a-float-rev, .a-bob, .a-rock, .a-orbit, .a-twinkle, .a-ping, .a-grow { transform-box: fill-box; }
.a-float { animation: art-float 5s ease-in-out infinite; }
.a-float-slow { animation: art-float 7s ease-in-out infinite; }
.a-float-rev { animation: art-float 6s ease-in-out infinite reverse; }
.a-bob { animation: art-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.a-rock { animation: art-rock 4s ease-in-out infinite; transform-origin: 50% 50%; }
.a-orbit { animation: art-spin 14s linear infinite; transform-origin: 50% 50%; }
.a-twinkle { animation: art-twinkle 2.6s ease-in-out infinite; transform-origin: 50% 50%; }
.a-ping { animation: art-ping 2.4s ease-out infinite; transform-origin: 50% 50%; }
.a-route { animation: art-dash 1.6s linear infinite; }
.a-grow { transform-origin: 50% 100%; }
.rv-on .rv:not(.in) .a-grow { transform: scaleY(0); }
.rv-on .rv.in .a-grow { animation: art-grow .9s cubic-bezier(.2,.8,.2,1) both; }
.a-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.rv-on .rv:not(.in) .a-draw { stroke-dashoffset: 1; }
.rv-on .rv.in .a-draw { animation: art-draw 1.4s ease-out .5s both; }
@keyframes art-float { 50% { transform: translateY(-5px); } }
@keyframes art-bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes art-rock { 50% { transform: rotate(8deg); } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-twinkle { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes art-ping { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes art-dash { to { stroke-dashoffset: -14; } }
@keyframes art-grow { from { transform: scaleY(0); } }
@keyframes art-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .a-float, .a-float-slow, .a-float-rev, .a-bob, .a-rock, .a-orbit, .a-twinkle, .a-ping, .a-route, .rv.in .a-grow, .rv.in .a-draw { animation: none !important; }
  .a-ping { opacity: 0; }
}

@keyframes jr-drive { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .jr-lane, .journey-map .jr-stop { animation: none; } }

/* Field-team pillar: the coverage map, opening a larger view with figures per region */
.pillar-art-field { background: linear-gradient(180deg, #F6F6F2 0%, #FFFFFF 100%); padding-block: 10px; }
.pillar-art-field img { display: block; height: 160px; width: auto; filter: drop-shadow(0 8px 10px rgba(31,43,36,.12)); }
.pillar-more { align-self: flex-start; margin-block-start: auto; padding: 8px 0 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--accent); cursor: pointer; }
.pillar-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.cov-modal { width: min(1100px, calc(100% - 32px)); }
.cov-card { display: block; overflow-y: auto; padding: 28px 30px 30px; }
.cov-head h3 { margin: 0; font-size: 26px; font-weight: 800; color: var(--heading); }
.cov-head p { margin: 4px 0 18px; color: var(--muted); font-size: 15px; }
.cov-head strong { color: var(--accent); }
.cov-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.cov-map { margin: 0; }
.cov-map img { width: 100%; height: auto; display: block; }
.cov-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-start: 10px; font-size: 13.5px; color: var(--muted); }
.cov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cov-legend i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #FFFFFF; }
.lg-res { background: #2E7D32; } .lg-rem { background: #FFFFFF; color: #C62828 !important; border: 2px solid #C62828; }
.cov-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cov-reg { --c: #C62828; --bg: #FDECEC; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; padding: 12px 14px; background: #FFFFFF; }
.cov-central { --c: #1E5AA8; --bg: #E8F0FB; } .cov-east { --c: #E07B1A; --bg: #FDF1E4; } .cov-south { --c: #3E8E2F; --bg: #ECF6E8; }
.cov-reg h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--c); }
.cov-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-end: 8px; }
.cov-big span { background: var(--bg); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; line-height: 1.3; }
.cov-big b { font-size: 22px; color: var(--c); font-weight: 800; }
.cov-reg ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink); }
.cov-reg li { display: flex; justify-content: space-between; padding-block: 3px; border-top: 1px dashed var(--line); }
.cov-reg li b { color: var(--heading); }
@media (max-width: 860px) {
  .cov-body { grid-template-columns: minmax(0, 1fr); }
  .cov-card { padding: 22px 18px 22px; }
}
@media (max-width: 420px) { .cov-regions { grid-template-columns: minmax(0, 1fr); } }

/* "Who we are" illustration */
.about-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.about-art .ab-chip text { font-family: var(--font); font-size: 15px; font-weight: 800; fill: var(--heading); }
.about-art .a-drift { animation: ab-drift 18s linear infinite; }
.about-art .a-van { animation: ab-van 7s ease-in-out infinite; }
.about-art .jr-lane-svg { animation: jr-drive 1.2s linear infinite; }
@keyframes ab-drift { from { transform: translateX(0); } to { transform: translateX(160px); } }
@keyframes ab-van { 0%, 100% { transform: translateX(-30px); } 50% { transform: translateX(80px); } }
@media (prefers-reduced-motion: reduce) { .about-art .a-drift, .about-art .a-van, .about-art .jr-lane-svg { animation: none; } }

/* Stats link to their pages */
a.stat { color: inherit; text-decoration: none; border-radius: 14px; transition: transform .2s; }
a.stat:hover { transform: translateY(-3px); }
a.stat:hover strong { color: var(--accent); }
a.stat:hover .stat-icon { box-shadow: 0 20px 30px -14px rgba(46,107,42,.8), inset 0 1px 0 rgba(255,255,255,.45); }
a.stat:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
/* Highlighted partnership words */
mark.hl { background: linear-gradient(transparent 58%, rgba(146,188,92,.38) 58%); color: var(--heading); font-weight: 700; padding: 0 2px; border-radius: 2px; }
.footer-tagline { margin: 0; color: var(--leaf); font-weight: 700; font-size: 14.5px; }

/* Hero: sub-line under the title */
.hero-sub { margin: -6px 0 0; font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; color: var(--leaf); line-height: 1.6; }

/* "What we do": four services as a connected process */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: svc; }
.svc-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 30px -26px rgba(31,43,36,.5); transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(46,107,42,.55); }
.svc-card:not(:last-child)::after { content: ""; position: absolute; top: 56px; inset-inline-end: -24px; width: 20px; height: 20px; z-index: 1;
  background: no-repeat center / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4l6 6-6 6' fill='none' stroke='%2392BC5C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[dir="rtl"] .svc-card:not(:last-child)::after { transform: scaleX(-1); }
.svc-icon { display: flex; width: 64px; height: 64px; border-radius: 20px; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #86C653 0%, #4C9424 52%, #2E6B2A 100%); box-shadow: 0 14px 22px -12px rgba(46,107,42,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.svc-icon::before { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0)); }
.svc-icon svg { position: relative; width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(20,60,20,.25)); }
.svc-card:nth-child(2) .svc-icon { background: linear-gradient(145deg, #9AD06A, #5EA331 55%, #3A7A1E); }
.svc-card:nth-child(3) .svc-icon { background: linear-gradient(145deg, #6DB33F, #3F8419 50%, #24562A); }
.svc-step { position: absolute; top: 20px; inset-inline-end: 22px; font-size: 30px; font-weight: 800; color: #E6ECDF; line-height: 1; }
.svc-card h3 { margin: 6px 0 0; font-size: 19px; font-weight: 800; color: var(--heading); }
.svc-card p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* Growth pipeline */
.growth { background: var(--sadu-light), var(--mist); }
.growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.growth-card { background: var(--white); border-radius: 18px; padding: 28px 26px; border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.growth-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--accent) 60%, #C9A24B); }
.growth-fig { min-height: 64px; display: flex; align-items: center; color: var(--accent); }
.growth-fig strong { font-size: 54px; font-weight: 800; line-height: 1; background: linear-gradient(120deg, #2E6B2A, #4C9424 60%, #C9A24B); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.growth-card h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--heading); }
.growth-card p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* "Why Teriaqi": five points inside the white box */
.why-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-dot { flex: none; width: 12px; height: 12px; margin-block-start: 9px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, var(--leaf), var(--accent)); }
.why-list li:nth-child(even) .why-dot { background: linear-gradient(135deg, #F8E3A0, #C9A24B); }
.why-list strong { display: block; font-size: 16.5px; font-weight: 800; color: var(--heading); }
.why-list span { display: block; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* Vision tagline */
.vm-tag { margin: -4px 0 0; font-size: 20px; font-weight: 800; color: #FFFFFF; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card::after { display: none; }
  .growth-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .svc-card { transition: none; } }

/* Legacy Services in the redesign's existing card and form layout. */
.service-card { overflow-wrap:anywhere; }
.service-icon { display:block; inline-size:64px; block-size:64px; object-fit:contain; margin-block-end:1rem; }
.service-icon--fallback { display:grid; place-items:center; border:1px solid currentColor; border-radius:14px; font-size:1.5em; }
.service-featured { margin-block-end:1.5rem; }
.service-featured img { max-inline-size:100%; block-size:auto; }
.service-quote { margin-block-start:2rem; }
.service-quote summary { cursor:pointer; font-weight:700; }
.service-quote[open] summary { margin-block-end:1rem; }
.service-quote .wpcf7-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; text-align:start; }
.service-quote .wpcf7-form > p { display:contents; }
.service-quote .wpcf7-form > p > br,
.service-quote .wpcf7-form > .hidden-fields-container { display:none; }
.service-quote .wpcf7-form-control-wrap { display:block; }
.service-quote .wpcf7-form-control:focus-visible { outline:2px solid var(--heading); outline-offset:2px; }
.service-quote .field input[readonly] { background:var(--mist); }
.service-quote .field .wpcf7-not-valid { border-color:#B3261E; }
.service-quote .wpcf7-response-output { grid-column:1 / -1; }
.service-quote .service-quote-submit { justify-self:start; }
@media (max-width:600px) {
  .service-quote .wpcf7-form { grid-template-columns:minmax(0,1fr); }
}

/* Form pages keep the assistant in document flow after the footer. Both the
   character and its manually opened bubble stay outside the form content. */
:is(.single-services, .page-contact, .page-partner-with-us) .teriaq {
  position:static; z-index:auto; display:flex; align-items:flex-end;
  justify-content:flex-end; gap:12px; inline-size:min(100%,1200px);
  margin-inline:auto; padding:12px 16px 0;
}
:is(.single-services, .page-contact, .page-partner-with-us) .teriaq-bubble {
  position:relative; inset:auto; flex:0 1 320px; max-inline-size:100%;
  min-inline-size:0; margin-block-end:12px;
}
:is(.single-services, .page-contact, .page-partner-with-us) .teriaq-bubble[hidden] { display:none; }
:is(.single-services, .page-contact, .page-partner-with-us) .teriaq-bubble::after { display:none; }
:is(.single-services, .page-contact, .page-partner-with-us) .teriaq-char { flex:none; }

/* RC4: match the reference's hero measure while retaining the shipped Cairo face. */
[dir="ltr"] .hero h1 { max-inline-size: 11ch; }
[dir="ltr"] .hero-sub { max-inline-size: 20em; }
.hero h1 { line-height: 1.2; }
.hero-text { gap: 18px; }
@media (min-width: 1061px) {
  .main-nav { gap: clamp(14px, 2vw, 30px); }
  .main-nav ul { gap: clamp(12px, 1.75vw, 24px); }
  .main-nav ul a { white-space: nowrap; }
  [dir="rtl"] .hero-sub { font-size: clamp(18px, 1.7vw, 22px); }
}
@media (max-width: 600px) {
  .hero-text { padding-block: 56px; gap: 22px; }
  .hero h1 { line-height: 1.25; }
  .hero p.lead { font-size: 20px; line-height: 1.65; }
  [dir="ltr"] .hero-sub { max-inline-size: 320px; }
  [dir="ltr"] .hero-actions { flex-direction: column; align-items: flex-start; }
  .nav-disclosure-ready .main-nav { padding-inline: 16px; max-height: calc(100dvh - 76px); }
}
