/* 
 * WestlandChurch.com - Main Stylesheet
 * A unique design with purple, gold and light blue accents
 */

:root {
  /* Color Variables - Different from other sites */
  --primary: #4A148C;    /* Deep Purple */
  --secondary: #FFC107;  /* Amber/Gold */
  --accent: #5C9AFF;     /* Light Blue */
  --light: #F8F9FA;      /* Off-White */
  --dark: #2A2A2A;       /* Near Black */
  --success: #43A047;    /* Green */
  --text: #212121;       /* Dark Gray for Text */
  --gray-light: #ECEFF1; /* Light Gray for Backgrounds */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.2rem;
}

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

a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn:hover, .btn:focus {
  background-color: #5D1AAD;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #FFD54F;
  color: var(--text);
}

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

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

/* Header & Navigation */
header {
  background-color: var(--light);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-image {
  width: 48px;
  height: 48px;
  margin-right: 0.75rem;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  padding: 0.5rem;
  text-decoration: none;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--primary);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, rgba(74, 20, 140, 0.9), rgba(123, 31, 162, 0.8)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%234A148C" opacity="0.1"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%23FFC107" stroke-width="1" opacity="0.2"/></svg>');
  background-size: cover;
  color: var(--light);
  text-align: center;
  padding: 5rem 1rem;
}

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

.hero-subheading {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-buttons {
  margin-top: 2rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--gray-light);
}

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

/* Events and Sermons */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.card-img {
  width: 100%;
  height: 180px;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-meta {
  color: var(--text);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-content {
  order: 1;
}

.about-image {
  order: 2;
  display: flex;
  justify-content: center;
}

.about-icon {
  width: 300px;
  height: 300px;
}

/* Schedule Section */
.schedule-item {
  display: flex;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.schedule-time {
  min-width: 100px;
  font-weight: 700;
  color: var(--primary);
}

.schedule-content {
  flex-grow: 1;
}

/* News & Entertainment Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.news-links {
  list-style: none;
}

.news-links li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--gray-light);
}

.news-links li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-links a {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.news-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

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

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-company h3 {
  color: white;
  margin-top: 1rem;
}

.footer-company p {
  color: rgba(255,255,255,0.8);
}

.footer-links h4 {
  color: var(--secondary);
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
  color: var(--secondary);
  text-decoration: none;
}

.footer-social h4 {
  color: var(--secondary);
  margin-bottom: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-image {
    order: 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .hero-headline {
    font-size: 2.25rem;
  }
  
  .hero-subheading {
    font-size: 1.25rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    background-color: white;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 2rem;
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 0;
    margin-bottom: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .card-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}
