/* =============================================
   EVERGREEN COMMUNITY CHURCH — Styles
   Template 22 · Church
   Palette: Forest Green + Warm Cream + Copper
   Fonts: Outfit (display) + Source Serif 4 (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --ec-forest:        #1b3d2f;
  --ec-forest-mid:    #2a5a45;
  --ec-sage:          #4a7c6a;
  --ec-sage-light:    #7ba695;
  --ec-copper:        #c47a5a;
  --ec-copper-deep:   #a8624a;
  --ec-copper-glow:   rgba(196, 122, 90, .12);
  --ec-cream:         #f8f4ed;
  --ec-cream-dark:    #ede7db;
  --ec-white:         #ffffff;
  --ec-text:          #2a2a28;
  --ec-text-muted:    #7a7a72;
  --ec-border:        #e2ddd4;

  --ec-font-display:  'Outfit', sans-serif;
  --ec-font-body:     'Source Serif 4', Georgia, serif;

  --ec-nav-height:    72px;
  --ec-banner-height: 36px;
  --ec-radius:        10px;
  --ec-radius-lg:     18px;
  --ec-shadow:        0 4px 20px rgba(27, 61, 47, .06);
  --ec-shadow-lg:     0 12px 44px rgba(27, 61, 47, .12);
  --ec-transition:    .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

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

.ec-container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ---------- Demo Banner ---------- */
.ec-demo-banner {
  background: var(--ec-forest);
  color: var(--ec-cream);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--ec-font-display);
  font-size: .82rem;
  font-weight: 500;
  height: var(--ec-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.ec-demo-banner a {
  color: var(--ec-copper);
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- Navigation ---------- */
.ec-nav {
  position: fixed;
  top: var(--ec-banner-height);
  left: 0;
  width: 100%;
  height: var(--ec-nav-height);
  z-index: 960;
  display: flex;
  align-items: center;
  background: rgba(248, 244, 237, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ec-transition), box-shadow var(--ec-transition);
}

.ec-nav.scrolled {
  border-color: var(--ec-border);
  box-shadow: 0 2px 16px rgba(27, 61, 47, .06);
}

.ec-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

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

.ec-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--ec-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-cream);
  flex-shrink: 0;
}

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

.ec-nav-links a {
  font-family: var(--ec-font-display);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ec-text-muted);
  transition: color var(--ec-transition);
}

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

.ec-nav-cta {
  background: var(--ec-copper);
  color: var(--ec-white) !important;
  font-weight: 600 !important;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all var(--ec-transition) !important;
}

.ec-nav-cta:hover {
  background: var(--ec-copper-deep) !important;
  transform: translateY(-2px);
}

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

.ec-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ec-forest);
  border-radius: 2px;
  transition: 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); }

/* Mobile Menu */
.ec-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--ec-cream);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 48px 36px;
  transition: right var(--ec-transition);
  box-shadow: -6px 0 32px rgba(0, 0, 0, .1);
}

.ec-mobile-menu.open { right: 0; }

.ec-mobile-menu a {
  font-family: var(--ec-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ec-forest);
  transition: color var(--ec-transition);
}

.ec-mobile-menu a:hover { color: var(--ec-copper); }
.ec-mobile-menu hr { border: none; border-top: 1px solid var(--ec-border); }

.ec-mobile-cta {
  background: var(--ec-copper);
  color: var(--ec-white) !important;
  padding: 14px 28px;
  border-radius: 50px;
  text-align: center;
  font-weight: 700 !important;
}

/* ---------- Hero — Split Layout ---------- */
.ec-hero {
  padding-top: calc(var(--ec-banner-height) + var(--ec-nav-height) + 60px);
  padding-bottom: 80px;
  background: var(--ec-cream);
  overflow: hidden;
}

.ec-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.ec-hero-text { max-width: 520px; }

.ec-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ec-font-display);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ec-copper);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
}

.ec-hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--ec-copper);
  border-radius: 2px;
}

.ec-hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--ec-forest);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.ec-hero-text h1 em {
  font-style: italic;
  font-family: var(--ec-font-body);
  font-weight: 500;
  color: var(--ec-sage);
}

.ec-hero-desc {
  font-size: 1.1rem;
  color: var(--ec-text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 440px;
}

.ec-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.ec-btn-forest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ec-forest);
  color: var(--ec-cream);
  font-family: var(--ec-font-display);
  font-size: .92rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--ec-transition);
}

.ec-btn-forest:hover {
  background: var(--ec-forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 61, 47, .25);
}

.ec-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ec-forest);
  font-family: var(--ec-font-display);
  font-size: .92rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid var(--ec-border);
  transition: all var(--ec-transition);
}

.ec-btn-outline:hover {
  border-color: var(--ec-forest);
  background: rgba(27, 61, 47, .04);
  transform: translateY(-2px);
}

/* Hero Image */
.ec-hero-image {
  position: relative;
}

.ec-hero-image-main {
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-lg);
}

.ec-hero-image-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Floating accent card on hero image */
.ec-hero-float {
  position: absolute;
  bottom: -24px;
  left: -28px;
  background: var(--ec-white);
  padding: 22px 26px;
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 3px solid var(--ec-copper);
}

.ec-hero-float-icon {
  width: 44px;
  height: 44px;
  background: var(--ec-copper-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-copper);
  flex-shrink: 0;
}

.ec-hero-float h4 {
  font-size: .88rem;
  color: var(--ec-forest);
  margin-bottom: 2px;
}

.ec-hero-float p {
  font-size: .8rem;
  color: var(--ec-text-muted);
  font-family: var(--ec-font-display);
}

/* ---------- Welcome Section ---------- */
.ec-welcome {
  padding: 100px 0;
  background: var(--ec-white);
  text-align: center;
}

.ec-welcome-inner {
  max-width: 680px;
  margin: 0 auto;
}

.ec-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.ec-divider span {
  width: 40px;
  height: 1.5px;
  background: var(--ec-border);
}

.ec-divider svg { color: var(--ec-sage-light); }

.ec-welcome h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ec-forest);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.ec-welcome p {
  font-size: 1.1rem;
  color: var(--ec-text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.ec-welcome p:last-of-type { margin-bottom: 0; }

.ec-welcome-signature {
  margin-top: 32px;
  font-family: var(--ec-font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--ec-sage);
}

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

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

.ec-eyebrow {
  display: inline-block;
  font-family: var(--ec-font-display);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ec-copper);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}

.ec-section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--ec-forest);
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.ec-section-header h2 em {
  font-style: italic;
  font-family: var(--ec-font-body);
  font-weight: 500;
  color: var(--ec-sage);
}

.ec-section-header p {
  font-size: 1.05rem;
  color: var(--ec-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Gather (Service Times) ---------- */
.ec-gather {
  background: var(--ec-cream);
}

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

.ec-gather-card {
  background: var(--ec-white);
  border-radius: var(--ec-radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--ec-border);
  transition: all var(--ec-transition);
  position: relative;
  overflow: hidden;
}

.ec-gather-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ec-copper);
  transform: scaleX(0);
  transition: transform var(--ec-transition);
}

.ec-gather-card:hover::before { transform: scaleX(1); }

.ec-gather-card:hover {
  border-color: transparent;
  box-shadow: var(--ec-shadow-lg);
  transform: translateY(-4px);
}

.ec-gather-icon {
  width: 56px;
  height: 56px;
  background: var(--ec-copper-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-copper);
  margin: 0 auto 20px;
}

.ec-gather-card h3 {
  font-size: 1.1rem;
  color: var(--ec-forest);
  margin-bottom: 6px;
}

.ec-gather-time {
  font-family: var(--ec-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ec-forest);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.ec-gather-card p {
  font-size: .9rem;
  color: var(--ec-text-muted);
  line-height: 1.7;
}

/* ---------- Ministries ---------- */
.ec-ministries {
  background: var(--ec-white);
}

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

.ec-ministry-card {
  padding: 36px 28px;
  border-radius: var(--ec-radius-lg);
  background: var(--ec-cream);
  border: 1px solid transparent;
  transition: all var(--ec-transition);
  text-align: center;
}

.ec-ministry-card:hover {
  border-color: var(--ec-border);
  box-shadow: var(--ec-shadow);
  transform: translateY(-4px);
}

.ec-ministry-icon {
  width: 52px;
  height: 52px;
  background: var(--ec-forest);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-cream);
  margin: 0 auto 18px;
}

.ec-ministry-card h3 {
  font-size: 1.05rem;
  color: var(--ec-forest);
  margin-bottom: 8px;
}

.ec-ministry-card p {
  font-size: .88rem;
  color: var(--ec-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ec-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ec-font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ec-copper);
  transition: gap var(--ec-transition);
}

.ec-link-arrow:hover { gap: 9px; }

/* ---------- Pastors ---------- */
.ec-pastors {
  background: var(--ec-cream);
}

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

.ec-pastor-card {
  background: var(--ec-white);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ec-border);
  transition: all var(--ec-transition);
}

.ec-pastor-card:hover {
  border-color: transparent;
  box-shadow: var(--ec-shadow-lg);
  transform: translateY(-4px);
}

.ec-pastor-photo {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.ec-pastor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ec-pastor-card:hover .ec-pastor-photo img { transform: scale(1.04); }

.ec-pastor-body {
  padding: 28px;
  text-align: center;
}

.ec-pastor-body h3 {
  font-size: 1.15rem;
  color: var(--ec-forest);
  margin-bottom: 4px;
}

.ec-pastor-role {
  font-family: var(--ec-font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ec-copper);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.ec-pastor-body p {
  font-size: .9rem;
  color: var(--ec-text-muted);
  line-height: 1.7;
}

/* ---------- Events ---------- */
.ec-events {
  background: var(--ec-white);
}

.ec-events-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ec-event-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--ec-cream);
  border-radius: var(--ec-radius);
  border: 1px solid transparent;
  transition: all var(--ec-transition);
}

.ec-event-item:hover {
  border-color: var(--ec-border);
  box-shadow: var(--ec-shadow);
  transform: translateX(4px);
}

.ec-event-date {
  text-align: center;
  background: var(--ec-white);
  padding: 10px;
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-border);
}

.ec-event-date-month {
  font-family: var(--ec-font-display);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ec-copper);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ec-event-date-day {
  font-family: var(--ec-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ec-forest);
  line-height: 1.1;
}

.ec-event-info h4 {
  font-size: 1.05rem;
  color: var(--ec-forest);
  margin-bottom: 4px;
}

.ec-event-info p {
  font-size: .88rem;
  color: var(--ec-text-muted);
  font-family: var(--ec-font-display);
}

.ec-event-action .ec-link-arrow {
  white-space: nowrap;
}

/* ---------- CTA ---------- */
.ec-cta {
  background: var(--ec-forest);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ec-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(74, 124, 106, .3) 0%, transparent 60%);
}

.ec-cta-inner { position: relative; z-index: 1; }

.ec-cta h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--ec-cream);
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.ec-cta h2 em {
  font-style: italic;
  font-family: var(--ec-font-body);
  font-weight: 500;
  color: var(--ec-sage-light);
}

.ec-cta p {
  font-size: 1.05rem;
  color: rgba(248, 244, 237, .65);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.ec-btn-copper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ec-copper);
  color: var(--ec-white);
  font-family: var(--ec-font-display);
  font-size: .95rem;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 50px;
  transition: all var(--ec-transition);
}

.ec-btn-copper:hover {
  background: var(--ec-copper-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(196, 122, 90, .35);
}

/* ---------- Footer ---------- */
.ec-footer {
  background: var(--ec-forest);
  padding: 68px 0 28px;
  border-top: 3px solid var(--ec-copper);
}

.ec-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}

.ec-footer-brand .ec-logo {
  color: var(--ec-cream);
  margin-bottom: 14px;
}

.ec-footer-brand .ec-logo-icon {
  background: var(--ec-copper);
  color: var(--ec-white);
}

.ec-footer-brand p {
  font-size: .9rem;
  color: rgba(248, 244, 237, .5);
  line-height: 1.7;
  max-width: 260px;
}

.ec-footer-col h4 {
  font-family: var(--ec-font-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ec-copper);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

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

.ec-footer-col ul li a {
  font-size: .88rem;
  color: rgba(248, 244, 237, .5);
  transition: color var(--ec-transition);
}

.ec-footer-col ul li a:hover { color: var(--ec-cream); }

.ec-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.ec-footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(248, 244, 237, .06);
  border: 1px solid rgba(248, 244, 237, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 244, 237, .5);
  transition: all var(--ec-transition);
}

.ec-footer-social a:hover {
  background: var(--ec-copper-glow);
  border-color: rgba(196, 122, 90, .3);
  color: var(--ec-copper);
}

.ec-footer-bottom {
  border-top: 1px solid rgba(248, 244, 237, .08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ec-font-display);
  font-size: .8rem;
  color: rgba(248, 244, 237, .3);
}

.ec-footer-bottom a {
  color: rgba(248, 244, 237, .3);
  transition: color var(--ec-transition);
}

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

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ec-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .ec-hero-text { max-width: none; text-align: center; }
  .ec-hero-desc { margin-left: auto; margin-right: auto; }
  .ec-hero-actions { justify-content: center; }
  .ec-hero-image-main img { height: 400px; }
  .ec-hero-float { left: 16px; bottom: -16px; }
  .ec-ministries-grid { grid-template-columns: repeat(2, 1fr); }
  .ec-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ec-hamburger { display: flex; }
  .ec-nav-links { display: none; }
  .ec-gather-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .ec-pastors-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .ec-event-item { grid-template-columns: 70px 1fr; gap: 16px; }
  .ec-event-action { display: none; }
  .ec-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ec-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .ec-section { padding: 70px 0; }
  .ec-ministries-grid { grid-template-columns: 1fr; }
  .ec-hero-float { display: none; }
}
