@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C5A055;
  --gold-light: #D4C5A0;
  --gold-dark: #A68A3E;
  --blue: #1B3A6B;
  --blue-light: #2A5298;
  --blue-dark: #0F2445;
  --red: #8B1A1A;
  --red-light: #A52525;
  --cream: #F5F0E8;
  --cream-dark: #EDE5D8;
  --brown: #2C2520;
  --brown-light: #4A3F38;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E0D8CC;
  --shadow: 0 2px 20px rgba(44,37,32,0.08);
  --shadow-lg: 0 8px 40px rgba(44,37,32,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Tajawal', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.rtl {
  direction: rtl;
  font-family: 'Tajawal', 'Inter', sans-serif;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .cross-icon {
  font-size: 28px;
  color: var(--gold);
}

.nav-logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.3;
}

.rtl .nav-logo-text h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: 17px;
}

.nav-logo-text span {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.rtl .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--cream);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  animation: pulse-live 2s infinite;
}

.live-badge .dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,26,26,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(139,26,26,0); }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27,58,107,0.75) 0%, rgba(44,37,32,0.85) 100%),
    url('../images/church-bg.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
  padding: 0 24px;
}

.hero-cross {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.rtl .hero h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: 44px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--brown);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(197,160,85,0.4);
}

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

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

.btn-blue {
  background: var(--blue);
  color: white;
}

.btn-blue:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  opacity: 0.6;
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-cream {
  background: var(--cream);
}

.section-blue {
  background: var(--blue-dark);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.rtl .section-header h2 {
  font-family: 'Tajawal', sans-serif;
}

.section-blue .section-header h2 {
  color: white;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-blue .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ========== SERVICE TIMES ========== */
.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.time-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.time-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--gold);
}

.time-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.time-card .day {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.time-card .time {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-dark);
}

/* ========== NEWS / CARDS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.news-card .card-img {
  height: 220px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.news-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .card-img .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--brown);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.rtl .news-card .card-img .badge {
  left: auto;
  right: 16px;
}

.news-card .card-body {
  padding: 24px;
}

.news-card .card-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-dark);
  line-height: 1.4;
}

.news-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}

.news-card .read-more:hover {
  gap: 10px;
  color: var(--gold);
}

/* ========== EVENTS ========== */
.events-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.event-date-box {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.event-date-box .day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.event-date-box .month {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.event-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.event-info p {
  font-size: 14px;
  color: var(--text-light);
}

.event-info .event-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

/* ========== SERMONS / VIDEO ========== */
.sermon-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}

.sermon-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown);
  aspect-ratio: 16/9;
}

.sermon-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sermon-video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.sermon-video .play-overlay:hover {
  background: rgba(0,0,0,0.4);
}

.sermon-video .play-overlay i {
  font-size: 56px;
  color: white;
}

.sermon-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.sermon-info .meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.sermon-info p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== DONATE ========== */
.donate-section {
  text-align: center;
  padding: 80px 24px;
}

.donate-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.donate-amount {
  padding: 16px 32px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.donate-amount:hover,
.donate-amount.active {
  border-color: var(--gold);
  background: rgba(197,160,85,0.15);
  color: var(--gold);
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.6));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay span {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,160,85,0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-light);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
  height: 200px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: white;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo .cross-icon {
  color: var(--gold);
  font-size: 24px;
}

.footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: white;
  font-weight: 600;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero { height: 80vh; min-height: 500px; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  .news-grid { grid-template-columns: 1fr; }
  .sermon-featured { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .donate-amounts { gap: 8px; }
  .donate-amount { padding: 12px 24px; font-size: 16px; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .times-grid { grid-template-columns: 1fr; }
  .event-item { flex-direction: column; text-align: center; }
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  background: var(--blue-dark);
  padding: 120px 0 60px;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rtl .page-header h1 {
  font-family: 'Tajawal', sans-serif;
}

.page-header p {
  font-size: 16px;
  opacity: 0.7;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.gap-sm { gap: 8px; }
