/* ============================================================
   RANDA. — randaabu.com
   Palette drawn from Randa's own murals:
   night navy + orange moon + olive scarf + warm paper
   ============================================================ */

:root {
  --paper: #f5efe4;
  --paper-deep: #ede4d2;
  --ink: #191721;
  --ink-soft: #4c4753;
  --navy: #202b52;
  --navy-deep: #171f3d;
  --orange: #dd8531;
  --orange-bright: #e89a3c;
  --olive: #97a63d;
  --pink: #cf5486;
  --line: rgba(25, 23, 33, 0.14);
  --radius: 14px;
  --font-display: "Fraunces", "IBM Plex Sans Arabic", serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", sans-serif;
  --nav-h: 72px;
  --sticky-top: var(--nav-h);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Randa's abstract canvas frames the whole site like a gallery wall */
  background: #2a1e2c url("../img/bg-painting.webp") center / cover no-repeat fixed;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 1320px;
  margin: 0 auto;
  box-shadow: 0 0 90px rgba(24, 12, 28, 0.55);
}

html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
}
html[lang="ar"] .display,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.main-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--orange);
}
.lang-toggle {
  border: 1.5px solid var(--ink); background: transparent;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-toggle:hover { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; cursor: pointer; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #c9741f; }
.btn-outline {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }

/* ---------- draft chip ---------- */
.draft-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: #8a5a00; background: #f9e8c6;
  border: 1.5px dashed #d9a13c; border-radius: 999px;
  padding: 4px 12px; margin-bottom: 14px;
}
.draft-chip::before { content: "✎"; }

/* ---------- hero ---------- */
.hero {
  /* Randa's abstract canvas, shown as-is (her request — no color wash over it) */
  background: url("../img/bg-painting.webp") center 62% / cover;
  color: var(--paper); overflow: hidden;
}
.hero-copy h1,
.hero-copy .hero-sub {
  text-shadow: 0 1px 3px rgba(12, 6, 14, 0.6), 0 4px 26px rgba(12, 6, 14, 0.55);
}
.hero-sub { color: #f0ebdf; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: min(calc(100vh - var(--nav-h)), 860px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 90px);
  position: relative;
}
.hero-eyebrow {
  font-size: 13.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-bright);
  margin-bottom: 22px;
}
html[lang="ar"] .hero-eyebrow { letter-spacing: 0; }
.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px);
  margin-bottom: 22px;
}
.hero h1 .u {
  position: relative; white-space: nowrap;
}
.hero h1 .u svg {
  position: absolute; left: 0; bottom: -0.12em; width: 100%; height: 0.3em;
  overflow: visible;
}
.hero h1 .u svg path {
  fill: none; stroke: var(--orange); stroke-width: 7;
  stroke-linecap: round; opacity: .9;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 18.5px); color: #cfd4e6;
  max-width: 46ch; margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-press {
  font-size: 13px; color: #9aa2c4;
}
.hero-press b { color: #cfd4e6; font-weight: 600; }
.hero-art { position: relative; min-height: 420px; }
.hero-art img,
.hero-art video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 30%;
  background: var(--navy) center / cover no-repeat;
}
/* no color blend over the hero art — the painting behind it shows as-is */
.hero-art::after { content: none; }
.hero-credit {
  position: absolute; bottom: 14px; inset-inline-end: 16px; z-index: 2;
  font-size: 11.5px; color: rgba(255,255,255,.85);
  background: rgba(20, 25, 50, .55); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- sections ---------- */
section { scroll-margin-top: calc(var(--sticky-top) + 10px); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 54px); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange);
  display: block; margin-bottom: 12px;
}
html[lang="ar"] .kicker { letter-spacing: 0; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- services ---------- */
.services-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  text-decoration: none; display: block;
  background: #fffdf8; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(25, 23, 33, .13);
}
.service-card .ph { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.service-card .ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .ph img { transform: scale(1.045); }
.service-card .tx { padding: 18px 20px 20px; }
.service-card h3 { font-size: 21px; margin-bottom: 6px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }
.service-card .go {
  margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--orange);
  display: inline-flex; gap: 6px; align-items: center;
}
.services-note {
  margin-top: 30px; text-align: center; color: var(--ink-soft); font-size: 15px;
}
.services-note a { color: var(--ink); font-weight: 600; }

/* ---------- about ---------- */
.about { background: var(--paper-deep); }
.about-grid {
  display: grid; gap: clamp(30px, 5vw, 64px);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
}
.about-art { position: sticky; top: calc(var(--sticky-top) + 24px); }
.about-art .main {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 44px rgba(25, 23, 33, .18);
}
.about-art .main img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.about h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 58ch; }
.about-copy p b { color: var(--ink); }
.press { margin-top: 30px; }
.press h3 {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 12px;
}
html[lang="ar"] .press h3 { letter-spacing: 0; }
.press ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.press a {
  display: inline-block; text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 14px;
  transition: background .15s, color .15s;
}
.press a:hover { background: var(--ink); color: var(--paper); }
.community-row {
  margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.community-row img {
  border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%;
}
.community-cap { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact {
  background:
    linear-gradient(rgba(32, 43, 82, 0.9), rgba(32, 43, 82, 0.9)),
    url("../img/bg-painting.webp") center / cover;
  color: var(--paper);
}
.contact .kicker { color: var(--orange-bright); }
.contact-grid {
  display: grid; gap: clamp(34px, 5vw, 70px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}
.contact h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.contact-lead { color: #cfd4e6; margin-bottom: 28px; max-width: 44ch; }
.contact-info { list-style: none; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.contact-info .ic { color: var(--orange-bright); font-weight: 700; min-width: 20px; text-align: center; }
.contact-info a { color: var(--paper); }
.contact .draft-chip { background: rgba(232, 154, 60, .16); color: #f0c58a; border-color: rgba(232, 154, 60, .6); }

.form-card {
  background: #fffdf8; color: var(--ink);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .3);
}
.form-card h3 { font-size: 22px; margin-bottom: 4px; }
.form-card .fc-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px;
  padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(221, 133, 49, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note {
  margin-top: 14px; font-size: 13px; color: var(--ink-soft);
  background: #f9e8c6; border: 1.5px dashed #d9a13c;
  border-radius: 10px; padding: 10px 14px; display: none;
}
.form-note.show { display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep); color: #a7aecb;
  padding: 40px 0 34px; font-size: 14px;
}
.footer-grid {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.footer-grid .brand img { height: 20px; filter: invert(1) brightness(1.7); }
.footer-nav { display: flex; gap: 20px; margin-inline-start: auto; }
.footer-nav a { color: #cfd4e6; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-meta {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  font-size: 13px;
}
.footer-meta .wip { color: #e0b26a; }

/* ---------- gallery page ---------- */
.gallery-hero {
  background:
    linear-gradient(rgba(32, 43, 82, 0.93), rgba(32, 43, 82, 0.93)),
    url("../img/bg-painting.webp") center / cover;
  color: var(--paper);
  padding: clamp(50px, 7vw, 84px) 0;
}
.gallery-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 14px; }
.gallery-hero p { color: #cfd4e6; max-width: 52ch; font-size: 17px; }

.tabs {
  position: sticky; top: var(--sticky-top); z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.tabs .row { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 17px; cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn:hover { background: rgba(25, 23, 33, .08); }
.tab-btn.active { background: var(--ink); color: var(--paper); }
.tab-btn .cnt { opacity: .55; font-weight: 500; }

.gallery-grid-wrap { padding: clamp(30px, 4vw, 50px) 0 clamp(50px, 6vw, 80px); }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry a.tile {
  display: block; margin-bottom: 16px; border-radius: 12px; overflow: hidden;
  position: relative; break-inside: avoid; cursor: zoom-in;
  background: var(--paper-deep);
}
.masonry a.tile img {
  width: 100%; transition: transform .3s ease;
}
.masonry a.tile:hover img { transform: scale(1.03); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 16, 33, .93);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px); max-height: 86vh;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-btn {
  position: absolute; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 22px; inset-inline-end: 22px; }
.lb-prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.lb-cap {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #cfd4e6; font-size: 13.5px;
  background: rgba(20, 25, 50, .6); padding: 6px 16px; border-radius: 999px;
}

/* CTA band */
.cta-band { background: var(--orange); color: #fff; }
.cta-band .inner {
  padding-block: clamp(44px, 6vw, 70px);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); flex: 1; min-width: 260px; }
.cta-band .btn-ink:hover { background: #000; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; max-height: none; }
  .hero-art { min-height: 340px; order: -1; }
  .hero-copy { padding: 38px clamp(18px, 4vw, 40px) 56px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-art { position: static; max-width: 480px; }
  /* two-row header: brand + controls on top, nav links below */
  :root { --nav-h: 108px; }
  .site-header .bar {
    height: auto; flex-wrap: wrap; gap: 12px 16px;
    padding-top: 12px; padding-bottom: 10px;
  }
  .lang-toggle { margin-inline-start: auto; }
  .main-nav {
    order: 10; width: 100%; margin-inline-start: 0;
    gap: 20px; overflow-x: auto; scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; font-size: 14px; padding: 2px 2px 4px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; }
  .footer-nav { margin-inline-start: 0; }
  .brand { flex-shrink: 0; }
  .brand img { height: 21px; }
  .site-header .bar { gap: 10px; }
  .site-header .btn-sm { padding: 8px 13px; font-size: 13px; }
  .lang-toggle { padding: 6px 11px; font-size: 12.5px; }
}
