/* ══════════════════════════════════════════════
   Connecting Point Church — Shared Stylesheet
   ══════════════════════════════════════════════ */

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

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-lighter: #2d3d56;
  --gold: #c8a45e;
  --gold-light: #dfc07a;
  --gold-dim: rgba(200, 164, 94, 0.15);
  --gold-border: rgba(200, 164, 94, 0.3);
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --cream-light: #faf7f2;
  --text-primary: #1a2332;
  --text-secondary: #5a6577;
  --text-light: #8a94a3;
  --white: #ffffff;
  --red-accent: #a33;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.1);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up {
  animation: fadeUp 0.6s ease-out both;
}
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* ── TOP BAR / LOGO ── */
.top-bar {
  background: var(--navy);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar img.logo-addon {
  height: 20px;
  opacity: 0.9;
}
.top-bar .donate-btn {
  display: inline-block;
}
.top-bar .donate-btn img {
  width: auto;
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s;
}
.top-bar .donate-btn img:hover { opacity: 0.8; }

/* ── MAIN LOGO BANNER ── */
.logo-banner {
  background: var(--navy);
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo-banner img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: inline-block;
}

/* ── NAVIGATION ── */
.main-nav {
  background: var(--navy-light);
  border-bottom: 2px solid var(--gold);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: block;
}
.main-nav ul {
  list-style: none;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  gap: 0;
}
.main-nav li {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
}
.main-nav li a {
  display: block;
  padding: 0.85rem 1.2rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.main-nav li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.main-nav li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.main-nav .nav-social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav .nav-social a {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.6rem;
  border-bottom: none;
  margin-bottom: 0;
}
.main-nav .nav-social svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.2s;
}
.main-nav .nav-social a:hover svg {
  fill: var(--gold);
}

/* ── HERO SECTIONS ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,164,94,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(200,164,94,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero .church-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  position: relative;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  position: relative;
}
.hero h1 span { color: var(--gold); }
.hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-top: 0.5rem;
  position: relative;
}

/* ── MAIN CONTENT CONTAINER ── */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ── SECTION HEADINGS ── */
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* ── CONTENT CARDS ── */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.content-card:hover {
  box-shadow: var(--shadow-md);
}
.content-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.content-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}
.content-card h3:first-child { margin-top: 0; }
.content-card p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul {
  list-style: none;
  padding: 0;
}
.content-card ul li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1rem;
}
.content-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.content-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.content-card a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ── SUB-NAV (About section tabs) ── */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.sub-nav a {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  transition: all 0.2s;
}
.sub-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.sub-nav a.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

/* ── IMAGE STYLING ── */
.content-card img.inline-img {
  max-width: 280px;
  border-radius: var(--radius);
  float: right;
  margin: 0 0 1rem 1.5rem;
  box-shadow: var(--shadow-md);
}

/* ── SCRIPTURE BLOCKS ── */
.scripture-ref {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.25rem;
}

/* ── FORM STYLING ── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-group textarea {
  min-height: 180px;
  resize: vertical;
}
.btn-submit {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: var(--navy);
  color: var(--gold);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ── SIDEBAR INFO BOX (for service times, quick links) ── */
.info-sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  border-top: 3px solid var(--gold);
}
.info-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-box p, .info-box a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.info-box a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.info-box a:hover { text-decoration: underline; }

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.schedule-row.header {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 0.4rem;
  margin-top: 0.75rem;
}
.schedule-row.header:first-child { margin-top: 0; }
.schedule-row span:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

/* ── BELIEF ITEM ── */
.belief-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--gold);
  font-size: 1.05rem;
  color: var(--text-secondary);
  transition: box-shadow 0.2s, transform 0.15s;
}
.belief-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

/* ── MAP EMBED ── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .page-content { padding: 1.5rem 1rem 2rem; }
  .logo-banner { padding: 1.25rem 1rem 1rem; }
  .logo-banner img { max-width: 300px; width: 85%; }
  .main-nav { padding: 0 0.5rem; }
  .main-nav ul { gap: 0; justify-content: center; }
  .main-nav li a { padding: 0.65rem 0.7rem; font-size: 0.8rem; }
  .content-card { padding: 1.25rem; }
  .content-card img.inline-img {
    float: none;
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
  }
  .sub-nav a { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
  .info-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .logo-banner img { max-width: 240px; width: 80%; }
  .main-nav li a { padding: 0.55rem 0.5rem; font-size: 0.75rem; letter-spacing: 0; }
}
