/* ── FONTS ── */
@font-face {
  font-family: 'LyonArabic';
  src: url('../../fonts/COMM%20-%20Lyon%20Arabic%20Display%20Regular.otf') format('opentype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'LyonArabic';
  src: url('../../fonts/COMM%20-%20Lyon%20Arabic%20Display%20Light.otf') format('opentype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'LyonArabic';
  src: url('../../fonts/COMM%20-%20Lyon%20Arabic%20Display%20Bold.otf') format('opentype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'LyonArabic';
  src: url('../../fonts/COMM%20-%20Lyon%20Arabic%20Text%20Regular.otf') format('opentype');
  font-weight: 400; font-style: normal;
  unicode-range: U+0600-06FF;
}

/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f7f5f0;
  --ink: #0e0e0e;
  --green: #1b4d35;
  --green2: #2a6648;
  --muted: #888878;
  --border: rgba(14,14,14,0.11);
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ar { font-family: 'LyonArabic', sans-serif; }

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}
.nav-logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}
.nav-logo-en em { color: var(--green); font-style: italic; }
.nav-logo-ar {
  font-family: 'LyonArabic', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.25;
}

.nav-datetime {
  display: inline-grid;
  grid-template-columns: minmax(13.5rem, 1fr) 1px minmax(13.5rem, 1fr) auto;
  align-items: center;
  gap: 8px;
  direction: ltr;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(27,77,53,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(247,245,240,0.48)),
    rgba(27,77,53,0.035);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.nav-datetime span {
  white-space: nowrap;
  line-height: 1;
}

.nav-date-hijri,
.nav-date-gregorian {
  padding: 0 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
}

.nav-date-gregorian {
  color: var(--muted);
}

.nav-date-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.nav-date-time {
  min-width: 98px;
  padding: 6px 9px 7px;
  border: 1px solid rgba(27,77,53,0.22);
  background: var(--green);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── SECTIONS BAR ── */
.sections-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.sec-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.sec-btn:last-child { border-right: none; }
.sec-btn:hover { background: rgba(14,14,14,0.03); color: var(--ink); }

.sec-btn.active {
  color: var(--green);
  background: rgba(27,77,53,0.05);
}
.sec-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
}

.sec-btn-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.sec-btn-icon svg { width: 18px; height: 18px; }

.sec-btn-label {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
}

/* ── PAGE OFFSET (below nav + sections bar) ── */
.page-content {
  padding-top: calc(60px + 56px);
  min-height: 100vh;
}

/* ── HERO (index only) ── */
.hero {
  min-height: 100vh;
  padding-top: calc(60px + 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 40px;
  padding-right: 40px;
  border-bottom: 1px solid var(--border);
}

.hero-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: 0;
  animation: rise 1s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-en em { font-style: italic; color: var(--green); }

/* ── INNER PAGE LAYOUT ── */
.page-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.page-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-head-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
}
.page-head-en em { color: var(--green); font-style: italic; }

/* ── ABOUT ── */
.about-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}
.about-en + .about-en { margin-top: 16px; }
.about-en strong { font-weight: 600; color: var(--green); }

/* ── AREAS OF FOCUS ── */
.focus-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.int-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.int-item {
  background: var(--bg);
  padding: 22px 20px;
  transition: background 0.15s;
}
.int-item:hover { background: rgba(27,77,53,0.04); }
.int-icon {
  width: 20px; height: 20px;
  margin-bottom: 10px;
  color: var(--green);
}
.int-icon svg { width: 20px; height: 20px; }
.int-en {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.int-ar {
  font-family: 'LyonArabic', sans-serif;
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.2;
  margin-bottom: 2px;
}

/* ── COMING SOON ── */
.coming-box {
  border: 1px solid var(--border);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.coming-icon {
  width: 40px; height: 40px;
  color: var(--muted);
}
.coming-icon svg { width: 40px; height: 40px; }
.coming-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
}

/* ── CONTACT ── */
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  transition: all 0.18s;
}
.c-link:hover { border-color: var(--green); color: var(--green); }
.c-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-top: 1px solid var(--border);
}
.f-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--muted);
}
.f-en em { color: var(--green); font-style: italic; }
.f-social { display: flex; gap: 6px; align-items: center; }
.f-social-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: all 0.18s;
}
.f-social-btn:hover { border-color: var(--green); color: var(--green); }
.f-social-btn svg { width: 11px; height: 11px; }

/* ── ANIMATIONS ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav {
    height: auto;
    min-height: 74px;
    padding: 10px 20px;
    gap: 10px;
  }
  .nav-datetime {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 7px 9px;
    max-width: min(100%, 560px);
    padding: 7px 9px;
  }
  .nav-date-hijri,
  .nav-date-gregorian,
  .nav-date-time {
    font-size: 0.62rem;
  }
  .nav-date-divider { display: none; }
  .nav-date-time {
    min-width: 88px;
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sections-bar { top: 74px; }
  .page-content { padding-top: calc(74px + 56px); }
  .hero { padding-top: calc(74px + 56px); }
  .page-inner { padding: 40px 20px 60px; }
  footer { padding: 0 20px; }
  .int-grid { grid-template-columns: 1fr; }
  .hero { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 520px) {
  nav {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-datetime {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr 1fr;
  }
  .nav-date-time {
    grid-column: 1 / -1;
    width: 100%;
  }
  .sections-bar { top: 112px; }
  .page-content { padding-top: calc(112px + 56px); }
  .hero { padding-top: calc(112px + 56px); }
}
