/* --- CSS Reset & Base Styles --- */
:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-300: #93c5fd;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --black: #000000;
  
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-tertiary {
    background-color: var(--slate-200);
    color: var(--slate-700);
}

.btn-tertiary:hover {
    background-color: var(--slate-300);
}

.w-full {
    width: 100%;
}


/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  color: var(--white);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('https://picsum.photos/1920/1080?grayscale&blur=2');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-main-content {
  text-align: center;
}

.kicker {
  color: var(--blue-300);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate-300);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* --- Event Card --- */
.hero-event-card {
  background-color: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid var(--slate-700);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.event-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

.event-details {
  background-color: rgba(15, 23, 42, 0.6);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.event-date {
  text-align: center;
  flex-shrink: 0;
}

.event-date strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.event-date span {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-300);
}

.event-info {
  border-left: 1px solid var(--slate-600);
  padding-left: 1.25rem;
}

.event-info h4 {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  font-family: var(--font-body);
}

.event-info p {
  color: var(--slate-400);
  font-size: 0.875rem;
}

.event-contact {
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-top: 1rem;
}

.event-contact a {
  color: var(--blue-300);
  text-decoration: none;
}

.event-contact a:hover {
  text-decoration: underline;
}

/* --- Pillars Section --- */
.pillars-section {
  position: relative;
  z-index: 20;
  margin-top: -5rem;
  padding-bottom: 4rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pillar-icon-wrapper {
  margin: 0 auto 1rem;
  background-color: rgba(37, 99, 235, 0.2);
  color: var(--blue-300);
  border-radius: 9999px;
  height: 3.5rem;
  width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon {
  height: 1.5rem;
  width: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.pillar-card p {
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --- Content Sections --- */
.content-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--slate-800);
  margin-bottom: 3rem;
}

.section-paragraph {
    text-align: center;
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
}

.bg-slate-100 {
  background-color: var(--slate-100);
}

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

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
  aspect-ratio: 1 / 1;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

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

.gallery-item-overlay p {
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* --- Forms --- */
.subscribe-form {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  border-radius: 0.75rem;
  padding: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
}

.prayer-form {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

input[type="email"], select, textarea {
  flex-grow: 1;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--slate-50);
}

.subscribe-form input[type="email"] {
    border: 0;
}

input[type="email"]:focus, select:focus, textarea:focus {
  outline: none;
  ring-offset-color: white;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px var(--blue-300);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background-color: var(--slate-800);
  color: var(--slate-400);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: fadeIn 0.3s ease-out;
}

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

#lightbox-img {
    display: block;
    max-height: 80vh;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

#lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 0.75rem;
    font-size: 1.125rem;
}

.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background-color: var(--white);
    color: var(--slate-800);
    border-radius: 9999px;
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

.lightbox-close:hover {
    background-color: var(--slate-200);
}

.close-icon {
    height: 1.5rem;
    width: 1.5rem;
}


/* --- Responsive Styles --- */
@media (min-width: 640px) { /* sm */
  .hero-ctas {
    flex-direction: row;
  }
  .subscribe-form {
    flex-direction: row;
  }
  .subscribe-form button {
    flex-shrink: 0;
  }
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) { /* md */
  .hero-title {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) { /* lg */
  .hero-content-wrapper {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }
  .hero-main-content {
    text-align: left;
  }
  .hero-title {
    font-size: 3.75rem;
  }
  .hero-subtitle {
    margin-left: 0;
  }
  .hero-ctas {
    justify-content: flex-start;
  }
}
