/*
 * TLC Ministry Website Stylesheet
 *
 * This file defines the overall look and feel for the TLC Ministry website.
 * Colors, fonts, and layout rules are derived from the provided style guide:
 *  - Warm taco red   (#E63946)
 *  - Golden yellow   (#F4A261)
 *  - Calming teal     (#2A9D8F)
 *  - Neutral gray/white (#F8F9FA)
 *
 * The typography uses Montserrat for headings and Open Sans for body text.
 */

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

/* Color palette variables */
:root {
  --primary: #E63946;   /* taco red */
  --secondary: #F4A261; /* golden yellow */
  --teal: #2A9D8F;      /* calming teal */
  --light: #F8F9FA;    /* light gray/white background */
  --dark: #333333;     /* dark text */
  --muted: #6c757d;    /* muted gray for secondary text */
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--dark);
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Navigation */
header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
}

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

.nav-links a {
  margin-left: 1rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  height: 80vh;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

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

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--teal);
  color: #ffffff;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Mission snapshot */
.mission-snapshot {
  background-color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.mission-snapshot h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.pillar {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 1rem;
}

.pillar h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Impact banner */
.impact-banner {
  background-color: var(--teal);
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
}

.impact-banner h2 {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
}

/* Program highlights */
.program-highlights {
  padding: 4rem 0;
  text-align: center;
}

.program-highlights h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.program-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.program-cards .card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-cards .card i {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.program-cards .card h3 {
  margin-bottom: 0.5rem;
}

.program-cards .card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.program-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Testimonials */
.testimonials {
  background-color: var(--light);
  padding: 4rem 0;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.testimonial {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 300px;
  font-style: italic;
  position: relative;
}

.testimonial p {
  margin-bottom: 1rem;
  color: var(--dark);
}

.testimonial span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Donate CTA */
.donate-cta {
  background-color: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 3rem 1rem;
}

.donate-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.donate-cta p {
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #cccccc;
  font-size: 0.9rem;
}

footer a {
  color: #cccccc;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-grid p, .footer-grid li, .footer-grid a {
  color: #cccccc;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.social-icons a {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: #cccccc;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

.footer-bottom {
  background-color: #111;
  text-align: center;
  padding: 1rem 0;
  color: #888;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .nav-links a {
    margin: 0.5rem 0;
  }
  .nav-toggle {
    display: block;
    color: var(--dark);
  }
}

/* Utility */
.hidden {
  display: none;
}

/* Page-specific styles */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.story-section,
.founder-note {
  padding: 4rem 0;
}

.story-section h2,
.founder-note h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.mission-vision {
  padding: 4rem 0;
  text-align: center;
}

.mission-vision h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.mission-vision p {
  max-width: 800px;
  margin: 0.5rem auto 1rem auto;
  font-size: 1rem;
}

.founder-note blockquote {
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.5;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

.founder-note .founder-signature {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

.cta-section {
  padding: 4rem 0;
}

/* Program page styles */
.program-section {
  padding: 4rem 0;
}

.program-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.program-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.program-text {
  flex: 1 1 60%;
  font-size: 1rem;
}

.program-icon {
  flex: 1 1 30%;
  text-align: center;
}

.program-icon i {
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .program-flex {
    flex-direction: column;
    text-align: center;
  }
  .program-text, .program-icon {
    flex-basis: 100%;
  }
}

/* Impact page styles */
.stats-section {
  padding: 4rem 0;
  text-align: center;
}

.stats-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.stat {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  width: 200px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.stat p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.stories-section {
  padding: 4rem 0;
  text-align: center;
}

.stories-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Partner page styles */
.partner-appeal {
  padding: 4rem 0;
  text-align: center;
}

.partner-appeal h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.partner-appeal p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1rem;
}

.partner-ways {
  padding: 4rem 0;
  text-align: center;
}

.partner-ways h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  max-width: 300px;
  flex: 1 1 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.partner-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.partner-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.partner-card:hover {
  transform: translateY(-4px);
}

/* Donate page styles */
.donation-levels {
  padding: 4rem 0;
  text-align: center;
}

.donation-levels h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.donation-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.donation-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.donation-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.donation-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.donation-card:hover {
  transform: translateY(-4px);
}

.monthly-giving {
  padding: 4rem 0;
}

.monthly-giving h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.monthly-giving p {
  margin-bottom: 2rem;
}

.corporate-giving {
  padding: 4rem 0;
  text-align: center;
}

.corporate-giving h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.corporate-giving p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  color: var(--muted);
}

.trust-section {
  padding: 4rem 0;
  text-align: center;
}

.trust-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.trust-section p {
  max-width: 800px;
  margin: 0 auto;
}

/* Blog page styles */
.blog-section {
  padding: 4rem 0;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  max-width: 320px;
  flex: 1 1 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.blog-card p {
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Contact page styles */
.contact-section {
  padding: 4rem 0;
}

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

.contact-info, .contact-form-wrapper {
  flex: 1 1 45%;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.map-container {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}

@media (max-width: 768px) {
  .contact-info, .contact-form-wrapper {
    flex-basis: 100%;
  }
}