/* ═══════════════════════════════════════════════════════
   MIFTAH AL-BARAKAH INSTITUTE — Global Stylesheet
   Used by: index.html, signup.html, booking.html, about.html
   Typography updated to industry standard (16px base)
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --gold:        #C8963E;
  --gold-light:  #E8B96A;
  --gold-pale:   #F5E6C8;
  --dark:        #0F1A14;
  --green-deep:  #1A3A28;
  --green-mid:   #2D6148;
  --green-light: #3D7A5A;
  --cream:       #F5EFE0;
  --cream-dark:  #EAE0CC;
  --white:       #FDFAF4;
  --text:        #2A3A30;
  --text-light:  #6A7A70;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,58,40,0.97);
  backdrop-filter: blur(12px);
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid rgba(200,150,62,0.2);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,239,224,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--green-deep) !important;
  padding: 10px 22px !important;
  letter-spacing: 1.5px !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,62,0.3);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid rgba(245,239,224,0.3);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  display: inline-block;
  background: var(--green-deep);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-dark:hover { background: var(--dark); transform: translateY(-2px); }

/* ══════════════════════════════════
   SECTION SHARED STYLES
══════════════════════════════════ */
.section { padding: 100px 60px; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 24px;
}
.section-title em { color: var(--gold); font-style: italic; }

/* ══════════════════════════════════
   PAGE HERO BANNER (inner pages)
══════════════════════════════════ */
.page-hero {
  background: var(--green-deep);
  padding: 60px 60px 54px;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(200,150,62,0.12) 0%, transparent 70%);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero .section-label { color: var(--gold-light); position: relative; z-index: 2; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 700;
  color: var(--cream); line-height: 1.1;
  position: relative; z-index: 2;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p {
  font-size: 17px; color: rgba(245,239,224,0.6);
  margin-top: 12px; font-weight: 300; line-height: 1.8;
  position: relative; z-index: 2; max-width: 580px;
}

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  padding: 24px 26px;
  position: relative;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 600;
  color: var(--green-deep); margin-bottom: 12px;
}
.card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card ul li {
  font-size: 14px; color: var(--text-light); font-weight: 300;
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.6;
}
.card ul li::before { content: '◆'; color: var(--gold); font-size: 7px; flex-shrink: 0; margin-top: 5px; }

/* ══════════════════════════════════
   WHATSAPP BUTTON
══════════════════════════════════ */
.whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #25D366; color: white;
  padding: 16px; font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; border: none;
  transition: all 0.3s; text-decoration: none;
}
.whatsapp-btn:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.whatsapp-icon { width: 22px; height: 22px; fill: white; }

/* ══════════════════════════════════
   HIGHLIGHT STRIP
══════════════════════════════════ */
.strip {
  background: var(--gold);
  display: flex; justify-content: center;
  flex-wrap: wrap;
}
.strip-item {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 36px; color: var(--green-deep);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
  border-right: 1px solid rgba(26,58,40,0.15);
}
.strip-item:last-child { border-right: none; }
.strip-item .icon { font-size: 17px; }

/* ══════════════════════════════════
   CTA BAND
══════════════════════════════════ */
.cta-band {
  background: var(--gold); padding: 70px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px; font-weight: 700; color: var(--green-deep); line-height: 1.1;
}
.cta-band h2 em { font-style: italic; }
.cta-band p { font-size: 16px; color: rgba(26,58,40,0.7); margin-top: 10px; font-weight: 300; line-height: 1.7; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer { background: var(--dark); padding: 50px 60px 30px; }

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 36px; border-bottom: 1px solid rgba(200,150,62,0.15); margin-bottom: 24px;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--cream); }
.footer-brand span { color: var(--gold); }
.footer-brand p { font-size: 13px; color: rgba(245,239,224,0.4); margin-top: 6px; font-family: 'Jost', sans-serif; font-weight: 300; }

.footer-links { display: flex; gap: 60px; }
.footer-col h5 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 14px; color: rgba(245,239,224,0.5); font-weight: 300; }
.footer-col ul li a { color: rgba(245,239,224,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(245,239,224,0.3); }

/* ══════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════ */
.form-group { margin-bottom: 26px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 10px;
}
.form-group input,
.form-group select {
  width: 100%; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--cream-dark);
  font-family: 'Jost', sans-serif; font-size: 16px;
  font-weight: 300; color: var(--text); outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,62,0.1);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C8963E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
  background-size: 12px; padding-right: 44px; cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-submit {
  width: 100%; padding: 18px; background: var(--green-deep);
  color: var(--gold); font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s;
}
.form-submit:hover { background: var(--green-mid); box-shadow: 0 8px 24px rgba(26,58,40,0.2); transform: translateY(-2px); }

/* ══════════════════════════════════
   SUCCESS OVERLAY
══════════════════════════════════ */
.success-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,26,20,0.85); z-index: 999;
  align-items: center; justify-content: center;
}
.success-overlay.show { display: flex; }
.success-box {
  background: var(--white); padding: 60px; text-align: center;
  max-width: 480px; width: 90%;
  animation: scaleIn 0.4s ease;
}
@keyframes scaleIn { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
.success-icon {
  width: 70px; height: 70px; background: var(--green-deep); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 30px; color: var(--gold);
}
.success-box h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; color: var(--green-deep); margin-bottom: 12px; }
.success-box p { font-size: 15px; color: var(--text-light); line-height: 1.8; font-weight: 300; margin-bottom: 16px; }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(0.8); } }
@keyframes float { 0%,100%{ transform:translateY(-50%) translateX(0); } 50%{ transform:translateY(-52%) translateX(-10px); } }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--green-deep); padding: 24px; gap: 20px; border-bottom: 1px solid rgba(200,150,62,0.2); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 24px; }
  .section-title { font-size: 36px; }
  .page-hero { padding: 40px 24px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 15px; }
  .cta-band { flex-direction: column; text-align: center; padding: 50px 24px; }
  .cta-band h2 { font-size: 32px; }
  .cta-band p { font-size: 15px; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-links { flex-direction: column; gap: 24px; }
  footer { padding: 40px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .strip { gap: 0; }
  .strip-item { padding: 12px 20px; font-size: 11px; }
  .form-row { grid-template-columns: 1fr; }
}
