/* The Ma'raba website (index.html in English, ar.html in Arabic). Brand: Yüce Grup.
   ---- brand: change these first ---- */
:root {
  --ink: #302f2f;              /* text: the logo's charcoal */
  --muted: #5d6768;            /* secondary text */
  --deep: #173f49;             /* hero, statistics band, footer */
  --teal: #2b606f;             /* the logo's teal, dark end */
  --teal-light: #57b1bb;       /* the logo's teal, light end */
  --gold: #ad852c;             /* the logo's gold: small accents only */
  --paper: #ffffff;
  --mist: #eef3f3;             /* alternate sections */
  --line: #dbe3e4;             /* rules and borders */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --wide: 1240px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* what showcase.js draws follows these */
  --sp-font: var(--font);
  --sp-ink: var(--ink);
  --sp-muted: var(--muted);
  --sp-chart-1: #00899c;       /* validated against white for chart marks (with --sp-chart-2) */
  --sp-chart-2: #b8862a;
  --sp-chart-track: #e3eaeb;
  --sp-accent: var(--teal-light);
  --sp-overlay: #0e2328;
  --sp-mode-on: var(--deep);
  --sp-label-bg: rgba(255, 255, 255, .94);
  --sp-label-ink: var(--ink);
}
/* Arabic: the content reads right to left, while the document and its body stay left to right, so every browser keeps
   the page's scroll bar on the right, as on the English page (some browsers take its side from <html>, others from <body>) */
html[dir="rtl"], html[dir="rtl"] body { direction: ltr; }
html[dir="rtl"] body > * { direction: rtl; }
html[dir="rtl"] {
  --font: "Alexandria", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Alexandria", system-ui, "Segoe UI", Tahoma, sans-serif;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { line-height: 1.85; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -.005em; }
html[dir="rtl"] :is(h1, h2, h3) { line-height: 1.3; letter-spacing: 0; }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
/* the logo's two gold marks, as the sign of every section heading */
.head h2::before { content: ""; display: block; width: 13px; height: 10px; margin-bottom: 20px; border-radius: 3px; background: var(--gold); box-shadow: 18px 0 0 var(--gold); }
html[dir="rtl"] .head h2::before { box-shadow: -18px 0 0 var(--gold); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 56px; align-items: end; margin-bottom: 40px; }
.head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 34em; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; } }

/* ---- header ---- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; transition: background .35s ease, color .35s ease, box-shadow .35s ease; }
.top .bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { position: relative; display: block; width: 78px; height: 56px; flex: none; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s ease; }
.logo .on-light { opacity: 0; }
.top nav { display: flex; align-items: center; gap: 4px 26px; margin-inline-start: auto; font-weight: 500; font-size: 16px; }
.top nav a { text-decoration: none; position: relative; padding: 6px 0; opacity: .88; }
.top nav a:hover, .top nav a.on { opacity: 1; }
.top nav a:not(.lang)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.top nav a:hover::after, .top nav a.on::after { transform: scaleX(1); }
.top nav .lang { border: 1px solid currentColor; border-radius: 999px; padding: 4px 14px; opacity: 1; }
.top.solid { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.top.solid .on-dark { opacity: 0; }
.top.solid .on-light { opacity: 1; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; margin-inline-start: auto;
    background: none; border: 1px solid currentColor; border-radius: 999px; color: inherit; cursor: pointer; padding: 0 12px; }
  .menu-btn span { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 24px 24px;
    background: #fff; color: var(--ink); box-shadow: 0 18px 30px rgba(0, 0, 0, .12); font-size: 19px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s ease, transform .3s var(--ease); }
  .top nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top nav a::after { display: none; }
  .top nav .lang { align-self: flex-start; margin-top: 16px; border-bottom: 1px solid currentColor; }
  .top.open nav { opacity: 1; transform: none; pointer-events: auto; }
  .top.open { background: #fff; color: var(--ink); }
  .top.open .on-dark { opacity: 0; } .top.open .on-light { opacity: 1; }
}

/* ---- hero ---- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; color: #fff; background: var(--deep); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 80% 10%, #2b606f 0%, var(--deep) 60%); }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: var(--hero) center / cover no-repeat; opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 6s var(--ease); }
.hero.has-image .hero-bg::before { opacity: 1; transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15, 40, 47, .88) 0%, rgba(15, 40, 47, .62) 42%, rgba(15, 40, 47, 0) 78%),
              linear-gradient(to top, rgba(15, 40, 47, .9) 0%, rgba(15, 40, 47, .35) 40%, rgba(15, 40, 47, 0) 65%, rgba(15, 40, 47, .6) 100%); }
html[dir="rtl"] .hero-bg::after {
  background: linear-gradient(to left, rgba(15, 40, 47, .88) 0%, rgba(15, 40, 47, .62) 42%, rgba(15, 40, 47, 0) 78%),
              linear-gradient(to top, rgba(15, 40, 47, .9) 0%, rgba(15, 40, 47, .35) 40%, rgba(15, 40, 47, 0) 65%, rgba(15, 40, 47, .6) 100%); }
.hero-in { width: 100%; padding-top: 140px; padding-bottom: 72px; }
.by { margin: 0 0 6px; font-weight: 500; color: #cfe7ea; font-size: 18px; }
.hero h1 { font-size: clamp(76px, 15vw, 210px); line-height: .86; letter-spacing: -.02em; text-wrap: balance; }
html[dir="rtl"] .hero h1 { font-size: clamp(64px, 11vw, 150px); line-height: 1.25; font-weight: 700; margin-top: 18px; }
.lead { font-size: clamp(18px, 2vw, 22px); max-width: 38em; margin: 22px 0 0; color: #e4eff0; }
.lead strong { color: #fff; font-weight: 600; }
.hero-figs { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 36px 0 0; }
.hero-figs div { border-top: 2px solid var(--gold); padding-top: 12px; min-width: 150px; }
.hero-figs dt { font-size: 15px; color: #cfe1e3; }
.hero-figs dd { margin: 2px 0 0; font: 600 clamp(30px, 3.6vw, 44px)/1.1 var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .25s ease, color .25s ease, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #fff; color: var(--deep); }
.btn.primary:hover { background: var(--teal-light); color: #fff; }
.btn.ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.scroll-cue { position: absolute; inset-inline-end: 28px; bottom: 30px; width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 700px) { .scroll-cue { display: none; } .hero-figs { gap: 16px 28px; } .hero-figs div { min-width: 0; } }
/* the opening sequence (site.js adds .go once the page is ready) */
.hero .by, .hero h1, .hero .lead, .hero-figs > div, .hero .ctas { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.hero.go .by { opacity: 1; transform: none; transition-delay: .05s; }
.hero.go h1 { opacity: 1; transform: none; transition-delay: .15s; }
.hero.go .lead { opacity: 1; transform: none; transition-delay: .35s; }
.hero.go .hero-figs > div { opacity: 1; transform: none; }
.hero.go .hero-figs > div:nth-child(1) { transition-delay: .5s; } .hero.go .hero-figs > div:nth-child(2) { transition-delay: .6s; } .hero.go .hero-figs > div:nth-child(3) { transition-delay: .7s; }
.hero.go .ctas { opacity: 1; transform: none; transition-delay: .85s; }

/* ---- sections ---- */
.block { padding: 112px 0; }
.block.mist { background: var(--mist); }
@media (max-width: 700px) { .block { padding: 72px 0; } }
/* the 3-D view: the full width of the window */
#plan { padding-bottom: 0; }
.view { height: min(88vh, 980px); min-height: 420px; }
@media (max-width: 700px) { .view { height: 72svh; min-height: 360px; } }
.view .sp-modes { top: 18px; inset-inline-end: max(18px, calc((100% - var(--wide)) / 2 + 24px)); }

/* figures */
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 0; border-top: 1px solid var(--line); }
.fig { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .fig { padding: 22px 0 26px 22px; }
.fig dt { font-size: 15px; color: var(--muted); }
.fig dd { margin: 6px 0 0; font: 600 clamp(30px, 3vw, 42px)/1.05 var(--font-head); color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the master plan */
.plan2d { background: #fff; border-radius: var(--radius); padding: clamp(10px, 2vw, 24px); box-shadow: 0 30px 60px -40px rgba(23, 63, 73, .45); }
.plan2d svg { display: block; width: 100%; height: auto; }
.sp-plan-tools { margin-top: 16px; }
.sp-plan-tools button, .report summary { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--teal); background: #fff; color: var(--teal); font: 600 15px var(--font); cursor: pointer; transition: background .2s, color .2s; }
.sp-plan-tools button:hover { background: var(--teal); color: #fff; }
.sp-plan-tools button:first-child { background: var(--teal); color: #fff; }
.sp-plan-tools button:first-child:hover { background: var(--deep); }

/* the gallery: the first picture leads */
.gallery { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child button { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gallery button { border-radius: 8px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery figure:first-child { grid-row: auto; } .gallery figure:first-child button { aspect-ratio: 3 / 2; } }

/* reports: a chart, with its table one click away */
.reports.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.reports .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .reports.two { grid-template-columns: minmax(0, 1fr); } }
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.block.mist .report { border-color: transparent; }
.report .sp-chart-title { font: 600 24px/1.2 var(--font-head); }
html[dir="rtl"] .report .sp-chart-title { font-size: 21px; }
.report details { margin-top: 22px; }
.report summary { display: inline-flex; align-items: center; list-style: none; min-height: 38px; font-size: 14px; }
.report summary::-webkit-details-marker { display: none; }
.report summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-start: 10px; margin-top: -4px; transition: transform .25s; }
.report details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.report summary:hover { background: var(--teal); color: #fff; }
.report details > div { margin-top: 16px; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
[data-sp-report] { overflow-x: auto; }
.sp-report { width: 100%; border-collapse: collapse; font-size: 15px; }
.sp-report caption { text-align: start; font: 600 24px/1.2 var(--font-head); padding: 0 0 14px; }
html[dir="rtl"] .sp-report caption { font-size: 21px; }
details .sp-report caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp-report th, .sp-report td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.sp-report th:first-child, .sp-report td:first-child { padding-inline-start: 0; }
.sp-report thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.sp-report tbody th { font-weight: 400; }
.sp-report .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-report tfoot th, .sp-report tfoot td { font-weight: 600; border-bottom: 0; }
.sp-report tbody tr { transition: background .2s; }
.sp-report tbody tr:hover { background: var(--mist); }
.sp-rows .sp-lab { font-size: 15px; }
.sp-val { font-size: 14px; }

/* statistics: a deep band, then the charts */
.block.stats { padding-top: 0; }
.stats-band { background: var(--deep); color: #fff; padding: 112px 0 96px; margin-bottom: 64px; position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; inset-inline-end: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(87, 177, 187, .22), transparent); pointer-events: none; }
.stats-band .head p { color: #c9dfe2; }
.stats-band .figures { border-color: rgba(255, 255, 255, .18); position: relative; z-index: 1; }
.stats-band .fig { border-color: rgba(255, 255, 255, .18); }
.stats-band .fig dt { color: #bcd6da; }
.stats-band .fig dd { color: #fff; font-size: clamp(28px, 2.6vw, 36px); }
@media (max-width: 700px) { .stats-band { padding: 72px 0 56px; } }

/* footer */
.foot { background: var(--ink); color: #d9dcdb; padding: 80px 0 56px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: end; }
.foot img { width: 120px; height: auto; display: block; }
.foot p { margin: 0; max-width: 40em; }
.foot .copy { color: #9ea3a2; }
@media (max-width: 700px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* scroll reveals (site.js adds .in as each part comes into view) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.figures .fig[data-reveal]:nth-child(4n+2) { transition-delay: .08s; } .figures .fig[data-reveal]:nth-child(4n+3) { transition-delay: .16s; } .figures .fig[data-reveal]:nth-child(4n+4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .hero .by, .hero h1, .hero .lead, .hero-figs > div, .hero .ctas { opacity: 1; transform: none; }
}
