/* =============================================
   EVERGREEN CHAPEL — Template 9
   Nature-inspired church with sage green + cream
   Font: Merriweather (display) + Karla (body)
   Hero: Nature Parallax
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --ec-sage:        #5f7a61;
  --ec-sage-dark:   #2d3e2e;
  --ec-sage-deep:   #1a2b1c;
  --ec-cream:       #faf8f0;
  --ec-ivory:       #f5f0e8;
  --ec-moss:        #8fae8b;
  --ec-copper:      #b87333;
  --ec-copper-light:#d4a574;
  --ec-warm-gray:   #6b6358;
  --ec-text:        #2c2c2c;
  --ec-text-light:  #5a5a5a;
  --ec-white:       #ffffff;

  --ec-font-display: 'Merriweather', Georgia, serif;
  --ec-font-body:    'Karla', -apple-system, sans-serif;

  --ec-radius:     8px;
  --ec-radius-lg:  16px;
  --ec-radius-xl:  24px;
  --ec-shadow:     0 2px 12px rgba(45,62,46,0.08);
  --ec-shadow-lg:  0 8px 32px rgba(45,62,46,0.12);
  --ec-transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ec-font-body);
  color: var(--ec-text);
  background: var(--ec-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ec-font-display);
  line-height: 1.25;
  color: var(--ec-sage-deep);
}

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

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

/* ---------- Demo Banner ---------- */
.ec-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: var(--ec-sage-deep);
  color: var(--ec-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 1000;
}

.ec-demo-banner a {
  color: var(--ec-moss);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Navigation ---------- */
.ec-nav {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(250,248,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(95,122,97,0.1);
  z-index: 960;
  transition: background var(--ec-transition), box-shadow var(--ec-transition);
}

.ec-nav.scrolled {
  background: rgba(250,248,240,0.98);
  box-shadow: 0 2px 16px rgba(45,62,46,0.08);
}

.ec-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ec-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ec-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ec-sage-dark);
}

.ec-nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--ec-sage);
}

.ec-nav-logo em {
  font-style: normal;
  color: var(--ec-copper);
}

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

.ec-nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ec-text-light);
  transition: color var(--ec-transition);
  position: relative;
}

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

.ec-nav-links a:hover { color: var(--ec-sage-dark); }
.ec-nav-links a:hover::after { width: 100%; }

.ec-nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--ec-sage);
  color: var(--ec-white) !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--ec-transition), transform var(--ec-transition);
}

.ec-nav-cta::after { display: none !important; }
.ec-nav-cta:hover {
  background: var(--ec-sage-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.ec-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ec-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ec-sage-dark);
  border-radius: 2px;
  transition: transform var(--ec-transition), opacity var(--ec-transition);
}

.ec-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ec-hamburger.active span:nth-child(2) { opacity: 0; }
.ec-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Buttons ---------- */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-family: var(--ec-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--ec-transition);
}

.ec-btn-primary {
  background: var(--ec-sage);
  color: var(--ec-white);
}
.ec-btn-primary:hover {
  background: var(--ec-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(95,122,97,0.3);
}

.ec-btn-outline {
  background: transparent;
  color: var(--ec-sage-dark);
  border: 2px solid var(--ec-sage);
}
.ec-btn-outline:hover {
  background: var(--ec-sage);
  color: var(--ec-white);
  transform: translateY(-2px);
}

.ec-btn-copper {
  background: var(--ec-copper);
  color: var(--ec-white);
}
.ec-btn-copper:hover {
  background: #9a6029;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184,115,51,0.3);
}

/* ---------- Section Helpers ---------- */
.ec-section {
  padding: 100px 0;
}

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

.ec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-copper);
  margin-bottom: 16px;
}

.ec-eyebrow::before,
.ec-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ec-copper);
  opacity: 0.5;
}

.ec-section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.ec-section-title em {
  font-style: italic;
  color: var(--ec-sage);
}

.ec-section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--ec-text-light);
  font-size: 1.05rem;
}

/* ---------- Scroll Reveal ---------- */
.ec-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ec-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO — Nature Parallax
   ============================================ */
.ec-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 108px;
  overflow: hidden;
}

.ec-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ec-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,43,28,0.82) 0%,
    rgba(45,62,46,0.65) 50%,
    rgba(95,122,97,0.4) 100%
  );
}

.ec-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 24px;
  margin-left: 8%;
}

.ec-hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ec-moss);
  margin-bottom: 20px;
}

.ec-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: var(--ec-cream);
  margin-bottom: 20px;
  line-height: 1.15;
}

.ec-hero-title em {
  font-style: italic;
  color: var(--ec-copper-light);
}

.ec-hero-desc {
  font-size: 1.1rem;
  color: rgba(250,248,240,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}

.ec-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ec-hero .ec-btn-outline {
  border-color: rgba(250,248,240,0.5);
  color: var(--ec-cream);
}
.ec-hero .ec-btn-outline:hover {
  background: var(--ec-cream);
  color: var(--ec-sage-dark);
  border-color: var(--ec-cream);
}

/* Parallax leaf decorations */
.ec-hero-leaf {
  position: absolute;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

.ec-hero-leaf-1 {
  top: 15%;
  right: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50% 0 50% 0;
  background: var(--ec-moss);
  transform: rotate(-15deg);
}

.ec-hero-leaf-2 {
  bottom: 10%;
  right: 25%;
  width: 120px;
  height: 120px;
  border-radius: 0 50% 0 50%;
  background: var(--ec-copper);
  transform: rotate(30deg);
}

/* ============================================
   WELCOME / ABOUT
   ============================================ */
.ec-welcome {
  background: var(--ec-cream);
}

.ec-welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ec-welcome-image {
  position: relative;
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-lg);
}

.ec-welcome-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.ec-welcome-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--ec-sage);
  color: var(--ec-cream);
  padding: 10px 20px;
  border-radius: var(--ec-radius);
  font-family: var(--ec-font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.ec-welcome-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.ec-welcome-text h2 em {
  font-style: italic;
  color: var(--ec-sage);
}

.ec-welcome-text p {
  color: var(--ec-text-light);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.ec-welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.ec-welcome-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ec-sage-dark);
}

.ec-welcome-feature svg {
  width: 20px;
  height: 20px;
  color: var(--ec-copper);
  flex-shrink: 0;
}

/* ============================================
   SERVICE CALENDAR
   ============================================ */
.ec-calendar {
  background: var(--ec-ivory);
}

.ec-calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ec-season-card {
  background: var(--ec-white);
  border-radius: var(--ec-radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--ec-shadow);
  border-top: 4px solid var(--ec-sage);
  transition: transform var(--ec-transition), box-shadow var(--ec-transition);
}

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

.ec-season-card.advent   { border-top-color: #6b4c9a; }
.ec-season-card.lent     { border-top-color: #8b5e3c; }
.ec-season-card.easter   { border-top-color: var(--ec-copper); }
.ec-season-card.ordinary { border-top-color: var(--ec-sage); }

.ec-season-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.ec-season-card.advent .ec-season-icon   { background: rgba(107,76,154,0.12); }
.ec-season-card.lent .ec-season-icon     { background: rgba(139,94,60,0.12); }
.ec-season-card.easter .ec-season-icon   { background: rgba(184,115,51,0.12); }
.ec-season-card.ordinary .ec-season-icon { background: rgba(95,122,97,0.12); }

.ec-season-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.ec-season-dates {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ec-copper);
  margin-bottom: 12px;
}

.ec-season-card p {
  font-size: 0.88rem;
  color: var(--ec-text-light);
  line-height: 1.6;
}

/* ============================================
   SMALL GROUPS
   ============================================ */
.ec-groups {
  background: var(--ec-cream);
}

.ec-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ec-group-card {
  background: var(--ec-white);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow);
  transition: transform var(--ec-transition), box-shadow var(--ec-transition);
}

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

.ec-group-image {
  height: 180px;
  overflow: hidden;
}

.ec-group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ec-group-card:hover .ec-group-image img {
  transform: scale(1.05);
}

.ec-group-body {
  padding: 24px;
}

.ec-group-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(95,122,97,0.1);
  color: var(--ec-sage);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ec-group-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ec-group-body p {
  font-size: 0.88rem;
  color: var(--ec-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.ec-group-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--ec-warm-gray);
}

.ec-group-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-group-meta svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   PASTORAL BLOG
   ============================================ */
.ec-blog {
  background: var(--ec-ivory);
}

.ec-blog-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.ec-blog-featured {
  background: var(--ec-white);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-lg);
  transition: transform var(--ec-transition);
}

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

.ec-blog-featured-image {
  height: 280px;
  overflow: hidden;
}

.ec-blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-blog-featured-body {
  padding: 32px;
}

.ec-blog-date {
  font-size: 0.78rem;
  color: var(--ec-copper);
  font-weight: 600;
  margin-bottom: 12px;
}

.ec-blog-featured-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.ec-blog-featured-body p {
  color: var(--ec-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ec-blog-read-more {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ec-sage);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--ec-transition);
}

.ec-blog-read-more:hover { gap: 10px; }

.ec-blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ec-blog-item {
  display: flex;
  gap: 16px;
  background: var(--ec-white);
  border-radius: var(--ec-radius);
  padding: 16px;
  box-shadow: var(--ec-shadow);
  transition: transform var(--ec-transition);
}

.ec-blog-item:hover { transform: translateX(4px); }

.ec-blog-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--ec-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.ec-blog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-blog-item-body h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.ec-blog-item-body p {
  font-size: 0.82rem;
  color: var(--ec-text-light);
  line-height: 1.5;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.ec-services {
  background: var(--ec-sage-deep);
  color: var(--ec-cream);
}

.ec-services .ec-section-title { color: var(--ec-cream); }

.ec-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ec-service-card {
  background: rgba(95,122,97,0.15);
  border: 1px solid rgba(143,174,139,0.2);
  border-radius: var(--ec-radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--ec-transition), transform var(--ec-transition);
}

.ec-service-card:hover {
  background: rgba(95,122,97,0.25);
  transform: translateY(-4px);
}

.ec-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(184,115,51,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--ec-copper-light);
  font-size: 1.6rem;
}

.ec-service-card h3 {
  font-size: 1.1rem;
  color: var(--ec-cream);
  margin-bottom: 8px;
}

.ec-service-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ec-copper-light);
  margin-bottom: 12px;
}

.ec-service-card p {
  font-size: 0.88rem;
  color: rgba(250,248,240,0.7);
  line-height: 1.6;
}

/* ============================================
   VISIT CTA
   ============================================ */
.ec-visit {
  background: linear-gradient(135deg, var(--ec-sage) 0%, var(--ec-sage-dark) 100%);
  color: var(--ec-cream);
  text-align: center;
  padding: 80px 0;
}

.ec-visit h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ec-cream);
  margin-bottom: 16px;
}

.ec-visit p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: rgba(250,248,240,0.85);
}

.ec-visit .ec-btn-copper { font-size: 1rem; padding: 0.85rem 2.2rem; }

/* ============================================
   FOOTER
   ============================================ */
.ec-footer {
  background: var(--ec-sage-deep);
  color: rgba(250,248,240,0.7);
  padding: 60px 0 32px;
}

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

.ec-footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.ec-footer h4 {
  font-family: var(--ec-font-display);
  font-size: 1rem;
  color: var(--ec-cream);
  margin-bottom: 16px;
}

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

.ec-footer ul a {
  font-size: 0.85rem;
  transition: color var(--ec-transition);
}

.ec-footer ul a:hover { color: var(--ec-copper-light); }

.ec-footer-bottom {
  border-top: 1px solid rgba(143,174,139,0.15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.ec-footer-social {
  display: flex;
  gap: 16px;
}

.ec-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(143,174,139,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ec-transition), border-color var(--ec-transition);
}

.ec-footer-social a:hover {
  background: var(--ec-sage);
  border-color: var(--ec-sage);
}

.ec-footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .ec-nav-links { display: none; }
  .ec-hamburger { display: flex; }

  .ec-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 108px;
    left: 0;
    width: 100%;
    background: var(--ec-cream);
    padding: 32px 24px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 950;
  }

  .ec-nav-links.open a::after { display: none; }

  .ec-calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .ec-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ec-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ec-hero-content { margin-left: 0; }

  .ec-welcome-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ec-groups-grid { grid-template-columns: 1fr; }

  .ec-blog-layout { grid-template-columns: 1fr; }

  .ec-calendar-grid { grid-template-columns: 1fr; }
  .ec-services-grid { grid-template-columns: 1fr; }

  .ec-footer-grid { grid-template-columns: 1fr; }
  .ec-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .ec-hero-title { font-size: 2rem; }
  .ec-hero-actions { flex-direction: column; }
  .ec-welcome-features { grid-template-columns: 1fr; }
}
