/* ==========================================================================
   Unity Chapel — Template #46
   Palette: Deep Forest #1b3a2d | Warm Cream #faf7f0 | Copper Rose #b5665e
   Fonts: Tenor Sans (headings) + Outfit (body)
   ========================================================================== */

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

:root {
  --uc-forest: #1b3a2d;
  --uc-cream: #faf7f0;
  --uc-copper: #b5665e;
  --uc-forest-light: #24503d;
  --uc-copper-dark: #9a534c;
  --uc-text: #333;
  --uc-text-light: #6b6b6b;
  --uc-white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--uc-text);
  background: var(--uc-cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  line-height: 1.25;
}

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

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

/* --- Demo Banner --- */
.uc-demo-banner {
  background: var(--uc-forest);
  color: var(--uc-cream);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  position: relative;
  z-index: 1100;
}
.uc-demo-banner a {
  color: var(--uc-copper);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}
.uc-demo-banner a:hover { color: var(--uc-cream); }

/* --- Navigation --- */
.uc-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 40px 0 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
.uc-nav.scrolled {
  background: var(--uc-forest);
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.uc-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uc-logo {
  font-family: 'Tenor Sans', serif;
  font-size: 1.5rem;
  color: var(--uc-white);
  letter-spacing: 1px;
}
.uc-nav-links {
  display: flex;
  gap: 32px;
}
.uc-nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.uc-nav-links a:hover { color: var(--uc-copper); }

/* Hamburger */
.uc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.uc-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--uc-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Panel */
.uc-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.uc-mobile-overlay.active { opacity: 1; pointer-events: all; }

.uc-mobile-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--uc-forest);
  z-index: 1060;
  transition: right 0.35s ease;
  padding: 80px 32px 32px;
}
.uc-mobile-panel.active { right: 0; }

.uc-panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--uc-cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.uc-panel-links { display: flex; flex-direction: column; gap: 24px; }
.uc-panel-links a {
  color: var(--uc-cream);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.3s;
}
.uc-panel-links a:hover { color: var(--uc-copper); }

/* --- Hero --- */
.uc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.uc-hero-bg {
  position: absolute;
  inset: 0;
}
.uc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 45, 0.75) 0%,
    rgba(27, 58, 45, 0.55) 50%,
    rgba(27, 58, 45, 0.8) 100%
  );
}
.uc-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.uc-hero-content h1 {
  font-size: 3.5rem;
  color: var(--uc-white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.uc-hero-content h1 em {
  font-style: italic;
  color: var(--uc-copper);
}
.uc-hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 32px;
}

/* --- Buttons --- */
.uc-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}
.uc-btn-primary {
  background: var(--uc-copper);
  color: var(--uc-white);
}
.uc-btn-primary:hover { background: var(--uc-copper-dark); }

.uc-btn-outline {
  background: transparent;
  color: var(--uc-copper);
  border-color: var(--uc-copper);
}
.uc-btn-outline:hover { background: var(--uc-copper); color: var(--uc-white); }

.uc-btn-white {
  background: var(--uc-white);
  color: var(--uc-copper);
}
.uc-btn-white:hover { background: var(--uc-cream); }

.uc-btn-outline-white {
  background: transparent;
  color: var(--uc-white);
  border-color: var(--uc-white);
}
.uc-btn-outline-white:hover { background: var(--uc-white); color: var(--uc-copper); }

/* --- Section Base --- */
.uc-section { padding: 100px 0; }

.uc-section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--uc-forest);
  margin-bottom: 12px;
}

/* --- Divider --- */
.uc-divider {
  width: 60px;
  height: 3px;
  background: var(--uc-copper);
  margin: 0 auto 48px;
  border-radius: 2px;
}
.uc-divider-light { background: var(--uc-copper); }
.uc-divider-left { margin: 0 0 32px; }

/* --- Welcome --- */
.uc-welcome { background: var(--uc-cream); }
.uc-welcome-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.uc-welcome-content h2 {
  font-size: 2.5rem;
  color: var(--uc-forest);
  margin-bottom: 12px;
}
.uc-lead {
  font-size: 1.15rem;
  color: var(--uc-text);
  margin-bottom: 16px;
  line-height: 1.8;
}
.uc-welcome-content p:last-child {
  color: var(--uc-text-light);
}

/* --- Worship --- */
.uc-worship { background: var(--uc-forest); }
.uc-worship .uc-section-title { color: var(--uc-cream); }

.uc-worship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.uc-worship-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.uc-worship-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}
.uc-worship-icon {
  color: var(--uc-copper);
  margin-bottom: 20px;
}
.uc-worship-card h3 {
  color: var(--uc-cream);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.uc-worship-time {
  color: var(--uc-copper);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.uc-worship-card p { color: rgba(255,255,255,0.7); }

/* --- Ministries --- */
.uc-ministries { background: var(--uc-cream); }
.uc-ministries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.uc-ministry-card {
  background: var(--uc-white);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(27,58,45,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.uc-ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(27,58,45,0.12);
}
.uc-ministry-icon { margin-bottom: 20px; }
.uc-ministry-card h3 {
  color: var(--uc-forest);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.uc-ministry-card p { color: var(--uc-text-light); font-size: 0.95rem; }

/* --- Sermons --- */
.uc-sermons { background: var(--uc-white); }
.uc-sermons-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.uc-sermon-featured { border-radius: 8px; overflow: hidden; background: var(--uc-cream); }
.uc-sermon-img { position: relative; }
.uc-sermon-img img { width: 100%; height: 320px; object-fit: cover; }
.uc-sermon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--uc-copper);
  color: var(--uc-white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.uc-sermon-info { padding: 32px; }
.uc-sermon-info h3 {
  color: var(--uc-forest);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.uc-sermon-meta {
  color: var(--uc-copper);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.uc-sermon-info p { color: var(--uc-text-light); margin-bottom: 24px; }

.uc-sermons-recent { display: flex; flex-direction: column; gap: 20px; }
.uc-sermon-card {
  display: flex;
  gap: 16px;
  background: var(--uc-cream);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}
.uc-sermon-card:hover { transform: translateX(4px); }
.uc-sermon-card img { width: 120px; height: 100px; object-fit: cover; flex-shrink: 0; }
.uc-sermon-card-body { padding: 16px 16px 16px 0; display: flex; flex-direction: column; justify-content: center; }
.uc-sermon-card-body h4 { color: var(--uc-forest); font-size: 1.05rem; margin-bottom: 4px; }

/* --- Gallery --- */
.uc-gallery { background: var(--uc-cream); }
.uc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uc-gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.uc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.uc-gallery-item:hover img { transform: scale(1.08); }
.uc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 45, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.uc-gallery-item:hover .uc-gallery-overlay { opacity: 1; }
.uc-gallery-overlay span {
  color: var(--uc-white);
  font-family: 'Tenor Sans', serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* --- Pastoral --- */
.uc-pastoral { background: var(--uc-white); }
.uc-pastoral-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: center;
}
.uc-pastoral-photo img {
  border-radius: 8px;
  width: 100%;
  height: 450px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(27,58,45,0.12);
}
.uc-pastoral-content h2 {
  font-size: 2.2rem;
  color: var(--uc-forest);
  margin-bottom: 12px;
}
.uc-pastoral-content blockquote {
  font-size: 1.15rem;
  color: var(--uc-text);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 24px;
  border-left: 3px solid var(--uc-copper);
  padding-left: 24px;
}
.uc-pastoral-name {
  font-family: 'Tenor Sans', serif;
  color: var(--uc-forest);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.uc-pastoral-role {
  color: var(--uc-copper);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- CTA --- */
.uc-cta {
  background: var(--uc-copper);
  text-align: center;
}
.uc-cta-content h2 {
  color: var(--uc-white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.uc-cta-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}
.uc-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.uc-footer {
  background: var(--uc-forest);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}
.uc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.uc-footer-logo {
  font-family: 'Tenor Sans', serif;
  color: var(--uc-cream);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.uc-footer-col h4 {
  color: var(--uc-cream);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.uc-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.uc-footer-col a { transition: color 0.3s; }
.uc-footer-col a:hover { color: var(--uc-copper); }

.uc-social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.uc-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--uc-cream);
  transition: background 0.3s;
}
.uc-social-links a:hover { background: var(--uc-copper); }

.uc-footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .uc-ministries-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-sermons-layout { grid-template-columns: 1fr; }
  .uc-pastoral-layout { grid-template-columns: 280px 1fr; gap: 40px; }
  .uc-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .uc-nav-links { display: none; }
  .uc-hamburger { display: flex; }

  .uc-hero-content h1 { font-size: 2.4rem; }
  .uc-hero-content p { font-size: 1rem; }

  .uc-section { padding: 72px 0; }
  .uc-section-title { font-size: 2rem; }
  .uc-welcome-content h2 { font-size: 2rem; }

  .uc-worship-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .uc-ministries-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .uc-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .uc-pastoral-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .uc-pastoral-photo img { max-width: 300px; margin: 0 auto; height: 360px; }
  .uc-divider-left { margin: 0 auto 32px; }

  .uc-sermon-featured .uc-sermon-img img { height: 240px; }

  .uc-cta-content h2 { font-size: 2rem; }
  .uc-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .uc-hero-content h1 { font-size: 1.85rem; }
  .uc-section { padding: 56px 0; }
  .uc-section-title { font-size: 1.7rem; }

  .uc-btn { padding: 12px 28px; font-size: 0.9rem; }

  .uc-sermon-card { flex-direction: column; }
  .uc-sermon-card img { width: 100%; height: 160px; }
  .uc-sermon-card-body { padding: 16px; }

  .uc-gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .uc-cta-content h2 { font-size: 1.65rem; }
  .uc-cta-actions { flex-direction: column; align-items: center; }
}