/*
 * Cornerstone Church — Custom Styles
 * Add to your child theme or enqueue via functions.php
 *
 * Brand palette:
 *   Burgundy dark  #5a1f1f
 *   Burgundy mid   #7a2c2c
 *   Burgundy light #f5eaea
 *   Gold/tan       #c8a96e
 *   Tan light      #f7f1e6
 *   Cream          #faf7f2
 *   Charcoal       #2c2c2c
 */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --cc-burgundy:       #7a2c2c;
  --cc-burgundy-dark:  #5a1f1f;
  --cc-burgundy-light: #f5eaea;
  --cc-gold:           #c8a96e;
  --cc-gold-dark:      #7a5f2e;
  --cc-tan-light:      #f7f1e6;
  --cc-cream:          #faf7f2;
  --cc-charcoal:       #2c2c2c;
  --cc-border:         rgba(200, 169, 110, 0.28);
  --cc-radius:         10px;
  --cc-radius-sm:      6px;
}

/* ─── Shared utilities ──────────────────────────────────── */
.cc-section-label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cc-gold);
  margin-bottom: 8px;
  display: block;
}

.cc-btn-primary {
  display: inline-block;
  background: var(--cc-gold);
  color: var(--cc-burgundy-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--cc-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.cc-btn-primary:hover { opacity: 0.88; color: var(--cc-burgundy-dark); }

.cc-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--cc-radius-sm);
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.cc-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cc-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}
.cc-chip-burgundy {
  background: var(--cc-burgundy-light);
  color: var(--cc-burgundy);
}
.cc-chip-gold {
  background: var(--cc-tan-light);
  color: var(--cc-gold-dark);
}

/* ─── Navigation ────────────────────────────────────────── */
.cc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-bottom: 0.5px solid var(--cc-border);
  background: #fff;
}
.cc-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cc-charcoal);
  text-decoration: none;
}
.cc-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cc-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cc-nav-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}
.cc-nav-links a:hover { color: var(--cc-burgundy); }
.cc-nav-links .cc-nav-cta {
  background: var(--cc-burgundy);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: var(--cc-radius-sm);
  font-weight: 500;
}
.cc-nav-links .cc-nav-cta:hover { opacity: 0.88; }

/* ─── Hero ──────────────────────────────────────────────── */
.cc-hero {
  background: var(--cc-burgundy-dark);
  padding: 64px 32px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cc-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    45deg,
    #fff 0px, #fff 1px,
    transparent 1px, transparent 13px
  );
  pointer-events: none;
}
.cc-hero-inner { position: relative; }
.cc-hero-eyebrow {
  display: inline-block;
  background: rgba(200,169,110,0.18);
  color: var(--cc-gold);
  border: 0.5px solid rgba(200,169,110,0.4);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.cc-hero h1 {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
}
.cc-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.cc-hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Service times strip ───────────────────────────────── */
.cc-times {
  background: var(--cc-tan-light);
  border-bottom: 0.5px solid var(--cc-border);
  display: flex;
}
.cc-times-slot {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
  border-right: 0.5px solid var(--cc-border);
}
.cc-times-slot:last-child { border-right: none; }
.cc-times-time {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-gold);
  margin-bottom: 4px;
}
.cc-times-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-charcoal);
  margin-bottom: 2px;
}
.cc-times-desc {
  font-size: 12px;
  color: #777;
}

/* ─── Welcome section ───────────────────────────────────── */
.cc-welcome {
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
}
.cc-welcome h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--cc-charcoal);
  line-height: 1.3;
  margin: 0 0 12px;
}
.cc-welcome p {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 20px;
}
.cc-welcome-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-welcome-photo {
  background: var(--cc-cream);
  border: 0.5px solid var(--cc-border);
  border-radius: var(--cc-radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-welcome-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Pastors ───────────────────────────────────────────── */
.cc-pastors {
  padding: 48px 32px;
  background: var(--cc-cream);
  border-top: 0.5px solid var(--cc-border);
}
.cc-pastors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.cc-pastor-card {
  background: #fff;
  border: 0.5px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 22px;
  display: flex;
  gap: 16px;
}
.cc-pastor-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cc-burgundy);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.cc-pastor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-pastor-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--cc-charcoal);
  margin-bottom: 2px;
}
.cc-pastor-role {
  font-size: 11px;
  color: var(--cc-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.cc-pastor-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

/* ─── Location + Give ───────────────────────────────────── */
.cc-bottom {
  padding: 36px 32px;
  background: #fff;
  border-top: 0.5px solid var(--cc-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.cc-location h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-charcoal);
  margin-bottom: 12px;
}
.cc-location-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.cc-location-row .dashicons,
.cc-location-icon {
  color: var(--cc-gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.cc-give-card {
  background: var(--cc-burgundy);
  border-radius: var(--cc-radius);
  padding: 24px;
  text-align: center;
}
.cc-give-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}
.cc-give-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.cc-give-card .cc-btn-primary {
  width: 100%;
  text-align: center;
}

/* ─── Footer ────────────────────────────────────────────── */
.cc-footer {
  background: var(--cc-burgundy-dark);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.cc-footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cc-footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}
.cc-footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 700px) {
  .cc-welcome,
  .cc-pastors-grid,
  .cc-bottom { grid-template-columns: 1fr; }
  .cc-times { flex-direction: column; }
  .cc-times-slot { border-right: none; border-bottom: 0.5px solid var(--cc-border); }
  .cc-times-slot:last-child { border-bottom: none; }
  .cc-nav-links { display: none; }
  .cc-hero h1 { font-size: 26px; }
}
