/* =====================================================
   Base & Variables
   ===================================================== */
:root {
  --green-dark:   #8a6520;
  --green-mid:    #c8963e;
  --green-light:  #e8b86d;
  --gold:         #c8963e;
  --gold-light:   #e8b86d;
  --cream:        #fffbf4;
  --white:        #ffffff;
  --gray-100:     #fafafa;
  --gray-200:     #eeeeee;
  --gray-400:     #aaaaaa;
  --gray-600:     #666666;
  --gray-900:     #1a1a1a;
  --font-sans:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-arabic:  'Amiri', 'Traditional Arabic', serif;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(200,150,62,0.10);
  --shadow-lg:    0 8px 40px rgba(200,150,62,0.16);
  --transition:   0.2s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-family: var(--font-sans); font-weight: 700; }
p  { margin-bottom: 1rem; color: var(--gray-600); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--gray-900);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* =====================================================
   Layout
   ===================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-light { background: var(--cream); }

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(200,150,62,0.12);
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
  text-decoration: none;
}
.nav-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand-tagline {
  color: var(--gray-400);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(200,150,62,0.10);
  color: var(--gold);
}
.nav-links a.active { color: var(--gold); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: white;
}
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  border-color: white;
}
.btn-full { width: 100%; }

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

/* =====================================================
   Hero (Home)
   ===================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    url('https://images.unsplash.com/photo-1585036156171-384164a8c675?w=1800&auto=format&fit=crop&q=80')
    center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

/* Decorative geometric pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 40px,
      rgba(200,150,62,0.04) 40px,
      rgba(200,150,62,0.04) 41px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 40px,
      rgba(200,150,62,0.04) 40px,
      rgba(200,150,62,0.04) 41px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.hero-bismillah {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-arabic);
  opacity: 0.9;
  letter-spacing: 0.04em;
  direction: rtl;
}

.hero-content h1 {
  color: var(--gray-900);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: var(--gray-600);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =====================================================
   Page Hero (inner pages)
   ===================================================== */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,150,62,0.08) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { color: var(--gold); }
.page-hero h1 { color: var(--gray-900); margin-bottom: 1rem; }
.page-hero p { color: var(--gray-600); font-size: 1.1rem; max-width: 640px; }

/* =====================================================
   Mission Section
   ===================================================== */
.mission-section p { max-width: 780px; font-size: 1.05rem; }

/* =====================================================
   Goals Grid
   ===================================================== */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.goal-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.goal-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.goal-card h3 { color: var(--green-dark); }
.goal-card p { font-size: 0.95rem; }

/* =====================================================
   Two Column
   ===================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col-text p { margin-bottom: 1rem; }
.two-col-text .btn { margin-top: 1rem; }

.quote-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
}
.quote-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--gray-900);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.quote-attr {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}
.quote-attr em { color: var(--gray-400); font-style: normal; }

/* =====================================================
   Team Preview
   ===================================================== */
.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.team-card {
  display: block;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: inherit;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}
.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  letter-spacing: 0.05em;
}
.team-card h3 { color: var(--green-dark); font-size: 1.05rem; }
.team-card p { font-size: 0.88rem; color: var(--gray-400); margin: 0; }

.center-cta { text-align: center; margin-top: 1rem; }

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section { background: var(--gold); }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }

/* =====================================================
   About — Values Grid
   ===================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.value-card h3 { color: var(--green-dark); margin-bottom: 0.75rem; }
.value-card em { font-style: italic; color: var(--green-mid); }

/* =====================================================
   About — Stats
   ===================================================== */
.stat-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.stat-box {
  flex: 1;
  min-width: 180px;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.88rem; color: var(--gray-600); }

/* =====================================================
   Chaplaincy — Fields Grid
   ===================================================== */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.field-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.field-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.field-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.field-card h3 { color: var(--green-dark); }

/* =====================================================
   Chaplaincy — Islamic Principles
   ===================================================== */
.inline-quote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}
.inline-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-mid);
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.principle {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
}
.principle-arabic {
  font-size: 2rem;
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
  min-width: 60px;
  text-align: center;
  font-family: var(--font-arabic);
  direction: rtl;
}
.principle strong { color: var(--green-dark); display: block; margin-bottom: 0.3rem; }
.principle p { margin: 0; font-size: 0.95rem; }

/* =====================================================
   CPE — Accrediting Bodies
   ===================================================== */
.accrediting-bodies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.body-card {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.body-card h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* =====================================================
   CPE — Why List
   ===================================================== */
.why-cpe-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: white;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
}
.why-check {
  color: var(--green-mid);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.why-item p { margin: 0; font-size: 0.92rem; }

/* =====================================================
   CPE — Steps Timeline
   ===================================================== */
.steps-timeline {
  position: relative;
  margin-top: 2.5rem;
}
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.step-number {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  z-index: 1;
  box-shadow: 0 0 0 4px white, 0 0 0 6px rgba(200,150,62,0.25);
}
.step-content { flex: 1; padding-top: 0.75rem; }
.step-content h3 { color: var(--green-dark); margin-bottom: 0.75rem; }

.step-list {
  margin: 0.75rem 0 0.75rem 1.5rem;
  color: var(--gray-600);
}
.step-list li { margin-bottom: 0.35rem; font-size: 0.95rem; }

.step-tip {
  background: rgba(200,150,62,0.1);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.step-tip strong { color: var(--green-dark); }

/* =====================================================
   CPE — FAQ
   ===================================================== */
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}
.faq-item a { color: var(--green-mid); text-decoration: underline; }

/* =====================================================
   Team — Bios
   ===================================================== */
.bio-section { padding: 4rem 0; }
.bio-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.bio-container.bio-reverse { }
.bio-avatar-col { text-align: center; }
.bio-avatar {
  width: 120px;
  height: 120px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-lg);
}
.bio-title-block h2 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.bio-name-link {
  color: inherit;
  border-bottom: 2px solid var(--gold);
  transition: color var(--transition), border-color var(--transition);
}
.bio-name-link:hover { color: var(--gold); }
.bio-role {
  font-weight: 700;
  color: var(--green-mid);
  font-size: 1rem;
  margin: 0;
}
.bio-org { color: var(--gray-600); font-size: 0.92rem; margin: 0.1rem 0 0; }
.bio-org-loc { color: var(--gray-400); font-size: 0.85rem; margin: 0; }
.bio-text-col p { font-size: 1rem; line-height: 1.8; }
.bio-divider { border: none; border-top: 1px solid var(--gray-200); }

/* =====================================================
   Contact
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

.contact-form h2,
.contact-info-col h2 { margin-bottom: 0.75rem; }
.contact-form p { margin-bottom: 1.5rem; }

.contact-form { margin-top: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray-900);
  background: white;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,107,74,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--gray-400); margin-top: 0.75rem; text-align: center; }

.contact-info-card {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.contact-info-card h3 { font-size: 1rem; color: var(--green-dark); margin-bottom: 0.4rem; }
.contact-info-card p { font-size: 0.92rem; margin: 0; }

/* =====================================================
   Footer
   ===================================================== */
footer {
  background: var(--cream);
  border-top: 2px solid var(--gold);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.footer-brand .brand-name { color: var(--gold); font-size: 1.1rem; font-weight: 800; }
.footer-brand p { color: var(--gray-400); font-size: 0.88rem; margin: 0.25rem 0 0; }
.footer-nav {
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a { color: var(--gray-400); font-size: 0.88rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { color: var(--gray-400); font-size: 0.82rem; }

/* =====================================================
   Form Success State
   ===================================================== */
.form-success {
  background: rgba(46,107,74,0.08);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: none;
}
.form-success h3 { color: var(--green-dark); }
.form-success p { color: var(--gray-600); }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
  .two-col,
  .accrediting-bodies,
  .why-cpe-list { grid-template-columns: 1fr; }

  .bio-container { grid-template-columns: 1fr; }
  .bio-avatar-col { max-width: 280px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 20px rgba(200,150,62,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .section { padding: 3rem 0; }
  .step { flex-direction: column; gap: 1rem; }
  .steps-timeline::before { display: none; }
  .step-number { width: 48px; height: 48px; font-size: 1.1rem; }
  .stat-row { flex-direction: column; }
  .hero-buttons { justify-content: center; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-bismillah { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .goals-grid,
  .values-grid,
  .fields-grid,
  .team-preview-grid { grid-template-columns: 1fr; }
}
