/* ============================================================
   Future Architecture (F.A.C.E) — brand stylesheet
   Light theme · deep-navy accents · dark hero · big imagery
   ============================================================ */

:root {
  --navy:        #24313f;
  --navy-deep:   #1a2530;
  --navy-soft:   #2f4054;
  --slate:       #5b6875;
  --accent:      #b08a57;   /* warm bronze, used sparingly */
  --accent-dark: #8f6d3f;

  --ink:      #1c2530;
  --body:     #4a545f;
  --muted:    #8a929c;
  --line:     #e4e7ec;

  --bg:       #ffffff;
  --bg-alt:   #f5f6f8;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 45px -20px rgba(20,32,45,.35);
  --shadow-sm: 0 8px 24px -12px rgba(20,32,45,.28);

  --ff-head: "Montserrat", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-ar:   "Cairo", system-ui, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[dir="rtl"] { font-family: var(--ff-ar); }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3,
body[dir="rtl"] .eyebrow, body[dir="rtl"] .btn { font-family: var(--ff-ar); }
body.no-scroll { overflow: hidden; }

h1, h2, h3 { font-family: var(--ff-head); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
sup { font-size: .5em; vertical-align: super; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  letter-spacing: .01em;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(176,138,87,.8); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block: .55rem;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px -12px rgba(20,32,45,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-logo { height: 46px; width: auto; }
.brand-logo--white { display: none; }
.site-header:not(.scrolled) .brand-logo--navy { display: none; }
.site-header:not(.scrolled) .brand-logo--white { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--ff-head); font-size: 1.02rem; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* header sits on the dark hero until scrolled: make text readable */
.site-header:not(.scrolled) .brand-text strong { color: #fff; }
.site-header:not(.scrolled) .brand-text em { color: rgba(255,255,255,.7); }
.site-header:not(.scrolled) .main-nav a { color: rgba(255,255,255,.9); }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { font-family: var(--ff-head); font-weight: 500; font-size: .92rem; color: var(--ink); position: relative; padding-block: .3rem; }
.main-nav a::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  font-family: var(--ff-head); font-weight: 600; font-size: .85rem;
  padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,.85); color: var(--ink); transition: all .2s ease;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.site-header:not(.scrolled) .lang-toggle { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.lang-toggle > span:first-child { font-family: var(--ff-ar); font-size: 1rem; line-height: 1; }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.site-header:not(.scrolled) .nav-burger span { background: #fff; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; background: #fff; border-block-start: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .95rem clamp(1.1rem,4vw,2.4rem); font-family: var(--ff-head); font-weight: 500; border-block-end: 1px solid var(--line); color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/projects/project-16.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(26,37,48,.72) 0%, rgba(26,37,48,.55) 45%, rgba(26,37,48,.88) 100%),
    radial-gradient(120% 80% at 70% 20%, rgba(36,49,63,.25), rgba(26,37,48,.85));
}
.hero-inner { position: relative; z-index: 2; padding-block: 7rem 5rem; max-width: 780px; }
.hero-logo { height: clamp(84px, 14vw, 140px); width: auto; margin-block-end: 1.6rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -.01em; margin-block-end: .4rem; text-transform: uppercase; color: #fff; }
.hero-tagline { font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 400; color: rgba(255,255,255,.92); margin-block-end: .8rem; max-width: 40ch; }
.hero-meta { font-family: var(--ff-head); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-block-end: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-scroll { position: absolute; inset-block-end: 26px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero-scroll span { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- section rhythm ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: 76px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section-dark h2 { color: #fff; }

.section-head { max-width: 720px; margin-block-end: 3rem; }
.eyebrow { display: inline-block; font-family: var(--ff-head); font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-block-end: .8rem; position: relative; padding-inline-start: 2.4rem; }
.eyebrow::before { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 0; width: 1.7rem; height: 2px; background: var(--accent); }
.section-dark .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
.section-lead { margin-block-start: 1rem; font-size: 1.08rem; color: var(--slate); }
.section-dark .section-lead { color: rgba(255,255,255,.7); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy p { font-size: 1.06rem; color: var(--body); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-block-start: 2rem; }
.pillar { padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--accent); }
.pillar h3 { font-size: 1.1rem; margin-block-end: .5rem; color: var(--navy); }
.pillar p { font-size: .98rem; margin: 0; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 1.6rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.stat strong { font-family: var(--ff-head); font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat span { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- services ---------- */
.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.service-card {
  display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }
.service-num { font-family: var(--ff-head); font-weight: 800; font-size: 1.05rem; color: var(--accent); min-width: 2rem; }
.service-name { font-family: var(--ff-head); font-weight: 600; font-size: 1rem; color: var(--ink); }

/* ---------- gallery ---------- */
.gallery { columns: 3; column-gap: 1rem; }
.gallery-item { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: pointer; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gi-frame { position: relative; display: block; width: 100%; background: var(--bg-alt); overflow: hidden; }
.gi-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gi-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,37,48,0) 40%, rgba(26,37,48,.55)); opacity: 0; transition: opacity .3s ease; }
.gi-overlay::after { content: "+"; position: absolute; inset-block-end: 12px; inset-inline-end: 16px; color: #fff; font-family: var(--ff-head); font-size: 1.6rem; font-weight: 300; }
.gallery-item:hover .gi-frame img { transform: scale(1.06); }
.gallery-item:hover .gi-overlay { opacity: 1; }
.gallery-error { color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(16,23,31,.94); padding: 4vw; }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb-figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lb-figure figcaption { color: rgba(255,255,255,.7); font-family: var(--ff-head); font-size: .9rem; letter-spacing: .1em; }
.lb-close { position: absolute; inset-block-start: 18px; inset-inline-end: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .8; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer; transition: background .2s ease; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { inset-inline-start: 3vw; }
.lb-next { inset-inline-end: 3vw; }

/* ---------- exhibitions ---------- */
.exh-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.exh-copy p { font-size: 1.06rem; color: rgba(255,255,255,.82); }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-block-start: 1.6rem; }
.chip { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; padding: .55rem 1.2rem; border: 1.5px solid rgba(176,138,87,.6); color: #fff; border-radius: 999px; background: rgba(176,138,87,.14); }
.countries { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid rgba(255,255,255,.15); }
.countries li { padding: .55rem 0 .55rem 1.4rem; position: relative; color: rgba(255,255,255,.82); font-size: 1rem; }
.countries li::before { content: ""; position: absolute; inset-inline-start: -5px; inset-block-start: 1.15rem; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.countries-title { font-family: var(--ff-head); font-weight: 700; color: #fff !important; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.countries-title::before { display: none; }

/* ---------- team ---------- */
.founder-card { text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.8rem; margin-block-end: 1.4rem; box-shadow: var(--shadow); }
.founder-role { display: block; font-family: var(--ff-head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-block-end: .5rem; }
.founder-name { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.4rem 1.4rem 1.6rem; border-block-start: 3px solid var(--accent); }
.team-dept { display: block; font-family: var(--ff-head); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-block-end: .4rem; }
.team-lead { display: block; font-family: var(--ff-head); font-size: 1.08rem; color: var(--navy); margin-block-end: .8rem; }
.team-members { list-style: none; margin: 0; padding-block-start: .7rem; border-block-start: 1px solid var(--line); }
.team-members li { font-size: .92rem; color: var(--slate); padding: .22rem 0; }
.software { margin-block-start: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: center; }
.software-label { font-family: var(--ff-head); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.software-list { font-family: var(--ff-head); font-weight: 600; color: var(--navy); letter-spacing: .02em; }

/* ---------- contact ---------- */
.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; gap: .3rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.7rem; color: #fff; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
a.contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: var(--accent); }
.contact-card svg { color: var(--accent); margin-block-end: .6rem; }
.contact-label { font-family: var(--ff-head); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact-value { font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; word-break: break-word; }
.contact-static { cursor: default; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding-block: 3rem; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.footer-logo { height: 60px; width: auto; opacity: .95; }
.footer-tagline { font-family: var(--ff-head); font-size: 1rem; color: rgba(255,255,255,.85); margin: 0; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.75); font-family: var(--ff-head); font-size: .9rem; padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.footer-social a:hover { color: #fff; border-color: var(--accent); background: rgba(176,138,87,.14); }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- floating whatsapp ---------- */
.fab-whatsapp {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-burger { display: flex; }
  .about-grid, .exh-grid { grid-template-columns: 1fr; }
  .about-stats { max-width: 420px; }
  .gallery { columns: 2; }
}
@media (max-width: 620px) {
  .brand-text em { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-inner { padding-block: 6rem 4rem; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { inset-inline-start: 8px; } .lb-next { inset-inline-end: 8px; }
}

/* ---------- RTL fine-tuning ---------- */
body[dir="rtl"] .eyebrow { padding-inline-start: 2.4rem; }
body[dir="rtl"] .hero-tagline { max-width: 42ch; }
body[dir="rtl"] .lb-prev { transform: translateY(-50%) scaleX(-1); }
body[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

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