/* Grace International Ministries - Website Styles */
/* Mobile-first, fast-loading design for Uganda */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --primary-blue: #1a4f7a;
  --primary-gold: #d4a742;
  --dark-blue: #0d2840;
  --light-blue: #e8f1f8;
  --warm-white: #fdfbf7;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --accent-green: #2e7d4a;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--warm-white);
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-blue);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover { color: var(--primary-gold); }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--dark-blue);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.header-top a {
  color: var(--primary-gold);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-blue);
  border-radius: 3px;
  transition: 0.3s;
}

/* Navigation */
nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow);
}

nav.active { display: block; }

nav ul {
  list-style: none;
}

nav ul li {
  border-bottom: 1px solid #eee;
}

nav ul li a {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--light-blue);
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/worship-3.jpeg') center/cover;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: #c49935;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

/* Sections */
section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
}

.section-header p {
  margin-top: 1.5rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Ministry Cards */
.ministries-grid {
  display: grid;
  gap: 1.5rem;
}

.ministry-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.ministry-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 20%;
}

.ministry-card-content {
  padding: 1.5rem;
}

.ministry-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.ministry-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-section {
  background: var(--light-blue);
}

.about-content {
  display: grid;
  gap: 2rem;
}

.about-image img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin-bottom: 1rem;
}

/* Leader Section */
.leader-section {
  background: white;
}

.leader-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--light-blue);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.leader-card img {
  width: 420px;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 4px solid var(--primary-gold);
  margin: 0 auto;
}

.leader-info {
  text-align: center;
}

.leader-info h3 {
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.leader-info .title {
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Schedule Section */
.schedule-section {
  background: var(--dark-blue);
  color: white;
}

.schedule-section h2,
.schedule-section h3 {
  color: white;
}

.schedule-section .section-header h2::after {
  background: var(--primary-gold);
}

.schedule-grid {
  display: grid;
  gap: 1.5rem;
}

.schedule-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.schedule-card h3 {
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item .time {
  color: var(--primary-gold);
  font-weight: 600;
  white-space: nowrap;
  margin-right: 1rem;
}

/* Give Section */
.give-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: white;
  text-align: center;
}

.give-section h2 {
  color: white;
}

.give-section .section-header h2::after {
  background: var(--primary-gold);
}

.give-methods {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.give-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  color: var(--text-dark);
}

.give-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.give-card .code {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin: 1rem 0;
}

.give-card ol {
  text-align: left;
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.give-card ol li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  background: var(--warm-white);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1.5rem;
}

.whatsapp-btn:hover {
  background: #128C7E;
  color: white;
  transform: translateY(-2px);
}

/* Prayer Request Form */
.prayer-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--dark-blue);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-gold);
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255,255,255,0.8);
}

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

.footer-section p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Courses Section */
.courses-section {
  background: white;
}

.course-category {
  margin-bottom: 2.5rem;
}

.course-category h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-gold);
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.course-table th,
.course-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.course-table th {
  background: var(--light-blue);
  font-weight: 600;
  color: var(--dark-blue);
}

.course-table tr:hover {
  background: var(--light-blue);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-blue);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

/* Floating Prayer Button */
.floating-prayer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-blue);
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.floating-prayer:hover {
  transform: scale(1.1);
  background: #c49935;
  color: var(--dark-blue);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .header-main {
    padding: 1rem 2rem;
  }
  
  .logo img {
    height: 70px;
  }
  
  .logo-text {
    font-size: 1.125rem;
  }
  
  .menu-toggle { display: none; }
  
  nav {
    display: block;
    position: static;
    box-shadow: none;
  }
  
  nav ul {
    display: flex;
    gap: 0;
  }
  
  nav ul li {
    border-bottom: none;
  }
  
  nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .ministries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .leader-card {
    grid-template-columns: auto 1fr;
    text-align: left;
  }
  
  .leader-card img {
    margin: 0;
  }
  
  .leader-info {
    text-align: left;
  }
  
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .give-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid img {
    height: 180px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .ministries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .gallery-grid img {
    height: 200px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--primary-gold); }
.text-blue { color: var(--primary-blue); }
.bg-light { background: var(--light-blue); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
