/* Arabic typeface: IBM Plex Sans Arabic (SIL Open Font License), self-hosted.
   unicode-range means browsers only download it when Arabic text is on screen. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #1f2926;
  --muted: #69746f;
  --paper: #f5efe4;
  --surface: #fffaf1;
  --line: rgba(31, 41, 38, 0.16);
  --cedar: #176047;
  --brick: #9f432f;
  --stone: #d8c7aa;
  --ochre: #c58b3a;
  --sea: #2e6f86;
  --shadow: 0 24px 70px rgba(31, 41, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    "Noto Sans Arabic",
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;

  color: var(--ink);
  background: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 239, 228, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(18px);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--cedar);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand small {
  color: #4c5853;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  line-height: 1.2;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-inline-start: auto;
  margin-inline-end: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.68);
}

.language-button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.language-button.is-active {
  color: #ffffff;
  background: var(--cedar);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  padding: 128px clamp(18px, 5vw, 64px) 36px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(245, 239, 228, 0.96) 0%, rgba(245, 239, 228, 0.82) 46%, rgba(216, 199, 170, 0.64) 100%),
    repeating-linear-gradient(0deg, rgba(31, 41, 38, 0.04) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(31, 41, 38, 0.04) 0 1px, transparent 1px 38px);
}

.heritage-house {
  position: absolute;
  right: clamp(-70px, 4vw, 76px);
  bottom: 0;
  width: min(580px, 48vw);
  min-width: 360px;
  height: min(620px, 78vh);
  pointer-events: none;
}

.roof {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 96px;
  background: linear-gradient(135deg, #a9422f 0 50%, #7e3126 50% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: var(--shadow);
}

.facade {
  position: absolute;
  right: 7%;
  bottom: 0;
  left: 7%;
  height: calc(100% - 84px);
  border: 1px solid rgba(31, 41, 38, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 24% 76%, rgba(31, 41, 38, 0.08)),
    repeating-linear-gradient(0deg, rgba(31, 41, 38, 0.07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(31, 41, 38, 0.05) 0 1px, transparent 1px 74px),
    #d9c6a7;
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow);
}

.upper-detail {
  width: 46%;
  height: 18px;
  margin: 50px auto 46px;
  background: var(--cedar);
  border-radius: 999px;
}

.triple-arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 72%;
  margin: 0 auto;
}

.triple-arch span {
  display: block;
  height: clamp(140px, 22vh, 190px);
  border: 12px solid #f8ead3;
  border-bottom-width: 24px;
  border-radius: 999px 999px 8px 8px;
  background:
    linear-gradient(rgba(46, 111, 134, 0.48), rgba(31, 41, 38, 0.4)),
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.54) 50%, transparent 52%);
}

.balcony {
  width: 84%;
  height: 28px;
  margin: 26px auto 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 21px), var(--ochre);
  border-radius: 4px;
}

.stone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 76%;
  margin: 64px auto 0;
}

.stone-grid span {
  height: 74px;
  border: 8px solid rgba(255, 250, 241, 0.72);
  border-radius: 999px 999px 4px 4px;
  background: rgba(31, 41, 38, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cedar);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}
h2 {
  font-size: clamp(2rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  color: #46534e;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 41, 38, 0.16);
}

.button.primary {
  color: #ffffff;
  background: var(--cedar);
  border-color: var(--cedar);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button.secondary {
  background: rgba(255, 250, 241, 0.62);
}

.button.whatsapp-button {
  color: #ffffff;
  background: #1f8f5f;
  border-color: #1f8f5f;
}

.is-hidden {
  display: none !important;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-self: end;
  max-width: 860px;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 250, 241, 0.8);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 5px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 64px);
}

.event-sidebar {
  position: fixed;
  top: 92px;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: grid;
  align-content: start;
  width: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 20px 54px rgba(31, 41, 38, 0.16);
  backdrop-filter: blur(14px);
  overflow-y: auto;
}

.event-sidebar .eyebrow {
  margin-bottom: 12px;
}

.event-sidebar-list {
  display: grid;
  gap: 14px;
}

.event-sidebar-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 38, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.event-sidebar-media {
  aspect-ratio: 16 / 9;
  background: var(--stone);
}

.event-sidebar-media img,
.event-sidebar-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-sidebar-content {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.event-sidebar-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.event-sidebar-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.72);
}

@media (min-width: 1280px) {
  .hero,
  .section {
    padding-right: max(clamp(18px, 5vw, 64px), 356px);
  }

  .site-footer {
    padding-right: max(clamp(18px, 5vw, 64px), 356px);
  }
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: end;
  background: var(--surface);
}

.intro p:last-child,
.approach-copy p,
.contact-copy p,
.founder-card p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.services {
  background: #eef2e8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid rgba(31, 41, 38, 0.12);
  border-radius: 8px;
  background: var(--surface);
}

.service-number {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--brick);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  line-height: 1.72;
}

.approach {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
  background: var(--ink);
  color: #ffffff;
}

.approach .eyebrow {
  color: #d8b56f;
}

.approach-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-panel {
  min-height: 470px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 38px),
    #263531;
  overflow: hidden;
}

.mini-house {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 28px auto 48px;
  padding: 88px 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #cfb58d;
  position: relative;
}

.mini-roof {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 72px;
  background: var(--brick);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateY(-42px);
}

.mini-arch {
  height: 142px;
  border: 10px solid #fff0d4;
  border-bottom-width: 18px;
  border-radius: 999px 999px 4px 4px;
  background: rgba(46, 111, 134, 0.52);
}

.material-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.material-list span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 30px;
  color: rgba(255, 255, 255, 0.88);
}

.check-list li::before {
  position: absolute;
  top: 2px;
  inset-inline-start: 0;
  width: 18px;
  height: 18px;
  content: "";
  border: 2px solid #d8b56f;
  border-radius: 50%;
}

.portfolio {
  background: var(--surface);
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.portfolio-strip article {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-strip span {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--sea);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.founder {
  background:
    linear-gradient(90deg, rgba(159, 67, 47, 0.1), transparent 40%),
    #eadcc8;
}

.founder-card {
  max-width: 900px;
}

.founder-card h2 {
  color: var(--brick);
}

.gallery {
  background: #f7f0e6;
}

.gallery .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-folder {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  text-align: start;
  overflow: hidden;
}

.gallery-folder:hover {
  border-color: rgba(23, 96, 71, 0.5);
  transform: translateY(-2px);
}

.gallery-folder strong,
.gallery-folder span:not(.gallery-media) {
  display: block;
  padding: 0 20px;
}

.gallery-folder strong {
  font-size: 1.25rem;
}

.gallery-folder-count {
  color: var(--cedar);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-folder-description {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gallery-toolbar h3 {
  margin: 0;
}

.gallery-back {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.78);
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gallery-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--stone);
  overflow: hidden;
}

.gallery-media img,
.gallery-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card h3,
.gallery-card p {
  padding: 0 20px;
}

.gallery-card h3 {
  margin: 20px 0 10px;
}

.gallery-card p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.62);
}

.articles {
  background: #eef2e8;
}

.articles .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.articles-grid {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--cedar);
  border-radius: 8px;
  background: var(--surface);
}


.article-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.article-meta {
  margin: 0;
  color: var(--brick);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-content h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.article-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-link {
  width: max-content;
  margin-top: 4px;
}

.articles-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.72);
}

.events {
  background: var(--surface);
}

.events .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.events-grid {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 0.56fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.event-media {
  min-height: 230px;
  background: var(--stone);
}

.event-media img,
.event-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.event-date {
  color: var(--brick);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-content h3 {
  margin: 0;
}

.event-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.events-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.72);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 8vw, 110px);
  background: #efe6d6;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.74);
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

label {
  display: grid;
  gap: 8px;
  color: #4c5853;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 41, 38, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--cedar);
  outline: 3px solid rgba(23, 96, 71, 0.16);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--cedar);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer span:first-child {
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Arabic: one professional typeface everywhere, and no letter-spacing or
   uppercase styling (spacing breaks the joins between Arabic letters). */
body.is-rtl,
body.is-rtl * {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.is-rtl {
  line-height: 1.75;
}

body.is-rtl h1,
body.is-rtl h2,
body.is-rtl h3 {
  font-weight: 700;
}

body.is-rtl h1 {
  line-height: 1.25;
}

body.is-rtl .eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
}
body.is-rtl h2 {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.18;
}
body.is-rtl .hero-content,
body.is-rtl .section-heading,
body.is-rtl .founder-card {
  max-width: 920px;
}

body.is-rtl .heritage-house {
  right: auto;
  left: clamp(-70px, 4vw, 76px);
}

body.is-rtl .event-sidebar {
  right: auto;
  left: 18px;
}

body.is-rtl .hero-content p:not(.eyebrow) {
  max-width: 720px;
}

body.is-rtl .site-nav a::after {
  transform-origin: left;
}

body.is-rtl .site-nav a:hover::after {
  transform-origin: right;
}

@media (max-width: 1080px) {
  .service-grid,
  .portfolio-strip,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heritage-house {
    opacity: 0.52;
  }

  .event-sidebar {
    display: none;
  }
}

@media (max-width: 880px) {
  .brand small {
    display: none;
  }

  .language-switcher {
    margin-inline-start: 0;
    margin-inline-end: 8px;
  }

  .menu-button {
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.78);
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .site-nav a::after {
    content: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    order: 1;
  }

  .hero-stats {
    order: 3;
  }

  .heritage-house {
    right: -120px;
    width: 520px;
    opacity: 0.34;
  }

  body.is-rtl .heritage-house {
    right: auto;
    left: -120px;
  }

  .hero-stats,
  .intro,
  .approach,
  .contact {
    grid-template-columns: 1fr;
  }


  .feature-panel {
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 108px;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5.8rem);
  }

  .hero-stats,
  .service-grid,
  .portfolio-strip,
  .material-list,
  .gallery-grid,
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-media {
    min-height: 280px;
  }

  .hero-stats div,
  .service-card,
  .portfolio-strip article,
  .contact-form {
    padding: 20px;
  }

  .service-number,
  .portfolio-strip span {
    margin-bottom: 36px;
  }

  .button {
    width: 100%;
  }

  .heritage-house {
    right: -190px;
    min-width: 420px;
  }

  body.is-rtl .heritage-house {
    right: auto;
    left: -190px;
  }
}

/* Events sidebar: show it only where the page reserves room for it,
   and reserve that room on the correct side in Arabic (RTL). */
@media (max-width: 1279px) {
  .event-sidebar {
    display: none;
  }
}

@media (min-width: 1280px) {
  .site-footer {
    padding-right: max(clamp(18px, 5vw, 64px), 356px);
  }

  body.is-rtl .hero,
  body.is-rtl .section,
  body.is-rtl .site-footer {
    padding-right: clamp(18px, 5vw, 64px);
    padding-left: max(clamp(18px, 5vw, 64px), 356px);
  }
}

/* Turnstile human check in the contact form; empty (no height) until the widget loads. */
.form-turnstile:empty {
  display: none;
}

/* Events timeline: line with dots, filled = upcoming, hollow = past. */
.event-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  padding-inline-start: 34px;
  list-style: none;
}

.event-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.event-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.event-timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cedar);
  border-radius: 50%;
  background: var(--paper);
}

.event-timeline-item.is-upcoming::before {
  background: var(--cedar);
}

.event-timeline-thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--stone);
}

.event-timeline-thumb img,
.event-timeline-thumb video {
  display: block;
  width: 150px;
  height: 110px;
  object-fit: cover;
}

.event-timeline-item.is-past .event-timeline-thumb img {
  filter: grayscale(0.6);
  opacity: 0.85;
}

.event-timeline-content {
  display: grid;
  gap: 4px;
}

.event-timeline-item.is-past .event-date {
  color: var(--muted);
}

.event-timeline-content h3 {
  margin: 0;
  font-size: 1.05rem;
}

.event-timeline-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-timeline-item.is-expanded .event-timeline-description {
  display: block;
}

.event-timeline-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--cedar);
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 620px) {
  .event-timeline-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .event-timeline-thumb img,
  .event-timeline-thumb video {
    width: 96px;
    height: 80px;
  }
}

/* ---------------------------------------------------------------------------
   Pages: /, /gallery, /articles, /events, /contact all use index.html.
   <html data-page="..."> is set in <head>; sections marked data-page show only
   on their page. Without JavaScript nothing is hidden.
--------------------------------------------------------------------------- */
html[data-page="home"] [data-page]:not([data-page~="home"]),
html[data-page="gallery"] [data-page]:not([data-page~="gallery"]),
html[data-page="articles"] [data-page]:not([data-page~="articles"]),
html[data-page="events"] [data-page]:not([data-page~="events"]),
html[data-page="contact"] [data-page]:not([data-page~="contact"]) {
  display: none !important;
}

/* Inner pages start below the fixed header. */
html:not([data-page="home"]) main > .section {
  padding-top: clamp(124px, 14vw, 168px);
  min-height: 70vh;
}

.site-nav a.is-active {
  color: var(--cedar);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* The events sidebar is home-only, so inner pages don't reserve room for it. */
@media (min-width: 1280px) {
  html:not([data-page="home"]) .section,
  html:not([data-page="home"]) .site-footer {
    padding-right: clamp(18px, 5vw, 64px);
    padding-left: clamp(18px, 5vw, 64px);
  }
}

/* Home: "What's happening" */
.latest {
  background: var(--surface);
}

.latest-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
}

.latest-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.latest-media {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--stone);
}

.latest-media img,
.latest-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-pdf {
  display: grid;
  place-items: center;
  color: var(--cedar);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.latest-card h3 {
  margin: 6px 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.latest-link {
  color: var(--cedar);
  font-weight: 800;
  text-decoration: none;
}

.latest-link:hover {
  text-decoration: underline;
}

.latest-gallery {
  max-width: 980px;
  margin-top: 40px;
}

.latest-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.latest-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.latest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 880px) {
  .latest-cards {
    grid-template-columns: 1fr;
  }

  .latest-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .latest-media {
    width: 96px;
    height: 96px;
  }

  .latest-photos img {
    aspect-ratio: 1;
  }

  .latest-actions .button {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Logo in the header (replaces the green "A" square). */
.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 56px;
}

.brand small {
  max-width: 170px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
}

@media (max-width: 620px) {
  .brand-logo {
    height: 44px;
  }
}

/* Language buttons always read EN FR ع, also on Arabic pages. */
.language-switcher {
  direction: ltr;
}
