/* =============================================
   COVENANT CHURCH — Template 11
   Elegant liturgical church with burgundy + cream
   Font: EB Garamond (display) + Work Sans (body)
   Hero: Arch Frame
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --cc-burgundy:      #722f37;
  --cc-wine-dark:     #3d1a1e;
  --cc-wine-deep:     #2a1013;
  --cc-cream:         #fdf8f0;
  --cc-ivory:         #f5efe4;
  --cc-gold:          #c5a55a;
  --cc-gold-light:    #dbc88a;
  --cc-warm-gray:     #6b5e5e;
  --cc-text:          #2c2424;
  --cc-text-light:    #6b5e5e;
  --cc-white:         #ffffff;

  --cc-font-display: 'EB Garamond', Georgia, serif;
  --cc-font-body:    'Work Sans', -apple-system, sans-serif;

  --cc-radius:     8px;
  --cc-radius-lg:  16px;
  --cc-shadow:     0 2px 12px rgba(61,26,30,0.08);
  --cc-shadow-lg:  0 8px 32px rgba(61,26,30,0.12);
  --cc-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(--cc-font-body);
  color: var(--cc-text);
  background: var(--cc-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--cc-font-display);
  line-height: 1.2;
  color: var(--cc-wine-dark);
}

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

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

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

.cc-demo-banner a {
  color: var(--cc-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Navigation ---------- */
.cc-nav {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(253,248,240,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(114,47,55,0.08);
  z-index: 960;
  transition: background var(--cc-transition), box-shadow var(--cc-transition);
}

.cc-nav.scrolled {
  box-shadow: 0 2px 16px rgba(61,26,30,0.08);
}

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

.cc-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cc-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cc-wine-dark);
}

.cc-nav-logo svg {
  width: 28px;
  height: 34px;
  color: var(--cc-burgundy);
}

.cc-nav-logo em {
  font-style: italic;
  color: var(--cc-burgundy);
}

.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cc-nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cc-warm-gray);
  transition: color var(--cc-transition);
}

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

.cc-nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--cc-burgundy);
  color: var(--cc-cream) !important;
  border-radius: var(--cc-radius);
  font-weight: 600;
  transition: background var(--cc-transition);
}

.cc-nav-cta:hover { background: var(--cc-wine-dark) !important; }

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

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

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

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

.cc-btn-burgundy {
  background: var(--cc-burgundy);
  color: var(--cc-cream);
}
.cc-btn-burgundy:hover {
  background: var(--cc-wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(114,47,55,0.3);
}

.cc-btn-outline {
  background: transparent;
  color: var(--cc-wine-dark);
  border: 2px solid var(--cc-burgundy);
}
.cc-btn-outline:hover {
  background: var(--cc-burgundy);
  color: var(--cc-cream);
}

.cc-btn-gold {
  background: var(--cc-gold);
  color: var(--cc-wine-deep);
}
.cc-btn-gold:hover {
  background: var(--cc-gold-light);
  transform: translateY(-2px);
}

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

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

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cc-font-display);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--cc-gold);
  margin-bottom: 14px;
}

.cc-eyebrow::before,
.cc-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cc-gold);
  opacity: 0.4;
}

.cc-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 16px;
}

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

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

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

/* ============================================
   HERO — Arch Frame
   ============================================ */
.cc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 108px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--cc-wine-deep);
}

.cc-hero-bg {
  position: absolute;
  inset: 0;
}

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

/* Arch-shaped frame overlay */
.cc-hero-arch {
  position: relative;
  z-index: 2;
  width: 580px;
  max-width: 90%;
  text-align: center;
  padding: 60px 48px 48px;
  background: rgba(42,16,19,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197,165,90,0.2);
  border-radius: 300px 300px 0 0;
}

.cc-hero-arch::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border-radius: 300px 300px 0 0;
  border: 1px solid rgba(197,165,90,0.15);
  pointer-events: none;
}

.cc-hero-cross {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.cc-hero-cross svg {
  width: 36px;
  height: 48px;
  color: var(--cc-gold);
}

.cc-hero-eyebrow {
  font-family: var(--cc-font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--cc-gold-light);
  margin-bottom: 16px;
}

.cc-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--cc-cream);
  margin-bottom: 16px;
  font-weight: 500;
}

.cc-hero-title em {
  display: block;
  font-style: italic;
  color: var(--cc-gold-light);
  font-size: 0.85em;
}

.cc-hero-desc {
  font-size: 1.05rem;
  color: rgba(253,248,240,0.7);
  margin-bottom: 32px;
  line-height: 1.8;
}

.cc-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

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

.cc-welcome-est {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--cc-burgundy);
  color: var(--cc-gold-light);
  padding: 10px 20px;
  border-radius: var(--cc-radius);
  font-family: var(--cc-font-display);
  font-size: 0.85rem;
  font-style: italic;
}

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

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

.cc-welcome-verse {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--cc-ivory);
  border-left: 3px solid var(--cc-gold);
  border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
  font-family: var(--cc-font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cc-burgundy);
  line-height: 1.6;
}

.cc-welcome-verse cite {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-style: normal;
  font-family: var(--cc-font-body);
  color: var(--cc-warm-gray);
}

/* ============================================
   LITURGICAL CALENDAR
   ============================================ */
.cc-liturgy {
  background: var(--cc-ivory);
}

.cc-liturgy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cc-liturgy-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--cc-white);
  border-radius: var(--cc-radius-lg);
  box-shadow: var(--cc-shadow);
  border-top: 4px solid var(--cc-burgundy);
  transition: transform var(--cc-transition), box-shadow var(--cc-transition);
}

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

.cc-liturgy-card.advent  { border-top-color: #5b3a8c; }
.cc-liturgy-card.christmas { border-top-color: var(--cc-gold); }
.cc-liturgy-card.lent    { border-top-color: var(--cc-burgundy); }
.cc-liturgy-card.easter  { border-top-color: #d4a853; }
.cc-liturgy-card.ordinary { border-top-color: #4a7c59; }

.cc-liturgy-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.cc-liturgy-card.advent .cc-liturgy-dot   { background: #5b3a8c; }
.cc-liturgy-card.christmas .cc-liturgy-dot { background: var(--cc-gold); }
.cc-liturgy-card.lent .cc-liturgy-dot     { background: var(--cc-burgundy); }
.cc-liturgy-card.easter .cc-liturgy-dot   { background: #d4a853; }
.cc-liturgy-card.ordinary .cc-liturgy-dot { background: #4a7c59; }

.cc-liturgy-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cc-liturgy-dates {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cc-warm-gray);
  margin-bottom: 8px;
}

.cc-liturgy-card p {
  font-size: 0.82rem;
  color: var(--cc-text-light);
  line-height: 1.5;
}

/* ============================================
   SACRAMENTS
   ============================================ */
.cc-sacraments {
  background: var(--cc-cream);
}

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

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

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

.cc-sacrament-image {
  height: 200px;
  overflow: hidden;
}

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

.cc-sacrament-card:hover .cc-sacrament-image img { transform: scale(1.05); }

.cc-sacrament-body {
  padding: 28px;
}

.cc-sacrament-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.cc-sacrament-body p {
  font-size: 0.92rem;
  color: var(--cc-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.cc-sacrament-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cc-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--cc-transition);
}

.cc-sacrament-link:hover { gap: 10px; }

/* ============================================
   PARISH DIRECTORY
   ============================================ */
.cc-parish {
  background: var(--cc-wine-deep);
  color: var(--cc-cream);
}

.cc-parish .cc-section-title { color: var(--cc-cream); }

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

.cc-parish-card {
  text-align: center;
  padding: 36px 24px;
  background: rgba(114,47,55,0.2);
  border: 1px solid rgba(197,165,90,0.15);
  border-radius: var(--cc-radius-lg);
  transition: background var(--cc-transition), transform var(--cc-transition);
}

.cc-parish-card:hover {
  background: rgba(114,47,55,0.35);
  transform: translateY(-4px);
}

.cc-parish-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 2px solid var(--cc-gold);
}

.cc-parish-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-parish-card h3 {
  font-size: 1.1rem;
  color: var(--cc-cream);
  margin-bottom: 4px;
  font-weight: 500;
}

.cc-parish-role {
  font-size: 0.8rem;
  color: var(--cc-gold-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.cc-parish-card p {
  font-size: 0.85rem;
  color: rgba(253,248,240,0.6);
  line-height: 1.6;
}

/* ============================================
   SERVICE TIMES CTA
   ============================================ */
.cc-services-cta {
  background: linear-gradient(135deg, var(--cc-burgundy) 0%, var(--cc-wine-dark) 100%);
  color: var(--cc-cream);
  text-align: center;
  padding: 80px 0;
}

.cc-services-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cc-cream);
  font-weight: 500;
  margin-bottom: 16px;
}

.cc-services-cta p {
  max-width: 560px;
  margin: 0 auto 12px;
  font-size: 1.05rem;
  color: rgba(253,248,240,0.75);
}

.cc-service-times {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.cc-service-time-item {
  font-family: var(--cc-font-display);
  font-size: 0.95rem;
}

.cc-service-time-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--cc-gold-light);
}

/* ============================================
   FOOTER
   ============================================ */
.cc-footer {
  background: var(--cc-wine-deep);
  color: rgba(253,248,240,0.6);
  padding: 60px 0 32px;
}

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

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

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

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

.cc-footer ul a {
  font-size: 0.85rem;
  transition: color var(--cc-transition);
}
.cc-footer ul a:hover { color: var(--cc-gold-light); }

.cc-footer-bottom {
  border-top: 1px solid rgba(197,165,90,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

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

.cc-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(197,165,90,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--cc-transition), border-color var(--cc-transition);
}

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

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

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

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

  .cc-liturgy-grid { grid-template-columns: repeat(3, 1fr); }
  .cc-parish-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cc-hero-arch {
    padding: 48px 28px 40px;
    border-radius: 200px 200px 0 0;
  }
  .cc-hero-arch::before { border-radius: 200px 200px 0 0; }

  .cc-welcome-grid { grid-template-columns: 1fr; gap: 40px; }
  .cc-liturgy-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-sacraments-grid { grid-template-columns: 1fr; }
  .cc-parish-grid { grid-template-columns: 1fr; }
  .cc-footer-grid { grid-template-columns: 1fr; }
  .cc-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cc-service-times { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .cc-hero-title { font-size: 1.8rem; }
  .cc-hero-arch { padding: 40px 20px 32px; max-width: 95%; }
  .cc-hero-actions { flex-direction: column; }
  .cc-liturgy-grid { grid-template-columns: 1fr; }
}
