/* ═══════════════════════════════════════════════
   MBBGF — Mafruza BakiBillah Global Foundation
   common.css — Shared Variables, Reset & Base
   ═══════════════════════════════════════════════ */

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

/* ── CSS Variables ── */
:root {
  --gold:          #C8973A;
  --gold-light:    #E8B96A;
  --gold-pale:     #F5E6C8;
  --emerald:       #1A5C47;
  --emerald-mid:   #2A7A5E;
  --emerald-light: #3D9970;
  --cream:         #FAF6EE;
  --cream-dark:    #F0E8D8;
  --charcoal:      #1C1C1C;
  --slate:         #3A3A3A;
  --muted:         #7A7A6A;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.16);
  --radius-sm:     6px;
  --radius-md:     14px;
  --radius-lg:     28px;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-arabic:   'Amiri', serif;
  --font-body:     'Lato', sans-serif;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:     1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Container ── */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Section Padding ── */
section {
  padding: 90px 0;
}

/* ── Section Label ── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ── Section Heading ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--gold);
  font-style: italic;
}

/* ── Divider ── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.ornament-divider .line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament-divider .line.right {
  background: linear-gradient(270deg, transparent, var(--gold));
}

.ornament-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Button Styles ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
  box-shadow: 0 4px 20px rgba(200, 151, 58, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200, 151, 58, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ── Decorative Pattern Background ── */
.pattern-bg {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(200,151,58,0.12) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fadeUp   { animation: fadeUp  0.7s ease both; }
.animate-fadeIn   { animation: fadeIn  0.6s ease both; }
.animate-scaleIn  { animation: scaleIn 0.6s ease both; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Card Base ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── Tag / Badge ── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: var(--gold);
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-heading { font-size: 1.75rem; }
}
