/* ============================================================
   Ärvinge Center — Main Stylesheet
   File: css/style.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --emerald:        #1B6B4A;
  --emerald-mid:    #22855C;
  --emerald-bright: #2AA876;
  --teal:           #0E7490;
  --gold-light:     #F5C842;
  --cream:          #FAFAF7;
  --offwhite:       #F4F7F4;
  --light-green:    #E8F5EE;
  --light-teal:     #E0F7FA;
  --text-dark:      #0F2318;
  --text-mid:       #2E5240;
  --text-muted:     #6B8F7B;
  --border:         #D4E8DC;
  --shadow:         rgba(27, 107, 74, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

/* ============================================================
   BACKGROUND
   ============================================================ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(34, 133, 92, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 5%  80%, rgba(14, 116, 144, 0.06) 0%, transparent 60%);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: white;
  border: none;
  padding: 15px 32px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(27, 107, 74, 0.3);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27, 107, 74, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--light-green);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--emerald);
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: fit-content;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.sec {
  position: relative;
  z-index: 1;
  padding: 100px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.sec-full {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.sec-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.two-col-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}

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

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(to right, var(--emerald), var(--teal));
  border-radius: 2px;
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.sec-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sec-title.white { color: white; }
.sec-title.white em {
  -webkit-text-fill-color: var(--gold-light);
  background: none;
}

.sec-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}
.nav-logo-img {
  /*object-fit: contain;*/
  flex-shrink: 0;
}
.nav-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--emerald);
}
.nav-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--emerald); }
.nav-links .nav-cta {
  background: var(--emerald);
  color: white;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(27, 107, 74, 0.25);
  transition: all 0.25s;
}
.nav-links .nav-cta:hover {
  background: var(--emerald-mid);
  transform: translateY(-1px);
  color: white;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 64px 80px;
  gap: 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-green);
  border: 1px solid var(--border);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease both 0.2s;
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--emerald-bright);
  border-radius: 50%;
}

.hero-salaam {
  font-family: 'Amiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 14px;
  animation: fadeUp 0.8s ease both 0.28s;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both 0.36s;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both 0.44s;
}

.hero-jazak {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: var(--emerald-mid);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both 0.5s;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease both 0.58s;
}

/* Hero visual */
.hero-right {
  position: relative;
  height: 480px;
  animation: fadeUp 1s ease both 0.4s;
}

.h-card-main {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(145deg, var(--emerald), #0F4E35);
  color: white;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 16px 60px rgba(27, 107, 74, 0.35);
}
.h-arabic {
  font-family: 'Amiri', serif;
  font-size: 50px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  direction: rtl;
  text-align: right;
}
.h-card-main h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.h-card-main p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}
.h-geo {
  position: absolute;
  top: 20px; right: 20px;
  width: 80px; height: 80px;
  opacity: 0.15;
}

.h-float1 {
  position: absolute;
  bottom: 30px; right: -20px;
  z-index: 3;
  width: 190px;
  background: white;
  text-align: center;
  padding: 20px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(14, 116, 144, 0.18);
  border: 1px solid var(--light-teal);
  animation: float 4s ease-in-out infinite;
}
.h-float1 .n {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.h-float1 .l {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.h-float2 {
  position: absolute;
  bottom: 160px; left: -30px;
  z-index: 3;
  width: 185px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--light-green);
  background: white;
  box-shadow: 0 8px 30px var(--shadow);
  animation: float 5s ease-in-out infinite 1s;
}
.h-float2 .pill {
  display: inline-block;
  background: var(--light-green);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.h-float2 p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  animation: marquee 24s linear infinite;
  width: max-content;
}
.m-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 36px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.m-dot {
  width: 5px; height: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   ACTIVITY CARDS
   ============================================================ */
.act-card {
  background: white;
  border-radius: 16px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.act-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--emerald), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.act-card:hover {
  box-shadow: 0 12px 48px var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.act-card:hover::after { transform: scaleX(1); }

.act-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.ig { background: var(--light-green); }
.it { background: var(--light-teal); }
.io { background: #FEF9E7; }

.act-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--light-green);
  line-height: 1;
  pointer-events: none;
}

.act-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.act-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================================
   QURAN SCHOOL
   ============================================================ */
.school-wrap {
  background: linear-gradient(135deg, var(--emerald) 0%, #0F4E35 50%, var(--teal) 100%);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  position: relative;
}
.school-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}

.school-l {
  padding: 56px 50px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.school-l .eyebrow { color: rgba(255, 255, 255, 0.7); }
.school-l .eyebrow::before { background: rgba(255, 255, 255, 0.4); }
.school-l p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 380px;
}

.school-r {
  padding: 40px 40px 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.s-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}
.s-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(6px);
}
.s-pill-icon {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.s-pill h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}
.s-pill p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   HALAQAH
   ============================================================ */
.halaqah-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}

.h-card {
  background: white;
  border-radius: 20px;
  padding: 44px 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s;
}
.h-card:hover {
  box-shadow: 0 12px 48px var(--shadow);
  transform: translateY(-4px);
}
.h-card.brothers { border-top: 4px solid var(--emerald); }
.h-card.sisters  { border-top: 4px solid var(--teal); }

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.hb-b { background: var(--light-green); color: var(--emerald); }
.hb-s { background: var(--light-teal);  color: var(--teal); }

.h-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}
.h-arabic {
  font-family: 'Amiri', serif;
  font-size: 30px;
  color: var(--text-muted);
  direction: rtl;
  line-height: 1.4;
}
.h-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}
.h-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
}
.h-detail::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--emerald-bright);
}
.h-card.sisters .h-detail::before { background: var(--teal); }

/* ============================================================
   KIDS CARDS
   ============================================================ */
.kids-card {
  background: white;
  border-radius: 16px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.kids-card:hover {
  box-shadow: 0 8px 36px var(--shadow);
  transform: translateY(-4px);
}
.k-emoji { font-size: 36px; margin-bottom: 14px; }
.kids-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.kids-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   SUPPORT BAND
   ============================================================ */
.support-band {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.support-band::before {
  content: 'الله أكبر';
  font-family: 'Amiri', serif;
  font-size: 140px;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.support-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.support-band p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
  z-index: 1;
}
.support-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================================
   APPS SECTION
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 60px;
  margin-bottom: 48px;
}

.app-card {
  background: white;
  border-radius: 20px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.35s;
  position: relative;
}
.app-card:hover {
  box-shadow: 0 16px 56px var(--shadow);
  transform: translateY(-6px);
  border-color: transparent;
}

.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.app-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.ai-g { background: linear-gradient(135deg, var(--light-green), #c8edda); }
.ai-t { background: linear-gradient(135deg, var(--light-teal), #b3ecf7); }
.ai-o { background: linear-gradient(135deg, #fef9e7, #fdeaa0); }
.ai-p { background: linear-gradient(135deg, #f3e8ff, #ddb6f7); }

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.s-live { background: #dcfce7; color: #15803d; }
.s-live::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}
.s-soon   { background: #fef9c3; color: #854d0e; }
.s-beta   { background: #e0f2fe; color: #0369a1; }

.app-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.app-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 20px;
  flex: 1;
}

.app-feats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}
.app-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 400;
}
.app-feat::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231B6B4A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center / 12px no-repeat,
    var(--light-green);
}

.app-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--offwhite);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
  margin-top: auto;
}
.app-link:hover {
  background: var(--light-green);
  border-color: var(--emerald);
}
.app-link-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--emerald);
  display: block;
}
.app-link-url {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.app-link-arrow {
  color: var(--emerald);
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 8px;
}

.app-card.dim { opacity: 0.72; }
.app-card.dim .app-link { pointer-events: none; opacity: 0.5; }

/* Apps — more coming strip */
.apps-more {
  background: linear-gradient(135deg, var(--text-dark), #1a3322);
  border-radius: 20px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.apps-more h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}
.apps-more p { font-size: 15px; color: rgba(255, 255, 255, 0.6); font-weight: 300; }
.more-btns { display: flex; gap: 12px; flex-shrink: 0; }
.mbtn {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.mbtn-g { background: var(--emerald-bright); color: white; }
.mbtn-g:hover { background: var(--emerald-mid); }
.mbtn-o { background: transparent; color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.25); }
.mbtn-o:hover { border-color: rgba(255, 255, 255, 0.6); color: white; }

/* ============================================================
   BOOKING / CONTACT FORM
   ============================================================ */
.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.booking-info p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 32px;
}

.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 300;
}
.feat-list li::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231B6B4A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center / 14px no-repeat,
    var(--light-green);
}

.b-form {
  background: white;
  border-radius: 20px;
  padding: 44px 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 40px var(--shadow);
}
.b-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  background: var(--offwhite);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(27, 107, 74, 0.1);
}
.fg textarea { resize: vertical; height: 100px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-form {
  width: 100%;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(27, 107, 74, 0.3);
  margin-top: 8px;
}
.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27, 107, 74, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--text-dark);
  padding: 80px 64px 40px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}
.f-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}
.f-arabic {
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  direction: rtl;
}
.f-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
  font-weight: 300;
}
.f-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 22px;
}
.f-col ul  { list-style: none; }
.f-col li  { margin-bottom: 12px; }
.f-col a   { color: rgba(255, 255, 255, 0.55); text-decoration: none; font-size: 15px; font-weight: 300; transition: color 0.25s; }
.f-col a:hover { color: white; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}
.f-basmala {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  direction: rtl;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============================================================
   RESPONSIVE — TABLET / MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }

  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-right { display: none; }

  .sec      { padding: 70px 24px; }
  .sec-full { padding: 70px 0; }
  .sec-inner { padding: 0 24px; }

  .two-col-header { grid-template-columns: 1fr; gap: 20px; }
  .school-wrap    { grid-template-columns: 1fr; }
  .school-r       { display: none; }
  .booking-wrap   { grid-template-columns: 1fr; gap: 40px; }
  .halaqah-grid   { grid-template-columns: 1fr; }

  .grid-3, .grid-4, .apps-grid { grid-template-columns: 1fr; }

  .apps-more { flex-direction: column; text-align: center; padding: 32px 24px; }
  .more-btns { flex-wrap: wrap; justify-content: center; }

  .support-band { padding: 40px 24px; }

  .site-footer { padding: 60px 24px 40px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-btns { flex-direction: column; }
  .support-btns { flex-direction: column; align-items: center; }
}
